mcpField
S
Smithery CLI

Smithery CLI

ローカル
smithery.ai開発ツール84921 週間前に更新

Smithery CLI について

Smithery CLI は、ターミナルから MCP サーバーやスキルへの接続、検索、呼び出しを行うコマンドラインツールです。コマンドラインでエージェントが利用する MCP サーバーを管理する開発者を想定しています。

主な機能

  1. 01Smithery レジストリでの MCP サーバー検索
  2. 02MCP サーバー接続の管理
  3. 03接続済みサーバーのツールの検索と呼び出し
  4. 04OAuth によるログインとトークン管理
  5. 05MCP サーバー URL またはバンドルの公開

活用シーン

  1. 01GitHub などのサービスのツールの追加と呼び出し
  2. 02接続済みサーバーからタスクに合うツールの検索
  3. 03自作の MCP サーバーの Smithery レジストリへの公開

MCP 対応

Smithery CLI は MCP クライアントとして動作し、サーバー接続の追加、一覧表示、削除を行い、接続先のツールを呼び出します。

設定

ローカルサーバーの設定はどのクライアントでも共通です。コピーしてクライアントの MCP 設定ファイルに貼り付けてください。

mcp.json · 共通設定
{
"mcpServers": {
"cli-smithery-ai": {
"command": "npx",
"args": [
"-y",
"skills"
]
}
}
}
起動コマンドnpx -y skills

ローカルサーバーにはマシン上の実行環境(Node.js 18 以上など)が必要です。設定ファイルの場所はクライアントごとに異なります。

パッケージ
npmskills

ツール

ツール一覧はまだ取得されていません

ローカルサーバーのツールはマシン上で起動して初めて取得できます。メンテナーはまだツール一覧を提供していません。

詳細

Smithery CLI NPM Version NPM Downloads

Smithery CLI を使うと、コマンドラインからエージェントを何千ものスキルや MCP サーバーに直接接続できます。利用を開始するには、npx skills add smithery/cli を実行してください。

インストール

npm install -g smithery@latest

Node.js 20 以降が必要です。

コマンド

MCP サーバー
smithery mcp search [term]              # Search the Smithery registry
smithery mcp add <url>                  # Add an MCP server connection
smithery mcp list                       # List your connections
smithery mcp remove <ids...>            # Remove connections
ツール

smithery mcp 経由で接続された MCP サーバーのツールを操作します。

smithery tool list [connection]        # List tools from your connected MCP servers
smithery tool find [query]             # Search tools by name or intent
smithery tool get <connection> <tool>  # Show full details for one tool
smithery tool call <connection> <tool> [args]  # Call a tool
スキル

Smithery Skills Registry でスキルを探し、 上流のインストーラーを使ってインストールします。

npx skills add <skill>   # e.g. npx skills add smithery-ai/cli
認証
smithery auth login                     # Login with Smithery (OAuth)
smithery auth logout                    # Log out
smithery auth whoami                    # Check current user
smithery auth token                     # Mint a service token
smithery auth token --policy '<json>'   # Mint a restricted token
名前空間
smithery namespace list                 # List your namespaces
smithery namespace use <name>           # Set current namespace
公開
smithery mcp publish <url> -n <org/server>          # Publish an MCP server URL
smithery mcp publish <bundle.mcpb> -n <org/server>  # Publish an MCP bundle

使用例

# Search and connect to an MCP server
smithery mcp search "github"
smithery mcp add github --id github

# Find and call tools from your connected MCP servers
smithery tool find "create issue"
smithery tool call github create_issue '{"title":"Bug fix","body":"..."}'

# Browse and install skills
smithery skill search "frontend" --json --page 2
smithery skill add anthropics/frontend-design --agent claude-code

# Publish your MCP server URL
smithery mcp publish https://my-mcp-server.com -n myorg/my-server

# Publish a built MCP bundle
smithery mcp publish ./server.mcpb -n myorg/my-server

開発

git clone https://github.com/smithery-ai/cli
cd cli && pnpm install && pnpm run build
npx . --help

コントリビューション

コントリビューションを歓迎します!プルリクエストを送信してください。

コメント

MCP は初めてですか?

プロトコルの概要から最初のサーバーの導入まで、よくある疑問にまとめて答えます。

AI アプリケーションが外部のツールやデータソースに統一的な方法で接続するためのオープンなプロトコルです。クライアントはモデルとの対話を担い、MCP サーバーはツール・リソース・プロンプトテンプレートを提供します。標準メッセージでやり取りするため、1 つのサーバーを複数のクライアントで再利用できます。