Memory MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MEMORY_MCP_DB_PATH | No | SQLite database location | ~/.memory-mcp/memory.db |
| MEMORY_MCP_MAX_TAGS | No | Max tags per memory | 20 |
| MEMORY_MCP_DEMOTION_DAYS | No | Days without access before demotion | 14 |
| MEMORY_MCP_EMBEDDING_DIM | No | Embedding vector dimension (must match model) | 384 |
| MEMORY_MCP_MINING_ENABLED | No | Enable pattern mining | true |
| MEMORY_MCP_EMBEDDING_MODEL | No | Sentence transformer model | sentence-transformers/all-MiniLM-L6-v2 |
| MEMORY_MCP_MAX_RECALL_LIMIT | No | Max results per recall query | 100 |
| MEMORY_MCP_LOG_RETENTION_DAYS | No | Days to retain output logs | 7 |
| MEMORY_MCP_MAX_CONTENT_LENGTH | No | Max characters per memory/log | 100000 |
| MEMORY_MCP_HOT_CACHE_MAX_ITEMS | No | Maximum items in hot cache | 20 |
| MEMORY_MCP_PROMOTION_THRESHOLD | No | Access count for auto-promotion | 3 |
| MEMORY_MCP_DEFAULT_RECALL_LIMIT | No | Default results per recall | 5 |
| MEMORY_MCP_HIGH_CONFIDENCE_THRESHOLD | No | Threshold for high confidence | 0.85 |
| MEMORY_MCP_DEFAULT_CONFIDENCE_THRESHOLD | No | Minimum similarity for results | 0.7 |
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
} |
| logging | {} |
| prompts | {
"listChanged": true
} |
| resources | {
"subscribe": false,
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| rememberC | Store a new memory. Returns the memory ID. |
| recallA | Semantic search with confidence gating and composite ranking. Modes:
Returns memories with confidence level and hallucination-prevention guidance. |
| forgetB | Delete a memory permanently. |
| list_memoriesC | List stored memories with pagination. |
| memory_statsC | Get memory statistics. |
| hot_cache_statusB | Show current hot cache contents, stats, and observability metrics. Returns items sorted by hot_score (highest first), along with:
|
| promoteB | Manually promote a memory to hot cache for instant recall. |
| demoteA | Remove a memory from hot cache (keeps in cold storage). |
| pinA | Pin a hot cache memory to prevent auto-eviction. Pinned memories stay in hot cache even when space is needed for new items. Only works on memories already in hot cache. |
| unpinA | Unpin a memory, making it eligible for auto-eviction from hot cache. |
| db_maintenanceB | Run database maintenance (vacuum, analyze, auto-demote stale). Compacts the database to reclaim unused space, updates query planner statistics, and demotes stale hot memories (if auto_demote is enabled). |
| link_memoriesA | Create a typed relationship between two memories. Use this to build a knowledge graph connecting related concepts. Relationships are directional: from_memory -[relation_type]-> to_memory. Examples:
|
| get_related_memoriesA | Get memories related to a given memory. Returns related memories along with their relationship information. Use this to explore the knowledge graph around a specific concept. |
| mark_memory_usedA | Mark a memory as actually used/helpful after recall. Call this when a recalled memory was useful in your response. Helps improve ranking by tracking which memories are valuable. |
| bootstrap_projectA | Bootstrap hot cache from project documentation files. Scans for common project documentation files (README.md, CLAUDE.md, etc.), parses them into memories, and optionally promotes to hot cache. This is ideal for quickly populating the hot cache when starting work on a new codebase. Edge cases handled gracefully:
|
| end_sessionA | End a session and consolidate episodic memories. Mirrors human memory consolidation: short-term (episodic) memories that prove valuable get promoted to long-term (semantic) storage. Top episodic memories are selected by salience score (combining importance, trust, access count, and recency). Only memories above the threshold are promoted. Use this at the end of a conversation to preserve valuable learnings. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| promoted_memories_resource | All promoted memories (~20 items) - the backing store for hot cache. Disabled by default. The hot-cache resource (session-aware ~10 items) is the recommended injection. Enable this with MEMORY_MCP_PROMOTED_RESOURCE_ENABLED=true. Contains all frequently-used memories that have been auto-promoted based on access patterns or manually promoted. The hot-cache resource draws from this. If empty and documentation files exist, auto-bootstraps from README.md, CLAUDE.md, etc. Project-aware: If project awareness is enabled, filters to current project plus global memories. |
| hot_cache_resource | Session-aware active memory context - instant recall (0ms). The primary context injection. Provides a compact set (~10 items) of contextually relevant memories: 1. Recently recalled memories (that were actually used) 2. Predicted next memories (from access pattern learning) 3. Top items from promoted memories (to fill remaining slots) This is what "hot cache" means - instantly available, no tool call needed. Semantic clustering groups related items together. Logs injections for feedback loop analysis (7-day retention). |
| project_context_resource | Project-specific memory context for the current git repository. Returns: - Current project ID (from git remote URL) - Project-specific hot cache memories - Recent project activity Use this to understand what memories are associated with the current project. |
TDQS
Scored across 16 tools
Most tools target distinct actions: remember/recall/forget cover core CRUD, while hot-cache operations (promote, demote, pin, unpin, hot_cache_status) form a coherent group. The subtle pairs (forget vs demote, promote vs pin) could be momentarily confused, but the descriptions clearly disambiguate permanent deletion, eviction eligibility, and eviction prevention.
The set mixes bare verbs (remember, recall, forget, pin, unpin, promote, demote) with verb_noun patterns (list_memories, link_memories, get_related_memories, mark_memory_used, bootstrap_project, end_session) and pure noun forms (memory_stats, hot_cache_status, db_maintenance). It's readable and predictable-ish within sub-groups, but not a single consistent convention.
16 tools is on the heavier side, but the surface is divided into legitimate subsystems (core memory, hot cache, knowledge graph, session consolidation, bootstrap, maintenance), each contributing distinct operations. Nothing feels obviously redundant, though trimming hot-cache bookkeeping could tighten it.
Coverage is broad: create/read/delete memories, semantic recall, graph linking and traversal, hot-cache lifecycle, statistics, maintenance, and session consolidation. The main gap is an explicit update/edit operation for memory content or importance, which agents must work around by forgetting and re-remembering.