/ 目錄 / 演練場 / Smithery CLI
● 官方 smithery-ai ⚡ 即開即用

Smithery CLI

作者 smithery-ai · smithery-ai/cli

Smithery 官方 CLI——smithery install <server> 將 MCP 加入你的客戶端設定,還有用於建置自訂 MCP 的開發模式。

Smithery 託管一個公開的 MCP 伺服器 registry。此 CLI 讓你對客戶端設定進行安裝/解除安裝,列出已安裝的伺服器,並為發佈搭建新的 MCP 鷹架。

為什麼要用

核心特性

即時演示

實際使用效果

就緒

安裝

選擇你的客戶端

~/Library/Application Support/Claude/claude_desktop_config.json  · Windows: %APPDATA%\Claude\claude_desktop_config.json
{
  "mcpServers": {
    "smithery-cli": {
      "command": "npx",
      "args": [
        "-y",
        "@smithery/cli"
      ]
    }
  }
}

開啟 Claude Desktop → Settings → Developer → Edit Config。儲存後重啟應用。

~/.cursor/mcp.json · .cursor/mcp.json
{
  "mcpServers": {
    "smithery-cli": {
      "command": "npx",
      "args": [
        "-y",
        "@smithery/cli"
      ]
    }
  }
}

Cursor 使用與 Claude Desktop 相同的 mcpServers 格式。專案級設定優先於全域。

VS Code → Cline → MCP Servers → Edit
{
  "mcpServers": {
    "smithery-cli": {
      "command": "npx",
      "args": [
        "-y",
        "@smithery/cli"
      ]
    }
  }
}

點擊 Cline 側欄中的 MCP Servers 圖示,然後選 "Edit Configuration"。

~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "smithery-cli": {
      "command": "npx",
      "args": [
        "-y",
        "@smithery/cli"
      ]
    }
  }
}

格式與 Claude Desktop 相同。重啟 Windsurf 生效。

~/.continue/config.json
{
  "mcpServers": [
    {
      "name": "smithery-cli",
      "command": "npx",
      "args": [
        "-y",
        "@smithery/cli"
      ]
    }
  ]
}

Continue 使用伺服器物件陣列,而非映射。

~/.config/zed/settings.json
{
  "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 移除。

使用場景

實戰用法: Smithery CLI

不需手動編輯設定即可安裝 MCP

👤 開發者 ⏱ ~15 min intermediate

何時使用: 你厭倦了手動合併 stdio 設定。

步驟
  1. 瀏覽
    smithery search <topic>✓ 已複製
    → 相符項目列出
  2. 安裝
    smithery install <slug>✓ 已複製
    → 設定已編輯;重啟客戶端
  3. 驗證
    smithery list✓ 已複製
    → 伺服器存在

結果: 不需考古設定檔即完成新 MCP 安裝。

組合

與其他 MCP 搭配,撬動十倍槓桿

smithery-cli + mcp2cli

直接對 Smithery 安裝的 MCP 進行除錯

結合 smithery-cli 與 mcp2cli:直接對 Smithery 安裝的 MCP 進行除錯✓ 已複製

工具

此 MCP 暴露的能力

工具輸入參數何時呼叫成本
CLI subcommands (詳見文件) install / uninstall / list / dev / publish 1 次呼叫

成本與限制

運行它的成本

API 配額
不適用
每次呼叫 Token 數
不適用
費用
免費
提示
固定版本——未指定版本的 slug 會追蹤最新版

安全

權限、密鑰、影響範圍

憑證儲存: 編輯你的客戶端設定檔
資料出站: smithery.ai 用於 registry

故障排查

常見錯誤與修復

找不到設定

傳入 --config-path;CLI 會猜測預設值,但各 OS 不同

替代方案

Smithery CLI 對比其他方案

替代方案何時用它替代權衡
手動設定你喜歡完全掌控工作量較多

更多

資源

📖 閱讀 GitHub 上的官方 README

🐙 查看未解決的 issue

🔍 瀏覽全部 400+ MCP 伺服器和 Skills