連接 Cursor
閱讀約 3 分鐘
Cursor 是 IDE、用 MCP 通用 stdio 設定。

步驟
1 · 取 token
跑 npx slima-mcp@0 auth(瀏覽器登入)或 Account → API tokens 手動取。
2 · Cursor 設定
- Cursor → Settings → MCP(或
Cursor → Preferences → Cursor Settings → MCP) - 點「Add new MCP server」
填:
- Name:
slima - Type:
stdio - Command:
npx - Args:
-y slima-mcp@0
可選 env:
SLIMA_API_TOKEN:(如果不想走~/.slima/credentials.json)
3 · 重開 Cursor
或從 Command Palette → MCP: Restart all
4 · 驗證
打開任一檔案、用 AI chat(⌘L):
@slima list my books
Cursor 特有:在 Composer / Chat 內使用
Slima MCP 工具會出現在:
@自動完成(譬如@slima.read_file)- Composer 的 Agent mode(如果你開了)
跟 Claude Desktop 對比
| Claude Desktop | Cursor | |
|---|---|---|
| 設定方式 | JSON config 檔 | 設定 UI |
| 用途 | 一般 AI 對話 | IDE / 程式碼編輯 |
| MCP 限制 | 沒特別 | 同樣 |
相關
這篇有幫助嗎?