連接 Claude Desktop
閱讀約 4 分鐘
Claude Desktop 用 stdio(不是 OAuth)—— 改 config 檔、跑
npx -y slima-mcp@0。

步驟
1 · 取得 SLIMA_API_TOKEN
最快:跑 npx slima-mcp@0 auth —— 瀏覽器自動開、登入、token 自動存到 ~/.slima/credentials.json。
或:手動到 Account → API tokens 取 token。
2 · 找 Claude Desktop config 檔
macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
Windows:
%APPDATA%\Claude\claude_desktop_config.json
如果不存在,新建一個。
3 · 編輯 config 加 Slima
打開 config 檔,加:
{
"mcpServers": {
"slima": {
"command": "npx",
"args": ["-y", "slima-mcp@0"]
}
}
}
不需要明文 token——
slima-mcpCLI 會從~/.slima/credentials.json自動讀。
4 · 重啟 Claude Desktop
完全 Quit 再開(不是 reload)。
5 · 驗證
新對話、訊息框旁邊應該看到「🔌 slima」icon。試打:
請列出我 Slima 上的書
多個 MCP server
如果你已經有別的 MCP server(譬如 filesystem-mcp),併入:
{
"mcpServers": {
"slima": {
"command": "npx",
"args": ["-y", "slima-mcp@0"]
},
"filesystem": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-filesystem", "/path/to/docs"]
}
}
}
進階:明文 token(不推薦)
如果你不想用 ~/.slima/credentials.json(譬如多帳號):
"slima": {
"command": "npx",
"args": ["-y", "slima-mcp@0"],
"env": { "SLIMA_API_TOKEN": "slima_..." }
}
但這把 token 寫進 config 檔——
~/.slima/credentials.json走 chmod 600 比較安全。
相關
這篇有幫助嗎?