Claude Desktop
Claude Desktop uses the Standard MCP integration approach, connecting to AutoMem via a spawned stdio process. This exposes six memory tools (store_memory, recall_memory, associate_memories, update_memory, delete_memory, check_database_health) directly inside Claude Desktop conversations.
System Architecture
Section titled “System Architecture”Claude Desktop spawns the AutoMem MCP server as a child process and communicates over stdin/stdout using JSON-RPC.
graph TB
subgraph "Claude Desktop Application"
UI["Claude Desktop UI"]
MCP_CLIENT["MCP Client (built-in)"]
end
subgraph "MCP Server Process"
STDIO["StdioServerTransport"]
TOOLS["Tool Registry — 6 MCP Tools"]
CLIENT["AutoMemClient"]
end
subgraph "AutoMem Service"
API["HTTP API :8001"]
FALKOR[("FalkorDB Graph")]
QDRANT[("Qdrant Vectors")]
end
UI --> MCP_CLIENT
MCP_CLIENT -->|"JSON-RPC via stdio"| STDIO
STDIO --> TOOLS
TOOLS --> CLIENT
CLIENT -->|"HTTP — AUTOMEM_ENDPOINT"| API
API --> FALKOR
API --> QDRANT
Tool naming: When the MCP server is registered as "memory", Claude Desktop prefixes tools with mcp__memory__:
mcp__memory__store_memorymcp__memory__recall_memorymcp__memory__associate_memoriesmcp__memory__update_memorymcp__memory__delete_memorymcp__memory__check_database_health
Installation
Section titled “Installation”Method 1: One-Click .mcpb Install (Recommended)
Section titled “Method 1: One-Click .mcpb Install (Recommended)”The .mcpb (MCP Bundle) format provides a streamlined one-click installation experience.
- Download the
.mcpbfile from GitHub Releases - Double-click the file
- Claude Desktop prompts for:
automem_endpoint: Your AutoMem service URL (required)automem_api_key: API token (required for cloud deployments, optional for local)
- Click Enable
Method 2: Manual JSON Configuration
Section titled “Method 2: Manual JSON Configuration”Edit (or create) the Claude Desktop config file for your platform:
| Platform | Path |
|---|---|
| macOS | ~/Library/Application Support/Claude/claude_desktop_config.json |
| Windows | %APPDATA%\Claude\claude_desktop_config.json |
| Linux | ~/.config/Claude/claude_desktop_config.json |
Cloud deployment (Railway or other hosted AutoMem):
{ "mcpServers": { "memory": { "command": "npx", "args": ["-y", "@verygoodplugins/mcp-automem"], "env": { "AUTOMEM_ENDPOINT": "https://your-automem-service.up.railway.app", "AUTOMEM_API_KEY": "your-api-token-here" } } }}Local development (AutoMem running on localhost):
{ "mcpServers": { "memory": { "command": "npx", "args": ["-y", "@verygoodplugins/mcp-automem"], "env": { "AUTOMEM_ENDPOINT": "http://127.0.0.1:8001" } } }}Using a local build instead of the npm package:
{ "mcpServers": { "memory": { "command": "node", "args": ["/path/to/mcp-automem/dist/index.js"], "env": { "AUTOMEM_ENDPOINT": "http://127.0.0.1:8001" } } }}After editing the config, restart Claude Desktop for changes to take effect.
Multiple Server Instances
Section titled “Multiple Server Instances”You can run multiple AutoMem servers with different endpoints — for example, to separate personal and work memory:
{ "mcpServers": { "memory-personal": { "command": "npx", "args": ["-y", "@verygoodplugins/mcp-automem"], "env": { "AUTOMEM_ENDPOINT": "http://127.0.0.1:8001" } }, "memory-work": { "command": "npx", "args": ["-y", "@verygoodplugins/mcp-automem"], "env": { "AUTOMEM_ENDPOINT": "https://work-automem.example.com", "AUTOMEM_API_KEY": "work-token" } } }}Tools from each server are prefixed with their server name:
mcp__memory-personal__recall_memorymcp__memory-work__recall_memory
Custom Instructions for Automatic Memory Usage
Section titled “Custom Instructions for Automatic Memory Usage”Claude Desktop’s Custom Instructions feature enables automatic, context-aware memory usage without manual prompting on every conversation.
Adding Custom Instructions
Section titled “Adding Custom Instructions”graph LR
subgraph "Claude Desktop UI"
SETTINGS["Settings Icon (bottom-left)"]
MENU["Custom Instructions Menu Option"]
EDITOR["Instructions Editor"]
SAVE["Save Button"]
end
subgraph "Instruction Triggers"
START["Conversation Start"]
CONTENT["Before Creating Content"]
DECISION["During Decisions"]
end
SETTINGS --> MENU
MENU --> EDITOR
EDITOR --> SAVE
SAVE -.->|"Applied to all chats"| START
SAVE -.->|"Applied to all chats"| CONTENT
SAVE -.->|"Applied to all chats"| DECISION
Navigate to: Settings (bottom-left) → Custom Instructions.
Paste in memory rules that define three phases:
- AT CONVERSATION START — Recall recent work, decisions, and patterns
- BEFORE CREATING CONTENT — Check style preferences and past corrections
- CREATE/UPDATE MEMORIES FOR — Important decisions, insights, corrections
The full template is available in the repo at templates/CLAUDE_DESKTOP_INSTRUCTIONS.md. Key sections:
| Section | Purpose |
|---|---|
| CONVERSATION START PROTOCOL | Initial recall strategy (two-phase: tag-based preferences + semantic recent work) |
| ADVANCED RECALL TECHNIQUES | Multi-hop, context-aware queries |
| WHEN TO STORE MEMORIES | Importance thresholds by type |
| CONTENT SIZE GUIDELINES | 150–300 char target, 500 soft limit, 2000 hard limit |
| STORAGE FORMAT | JSON structure for store_memory calls |
| CORRECTIONS ARE GOLD | Capture style signal when you correct Claude |
| RELATIONSHIP TYPES | 11 association types for associate_memories |
Memory Storage Patterns
Section titled “Memory Storage Patterns”Recommended importance thresholds:
| Type | Importance | Example |
|---|---|---|
| Preference / Decision | 0.9 | ”Prefer early returns over nested conditionals” |
| Insight / Bug fix | 0.8 | ”Auth failing on null input. Root: missing validation” |
| Pattern | 0.7 | ”Using early returns for validation in all API routes” |
| Context | 0.5–0.7 | ”Added JWT auth with refresh token rotation” |
Correction storage (critical pattern): When you correct Claude’s output, the custom instructions should store the correction as a high-importance style signal so the same mistake is not repeated.
Environment Variables
Section titled “Environment Variables”| Variable | Required | Purpose | Example |
|---|---|---|---|
AUTOMEM_ENDPOINT | Yes | AutoMem service URL | http://127.0.0.1:8001 |
AUTOMEM_API_KEY | No* | API authentication token | your-token-here |
*Required for Railway/cloud deployments. Optional for local development.
Configuration resolution order:
envblock inclaude_desktop_config.json(highest priority).envfile in current working directory- Default values
Verification
Section titled “Verification”After installation, open Claude Desktop and verify the connection:
User: Check the health of the AutoMem serviceExpected response includes:
- FalkorDB connection status
- Qdrant connection status
- Service version
Troubleshooting
Section titled “Troubleshooting”Tools not appearing in Claude Desktop
Section titled “Tools not appearing in Claude Desktop”- Verify
claude_desktop_config.jsonis valid JSON (no trailing commas) - Check that
AUTOMEM_ENDPOINTis reachable from your machine - Restart Claude Desktop completely (quit from menu, not just close window)
- Check Claude Desktop logs for MCP server startup errors
Service unreachable
Section titled “Service unreachable”# Test your endpoint directlycurl http://127.0.0.1:8001/health
# For cloud deploymentscurl -H "Authorization: Bearer $YOUR_KEY" https://your-automem.up.railway.app/healthAuthentication failures (401/403)
Section titled “Authentication failures (401/403)”- Verify
AUTOMEM_API_KEYmatches the token set in your AutoMem service - Test authentication:
curl -H "Authorization: Bearer $KEY" $ENDPOINT/health - Regenerate API key if expired
Memory not persisting between sessions
Section titled “Memory not persisting between sessions”- Ensure you have Custom Instructions set that tell Claude to recall at conversation start
- Check that
store_memorycalls are completing successfully (no error messages) - Verify the AutoMem service has write access to its database directories
Related Platforms
Section titled “Related Platforms”Claude Desktop’s configuration is similar to other MCP-enabled platforms but uses a different config file location:
- Cursor IDE — uses
~/.cursor/mcp.json+.cursor/rules/automem.mdc - Claude Code — uses
~/.claude.json+~/.claude/settings.json - OpenAI Codex — uses
~/.codex/config.toml(TOML format)
All platforms share the same AutoMem MCP server package but with platform-specific configuration and optional rule files.