{"title":"MCP-Troubleshooting","slug":"troubleshooting","category":"mcp","summary":"Häufige MCP-Integrations-Probleme lösen — Server startet nicht, Tools erscheinen nicht, Auth-Fehler.","audience":["human","llm"],"tags":["mcp","troubleshooting","errors","debugging"],"difficulty":"intermediate","updated":"2026-06-27","word_count":499,"read_minutes":2,"llm_context":"Common issues:\n1. Node.js < 18 → upgrade to 18+\n2. Mind Key invalid → check format (mk_...), get fresh via POST /minds\n3. npx not found → install Node.js\n4. Tools not appearing → restart client, check config JSON validity\n5. SYNAPSE_URL unreachable → curl /health to verify\n6. MCP server crashes → check logs, run npx manually to see error\nDebug steps: run `npx -y synapse-mcp-api@latest` manually, check stderr\nLogs: Claude Desktop ~/Library/Logs/Claude/mcp.log, Cursor ~/.cursor/logs/\n","lang":"de","translated":true,"requested_lang":"de","content_markdown":"\n# MCP-Troubleshooting\n\nHäufige Probleme und Lösungen bei der Integration von Synapse MCP mit deinem\nLLM-Client.\n\n## Schnelle Diagnose-Checkliste\n\n1. ✅ Node.js 18+ installiert? (`node --version`)\n2. ✅ Mind Key beginnt mit `mk_`? (nicht JWT `eyJ...`)\n3. ✅ Synapse-API erreichbar? (`curl https://synapse.schaefer.zone/health`)\n4. ✅ Mind Key funktioniert? (`curl -H \"Authorization: Bearer mk_...\" .../memory/recall`)\n5. ✅ Config-Datei ist valides JSON? (keine Trailing-Commas, keine Kommentare)\n6. ✅ Client nach Config-Änderung neu gestartet?\n7. ✅ MCP-Server startet manuell? (`npx -y synapse-mcp-api@latest`)\n\n## Problem: Keine Tools im Client sichtbar\n\n### Symptome\n\n- Claude Desktop / Cursor / Continue zeigt 0 Tools\n- Kein 🔌-Icon oder „synapse\"-Eintrag in MCP-Server-Liste\n\n### Lösungen\n\n1. **Client vollständig neu starten** — Cmd+Q auf macOS (nicht nur Fenster schließen)\n2. **Config-Datei-Ort prüfen**:\n   - Claude Desktop macOS: `~/Library/Application Support/Claude/claude_desktop_config.json`\n   - Claude Desktop Windows: `%APPDATA%\\Claude\\claude_desktop_config.json`\n   - Cursor: `~/.cursor/config.json`\n   - Continue: `~/.continue/config.json`\n3. **JSON validieren** — Config in <https://jsonlint.com> einfügen\n4. **Client-Logs auf MCP-Fehler prüfen**:\n   - Claude Desktop: `~/Library/Logs/Claude/mcp.log` (macOS)\n   - Cursor: View → Output → MCP\n5. **MCP-Server manuell ausführen**, um Startup-Fehler zu sehen:\n   ```bash\n   SYNAPSE_MIND_KEY=mk_... npx -y synapse-mcp-api@latest\n   ```\n\n## Problem: „Mind Key invalid\"-Fehler\n\n### Symptome\n\n- Tools erscheinen, aber Aufrufe schlagen mit „401 Unauthorized\" fehl\n- Fehler: „Mind Key fehlt oder ungültig\"\n\n### Lösungen\n\n1. **Mind-Key-Format verifizieren** — beginnt mit `mk_`, ~40 Zeichen\n2. **Direkt testen**:\n   ```bash\n   curl -H \"Authorization: Bearer mk_YOUR_KEY\" \\\n        https://synapse.schaefer.zone/memory/recall\n   ```\n3. **Env-Var gesetzt prüfen** — für stdio-Transport muss die Env-Var in der\n   MCP-Server-Config stehen, nicht in deiner Shell\n4. **Frischen Mind Key holen**:\n   ```bash\n   # Login to get JWT\n   curl -X POST .../login -d '{\"email\":\"...\",\"password\":\"...\"}'\n   # Create new mind\n   curl -X POST .../minds -H \"Authorization: Bearer YOUR_JWT\" -d '{\"name\":\"new mind\"}'\n   ```\n\n## Problem: npx nicht gefunden\n\n### Symptome\n\n- Fehler: „npx: command not found\"\n- MCP-Server startet nicht\n\n### Lösungen\n\n1. **Node.js 18+ installieren**:\n   - macOS: `brew install node` oder von <https://nodejs.org> herunterladen\n   - Linux: `curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash - && sudo apt install -y nodejs`\n   - Windows: von <https://nodejs.org> herunterladen\n2. **Nach Installation Terminal neu starten**\n3. **Verifizieren**: `node --version && npx --version`\n\n## Problem: SYNAPSE_URL nicht erreichbar\n\n### Symptome\n\n- MCP-Server startet, aber Tool-Aufrufe timen aus\n- Fehler: „fetch failed\" oder „ECONNREFUSED\"\n\n### Lösungen\n\n1. **Verbindbarkeit testen**:\n   ```bash\n   curl https://synapse.schaefer.zone/health\n   ```\n2. **Corporate-Firewall prüfen** — könnte ausgehendes HTTPS blockieren\n3. **Alternative URL versuchen**:\n   - Produktion: `https://synapse.schaefer.zone`\n   - MCP-Server: `https://synapse-mcp.schaefer.zone`\n4. **Für Self-Hosted**: sicherstellen, dass deine Synapse-Instanz läuft und erreichbar ist\n\n## Problem: MCP-Server crasht\n\n### Symptome\n\n- MCP-Server beendet sich sofort nach Start\n- Client-Logs zeigen „MCP server disconnected\"\n\n### Lösungen\n\n1. **Manuell ausführen, um Fehler zu sehen**:\n   ```bash\n   SYNAPSE_MIND_KEY=mk_... SYNAPSE_URL=https://synapse.schaefer.zone \\\n     npx -y synapse-mcp-api@latest\n   ```\n2. **Port-Konflikte prüfen** — MCP-Server nutzt standardmäßig Port 13100\n3. **npx-Cache leeren**:\n   ```bash\n   npx clear-npx-cache\n   # or\n   rm -rf ~/.npm/_npx\n   ```\n4. **Auf neueste Version updaten**:\n   ```bash\n   npx -y synapse-mcp-api@latest --version\n   ```\n\n## Problem: Tool-Aufrufe liefern 429\n\n### Symptome\n\n- Fehler: „Rate limit exceeded\"\n\n### Lösungen\n\nDas sollte mit MCP nicht passieren (verwendet Header-Auth, kein Rate Limit).\nFalls doch:\n\n1. **Prüfen, ob du irgendwo `?key=` verwendest** — auf Header-Auth wechseln\n2. **`SYNAPSE_URL` verifizieren** — sicherstellen, dass sie auf die richtige Instanz zeigt\n3. **Support kontaktieren**, falls das Problem besteht\n\n## Problem: Tools erscheinen, funktionieren aber nicht\n\n### Symptome\n\n- Tools im Client gelistet\n- Tool-Aufruf liefert Fehler oder kein Ergebnis\n\n### Lösungen\n\n1. **Tool-Name prüfen** — muss exakt sein (z. B. `memory_recall`, nicht `memory.recall`)\n2. **Argumente verifizieren** — Input-Schema des Tools prüfen\n3. **Via direkter API testen**:\n   ```bash\n   curl -X POST https://synapse.schaefer.zone/memory \\\n     -H \"Authorization: Bearer mk_...\" \\\n     -H \"Content-Type: application/json\" \\\n     -d '{\"category\":\"fact\",\"key\":\"test\",\"content\":\"hello\"}'\n   ```\n4. **Synapse-Health prüfen**:\n   ```bash\n   curl https://synapse.schaefer.zone/health\n   ```\n\n## Hilfe holen\n\nFalls nichts davon dein Problem löst:\n\n1. **Bestehende Issues prüfen**: <https://gitlab.com/schaefer-services/synapse-mcp/-/issues>\n2. **Neues Issue öffnen** mit:\n   - MCP-Server-Version (`npx -y synapse-mcp-api@latest --version`)\n   - Client-Name und -Version\n   - Betriebssystem\n   - Relevante Log-Auszüge\n   - Reproduktionsschritte\n\n## Nächste Schritte\n\n- [Claude-Desktop-Setup](/docs/mcp/claude-desktop)\n- [Claude-Code-Setup](/docs/mcp/claude-code)\n- [API-Errors](/docs/api/errors)\n","content_html":"<h1>MCP-Troubleshooting</h1>\n<p>Häufige Probleme und Lösungen bei der Integration von Synapse MCP mit deinem\nLLM-Client.</p>\n<h2>Schnelle Diagnose-Checkliste</h2>\n<ol>\n<li>✅ Node.js 18+ installiert? (<code>node --version</code>)</li>\n<li>✅ Mind Key beginnt mit <code>mk_</code>? (nicht JWT <code>eyJ...</code>)</li>\n<li>✅ Synapse-API erreichbar? (<code>curl https://synapse.schaefer.zone/health</code>)</li>\n<li>✅ Mind Key funktioniert? (<code>curl -H &quot;Authorization: Bearer mk_...&quot; .../memory/recall</code>)</li>\n<li>✅ Config-Datei ist valides JSON? (keine Trailing-Commas, keine Kommentare)</li>\n<li>✅ Client nach Config-Änderung neu gestartet?</li>\n<li>✅ MCP-Server startet manuell? (<code>npx -y synapse-mcp-api@latest</code>)</li>\n</ol>\n<h2>Problem: Keine Tools im Client sichtbar</h2>\n<h3>Symptome</h3>\n<ul>\n<li>Claude Desktop / Cursor / Continue zeigt 0 Tools</li>\n<li>Kein 🔌-Icon oder „synapse&quot;-Eintrag in MCP-Server-Liste</li>\n</ul>\n<h3>Lösungen</h3>\n<ol>\n<li><strong>Client vollständig neu starten</strong> — Cmd+Q auf macOS (nicht nur Fenster schließen)</li>\n<li><strong>Config-Datei-Ort prüfen</strong>:<ul>\n<li>Claude Desktop macOS: <code>~/Library/Application Support/Claude/claude_desktop_config.json</code></li>\n<li>Claude Desktop Windows: <code>%APPDATA%\\Claude\\claude_desktop_config.json</code></li>\n<li>Cursor: <code>~/.cursor/config.json</code></li>\n<li>Continue: <code>~/.continue/config.json</code></li>\n</ul>\n</li>\n<li><strong>JSON validieren</strong> — Config in <a href=\"https://jsonlint.com\">https://jsonlint.com</a> einfügen</li>\n<li><strong>Client-Logs auf MCP-Fehler prüfen</strong>:<ul>\n<li>Claude Desktop: <code>~/Library/Logs/Claude/mcp.log</code> (macOS)</li>\n<li>Cursor: View → Output → MCP</li>\n</ul>\n</li>\n<li><strong>MCP-Server manuell ausführen</strong>, um Startup-Fehler zu sehen:<pre><code class=\"hljs language-bash\">SYNAPSE_MIND_KEY=mk_... npx -y synapse-mcp-api@latest</code></pre></li>\n</ol>\n<h2>Problem: „Mind Key invalid&quot;-Fehler</h2>\n<h3>Symptome</h3>\n<ul>\n<li>Tools erscheinen, aber Aufrufe schlagen mit „401 Unauthorized&quot; fehl</li>\n<li>Fehler: „Mind Key fehlt oder ungültig&quot;</li>\n</ul>\n<h3>Lösungen</h3>\n<ol>\n<li><strong>Mind-Key-Format verifizieren</strong> — beginnt mit <code>mk_</code>, ~40 Zeichen</li>\n<li><strong>Direkt testen</strong>:<pre><code class=\"hljs language-bash\">curl -H <span class=\"hljs-string\">&quot;Authorization: Bearer mk_YOUR_KEY&quot;</span> \\\n     https://synapse.schaefer.zone/memory/recall</code></pre></li>\n<li><strong>Env-Var gesetzt prüfen</strong> — für stdio-Transport muss die Env-Var in der\nMCP-Server-Config stehen, nicht in deiner Shell</li>\n<li><strong>Frischen Mind Key holen</strong>:<pre><code class=\"hljs language-bash\"><span class=\"hljs-comment\"># Login to get JWT</span>\ncurl -X POST .../login -d <span class=\"hljs-string\">&#x27;{&quot;email&quot;:&quot;...&quot;,&quot;password&quot;:&quot;...&quot;}&#x27;</span>\n<span class=\"hljs-comment\"># Create new mind</span>\ncurl -X POST .../minds -H <span class=\"hljs-string\">&quot;Authorization: Bearer YOUR_JWT&quot;</span> -d <span class=\"hljs-string\">&#x27;{&quot;name&quot;:&quot;new mind&quot;}&#x27;</span></code></pre></li>\n</ol>\n<h2>Problem: npx nicht gefunden</h2>\n<h3>Symptome</h3>\n<ul>\n<li>Fehler: „npx: command not found&quot;</li>\n<li>MCP-Server startet nicht</li>\n</ul>\n<h3>Lösungen</h3>\n<ol>\n<li><strong>Node.js 18+ installieren</strong>:<ul>\n<li>macOS: <code>brew install node</code> oder von <a href=\"https://nodejs.org\">https://nodejs.org</a> herunterladen</li>\n<li>Linux: <code>curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash - &amp;&amp; sudo apt install -y nodejs</code></li>\n<li>Windows: von <a href=\"https://nodejs.org\">https://nodejs.org</a> herunterladen</li>\n</ul>\n</li>\n<li><strong>Nach Installation Terminal neu starten</strong></li>\n<li><strong>Verifizieren</strong>: <code>node --version &amp;&amp; npx --version</code></li>\n</ol>\n<h2>Problem: SYNAPSE_URL nicht erreichbar</h2>\n<h3>Symptome</h3>\n<ul>\n<li>MCP-Server startet, aber Tool-Aufrufe timen aus</li>\n<li>Fehler: „fetch failed&quot; oder „ECONNREFUSED&quot;</li>\n</ul>\n<h3>Lösungen</h3>\n<ol>\n<li><strong>Verbindbarkeit testen</strong>:<pre><code class=\"hljs language-bash\">curl https://synapse.schaefer.zone/health</code></pre></li>\n<li><strong>Corporate-Firewall prüfen</strong> — könnte ausgehendes HTTPS blockieren</li>\n<li><strong>Alternative URL versuchen</strong>:<ul>\n<li>Produktion: <code>https://synapse.schaefer.zone</code></li>\n<li>MCP-Server: <code>https://synapse-mcp.schaefer.zone</code></li>\n</ul>\n</li>\n<li><strong>Für Self-Hosted</strong>: sicherstellen, dass deine Synapse-Instanz läuft und erreichbar ist</li>\n</ol>\n<h2>Problem: MCP-Server crasht</h2>\n<h3>Symptome</h3>\n<ul>\n<li>MCP-Server beendet sich sofort nach Start</li>\n<li>Client-Logs zeigen „MCP server disconnected&quot;</li>\n</ul>\n<h3>Lösungen</h3>\n<ol>\n<li><strong>Manuell ausführen, um Fehler zu sehen</strong>:<pre><code class=\"hljs language-bash\">SYNAPSE_MIND_KEY=mk_... SYNAPSE_URL=https://synapse.schaefer.zone \\\n  npx -y synapse-mcp-api@latest</code></pre></li>\n<li><strong>Port-Konflikte prüfen</strong> — MCP-Server nutzt standardmäßig Port 13100</li>\n<li><strong>npx-Cache leeren</strong>:<pre><code class=\"hljs language-bash\">npx clear-npx-cache\n<span class=\"hljs-comment\"># or</span>\n<span class=\"hljs-built_in\">rm</span> -rf ~/.npm/_npx</code></pre></li>\n<li><strong>Auf neueste Version updaten</strong>:<pre><code class=\"hljs language-bash\">npx -y synapse-mcp-api@latest --version</code></pre></li>\n</ol>\n<h2>Problem: Tool-Aufrufe liefern 429</h2>\n<h3>Symptome</h3>\n<ul>\n<li>Fehler: „Rate limit exceeded&quot;</li>\n</ul>\n<h3>Lösungen</h3>\n<p>Das sollte mit MCP nicht passieren (verwendet Header-Auth, kein Rate Limit).\nFalls doch:</p>\n<ol>\n<li><strong>Prüfen, ob du irgendwo <code>?key=</code> verwendest</strong> — auf Header-Auth wechseln</li>\n<li><strong><code>SYNAPSE_URL</code> verifizieren</strong> — sicherstellen, dass sie auf die richtige Instanz zeigt</li>\n<li><strong>Support kontaktieren</strong>, falls das Problem besteht</li>\n</ol>\n<h2>Problem: Tools erscheinen, funktionieren aber nicht</h2>\n<h3>Symptome</h3>\n<ul>\n<li>Tools im Client gelistet</li>\n<li>Tool-Aufruf liefert Fehler oder kein Ergebnis</li>\n</ul>\n<h3>Lösungen</h3>\n<ol>\n<li><strong>Tool-Name prüfen</strong> — muss exakt sein (z. B. <code>memory_recall</code>, nicht <code>memory.recall</code>)</li>\n<li><strong>Argumente verifizieren</strong> — Input-Schema des Tools prüfen</li>\n<li><strong>Via direkter API testen</strong>:<pre><code class=\"hljs language-bash\">curl -X POST https://synapse.schaefer.zone/memory \\\n  -H <span class=\"hljs-string\">&quot;Authorization: Bearer mk_...&quot;</span> \\\n  -H <span class=\"hljs-string\">&quot;Content-Type: application/json&quot;</span> \\\n  -d <span class=\"hljs-string\">&#x27;{&quot;category&quot;:&quot;fact&quot;,&quot;key&quot;:&quot;test&quot;,&quot;content&quot;:&quot;hello&quot;}&#x27;</span></code></pre></li>\n<li><strong>Synapse-Health prüfen</strong>:<pre><code class=\"hljs language-bash\">curl https://synapse.schaefer.zone/health</code></pre></li>\n</ol>\n<h2>Hilfe holen</h2>\n<p>Falls nichts davon dein Problem löst:</p>\n<ol>\n<li><strong>Bestehende Issues prüfen</strong>: <a href=\"https://gitlab.com/schaefer-services/synapse-mcp/-/issues\">https://gitlab.com/schaefer-services/synapse-mcp/-/issues</a></li>\n<li><strong>Neues Issue öffnen</strong> mit:<ul>\n<li>MCP-Server-Version (<code>npx -y synapse-mcp-api@latest --version</code>)</li>\n<li>Client-Name und -Version</li>\n<li>Betriebssystem</li>\n<li>Relevante Log-Auszüge</li>\n<li>Reproduktionsschritte</li>\n</ul>\n</li>\n</ol>\n<h2>Nächste Schritte</h2>\n<ul>\n<li><a href=\"/docs/mcp/claude-desktop\">Claude-Desktop-Setup</a></li>\n<li><a href=\"/docs/mcp/claude-code\">Claude-Code-Setup</a></li>\n<li><a href=\"/docs/api/errors\">API-Errors</a></li>\n</ul>\n","urls":{"html":"/docs/mcp/troubleshooting","text":"/docs/mcp/troubleshooting?format=text","json":"/docs/mcp/troubleshooting?format=json","llm":"/docs/mcp/troubleshooting?format=llm"},"translations_available":["en","zh","hi","es","fr","ar","pt","ru","ja","de","it","ko","nl","pl","tr","sv","vi","th","id","uk"]}