# MCP in Claude Code SUMMARY: Use Synapse tools from the Claude Code terminal agent — persistent memory for coding sessions. KEY CONTEXT: Claude Code config: ~/.claude/config.json (or via `claude mcp add` command) Command: npx -y synapse-mcp-api@latest Env: SYNAPSE_MIND_KEY (required), SYNAPSE_URL (optional) Alternative: `claude mcp add synapse -- npx -y synapse-mcp-api@latest` Then: set SYNAPSE_MIND_KEY env var in your shell Test: in claude code, type "recall all my memories" MCP in Claude Code Claude Code is Anthropic's terminal-based coding agent. With Synapse MCP, Claude Code gains persistent memory across coding sessions — it remembers your project context, past decisions, and codebase patterns. Setup Method 1: CLI Command (recommended) [CODE BLOCK] Method 2: Edit Config File Edit : [CODE BLOCK] Verify It Works Start Claude Code: [CODE BLOCK] In the Claude Code prompt, type: [CODE BLOCK] Claude should call and respond with your stored memories. Common Patterns Project context persistence At the start of a coding session: [CODE BLOCK] Claude calls , sees your project list, and continues work where you left off. Codebase decisions When you make an architectural decision: [CODE BLOCK] Claude calls with category , priority . Avoiding past mistakes [CODE BLOCK] Claude searches memories with category and reminds you of past errors. Task tracking [CODE BLOCK] Claude calls , and the task persists across sessions. Tool Profiles For coding sessions where you don't need all 119 tools: [CODE BLOCK] Troubleshooting MCP server not starting [CODE BLOCK] Mind Key not recognized [CODE BLOCK] Claude Code doesn't see tools - Restart Claude Code after config changes - Check to verify Synapse is registered - See MCP Troubleshooting Next Steps - Claude Desktop Setup - Cursor Setup - Persistent LLM Agent Guide