Personal Memory MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PME_DATA_DIR | No | Directory for runtime data such as SQLite storage, Markdown projection, logs, and backups. The default data directory is outside the repository. | |
| PME_LLM_MODEL | No | Model name for the OpenAI-compatible chat adapter, for example deepseek-flash. | |
| DEEPSEEK_API_KEY | No | API key for DeepSeek used through the OpenAI-compatible chat adapter. | |
| PME_LLM_BASE_URL | No | Base URL for the OpenAI-compatible chat completions endpoint, for example https://api.deepseek.com. | |
| PME_LLM_JSON_MODE | No | Whether to request JSON mode from the OpenAI-compatible chat provider, for example true. | |
| PME_EMBEDDING_MODEL | No | Embedding model name for the OpenAI-compatible embedding service. | |
| PME_EMBEDDING_API_KEY | No | API key for the OpenAI-compatible embedding service. | |
| PME_EMBEDDING_ENABLED | No | Enable optional semantic embeddings for hybrid retrieval. Embedding retrieval is disabled by default; without an embedding provider, local keyword retrieval is used. | false |
| PME_EMBEDDING_BASE_URL | No | Base URL for an OpenAI-compatible embedding service. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
Personal Memory Engine is the user's local, persistent long-term memory.
Use it proactively but conservatively:
At the start of a task that depends on user background, preferences, goals, projects, or prior decisions, call search_memories or build_memory_context with a focused query. Do not dump all memories.
Use get_user_profile for stable background, get_project_context for project continuity, and get_learning_progress for learning state.
Use save_memory only for information the user explicitly stated and that has durable value.
Use extract_memories for conversation candidates. Extracted candidates stay pending and must not be treated as confirmed facts until the user confirms and accept_candidate is called with user_confirmed=true.
Never save passwords, API keys, tokens, private keys, or transient calculations.
Deletion is soft by default. Hard deletion requires the exact memory_id as confirmation.
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 |
|---|---|
| search_memoriesC | Search relevant active memories using hybrid retrieval (keyword fallback when embeddings are absent). |
| get_user_profileA | Return active profile memories such as background, capabilities, and stable preferences. |
| get_project_contextC | Return relevant state, goals, decisions, and episodes for a named project. |
| save_memoryC | Explicitly save durable information stated by the user. Duplicate/conflict rules run locally. |
| update_memoryA | Update content of an existing memory. Pass expected_version to protect against stale overwrites. |
| delete_memoryB | Soft-delete by default. Hard deletion requires confirmation equal to the exact memory_id. |
| get_learning_progressC | Find current and historical learning progress for a subject. |
| extract_memoriesB | Extract quality-gated pending candidates; never writes directly into confirmed memory. |
| review_pending_memoriesB | List extracted candidates awaiting user confirmation. |
| accept_candidateA | Accept a pending candidate only after explicit user confirmation. |
| reject_candidateB | Reject a pending extraction candidate while retaining an audit trail. |
| get_memory_historyC | Show immutable history snapshots for a memory. |
| get_memory_statsA | Return local storage, category, candidate, history, and integrity statistics. |
| build_memory_contextB | Return a bounded, ready-to-inject memory context block rather than the entire store. |
| list_memoriesC | List memories with optional category, status, and tag filters. |
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 15 tools
Most tools have clearly distinct purposes: CRUD on memories, a pending-candidate workflow, and read-only retrieval helpers. A few boundaries blur — search_memories vs list_memories vs build_memory_context all retrieve memories, and extract_memories vs review_pending_memories require reading descriptions to tell apart. Descriptions do resolve the ambiguity, so misselection is unlikely but possible.
Every tool follows a strict verb_noun snake_case pattern (search_memories, get_user_profile, save_memory, accept_candidate, list_memories). Verbs are used meaningfully and consistently across the whole surface.
15 tools sits at the top of the well-scoped range but each maps to a real operation: memory CRUD, candidate lifecycle, history/stats, and scoped context retrieval. Nothing appears redundant or speculative for a personal memory server.
Strong lifecycle coverage: create/read/update/soft-delete, versioning, history, candidate extraction-review-accept-reject, plus stats and bounded context assembly. Gaps exist — there is no direct get_memory_by_id (only search/list), and soft-deleted memories have no restore/undelete operation.