1. Claude Code MCP登録コマンドの正確なフォーマット
基本構文
claude mcp add <name> <command> [args...]
主要なコマンドオプション
スコープオプション (-s
/ --scope
)
-s local
(デフォルト): 現在のプロジェクトでのみ利用可能
-s project
: チーム共有用(.mcp.json
ファイル経由)
-s user
: すべてのプロジェクトで利用可能(個人用)
環境変数 (-e
/ --env
)
-e KEY=value
: MCPサーバー用の環境変数を設定
- 複数指定可能:
-e KEY1=value1 -e KEY2=value2
トランスポートオプション (--transport
)
--transport sse
: Server-Sent Eventsサーバー用
--transport http
: Streamable HTTPサーバー用
- デフォルト: stdio(標準入出力)
引数セパレータ (--
)
- MCPコマンドオプションとサーバーコマンドを分離
- サーバーコマンドに独自のオプションがある場合に必須
コマンド例
# 基本的なローカルサーバー
$ claude mcp add my-server -- npx -y @org/my-mcp-server
# 環境変数付き
$ claude mcp add api-server -e API_KEY=your-key -- npx server
# ユーザースコープで登録
$ claude mcp add tool -s user -- /path/to/tool
2. 人気のMCP 30選
データベース
3. PostgreSQL MCP Server (公式)
- リポジトリ: https://github.com/modelcontextprotocol/servers
- 主な機能: PostgreSQLデータベースへの読み取り専用アクセス、スキーマ検査、SQLクエリ実行
- 環境変数:
DATABASE_URL
$ claude mcp add postgres -s user -e DATABASE_URL="postgresql://user:password@localhost:5432/dbname" -- npx -y @modelcontextprotocol/server-postgres
4. MySQL MCP Server
- リポジトリ: https://github.com/benborla/mcp-server-mysql
- 主な機能: MySQLデータベース統合、スキーマ検査、クエリ実行
- 環境変数:
MYSQL_HOST
, MYSQL_PORT
, MYSQL_USER
, MYSQL_PASS
, MYSQL_DB
$ claude mcp add mysql -s user -e MYSQL_HOST="localhost" -e MYSQL_PORT="3306" -e MYSQL_USER="root" -e MYSQL_PASS="password" -e MYSQL_DB="database" -- npx @benborla29/mcp-server-mysql
5. Supabase MCP Server
- リポジトリ: https://github.com/supabase-community/supabase-mcp
- 主な機能: Supabaseプロジェクト管理、データベースクエリ、テーブル管理
- 環境変数:
SUPABASE_ACCESS_TOKEN
$ claude mcp add supabase -s user -e SUPABASE_ACCESS_TOKEN=your-token -- npx -y @supabase/mcp-server-supabase@latest --read-only --project-ref=your-project-ref
6. DBHub Universal Database Gateway
- リポジトリ: https://github.com/bytebase/dbhub
- 主な機能: PostgreSQL、MySQL、SQLite、DuckDB対応のユニバーサルゲートウェイ
- 環境変数:
DSN
$ claude mcp add dbhub -s user -e DSN="postgres://user:password@localhost:5432/dbname" -- npx -y @bytebase/dbhub --transport stdio
バージョン管理
7. Git MCP Server (公式)
- リポジトリ: https://github.com/modelcontextprotocol/servers
- 主な機能: Gitリポジトリ操作、ブランチ管理、コミット
- 環境変数: 不要
$ claude mcp add git -s user -- uvx mcp-server-git --repository /path/to/git/repo
8. GitHub MCP Server (公式)
- リポジトリ: https://github.com/github/github-mcp-server
- 主な機能: GitHub API統合、PR管理、Issue追跡、コード検索
- 環境変数:
GITHUB_PERSONAL_ACCESS_TOKEN
$ claude mcp add github -s user -e GITHUB_PERSONAL_ACCESS_TOKEN=your-token -- npx -y @modelcontextprotocol/server-github
AI/LLMサービス
9. OpenAI MCP Server
- リポジトリ: https://github.com/pierrebrunelle/mcp-server-openai
- 主な機能: OpenAIモデルへの直接アクセス、クロスモデル対話
- 環境変数:
OPENAI_API_KEY
$ claude mcp add openai -s user -e OPENAI_API_KEY=your-api-key -- npx -y mcp-server-openai
10. DeepSeek MCP Server
- リポジトリ: https://github.com/DMontgomery40/deepseek-mcp-server
- 主な機能: DeepSeekの高度な言語モデル統合
- 環境変数:
DEEPSEEK_API_KEY
$ claude mcp add deepseek -s user -e DEEPSEEK_API_KEY=your-api-key -- npx -y deepseek-mcp-server
クラウドサービス
11. AWS MCP Server Suite (公式)
- リポジトリ: https://github.com/awslabs/mcp
- 主な機能: EC2、S3、Lambda、CloudFormation、Cost Explorer統合
- 環境変数:
AWS_ACCESS_KEY_ID
, AWS_SECRET_ACCESS_KEY
, AWS_REGION
$ claude mcp add aws -s user -e AWS_ACCESS_KEY_ID=your-key -e AWS_SECRET_ACCESS_KEY=your-secret -e AWS_REGION=us-east-1 -- uvx aws-mcp-server
12. Google Workspace MCP Server
- リポジトリ: https://github.com/taylorwilsdon/google_workspace_mcp
- 主な機能: Gmail、Drive、Calendar、Docs、Sheets統合
- 環境変数:
GOOGLE_OAUTH_CLIENT_ID
, GOOGLE_OAUTH_CLIENT_SECRET
$ claude mcp add google-workspace -s user -e GOOGLE_OAUTH_CLIENT_ID=your-client-id -e GOOGLE_OAUTH_CLIENT_SECRET=your-secret -- uvx workspace-mcp
コミュニケーションツール
13. Slack MCP Server (Advanced)
- リポジトリ: https://github.com/korotovsky/slack-mcp-server
- 主な機能: 強力なSlack統合、チャンネル管理、DM、履歴取得
- 環境変数:
SLACK_MCP_XOXC_TOKEN
, SLACK_MCP_XOXD_TOKEN
$ claude mcp add slack -s user -e SLACK_MCP_XOXC_TOKEN=xoxc-your-token -e SLACK_MCP_XOXD_TOKEN=xoxd-your-token -- npx -y slack-mcp-server@latest --transport stdio
14. Gmail MCP Server with Auto-Auth
- リポジトリ: https://github.com/GongRzhe/Gmail-MCP-Server
- 主な機能: Gmail統合、自動認証、メール送受信、添付ファイル対応
- 環境変数: Google Cloud OAuth設定が必要
$ claude mcp add gmail -s user -- npx @gongrzhe/server-gmail-autoauth-mcp
API統合・自動化
15. OpenAPI MCP Server
- リポジトリ: https://github.com/snaggle-ai/openapi-mcp-server
- 主な機能: OpenAPI仕様によるREST API統合、動的ツール生成
- 環境変数: APIによって異なる
$ claude mcp add openapi -s user -e API_KEY=your-key -e OPENAPI_SPEC_URL=your-spec-url -- npx -y openapi-mcp-server
16. Zapier MCP Server (公式)
- リポジトリ: https://zapier.com/mcp
- 主な機能: 8,000以上のアプリ統合、ワークフロー自動化
- 環境変数:
ZAPIER_API_KEY
$ claude mcp add zapier -s user -e ZAPIER_API_KEY=your-zapier-key -- npx -y @zapier/mcp-server
ファイル操作
17. Filesystem MCP Server (公式)
- リポジトリ: https://github.com/modelcontextprotocol/servers
- 主な機能: セキュアなファイル操作、ディレクトリ管理、パターンマッチング検索
- 環境変数: 不要
$ claude mcp add filesystem -s user -- npx -y @modelcontextprotocol/server-filesystem /path/to/allowed/directory
18. Enhanced File Operations Server
- リポジトリ: https://github.com/bsmi021/mcp-file-operations-server
- 主な機能: ストリーミング対応、ファイル監視、進捗報告
- 環境変数: 不要
$ claude mcp add file-operations -s user -- npx -y @bsmi021/mcp-file-operations-server /path/to/directory
検索・情報取得
19. Brave Search MCP Server (公式)
- リポジトリ: https://github.com/modelcontextprotocol/servers
- 主な機能: プライバシー重視のWeb検索、コンテンツ取得
- 環境変数:
BRAVE_API_KEY
$ claude mcp add brave-search -s user -e BRAVE_API_KEY=your-brave-api-key -- npx -y @modelcontextprotocol/server-brave-search
20. MCP Omnisearch
- リポジトリ: https://github.com/spences10/mcp-omnisearch
- 主な機能: 複数の検索エンジン統合(Tavily、Brave、Kagi)、AI処理
- 環境変数:
TAVILY_API_KEY
, PERPLEXITY_API_KEY
, KAGI_API_KEY
等
$ claude mcp add omnisearch -s user -e TAVILY_API_KEY=your-key -e PERPLEXITY_API_KEY=your-key -- npx -y mcp-omnisearch
ユーティリティ・生産性
21. Memory MCP Server (公式)
- リポジトリ: https://github.com/modelcontextprotocol/servers
- 主な機能: 永続的メモリシステム、知識グラフ、会話間での情報保持
- 環境変数: 不要(オプション:
MEMORY_FILE_PATH
)
$ claude mcp add memory -s user -- npx -y @modelcontextprotocol/server-memory
22. Task Master AI
- リポジトリ: https://github.com/eyaltoledano/claude-task-master
- 主な機能: タスク分解、依存関係管理、進捗追跡
- 環境変数:
ANTHROPIC_API_KEY
, OPENAI_API_KEY
等
$ claude mcp add taskmaster-ai -s user -e ANTHROPIC_API_KEY=your-key -- npx -y --package=task-master-ai task-master-ai
23. E2B Code Execution MCP
- リポジトリ: https://github.com/e2b-dev/mcp-server
- 主な機能: サンドボックス環境でのセキュアなコード実行
- 環境変数:
E2B_API_KEY
$ claude mcp add e2b -s user -e E2B_API_KEY=your-api-key -- npx -y @e2b/mcp-server
Web関連
24. Fetch MCP Server (公式)
- リポジトリ: https://github.com/modelcontextprotocol/servers
- 主な機能: Webコンテンツ取得、HTML→Markdown変換
- 環境変数: 不要
$ claude mcp add fetch -s user -- uvx mcp-server-fetch
25. Claude Code MCP Server
- リポジトリ: https://github.com/SDGLBL/mcp-claude-code
- 主な機能: コード理解・修正、ファイル操作、シェルサポート
- 環境変数:
MCP_CLAUDE_DEBUG
(オプション)
$ claude mcp add claude-code-server -s user -- claude mcp serve
プロンプト管理
26. Claude Prompts MCP
- リポジトリ: コミュニティプロジェクト
- 主な機能: ユニバーサルプロンプト管理、テンプレートエンジン、ワークフロー
- 環境変数:
MCP_PROMPTS_CONFIG_PATH
$ claude mcp add prompts -s user -e MCP_PROMPTS_CONFIG_PATH=/path/to/config -- node /path/to/claude-prompts-mcp/dist/index.js
追加のユーティリティ
27. O3 Search MCP (例として提示されたもの)
- リポジトリ: 仮想的な例
- 主な機能: 高度な検索機能、推論エンジン統合
- 環境変数:
OPENAI_API_KEY
, SEARCH_CONTEXT_SIZE
, REASONING_EFFORT
$ claude mcp add o3 -s user -e OPENAI_API_KEY=your-api-key -e SEARCH_CONTEXT_SIZE=medium -e REASONING_EFFORT=medium -- npx o3-search-mcp
28. DigitalOcean MCP Server
- リポジトリ: @digitalocean/mcp
- 主な機能: DigitalOceanインフラ管理
- 環境変数:
DIGITALOCEAN_API_TOKEN
$ claude mcp add digitalocean-mcp-local -e DIGITALOCEAN_API_TOKEN=YOUR_DO_API_TOKEN -- npx "@digitalocean/mcp"
29. Claude Desktop Config Manager
- リポジトリ: コミュニティプロジェクト
- 主な機能: MCP設定の管理、バックアップ、同期
- 環境変数: 不要
$ claude mcp add config-manager -s user -- npx claude-config-manager
30. MCP Inspector/Debugger
- リポジトリ: コミュニティツール
- 主な機能: MCPサーバーのデバッグ、パフォーマンス監視
- 環境変数: 不要
$ claude mcp add mcp-inspector -s user -- npx mcp-inspector --port 8080
設定ファイルの場所
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
%APPDATA%/Claude/claude_desktop_config.json
- Linux:
~/.config/Claude/claude_desktop_config.json
セキュリティに関する注意事項
- 信頼できるソースからのみMCPをインストール
- APIキーは環境変数で安全に管理
- 可能な限り読み取り専用モードを使用
- プロジェクトスコープのMCPは
.mcp.json
を通じてチームと共有される
- 定期的にMCPサーバーのログを監視
コメントを残す