不需手動編輯設定即可安裝 MCP
何時使用: 你厭倦了手動合併 stdio 設定。
步驟
-
瀏覽smithery search <topic>✓ 已複製→ 相符項目列出
-
安裝smithery install <slug>✓ 已複製→ 設定已編輯;重啟客戶端
-
驗證smithery list✓ 已複製→ 伺服器存在
結果: 不需考古設定檔即完成新 MCP 安裝。
作者 smithery-ai · smithery-ai/cli
Smithery 官方 CLI——smithery install <server> 將 MCP 加入你的客戶端設定,還有用於建置自訂 MCP 的開發模式。
Smithery 託管一個公開的 MCP 伺服器 registry。此 CLI 讓你對客戶端設定進行安裝/解除安裝,列出已安裝的伺服器,並為發佈搭建新的 MCP 鷹架。
%APPDATA%\Claude\claude_desktop_config.json{
"mcpServers": {
"smithery-cli": {
"command": "npx",
"args": [
"-y",
"@smithery/cli"
]
}
}
}
開啟 Claude Desktop → Settings → Developer → Edit Config。儲存後重啟應用。
{
"mcpServers": {
"smithery-cli": {
"command": "npx",
"args": [
"-y",
"@smithery/cli"
]
}
}
}
Cursor 使用與 Claude Desktop 相同的 mcpServers 格式。專案級設定優先於全域。
{
"mcpServers": {
"smithery-cli": {
"command": "npx",
"args": [
"-y",
"@smithery/cli"
]
}
}
}
點擊 Cline 側欄中的 MCP Servers 圖示,然後選 "Edit Configuration"。
{
"mcpServers": {
"smithery-cli": {
"command": "npx",
"args": [
"-y",
"@smithery/cli"
]
}
}
}
格式與 Claude Desktop 相同。重啟 Windsurf 生效。
{
"mcpServers": [
{
"name": "smithery-cli",
"command": "npx",
"args": [
"-y",
"@smithery/cli"
]
}
]
}
Continue 使用伺服器物件陣列,而非映射。
{
"context_servers": {
"smithery-cli": {
"command": {
"path": "npx",
"args": [
"-y",
"@smithery/cli"
]
}
}
}
}
加入 context_servers。Zed 儲存後熱重載。
claude mcp add smithery-cli -- npx -y @smithery/cli
一行命令搞定。用 claude mcp list 驗證,claude mcp remove 移除。
何時使用: 你厭倦了手動合併 stdio 設定。
結果: 不需考古設定檔即完成新 MCP 安裝。
直接對 Smithery 安裝的 MCP 進行除錯
| 工具 | 輸入參數 | 何時呼叫 | 成本 |
|---|---|---|---|
| CLI subcommands | (詳見文件) | install / uninstall / list / dev / publish | 1 次呼叫 |
找不到設定傳入 --config-path;CLI 會猜測預設值,但各 OS 不同
| 替代方案 | 何時用它替代 | 權衡 |
|---|---|---|
| 手動設定 | 你喜歡完全掌控 | 工作量較多 |