MCP Memory Service
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| LOG_LEVEL | No | Logging level (DEBUG, INFO, WARNING, ERROR) | WARNING |
| MCP_EMBEDDING_MODEL | No | Embedding model name | all-MiniLM-L6-v2 |
| MCP_MEMORY_BASE_DIR | No | Base directory for data storage | /app/data |
| MCP_MEMORY_SQLITE_PATH | No | Path to the SQLite database file | /app/data/memory.db |
| MCP_MEMORY_BACKUPS_PATH | No | Directory for backups | /app/data/backups |
| MCP_MEMORY_STORAGE_BACKEND | No | Storage backend: sqlite_vec (local), cloudflare, hybrid or milvus | sqlite_vec |
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": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {
"hardware_info": {
"cpu_count": 8,
"memory_gb": 22.91,
"accelerator": "cpu",
"architecture": "x86_64"
}
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| memory_storeA | Store one new memory (a fact, decision, note) with optional tags. Use this for a single piece of information you already have as text. For a whole multi-turn conversation use memory_store_session, for files on disk memory_ingest, and for the structured summary at the end of a session memory_commit_session. |
| memory_store_sessionA | Store a full conversation session as a single memory unit. This keeps the raw turns. To record what was learned in a session (decisions, errors, corrections) use memory_commit_session instead. Use this instead of memory_store when you want to preserve the full context of a multi-turn conversation. All turns are stored together, making session-level retrieval more reliable than storing individual turns separately. Example: { "turns": [ {"role": "user", "content": "How do I configure Redis?"}, {"role": "assistant", "content": "Set REDIS_URL in your .env file..."} ], "session_id": "optional-stable-id", "tags": "redis,configuration" } |
| memory_searchA | Search memories with flexible modes and filters. Primary tool for finding stored information. Start here for any question about stored content. Use memory_list to browse or page without a query, memory_explore for an entity-level overview of a topic, and memory_graph to follow associations from a memory you already have the hash of. USE THIS WHEN:
HASH LOOKUP:
MODES:
TIME FILTERS (can combine with other filters):
QUALITY BOOST (for semantic/hybrid modes):
TAG FILTER:
DEBUG:
SUMMARIZATION (opt-in):
Examples: {"query": "python async patterns"} {"content_hash": "aa6caea3d060e736c8b412e6b34a1354148ec04527a4bf547cfd4185140573d0"} {"query": "API endpoint", "mode": "exact"} {"time_expr": "last week", "limit": 20} {"query": "database config", "time_expr": "yesterday"} {"query": "architecture decisions", "tags": ["important"], "quality_boost": 0.3} {"after": "2024-01-01", "before": "2024-06-30", "limit": 50} {"query": "error handling", "include_debug": true} {"query": "replication consistency issue", "summarize": true} |
| memory_listA | List and browse memories with pagination and optional filters. USE THIS WHEN:
Unlike memory_search (semantic search), this does categorical listing/filtering. PAGINATION:
FILTERS (combine with AND logic):
Examples: {} // List first 20 memories {"page": 2, "page_size": 50} {"tags": ["python", "reference"]} {"tags": ["python", "reference"], "tag_match": "all"} {"memory_type": "decision", "page_size": 10} {"tags": ["important"], "memory_type": "note"} {"stale_days": 30} // Memories not accessed in 30 days {"stale_days": 7, "tags": ["archived"]} // Stale archived memories |
| memory_deleteA | Delete memories with flexible filtering. Combine filters for precise targeting. USE THIS WHEN:
FILTER COMBINATIONS (AND logic when multiple specified):
SAFETY FEATURES:
Examples: {"content_hash": "abc123def456"} {"tags": ["temporary", "draft"], "tag_match": "any"} {"tags": ["archived", "old"], "tag_match": "all"} {"before": "2024-01-01"} {"after": "2024-06-01", "before": "2024-12-31"} {"tags": ["cleanup"], "before": "2024-01-01", "dry_run": true} |
| memory_cleanupC | Find and remove duplicate entries |
| memory_healthC | Check database health and get statistics |
| memory_statsA | Get MCP server global cache statistics for performance monitoring. |
| memory_updateA | Update memory metadata without recreating the entire memory entry. |
| memory_consolidateB | Memory consolidation management - run, monitor, and control memory optimization. USE THIS WHEN:
ACTIONS:
TIME HORIZONS:
Examples: {"action": "status"} {"action": "run", "time_horizon": "weekly"} {"action": "run", "time_horizon": "daily", "immediate": true} {"action": "recommend", "time_horizon": "monthly"} {"action": "scheduler"} {"action": "pause"} {"action": "pause", "time_horizon": "daily"} {"action": "resume", "time_horizon": "weekly"} {"action": "merge", "content_hashes": ["hash1", "hash2"], "merged_content": "Consolidated text"} {"action": "merge", "content_hashes": ["hash1", "hash2"], "merged_content": "text", "tags": ["important"], "memory_type": "note"} |
| memory_ingestA | Ingest documents or directories into memory database. Reads files from disk and stores them as chunks. For text you already hold in the conversation use memory_store; for Claude Code session transcripts use memory_harvest. USE THIS WHEN:
SUPPORTED FORMATS:
MODE:
CHUNKING:
Examples: {"file_path": "/path/to/document.pdf"} {"file_path": "/path/to/notes.md", "tags": ["documentation"]} {"directory_path": "/path/to/docs", "recursive": true} {"directory_path": "/path/to/project", "file_extensions": ["md", "txt"], "tags": ["project-docs"]} |
| memory_harvestA | Extract learnings from Claude Code session transcripts. The server reads the transcript files itself and picks the candidates. If you can summarise the session yourself, call memory_commit_session instead; use this as the fallback, or to mine past sessions. For other documents use memory_ingest. USE THIS WHEN:
MODES:
MEMORY TYPES EXTRACTED:
LLM CLASSIFICATION (Phase 2):
Examples: {"sessions": 1, "dry_run": true} {"sessions": 3, "types": ["decision", "bug"]} {"session_ids": ["abc123"], "dry_run": false} {"min_confidence": 0.7, "sessions": 1} {"sessions": 1, "use_llm": true, "dry_run": true} |
| memory_qualityA | Memory quality management - rate, inspect, and analyze. ACTIONS:
Examples: {"action": "rate", "content_hash": "abc123", "rating": 1, "feedback": "Very useful"} {"action": "get", "content_hash": "abc123"} {"action": "analyze"} {"action": "analyze", "min_quality": 0.5, "max_quality": 1.0} {"action": "maintain"} {"action": "maintain", "dry_run": false} {"action": "maintain_status"} {"action": "rebuild_entities"} {"action": "rebuild_entities", "dry_run": false} |
| memory_graphA | Memory association graph operations - explore connections between memories. Works on relationships, starting from a memory hash or an entity name. To find memories by content use memory_search; for a topic overview built from entities use memory_explore, then memory_detail for one entity. ACTIONS:
Examples: {"action": "connected", "hash": "abc123", "max_hops": 2} {"action": "path", "hash1": "abc123", "hash2": "def456", "max_depth": 5} {"action": "subgraph", "hash": "abc123", "radius": 2} {"action": "infer", "rel_type": "causes", "max_hops": 2} {"action": "suggest", "hash": "abc123"} |
| memory_conflictsA | List unresolved memory conflicts (contradictory memories detected by similarity analysis) |
| memory_resolveC | Resolve a memory conflict by choosing a winner |
| mistake_note_addA | Record a mistake pattern for error replay. Tracks what went wrong and the correct action. Auto-increments failure_count for repeated patterns. |
| mistake_note_searchA | Search mistake notes by semantic similarity. Use before starting a task to check for known pitfalls and past errors. |
| mistake_note_updateA | Update fields of an existing mistake note. Can update failure_count, error_pattern, context_signature, incorrect_action, or correct_action. Content changes create a new hash (delete + re-store). |
| mistake_note_deleteA | Delete a mistake note by content hash. Only deletes memories with memory_type='mistake'. |
| memory_quarantine_listB | List memories that have been quarantined due to contradicting active beliefs. Use to review flagged memories. |
| memory_quarantine_releaseA | Release a memory from quarantine. Use when a quarantined memory is valid (e.g., the contradicted belief was wrong). |
| memory_commit_sessionA | Record end-of-session learnings from an ephemeral agent. Stores decisions, errors, corrections as structured observations. Call this once when a session ends, with your own summary of it. The server then runs its learning pipeline in the background, and memory_bootstrap_profile serves the result to later sessions. Use memory_store_session to keep the raw conversation turns, and memory_harvest when the server should extract learnings from transcript files itself. |
| memory_bootstrap_profileA | Generate a behavioral bootstrap profile for an ephemeral agent. Requires write scope because it resets session counters when a fresh start is due. For a read-only profile, read memory://agent/{agent_id}/bootstrap instead. |
| memory_onboarding_guideC | Get integration guide for a specific client type. |
| memory_distillA | Extract insights from existing memories via LLM rewriter (batch mode). Maintenance tool: it rewrites memories that are already stored and takes no new content from you. The server also runs it on a schedule. To add information use memory_store or memory_commit_session. dry_run defaults to true. |
| memory_exploreA | Explore a knowledge map of entities, with query-scoped chunks per entity (LLM-free). REQUIRES A POPULATED ENTITY GRAPH — returns {"entities": [], "count": 0} otherwise, for every query. Check with memory_graph {"action": "list_entities"}; populate with memory_quality {"action": "maintain", "dry_run": false} (dry_run defaults to true and stores nothing). Unavailable on the Cloudflare backend. Guide: docs/guides/token-efficient-retrieval.md USE THIS WHEN:
Returns a list of entities. Per entity:
Read-only. Composes with Examples: {"query": "authentication design"} {"query": "python", "max_entities": 5, "chunks_per_entity": 2} {"query": "database", "tags": ["reference"], "min_score": 0.3} |
| memory_detailA | Get the full ranked detail for a single entity. Takes an entity_id from memory_explore. For one memory by its content hash use memory_search with content_hash. USE THIS WHEN:
Returns:
Read-only. Examples: {"entity_id": "authentication-design"} {"entity_id": "python", "limit": 20, "include_related": false} {"entity_id": "database", "max_hops": 2} |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| memory_review | Review and organize memories from a specific time period |
| memory_analysis | Analyze patterns and themes in stored memories |
| knowledge_export | Export memories in a specific format |
| memory_cleanup | Identify and remove duplicate or outdated memories |
| learning_session | Store structured learning notes from a study session |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| Memory Statistics | Current memory database statistics |
| Available Tags | List of all tags used in memories |
| Recent Memories | 10 most recent memories |
| Client Onboarding Guide | Integration guide — how to use this memory server optimally |
| Agent Bootstrap Profile | Confidence-weighted behavioral profile for agent startup injection |
TDQS
Scored across 28 tools
Descriptions do heavy cross-referencing ("use memory_store_session instead", "use memory_search for content"), which rescues most pairs, but the write path has five entry points (memory_store, memory_store_session, memory_commit_session, memory_ingest, memory_harvest) and the maintenance path has at least four overlapping ones (memory_consolidate, memory_cleanup, memory_distill, memory_quality action=maintain, plus memory_conflicts/memory_resolve). memory_health vs memory_stats and memory_cleanup vs memory_quality's maintain action are genuinely easy to misselect.
Nearly everything is snake_case with a memory_ prefix, and the mistake_note_* family uses the same noun_verb ordering. Two sub-conventions coexist but are readable: action verbs (memory_store, memory_search, memory_delete) and resource-named multi-action dispatchers (memory_consolidate, memory_quality, memory_graph). Minor wrinkle is that some dispatcher names also sound like single verbs (memory_distill, memory_explore).
28 tools exceeds the comfortable range, though several (memory_consolidate, memory_quality, memory_graph) are action multiplexers that would otherwise be 5-9 separate tools, so the raw count overstates the surface. Still, specialty families like mistake_note_* and memory_quarantine_* each consume 4 and 2 slots for fairly narrow features, making the set heavier than the core memory domain requires.
The lifecycle is well covered: create (store/session/ingest/harvest), read (search/list/explore/detail/graph), update (memory_update, mistake_note_update), delete (memory_delete, mistake_note_delete), plus maintenance, conflict resolution, quarantine, health, and onboarding. Gaps are minor — no explicit export/backup, no tag-management tool, and beliefs are only exposed via include_beliefs in search rather than as first-class operations.