# MemoryForge AI with Redis, PostgreSQL, and Qdrant

Updated 9-16-25 Fixed EV issues Connections should be solid! v3.1.0

## Quick Start

```bash
# Connect this server (installs CLI if needed)
npx -y @smithery/cli@latest mcp add cpretzinger/ai-assistant-simple

# Browse available tools
npx -y @smithery/cli@latest tool list cpretzinger/ai-assistant-simple

# Get full schema for a tool
npx -y @smithery/cli@latest tool get cpretzinger/ai-assistant-simple get_context

# Call a tool
npx -y @smithery/cli@latest tool call cpretzinger/ai-assistant-simple get_context '{}'
```

## Direct MCP Connection

Endpoint: `https://ai-assistant-simple--cpretzinger.run.tools`

**Optional config:**
- `debug` (query) — Enable debug logging
- `QDRANT_URL` (query) — Qdrant URL
- `REDIS_HOST` (query) — Redis host for direct connection
- `REDIS_PORT` (query) — Redis port
- `POSTGRES_DB` (query) — PostgreSQL database
- `POSTGRES_HOST` (query) — PostgreSQL host for direct connection
- `POSTGRES_PORT` (query) — PostgreSQL port
- `POSTGRES_USER` (query) — PostgreSQL user
- `OPENAI_API_KEY` (query) — OpenAI API key for embeddings
- `QDRANT_API_KEY` (query) — Qdrant API key
- `REDIS_PASSWORD` (query) — Redis password
- `EMBEDDING_MODEL` (query) — Embedding model to use
- `REDIS_PROXY_URL` (query) — Redis HTTP proxy URL (alternative to direct connection)
- `POSTGRES_API_KEY` (query) — PostgREST API key
- `POSTGRES_PASSWORD` (query) — PostgreSQL password
- `POSTGRES_REST_URL` (query) — PostgREST API URL (alternative to direct connection)
- `REDIS_PROXY_API_KEY` (query) — Redis proxy API key

## Tools (11)

- `get_context` — Get or create context for a topic or project
- `update_context` — Update or add context for a topic or project
- `list_topics` — List all available topics/projects
- `delete_context` — Delete context for a specific topic
- `search_context` — Search for similar contexts using semantic search
- `get_context_history` — Get history of updates for a topic
- `export_contexts` — Export all contexts to JSON format
- `configure_auto_save` — Configure automatic context saving with custom frequency
- `get_auto_save_status` — Get current auto-save configuration and status
- `get_stream_context` — Get context data directly from Redis events:raw stream
- `update_stream_context` — Write context data directly to Redis events:raw stream

```bash
# Get full input/output schema for a tool
npx -y @smithery/cli@latest tool get cpretzinger/ai-assistant-simple <tool-name>
```

---

Source: https://github.com/cpretzinger/ai-assistant-simple/tree/main/mcp/smithery-context-mcp
