MCPクライアント設定リファレンス
MCPクライアントごとに、サーバーを読み込む場所やキーが異なり、設定形式も異なる場合があります。この表では、各クライアントの設定場所、必要な形式、リモートサーバーのOAuth対応状況を確認できます。
| クライアント | 設定ファイル | トップレベルキー | 形式 | リモートOAuth | CLIで追加 |
|---|---|---|---|---|---|
| Claude Desktop | ~/Library/Application Support/Claude/claude_desktop_config.json | mcpServers | json | はい | いいえ |
| Claude Code | .mcp.json | mcpServers | json | はい | はい |
| Cursor | .cursor/mcp.json | mcpServers | json | はい | いいえ |
| VS Code (GitHub Copilot) | .vscode/mcp.json (key 'servers') or portable .mcp.json (key 'mcpServers') | servers | json | はい | はい |
| Windsurf / Devin Desktop | .devin/mcp_config.json (Devin CLI / Devin Local project scope) | mcpServers | json | はい | はい |
| Zed | ~/.config/zed/settings.json | context_servers | json | はい | いいえ |
| OpenAI Codex CLI | .codex/config.toml (trusted projects only) | mcp_servers | toml | はい | はい |
| Gemini CLI | .gemini/settings.json | mcpServers | json | はい | はい |
| ChatGPT | 設定画面のみ | — | — | はい | いいえ |
| OpenClaw | ~/.openclaw/openclaw.json | mcp.servers | json5 | はい | はい |
| Cline | ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json | mcpServers | json | 未記載 | はい |
| Continue | .continue/mcpServers/<name>.yaml (or drop a Claude/Cursor/Cline-style mcp.json into .continue/mcpServers/) | mcpServers | yaml | 未記載 | いいえ |
| JetBrains AI Assistant | 設定画面のみ | mcpServers | json (pasted in UI) | 未記載 | いいえ |
設定が動かなくなる相違点
VS Codeではserversを使用
.vscode/mcp.jsonではserversの下にエントリを記述します。mcpServersではないため、CursorやClaudeの設定をそのまま貼り付けても読み込まれません。新しいポータブル形式の.mcp.jsonと~/.copilot/mcp-config.jsonではmcpServersを使用します。
Gemini CLIではurlではなくhttpUrl
Gemini CLIはフィールド名でトランスポートを選択します。httpUrlはStreamable HTTP、urlは旧式のSSEトランスポート、commandはstdioを意味します。最新のリモートサーバーにはhttpUrlが必要です。
OpenClawとClineのデフォルトはSSE
リモートエントリでトランスポートを省略すると、どちらも旧式のSSEにフォールバックします。OpenClawではtransportにstreamable-httpを、ClineではtypeにstreamableHttpを設定してください。
Claude Codeではtypeが必須
.mcp.jsonでは、urlはあるのにtypeがないリモートエントリはエラーになります。urlの横にtype httpを追加してください。stdioエントリにはtype stdioを指定します。
CodexはTOML、サーバーごとにテーブルを作成
CodexにJSONファイルはありません。config.tomlでサーバーごとに[mcp_servers.<name>]テーブルを作成します。argsはTOML配列で、env_varsは環境変数名を指定してシェルからシークレットを渡します。
ContinueではYAMLリストを使用
ContinueのmcpServersは、名前をキーにしたマップではなく、各エントリにnameを含むリストです。また、各ブロックファイルの先頭にはname、version、schema: v1が必要です。