{"title":"MCP ใน Claude Desktop","slug":"claude-desktop","category":"mcp","summary":"เชื่อมต่อ Synapse กับ Claude Desktop ใน 2 นาที Claude ได้ Synapse tool 79 ตัวแบบ native","audience":["human","llm"],"tags":["mcp","claude","desktop","integration"],"difficulty":"beginner","updated":"2026-06-27","word_count":312,"read_minutes":2,"llm_context":"Config file: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS)\n             %APPDATA%\\Claude\\claude_desktop_config.json (Windows)\nMCP server command: npx -y synapse-mcp-api@latest\nEnv vars: SYNAPSE_MIND_KEY (required), SYNAPSE_URL (optional, default https://synapse.schaefer.zone)\nAfter config: restart Claude Desktop, check for 🔌 icon with \"79 tools\"\nTest: type \"memory_recall aufrufen\" in a new chat\nTroubleshooting: Node.js ≥ 18, check Mind Key, see /docs/mcp/troubleshooting\n","lang":"th","translated":true,"requested_lang":"th","content_markdown":"\n# MCP ใน Claude Desktop\n\nClaude Desktop เป็น desktop app ของ Anthropic สำหรับ macOS และ Windows ด้วย Synapse MCP server ที่กำหนดค่า Claude ได้สิทธิ์ native เข้าถึง Synapse tool ทั้ง 79 ตัว — สามารถเก็บ memory, recall, จัดการ task, แช็ตกับคุณ และอื่น ๆ\n\n## ข้อกำหนดเบื้องต้น\n\n- Claude Desktop app (macOS หรือ Windows)\n- Node.js 18+ ติดตั้ง (`node --version`)\n- Synapse Mind Key ของคุณ\n\n## ขั้นตอนที่ 1: เปิด Config File\n\n- **macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`\n- **Windows:** `%APPDATA%\\Claude\\claude_desktop_config.json`\n\nหากไฟล์ไม่มี ให้สร้างขึ้นมา\n\n## ขั้นตอนที่ 2: เพิ่ม Synapse MCP Server\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> [!TIP]\n> หากคุณมี MCP server อื่นที่กำหนดค่าแล้ว เพียงเพิ่ม block `\"synapse\"` ใน object `\"mcpServers\"` ที่มีอยู่\n\n## ขั้นตอนที่ 3: รีสตาร์ท Claude Desktop\n\n1. ออกจาก Claude Desktop ให้เต็มรูปแบบ (Cmd+Q บน macOS, ไม่ใช่แค่ปิดหน้าต่าง)\n2. เปิด Claude Desktop อีกครั้ง\n3. เริ่มแช็ตใหม่\n4. มองหาไอคอน 🔌 plug ที่มุมล่างซ้าย — ควรบอกว่า \"79 tools\"\n\n## ขั้นตอนที่ 4: ทดสอบ\n\nในแช็ตใหม่ พิมพ์:\n\n```\nmemory_recall aufrufen\n```\n\nClaude ควรเรียก tool `memory_recall` และตอบกลับด้วยสรุปของ memory ที่เก็บไว้ของคุณ (หรือ \"No memories yet\" หาก mind ของคุณว่าง)\n\n## Tool ที่ใช้ได้ (ส่วนหนึ่ง)\n\n| Tool | คำอธิบาย |\n|------|-------------|\n| `memory_recall` | Recall memory ทั้งหมด |\n| `memory_store` | เก็บ memory ใหม่ |\n| `memory_search` | ค้นหา memory |\n| `task_list` | รายการ task |\n| `task_create` | สร้าง task |\n| `chat_poll` | ตรวจข้อความใหม่ |\n| `chat_reply` | ตอบกลับข้อความ |\n| `browser_new` | เปิด browser tab |\n| `computer_list` | รายการ computer ที่ลงทะเบียน |\n\nรายการเต็ม: [MCP คืออะไร?](/docs/mcp/what-is-mcp)\n\n## การแก้ปัญหา\n\n### ไม่มี tool ปรากฏใน Claude Desktop\n\n1. ตรวจสอบเวอร์ชัน Node.js: `node --version` (ต้อง ≥ 18)\n2. ตรวจสอบ config file เป็น JSON ที่ถูกต้อง (ไม่มี trailing comma)\n3. รีสตาร์ท Claude Desktop ให้เต็มรูปแบบ (Cmd+Q, ไม่ใช่แค่ปิด)\n4. ตรวจ log Claude Desktop: `~/Library/Logs/Claude/mcp.log` (macOS)\n\n### Error \"Mind Key invalid\"\n\n- ตรวจ `SYNAPSE_MIND_KEY` ขึ้นต้นด้วย `mk_`\n- รับ key ใหม่ผ่าน `POST /minds` (ต้องใช้ JWT จาก `/login`)\n- ไม่มีเครื่องหมายคำพูดรอบ key ใน JSON\n\n### ไม่พบ npx\n\n- ติดตั้ง Node.js 18+: <https://nodejs.org/>\n- รีสตาร์ท terminal หลังติดตั้ง\n- บน macOS ด้วย Homebrew: `brew install node`\n\n### tool แสดงแต่การเรียกล้มเหลว\n\n- ตรวจ `SYNAPSE_URL` เข้าถึงได้: `curl https://synapse.schaefer.zone/health`\n- ตรวจ Mind Key ทำงาน: `curl -H \"Authorization: Bearer mk_...\" https://synapse.schaefer.zone/memory/recall`\n- ดู [MCP Troubleshooting](/docs/mcp/troubleshooting)\n\n## Tool Profile (ประหยัด Token)\n\nหากคุณใช้ LLM ที่เล็กกว่าหรือต้องการประหยัด context token ตั้ง tool profile:\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_...\",\n        \"SYNAPSE_URL\": \"https://synapse.schaefer.zone\",\n        \"MCP_PROFILE\": \"standard\"\n      }\n    }\n  }\n}\n```\n\nProfile: `minimal` (8 tool), `standard` (25), `full` (119, ค่าเริ่มต้น)\n\n## ขั้นตอนถัดไป\n\n- [Claude Code Setup](/docs/mcp/claude-code)\n- [Cursor Setup](/docs/mcp/cursor)\n- [MCP Troubleshooting](/docs/mcp/troubleshooting)\n","content_html":"<h1>MCP ใน Claude Desktop</h1>\n<p>Claude Desktop เป็น desktop app ของ Anthropic สำหรับ macOS และ Windows ด้วย Synapse MCP server ที่กำหนดค่า Claude ได้สิทธิ์ native เข้าถึง Synapse tool ทั้ง 79 ตัว — สามารถเก็บ memory, recall, จัดการ task, แช็ตกับคุณ และอื่น ๆ</p>\n<h2>ข้อกำหนดเบื้องต้น</h2>\n<ul>\n<li>Claude Desktop app (macOS หรือ Windows)</li>\n<li>Node.js 18+ ติดตั้ง (<code>node --version</code>)</li>\n<li>Synapse Mind Key ของคุณ</li>\n</ul>\n<h2>ขั้นตอนที่ 1: เปิด Config File</h2>\n<ul>\n<li><strong>macOS:</strong> <code>~/Library/Application Support/Claude/claude_desktop_config.json</code></li>\n<li><strong>Windows:</strong> <code>%APPDATA%\\Claude\\claude_desktop_config.json</code></li>\n</ul>\n<p>หากไฟล์ไม่มี ให้สร้างขึ้นมา</p>\n<h2>ขั้นตอนที่ 2: เพิ่ม Synapse MCP Server</h2>\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><div class=\"callout callout-ok\">หากคุณมี MCP server อื่นที่กำหนดค่าแล้ว เพียงเพิ่ม block `\"synapse\"` ใน object `\"mcpServers\"` ที่มีอยู่</div><h2>ขั้นตอนที่ 3: รีสตาร์ท Claude Desktop</h2>\n<ol>\n<li>ออกจาก Claude Desktop ให้เต็มรูปแบบ (Cmd+Q บน macOS, ไม่ใช่แค่ปิดหน้าต่าง)</li>\n<li>เปิด Claude Desktop อีกครั้ง</li>\n<li>เริ่มแช็ตใหม่</li>\n<li>มองหาไอคอน 🔌 plug ที่มุมล่างซ้าย — ควรบอกว่า &quot;79 tools&quot;</li>\n</ol>\n<h2>ขั้นตอนที่ 4: ทดสอบ</h2>\n<p>ในแช็ตใหม่ พิมพ์:</p>\n<pre><code class=\"hljs language-plaintext\">memory_recall aufrufen</code></pre><p>Claude ควรเรียก tool <code>memory_recall</code> และตอบกลับด้วยสรุปของ memory ที่เก็บไว้ของคุณ (หรือ &quot;No memories yet&quot; หาก mind ของคุณว่าง)</p>\n<h2>Tool ที่ใช้ได้ (ส่วนหนึ่ง)</h2>\n<table>\n<thead>\n<tr>\n<th>Tool</th>\n<th>คำอธิบาย</th>\n</tr>\n</thead>\n<tbody><tr>\n<td><code>memory_recall</code></td>\n<td>Recall memory ทั้งหมด</td>\n</tr>\n<tr>\n<td><code>memory_store</code></td>\n<td>เก็บ memory ใหม่</td>\n</tr>\n<tr>\n<td><code>memory_search</code></td>\n<td>ค้นหา memory</td>\n</tr>\n<tr>\n<td><code>task_list</code></td>\n<td>รายการ task</td>\n</tr>\n<tr>\n<td><code>task_create</code></td>\n<td>สร้าง task</td>\n</tr>\n<tr>\n<td><code>chat_poll</code></td>\n<td>ตรวจข้อความใหม่</td>\n</tr>\n<tr>\n<td><code>chat_reply</code></td>\n<td>ตอบกลับข้อความ</td>\n</tr>\n<tr>\n<td><code>browser_new</code></td>\n<td>เปิด browser tab</td>\n</tr>\n<tr>\n<td><code>computer_list</code></td>\n<td>รายการ computer ที่ลงทะเบียน</td>\n</tr>\n</tbody></table>\n<p>รายการเต็ม: <a href=\"/docs/mcp/what-is-mcp\">MCP คืออะไร?</a></p>\n<h2>การแก้ปัญหา</h2>\n<h3>ไม่มี tool ปรากฏใน Claude Desktop</h3>\n<ol>\n<li>ตรวจสอบเวอร์ชัน Node.js: <code>node --version</code> (ต้อง ≥ 18)</li>\n<li>ตรวจสอบ config file เป็น JSON ที่ถูกต้อง (ไม่มี trailing comma)</li>\n<li>รีสตาร์ท Claude Desktop ให้เต็มรูปแบบ (Cmd+Q, ไม่ใช่แค่ปิด)</li>\n<li>ตรวจ log Claude Desktop: <code>~/Library/Logs/Claude/mcp.log</code> (macOS)</li>\n</ol>\n<h3>Error &quot;Mind Key invalid&quot;</h3>\n<ul>\n<li>ตรวจ <code>SYNAPSE_MIND_KEY</code> ขึ้นต้นด้วย <code>mk_</code></li>\n<li>รับ key ใหม่ผ่าน <code>POST /minds</code> (ต้องใช้ JWT จาก <code>/login</code>)</li>\n<li>ไม่มีเครื่องหมายคำพูดรอบ key ใน JSON</li>\n</ul>\n<h3>ไม่พบ npx</h3>\n<ul>\n<li>ติดตั้ง Node.js 18+: <a href=\"https://nodejs.org/\">https://nodejs.org/</a></li>\n<li>รีสตาร์ท terminal หลังติดตั้ง</li>\n<li>บน macOS ด้วย Homebrew: <code>brew install node</code></li>\n</ul>\n<h3>tool แสดงแต่การเรียกล้มเหลว</h3>\n<ul>\n<li>ตรวจ <code>SYNAPSE_URL</code> เข้าถึงได้: <code>curl https://synapse.schaefer.zone/health</code></li>\n<li>ตรวจ Mind Key ทำงาน: <code>curl -H &quot;Authorization: Bearer mk_...&quot; https://synapse.schaefer.zone/memory/recall</code></li>\n<li>ดู <a href=\"/docs/mcp/troubleshooting\">MCP Troubleshooting</a></li>\n</ul>\n<h2>Tool Profile (ประหยัด Token)</h2>\n<p>หากคุณใช้ LLM ที่เล็กกว่าหรือต้องการประหยัด context token ตั้ง tool profile:</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_...&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><span class=\"hljs-punctuation\">,</span>\n        <span class=\"hljs-attr\">&quot;MCP_PROFILE&quot;</span><span class=\"hljs-punctuation\">:</span> <span class=\"hljs-string\">&quot;standard&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><p>Profile: <code>minimal</code> (8 tool), <code>standard</code> (25), <code>full</code> (119, ค่าเริ่มต้น)</p>\n<h2>ขั้นตอนถัดไป</h2>\n<ul>\n<li><a href=\"/docs/mcp/claude-code\">Claude Code Setup</a></li>\n<li><a href=\"/docs/mcp/cursor\">Cursor Setup</a></li>\n<li><a href=\"/docs/mcp/troubleshooting\">MCP Troubleshooting</a></li>\n</ul>\n","urls":{"html":"/docs/mcp/claude-desktop","text":"/docs/mcp/claude-desktop?format=text","json":"/docs/mcp/claude-desktop?format=json","llm":"/docs/mcp/claude-desktop?format=llm"},"translations_available":["en","zh","hi","es","fr","ar","pt","ru","ja","de","it","ko","nl","pl","tr","sv","vi","th","id","uk"]}