mcp-memory
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| MCP_MEMORY_DIR | No | Directory for Open Knowledge Format (OKF) .md files. Defaults to 'memory' relative to project root. | memory |
| MCP_MEMORY_DB_PATH | No | SQLite database file path. Defaults to .mcp_memory/memories.db relative to project root. | .mcp_memory/memories.db |
| MCP_MEMORY_PROJECT_ROOT | No | Project root directory. Defaults to process current working directory (cwd). | cwd |
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 | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| memory_get_lastA | AGENT DIRECTIVE - SESSION INITIALIZATION: Call this tool FIRST when starting work or opening a project session to retrieve the last recorded session checkpoint ('system/last_memory') and understand where work was left off. Parameters: project_root: REQUIRED. Absolute path to active project root directory. namespace: Logical namespace (default: 'default'). |
| memory_update_lastA | AGENT DIRECTIVE - MILESTONE & SESSION CHECKPOINTING: Call this tool whenever completing a milestone, making key project changes, or pausing work to update the canonical project checkpoint ('system/last_memory') so future sessions know where work was left off. Parameters: content: Brief note or structured dictionary summarizing progress and referencing key memory files (e.g. 'Goal Progress'). project_root: REQUIRED. Absolute path to active project root directory. namespace: Logical namespace (default: 'default'). summary: Optional one-sentence description of the milestone achieved. |
| memory_storeA | Stores or updates a persistent memory record in Open Knowledge Format (OKF v0.2). Parameters: key: Unique identifier or path for the memory (e.g. 'user/preferences/coding_style' or 'system/last_memory'). content: The core information to store (string text or structured dictionary). project_root: REQUIRED. Absolute path to active project root directory. tags: Optional classification tags for filtering (e.g. ['preferences', 'user']). namespace: Logical separation for contexts or users (default: 'default'). concept_type: OKF concept type (default: 'Agent Memory'). Options: 'Agent Memory', 'Checkpoint', 'Metric', 'Playbook', etc. title: Human-readable display name. description: Single-sentence summary of the concept. resource: Canonical URI for the underlying asset. status: Lifecycle status ('draft' | 'stable' | 'deprecated'). Default: 'stable'. stale_after: ISO date ('YYYY-MM-DD') when memory becomes stale. sources: Provenance sources list [{resource, id, title, author, usage_count, last_modified}]. usage_window: Sources usage window framing {from, to}. verified: Verification events list or mapping [{by, at}]. generated_by: Actor identifier string following actor convention ('/', 'human:', 'process:'). runtime: For Attested Computation concepts ('bigquery', 'postgres', 'dbt', 'python'). parameters: For Attested Computation concepts [{name, type, required}]. executor: For Attested Computation concepts {resource, receipt}. attester: For Attested Computation concepts {resource}. computation: Path to external computation file. |
| memory_retrieveA | Retrieves a specific memory record by key. Parameters: key: The exact memory key to look up (e.g. 'system/last_memory' for session checkpoint). project_root: REQUIRED. Absolute path to active project root directory. namespace: Logical namespace (default: 'default'). |
| memory_searchA | Searches persistent memories matching keywords, tags, or namespace patterns. Parameters: project_root: REQUIRED. Absolute path to active project root directory. query: Search string for full-text search across keys, frontmatter, and content. tags: Optional list of tags to filter by. namespace: Optional namespace filter. limit: Maximum number of results to return (default: 10). |
| memory_deleteB | Removes a specific memory entry. Parameters: key: The key of the memory to remove. project_root: REQUIRED. Absolute path to active project root directory. namespace: Logical namespace (default: 'default'). |
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 6 tools
memory_get_last and memory_retrieve overlap because both can retrieve the same system/last_memory record, and memory_update_last similarly overlaps with memory_store for that key. The AGENT DIRECTIVE text helps clarify intended usage, but the boundaries between generic and session-specific operations are not fully crisp.
All tools share a consistent memory_ prefix and snake_case formatting, following a readable memory_<verb> pattern. Minor synonym inconsistency between retrieve/get and store/update keeps it from being perfectly uniform.
Six tools is well-scoped for a memory server: generic CRUD plus session checkpointing. Each tool has a distinct role, and the specialized checkpoint pair adds clear value without bloating the surface.
The set covers the full memory lifecycle: store, retrieve, search, delete, and session checkpoint read/write. There are no obvious dead ends for the stated domain of persistent project memory.