---
title: "CursorのMCP設定：ファイルパス、キー、例 · DotsAgent"
description: "AnysphereのMCPサーバーをCursorに追加する方法を紹介します。設定ファイルの場所、トップレベルキーと形式、リモートサーバーのOAuth対応、設定例を確認できます。"
url: https://dotsagent.io/ja/mcp/clients/cursor
---

Anysphere

# CursorにMCPサーバーを追加

Cursor は、プロジェクト内の .cursor/ または全プロジェクト共通の ~/.cursor/ にある mcp.json を読み込みます。

- **macOS**: `~/.cursor/mcp.json`
- **Windows**: `~/.cursor/mcp.json`
- **Linux**: `~/.cursor/mcp.json`
- **プロジェクトファイル**: `.cursor/mcp.json`
- **トップレベルキー**: `mcpServers`
- **形式**: json
- **リモートサーバーのOAuth**: 

## 設定例

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

`.cursor/mcp.json`

```
{
  "mcpServers": {
    "github": {
      "url": "https://api.githubcopilot.com/mcp/"
    },
    "playwright": {
      "command": "npx",
      "args": [
        "@playwright/mcp@latest"
      ]
    }
  }
}
```

## 注意点と仕様

- 値には ${env:NAME}、${userHome}、${workspaceFolder} を使用できます。
- リモートエントリには url、任意の headers、事前登録済み OAuth アプリ用の CLIENT_ID、CLIENT_SECRET、scopes を含む auth ブロックを指定します。
- プロバイダーで固定のリダイレクト URL が必要な場合は、https://www.cursor.com/agents/mcp/oauth/callback と http://localhost:8787/callback を登録してください。
- コマンドラインから追加するコマンドは、ドキュメントに記載されていません。

[Cursorの設定を作成 →](https://dotsagent.io/ja/mcp/config#client=cursor)

## その他のクライアント

[Claude Desktop](https://dotsagent.io/ja/mcp/clients/claude-desktop)

[Claude Code](https://dotsagent.io/ja/mcp/clients/claude-code)

[VS Code (GitHub Copilot)](https://dotsagent.io/ja/mcp/clients/vscode-copilot)

[Windsurf / Devin Desktop](https://dotsagent.io/ja/mcp/clients/windsurf)

[Zed](https://dotsagent.io/ja/mcp/clients/zed)

[OpenAI Codex CLI](https://dotsagent.io/ja/mcp/clients/codex-cli)

[Gemini CLI](https://dotsagent.io/ja/mcp/clients/gemini-cli)

[ChatGPT](https://dotsagent.io/ja/mcp/clients/chatgpt)

[OpenClaw](https://dotsagent.io/ja/mcp/clients/openclaw)

[Cline](https://dotsagent.io/ja/mcp/clients/cline)

[Continue](https://dotsagent.io/ja/mcp/clients/continue)

[JetBrains AI Assistant](https://dotsagent.io/ja/mcp/clients/jetbrains-ai)

## 情報源

1. [cursor.com](https://cursor.com/docs/context/mcp)/docs/context/mcp

AIエージェント開発者向けの独立したリファレンスです。ここに記載されているいずれのベンダーとも提携していません。

© 2026 DotsAgent · 確認日: 2026年10月1日
