memory-mcp-server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| CLAUDE_MD_PATH | No | Path to CLAUDE.md project context. | |
| MEMORY_DB_PATH | No | Path to SQLite database file. | ./memory.db |
| OPENAI_API_KEY | No | OpenAI API key for embeddings and LLM structuring. Optional; without it the server uses FTS-only search and no auto-structuring or embeddings. | |
| MEMORY_LOG_LEVEL | No | Log level: debug, info, warn, or error. | info |
| MEMORY_TENANT_ID | No | Tenant ID for multi-tenant isolation. | default |
| TURSO_AUTH_TOKEN | No | Turso auth token for turso or hybrid storage mode. | |
| MEMORY_INDEX_PATH | No | Path for auto-generated MEMORY.md. | |
| MEMORY_LOG_FORMAT | No | Log format: text or json. | text |
| TURSO_DATABASE_URL | No | Turso database URL for turso or hybrid storage mode. | |
| MEMORY_STORAGE_TYPE | No | Storage backend: sqlite, turso, or hybrid. | sqlite |
| MEMORY_SYNC_INTERVAL | No | Hybrid sync interval in milliseconds. | 30000 |
| MEMORY_SYNC_ON_WRITE | No | Sync to cloud on every write. | false |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| memory_saveB | Save a conversation message as a memory note. Automatically generates summary, keywords, tags, embeddings, and links using LLM and embedding models when available. |
| memory_searchB | Search past memories using hybrid search (FTS5 full-text + vector similarity with RRF fusion). Returns relevant conversation logs and notes matching the query. |
| memory_associateA | Discover related memories through associative search (serendipity search). Uses TF-IDF random walk, note link exploration, and vector space exploration to find surprising connections. |
| memory_statsA | Get statistics about stored memories: total notes, sessions, links, date range, etc. |
| memory_summarizeA | Summarize memories for a given period or project. Uses LLM to create a coherent summary from stored notes. |
| memory_update_indexB | Update the MEMORY.md index file with latest memory data. Also optionally imports CLAUDE.md content as searchable context. |
| memory_migrateB | Migrate memory data from one storage backend to another (e.g., SQLite to Turso). Creates the target adapter, copies all tenants, sessions, notes, and links. |
| memory_exportB | Export memory data as JSON Lines (JSONL) format. Includes notes, links, and sessions for backup or migration. |
| memory_importB | Import memory data from JSON Lines (JSONL) format. Restores notes, links, and sessions from a previous export. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 9 tools
Each tool has a distinct role: search (query-based retrieval), associate (serendipity/link exploration), and summarize (LLM aggregation) are separated by their retrieval strategy, and the storage tools (save, migrate, export, import, update_index) target clearly different operations. The only mild overlaps are search vs. associate (both surface related memories) and update_index's optional CLAUDE.md import vs. memory_import, but descriptions make the boundaries readable.
Every tool follows the same memory_<verb> pattern (memory_search, memory_save, memory_export, memory_import), with only memory_stats deviating to a noun, which is conventional and still predictable. No style mixing (no camelCase or stray prefixes).
Nine tools sit comfortably in the well-scoped 3-15 range, and each covers a genuinely distinct lifecycle concern (retrieval, persistence, maintenance, portability). Nothing appears redundant or padded.
The surface covers retrieval, creation, aggregation, maintenance, and full backup/restore (export/import/migrate), so major workflows are unblocked. However, there is no explicit delete/forget operation, no get-by-id for a single note, and no direct note edit, which are notable gaps for a persistent memory store where forgetting or correcting a memory matters.