dotsagent.io
言語:日本語
Anthropic

Claude DesktopにMCPサーバーを追加

Claude Desktopはローカルサーバーをclaude_desktop_config.jsonから読み込みます。リモートサーバーはアプリ内でカスタムコネクタとして追加します。

macOS
~/Library/Application Support/Claude/claude_desktop_config.json
Windows
%APPDATA%\Claude\claude_desktop_config.json
トップレベルキー
mcpServers
形式
json
リモートサーバーのOAuth
はい

設定例

この例では、GitHub のホスト型サーバーと Playwright のローカルサーバーを、このクライアントが想定する形式で追加します。

~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "playwright": {
      "command": "npx",
      "args": [
        "@playwright/mcp@latest"
      ]
    }
  }
}

リモートサーバーはファイルに記述できません。Settings > Connectors > Add custom connectorで追加し、URLを貼り付けてサインインしてください。

注意点と仕様

  • ファイルを編集したら、アプリを終了して再起動してください。
  • ログの保存先は、macOSでは~/Library/Logs/Claude、Windowsでは%APPDATA%\Claude\logsです。
  • Windowsでは、npxをcmd経由で実行します。commandはcmd、引数は/c、npx、パッケージの順です。ジェネレーターが設定します。
  • Linux向けの公式ビルドはありません。

Claude Desktopの設定を作成 →

その他のクライアント

情報源

  1. modelcontextprotocol.io/docs/develop/connect-local-servers
  2. modelcontextprotocol.io/docs/develop/connect-remote-servers
  3. github.com/modelcontextprotocol/servers