{"title":"MCP in Cursor","slug":"cursor","category":"mcp","summary":"Connect Synapse to Cursor IDE for persistent project memory across coding sessions.","audience":["human"],"tags":["mcp","cursor","ide","coding"],"difficulty":"intermediate","updated":"2026-06-27","word_count":283,"read_minutes":1,"lang":"en","translated":true,"requested_lang":"en","content_markdown":"\n# MCP in Cursor\n\nCursor is an AI-powered IDE based on VS Code. With Synapse MCP, Cursor gains\npersistent memory across sessions — it remembers your project decisions,\ncodebase patterns, and past debugging sessions.\n\n## Prerequisites\n\n- Cursor IDE installed (<https://cursor.com>)\n- Node.js 18+\n- Your Synapse Mind Key\n\n## Setup\n\n### Step 1: Open Cursor Settings\n\nIn Cursor:\n\n1. Open Settings (Cmd+, on macOS, Ctrl+, on Windows/Linux)\n2. Search for \"MCP\" or navigate to `Cursor Settings → MCP Servers`\n\n### Step 2: Add Synapse MCP Server\n\nClick \"Add MCP Server\" and configure:\n\n| Field | Value |\n|-------|-------|\n| Name | `synapse` |\n| Type | `stdio` |\n| Command | `npx -y synapse-mcp-api@latest` |\n| Env | `SYNAPSE_MIND_KEY=mk_YOUR_KEY, SYNAPSE_URL=https://synapse.schaefer.zone` |\n\n### Step 3: Edit config.json directly (alternative)\n\nCursor stores MCP config in `~/.cursor/config.json`:\n\n```json\n{\n  \"mcpServers\": {\n    \"synapse\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"synapse-mcp-api@latest\"],\n      \"env\": {\n        \"SYNAPSE_MIND_KEY\": \"mk_YOUR_MIND_KEY_HERE\",\n        \"SYNAPSE_URL\": \"https://synapse.schaefer.zone\"\n      }\n    }\n  }\n}\n```\n\n### Step 4: Restart Cursor\n\nFully restart Cursor (Cmd+Q and reopen on macOS).\n\n## Verify It Works\n\nIn Cursor's chat panel (Cmd+L):\n\n```\nrecall all my memories\n```\n\nCursor should call `memory_recall` and respond with your stored memories.\n\n## Common Patterns\n\n### Project onboarding\n\nWhen opening a new project:\n\n```\nrecalling project context — what do I know about this codebase?\n```\n\nCursor calls `memory_recall` and continues work where you left off.\n\n### Architecture decisions\n\n```\nstore this decision: \"Using Fastify instead of Express for this project\nbecause of schema validation. Date: 2026-06-27.\"\n```\n\nCursor stores it as a `project` memory with `high` priority.\n\n### Debugging history\n\n```\nwhat bugs have I hit in this codebase?\n```\n\nCursor searches for `mistake` memories and reminds you of past fixes.\n\n### Cross-session code patterns\n\n```\nsearch memories: \"authentication pattern\"\n```\n\nCursor finds memories about auth implementations you've done before.\n\n## Troubleshooting\n\n### MCP server not connecting\n\n1. Verify Node.js: `node --version` (≥ 18)\n2. Test MCP server: `npx -y synapse-mcp-api@latest` (should start without errors)\n3. Check Cursor's MCP logs (View → Output → MCP)\n4. Restart Cursor fully\n\n### Tools not appearing\n\n- Check `~/.cursor/config.json` is valid JSON\n- Verify `SYNAPSE_MIND_KEY` env var is set\n- Check Cursor version supports MCP (≥ 0.42)\n\n### Mind Key invalid\n\n```bash\n# Test your Mind Key directly\ncurl -H \"Authorization: Bearer mk_YOUR_KEY\" \\\n     https://synapse.schaefer.zone/memory/recall\n```\n\n## Next Steps\n\n- [Claude Desktop Setup](/docs/mcp/claude-desktop)\n- [Continue.dev Setup](/docs/mcp/continue)\n- [Persistent LLM Agent Guide](/docs/guides/persistent-llm-agent)\n","content_html":"<h1>MCP in Cursor</h1>\n<p>Cursor is an AI-powered IDE based on VS Code. With Synapse MCP, Cursor gains\npersistent memory across sessions — it remembers your project decisions,\ncodebase patterns, and past debugging sessions.</p>\n<h2>Prerequisites</h2>\n<ul>\n<li>Cursor IDE installed (<a href=\"https://cursor.com\">https://cursor.com</a>)</li>\n<li>Node.js 18+</li>\n<li>Your Synapse Mind Key</li>\n</ul>\n<h2>Setup</h2>\n<h3>Step 1: Open Cursor Settings</h3>\n<p>In Cursor:</p>\n<ol>\n<li>Open Settings (Cmd+, on macOS, Ctrl+, on Windows/Linux)</li>\n<li>Search for &quot;MCP&quot; or navigate to <code>Cursor Settings → MCP Servers</code></li>\n</ol>\n<h3>Step 2: Add Synapse MCP Server</h3>\n<p>Click &quot;Add MCP Server&quot; and configure:</p>\n<table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Value</th>\n</tr>\n</thead>\n<tbody><tr>\n<td>Name</td>\n<td><code>synapse</code></td>\n</tr>\n<tr>\n<td>Type</td>\n<td><code>stdio</code></td>\n</tr>\n<tr>\n<td>Command</td>\n<td><code>npx -y synapse-mcp-api@latest</code></td>\n</tr>\n<tr>\n<td>Env</td>\n<td><code>SYNAPSE_MIND_KEY=mk_YOUR_KEY, SYNAPSE_URL=https://synapse.schaefer.zone</code></td>\n</tr>\n</tbody></table>\n<h3>Step 3: Edit config.json directly (alternative)</h3>\n<p>Cursor stores MCP config in <code>~/.cursor/config.json</code>:</p>\n<pre><code class=\"hljs language-json\"><span class=\"hljs-punctuation\">{</span>\n  <span class=\"hljs-attr\">&quot;mcpServers&quot;</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-punctuation\">{</span>\n    <span class=\"hljs-attr\">&quot;synapse&quot;</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-punctuation\">{</span>\n      <span class=\"hljs-attr\">&quot;command&quot;</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-string\">&quot;npx&quot;</span><span class=\"hljs-punctuation\">,</span>\n      <span class=\"hljs-attr\">&quot;args&quot;</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-punctuation\">[</span><span class=\"hljs-string\">&quot;-y&quot;</span><span class=\"hljs-punctuation\">,</span> <span class=\"hljs-string\">&quot;synapse-mcp-api@latest&quot;</span><span class=\"hljs-punctuation\">]</span><span class=\"hljs-punctuation\">,</span>\n      <span class=\"hljs-attr\">&quot;env&quot;</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-punctuation\">{</span>\n        <span class=\"hljs-attr\">&quot;SYNAPSE_MIND_KEY&quot;</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-string\">&quot;mk_YOUR_MIND_KEY_HERE&quot;</span><span class=\"hljs-punctuation\">,</span>\n        <span class=\"hljs-attr\">&quot;SYNAPSE_URL&quot;</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-string\">&quot;https://synapse.schaefer.zone&quot;</span>\n      <span class=\"hljs-punctuation\">}</span>\n    <span class=\"hljs-punctuation\">}</span>\n  <span class=\"hljs-punctuation\">}</span>\n<span class=\"hljs-punctuation\">}</span></code></pre><h3>Step 4: Restart Cursor</h3>\n<p>Fully restart Cursor (Cmd+Q and reopen on macOS).</p>\n<h2>Verify It Works</h2>\n<p>In Cursor&#39;s chat panel (Cmd+L):</p>\n<pre><code class=\"hljs language-plaintext\">recall all my memories</code></pre><p>Cursor should call <code>memory_recall</code> and respond with your stored memories.</p>\n<h2>Common Patterns</h2>\n<h3>Project onboarding</h3>\n<p>When opening a new project:</p>\n<pre><code class=\"hljs language-plaintext\">recalling project context — what do I know about this codebase?</code></pre><p>Cursor calls <code>memory_recall</code> and continues work where you left off.</p>\n<h3>Architecture decisions</h3>\n<pre><code class=\"hljs language-plaintext\">store this decision: &quot;Using Fastify instead of Express for this project\nbecause of schema validation. Date: 2026-06-27.&quot;</code></pre><p>Cursor stores it as a <code>project</code> memory with <code>high</code> priority.</p>\n<h3>Debugging history</h3>\n<pre><code class=\"hljs language-plaintext\">what bugs have I hit in this codebase?</code></pre><p>Cursor searches for <code>mistake</code> memories and reminds you of past fixes.</p>\n<h3>Cross-session code patterns</h3>\n<pre><code class=\"hljs language-plaintext\">search memories: &quot;authentication pattern&quot;</code></pre><p>Cursor finds memories about auth implementations you&#39;ve done before.</p>\n<h2>Troubleshooting</h2>\n<h3>MCP server not connecting</h3>\n<ol>\n<li>Verify Node.js: <code>node --version</code> (≥ 18)</li>\n<li>Test MCP server: <code>npx -y synapse-mcp-api@latest</code> (should start without errors)</li>\n<li>Check Cursor&#39;s MCP logs (View → Output → MCP)</li>\n<li>Restart Cursor fully</li>\n</ol>\n<h3>Tools not appearing</h3>\n<ul>\n<li>Check <code>~/.cursor/config.json</code> is valid JSON</li>\n<li>Verify <code>SYNAPSE_MIND_KEY</code> env var is set</li>\n<li>Check Cursor version supports MCP (≥ 0.42)</li>\n</ul>\n<h3>Mind Key invalid</h3>\n<pre><code class=\"hljs language-bash\"><span class=\"hljs-comment\"># Test your Mind Key directly</span>\ncurl -H <span class=\"hljs-string\">&quot;Authorization: Bearer mk_YOUR_KEY&quot;</span> \\\n     https://synapse.schaefer.zone/memory/recall</code></pre><h2>Next Steps</h2>\n<ul>\n<li><a href=\"/docs/mcp/claude-desktop\">Claude Desktop Setup</a></li>\n<li><a href=\"/docs/mcp/continue\">Continue.dev Setup</a></li>\n<li><a href=\"/docs/guides/persistent-llm-agent\">Persistent LLM Agent Guide</a></li>\n</ul>\n","urls":{"html":"/docs/mcp/cursor","text":"/docs/mcp/cursor?format=text","json":"/docs/mcp/cursor?format=json","llm":"/docs/mcp/cursor?format=llm"},"translations_available":["en","zh","hi","es","fr","ar","pt","ru","ja","de","it","ko","nl","pl","tr","sv","vi","th","id","uk"]}