GitHub MCP リモートMCPサーバー – 公式URL・MCP接続設定・ツール一覧
GitHub MCP は GitHub が提供するリモートMCPサーバー(公式運営、カテゴリ:開発者ツール・Git)です。エンドポイント https://api.githubcopilot.com/mcp/ を通じて、AIエージェントが直接呼び出せる 92 個の構造化ツールを提供します。
このページでは、公式リモートエンドポイント、トランスポート、認証方式、全ツールスキーマ、リアルタイムの死活監視・セキュリティ監査結果を掲載し、Cursor・Claude Code・VS Code・ChatGPT など 10 のクライアントへのMCP接続手順を解説します。
- 提供元
- GitHub ↗
- カテゴリ
- 🛠️ 開発者ツール・Git
Or add to ~/.cursor/mcp.json:
{
"mcpServers": {
"github": {
"url": "https://api.githubcopilot.com/mcp/"
}
}
}claude mcp add --transport http github https://api.githubcopilot.com/mcp/
Or add to .vscode/mcp.json:
{
"servers": {
"github": {
"type": "http",
"url": "https://api.githubcopilot.com/mcp/"
}
}
}- Open Settings → Connectors (Integrations) → Add Custom Connector.
- Paste the endpoint URL:
https://api.githubcopilot.com/mcp/ - Complete the browser OAuth 2.1 login flow when prompted.
Bridge the remote endpoint into stdio with mcp-remote in claude_desktop_config.json:
{
"mcpServers": {
"github": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://api.githubcopilot.com/mcp/"
]
}
}
}Add to ~/.codeium/windsurf/mcp_config.json:
{
"mcpServers": {
"github": {
"serverUrl": "https://api.githubcopilot.com/mcp/"
}
}
}Add to ~/.kiro/settings/mcp.json (or .kiro/settings/mcp.json in your workspace), then reopen Kiro's Agent panel to pick up the server:
{
"mcpServers": {
"github": {
"url": "https://api.githubcopilot.com/mcp/"
}
}
}Add to ~/.codex/config.toml — Codex reads remote HTTP servers from [mcp_servers.*] tables:
[mcp_servers.github] url = "https://api.githubcopilot.com/mcp/"
Add to cline_mcp_settings.json (Cline → MCP Servers → Configure), or paste it via Cline's MCP marketplace file:
{
"mcpServers": {
"github": {
"type": "streamableHttp",
"url": "https://api.githubcopilot.com/mcp/"
}
}
}Add to ~/.gemini/settings.json under mcpServers — httpUrl for Streamable HTTP, url for legacy SSE:
{
"mcpServers": {
"github": {
"httpUrl": "https://api.githubcopilot.com/mcp/"
}
}
}🧰 GitHub のMCPツールとスキーマ(92)
| Tool | Safety | Description | Parameters |
|---|---|---|---|
| get_me ~32 tok | 🟢 Read | Get details of the authenticated GitHub user. | — |
| get_teams ~36 tok | 🟢 Read | Get details of the teams the authenticated user belongs to. | — |
| get_team_members ~33 tok | 🟢 Read | Get member usernames of a specific team. | — |
| search_repositories ~40 tok | 🟢 Read | Search GitHub repositories by keyword, language and qualifiers. | — |
| search_code ~32 tok | 🟢 Read | Search code across GitHub repositories. | — |
| search_issues ~35 tok | 🟢 Read | Search issues across GitHub with qualifier support. | — |
| search_pull_requests ~33 tok | 🟢 Read | Search pull requests across GitHub. | — |
| search_users ~27 tok | 🟢 Read | Search GitHub users. | — |
| search_orgs ~29 tok | 🟢 Read | Search GitHub organizations. | — |
| get_file_contents ~38 tok | 🟢 Read | Read the contents of a file or directory from a repository. | — |
| create_or_update_file ~36 tok | 🟠 Write | Create or update a single file in a repository. | — |
| push_files ~36 tok | 🟠 Write | Push multiple files in a single commit to a repository. | — |
| delete_file ~30 tok | 🔴 Destructive | Delete a file from a repository. | — |
| create_repository ~35 tok | 🟠 Write | Create a new GitHub repository in your account. | — |
| fork_repository ~36 tok | 🟠 Write | Fork a repository to your account or an organization. | — |
| create_branch ~32 tok | 🟠 Write | Create a new branch in a repository. | — |
| list_branches ~30 tok | 🟢 Read | List branches in a repository. | — |
| get_commit ~28 tok | 🟢 Read | Get details of a commit. | — |
| list_commits ~33 tok | 🟢 Read | List commits of a branch in a repository. | — |
| list_tags ~29 tok | 🟢 Read | List git tags in a repository. | — |
| get_tag ~27 tok | 🟢 Read | Get details of a git tag. | — |
| list_releases ~30 tok | 🟢 Read | List releases in a repository. | — |
| get_latest_release ~34 tok | 🟢 Read | Get the latest release in a repository. | — |
| get_release_by_tag ~30 tok | 🟢 Read | Get a release by tag name. | — |
| list_issues ~32 tok | 🟢 Read | List issues in a repository with filters. | — |
| get_issue ~30 tok | 🟢 Read | Get details of a specific issue. | — |
| get_issue_comments ~30 tok | 🟢 Read | List comments on an issue. | — |
| create_issue ~31 tok | 🟠 Write | Open a new issue in a repository. | — |
| update_issue ~36 tok | 🟠 Write | Update an existing issue's title, body, state or labels. | — |
| add_issue_comment ~30 tok | 🟠 Write | Add a comment to an issue. | — |
| list_issue_types ~36 tok | 🟢 Read | List available issue types for the repository owner. | — |
| list_sub_issues ~30 tok | 🟢 Read | List sub-issues of an issue. | — |
| add_sub_issue ~32 tok | 🟠 Write | Add an existing issue as a sub-issue. | — |
| remove_sub_issue ~33 tok | 🟠 Write | Remove a sub-issue from a parent issue. | — |
| reprioritize_sub_issue ~34 tok | 🟠 Write | Reorder a sub-issue inside its parent. | — |
| list_pull_requests ~33 tok | 🟢 Read | List pull requests in a repository. | — |
| get_pull_request ~31 tok | 🟢 Read | Get details of a pull request. | — |
| get_pull_request_files ~34 tok | 🟢 Read | List files changed by a pull request. | — |
| get_pull_request_diff ~32 tok | 🟢 Read | Get the diff of a pull request. | — |
| get_pull_request_status ~33 tok | 🟢 Read | Get CI status of a pull request. | — |
| get_pull_request_reviews ~33 tok | 🟢 Read | List reviews on a pull request. | — |
| get_pull_request_review_comments ~37 tok | 🟢 Read | List review comments on a pull request. | — |
| get_pull_request_comments ~34 tok | 🟢 Read | List comments on a pull request. | — |
| create_pull_request ~31 tok | 🟠 Write | Create a new pull request. | — |
| update_pull_request ~35 tok | 🟠 Write | Update a pull request's title, body or state. | — |
| update_pull_request_branch ~37 tok | 🟠 Write | Update a PR head branch with the base branch. | — |
| merge_pull_request ~29 tok | 🔴 Destructive | Merge a pull request. | — |
| create_pending_pull_request_review ~38 tok | 🟠 Write | Start a pending review on a pull request. | — |
| add_comment_to_pending_review ~38 tok | 🟠 Write | Add a comment to a pending pull request review. | — |
| submit_pending_pull_request_review ~37 tok | 🟠 Write | Submit a pending pull request review. | — |
| delete_pending_pull_request_review ~37 tok | 🔴 Destructive | Delete a pending pull request review. | — |
| create_and_submit_pull_request_review ~42 tok | 🟠 Write | Create and submit a pull request review in one call. | — |
| request_copilot_review ~37 tok | 🟠 Write | Request a Copilot code review on a pull request. | — |
| list_discussions ~36 tok | 🟢 Read | List discussions in a repository or organization. | — |
| get_discussion ~30 tok | 🟢 Read | Get a discussion by number. | — |
| get_discussion_comments ~33 tok | 🟢 Read | List comments on a discussion. | — |
| list_discussion_categories ~33 tok | 🟢 Read | List discussion categories. | — |
| list_workflows ~34 tok | 🟢 Read | List GitHub Actions workflows in a repository. | — |
| run_workflow ~30 tok | 🟠 Write | Trigger a workflow_dispatch run. | — |
| list_workflow_runs ~32 tok | 🟢 Read | List workflow runs with filters. | — |
| get_workflow_run ~31 tok | 🟢 Read | Get details of a workflow run. | — |
| rerun_workflow_run ~31 tok | 🟠 Write | Re-run an entire workflow run. | — |
| rerun_failed_jobs ~34 tok | 🟠 Write | Re-run only failed jobs of a workflow run. | — |
| cancel_workflow_run ~32 tok | 🔴 Destructive | Cancel a running workflow run. | — |
| list_workflow_jobs ~31 tok | 🟢 Read | List jobs of a workflow run. | — |
| get_job_logs ~30 tok | 🟢 Read | Download logs of a workflow job. | — |
| get_workflow_run_logs ~33 tok | 🟢 Read | Download logs of a workflow run. | — |
| get_workflow_run_usage ~34 tok | 🟢 Read | Get usage metrics of a workflow run. | — |
| list_workflow_run_artifacts ~37 tok | 🟢 Read | List artifacts produced by a workflow run. | — |
| download_workflow_run_artifact ~35 tok | 🟢 Read | Download a workflow run artifact. | — |
| list_code_scanning_alerts ~36 tok | 🟢 Read | List code scanning alerts of a repository. | — |
| get_code_scanning_alert ~34 tok | 🟢 Read | Get details of a code scanning alert. | — |
| list_secret_scanning_alerts ~37 tok | 🟢 Read | List secret scanning alerts of a repository. | — |
| get_secret_scanning_alert ~35 tok | 🟢 Read | Get details of a secret scanning alert. | — |
| list_dependabot_alerts ~35 tok | 🟢 Read | List Dependabot alerts of a repository. | — |
| get_dependabot_alert ~33 tok | 🟢 Read | Get details of a Dependabot alert. | — |
| list_repository_security_advisories ~39 tok | 🟢 Read | List repository-level security advisories. | — |
| list_org_repository_security_advisories ~40 tok | 🟢 Read | List security advisories for an organization. | — |
| list_global_security_advisories ~37 tok | 🟢 Read | List GitHub global security advisories. | — |
| get_global_security_advisory ~37 tok | 🟢 Read | Get details of a global security advisory. | — |
| list_notifications ~30 tok | 🟢 Read | List GitHub notifications. | — |
| get_notification_details ~35 tok | 🟢 Read | Get details of a notification thread. | — |
| dismiss_notification ~32 tok | 🟠 Write | Dismiss a notification thread. | — |
| mark_all_notifications_read ~34 tok | 🟠 Write | Mark all notifications as read. | — |
| manage_notification_subscription ~38 tok | 🟠 Write | Manage a notification thread subscription. | — |
| manage_repository_notification_subscription ~41 tok | 🟠 Write | Manage repository notification subscription. | — |
| create_gist ~27 tok | 🟠 Write | Create a new gist. | — |
| list_gists ~31 tok | 🟢 Read | List gists of the authenticated user. | — |
| update_gist ~28 tok | 🟠 Write | Update an existing gist. | — |
| assign_copilot_to_issue ~34 tok | 🟠 Write | Assign Copilot to work on an issue. | — |
| label_write ~37 tok | 🟠 Write | Add, remove or replace labels on an issue or pull request. | — |
| get_label ~27 tok | 🟢 Read | Get a repository label. | — |
🛡️ セキュリティ評価・品質・コンテキスト監査
- No prompt-injection or hidden-character anomalies detected in tool descriptions
- Streamable HTTP primary endpoint (current 2025-03-26 transport)
- OAuth 2.1 with PKCE S256 enforced
- Official first-party endpoint operated by the vendor
- Manually verified by RemoteMCP.net
🔐 OAuth 2.1 とセキュリティ
- 認証方式
- OAuth 2.1
- 動的クライアント登録(DCR)
- ✅ 対応
- PKCE S256
- ✅ 対応
- Scopes
reporead:orgread:userworkflow- 保護リソースメタデータ
- https://api.githubcopilot.com/.well-known/oauth-protected-resource
📡 公式リモートエンドポイントとトランスポート
リモートエンドポイント https://api.githubcopilot.com/mcp/ は Streamable HTTP(2025-03-26 仕様) を採用。Streamable HTTP は単一の POST エンドポイントで JSON-RPC の双方向通信を完結する現行推奨トランスポートで、npx mcp-remote ブリッジなしに Claude・Cursor・VS Code などへ URL だけでMCP接続できます。
接続前にエンドポイントを オンライン MCP Inspector に貼り付けて initialize / tools/list のハンドシェイクを確認することを推奨します。
🔐 認証・権限フロー
認証方式は OAuth 2.1 です。初回接続時にクライアントが 401 チャレンジを受け取り、WWW-Authenticate ヘッダーから RFC 9728 の保護リソースメタデータを解決。続けて認可サーバー発見(RFC 8414)、動的クライアント登録(DCR)、PKCE S256 によるブラウザ認可が自動で行われます。ブラウザで一度承認するだけで、キーの手動貼り付けは不要です。
🛡️ コンテキスト消費とセキュリティ監査
このサーバーには現在 92 個のツールが登録されており、定義の合計は約 3096 トークン。リクエストごとにモデルのシステムプロンプトへ注入されます。セキュリティ評価は A+(公式運営ソース)。ツール名とスキーマが簡潔なほどコンテキストウィンドウへの「税」は低くなります。feecalculator.app で呼び出しあたりのコストも試算できます。
🧩 主要クライアントへのMCP接続
GitHub MCP について、Cursor / Claude Code / VS Code / ChatGPT / Windsurf / Kiro / Codex / Cline / Gemini など 10 クライアント向けの設定を自動生成しています。ワンクリック deeplink、claude mcp add コマンド、JSON / TOML スニペットから選べます。代表的なツール:get_me、get_teams、get_team_members、search_repositories、search_code など。
📖 GitHub の詳細
GitHub MCP — Remote MCP Server
GitHub's remote MCP is the same backend that powers Copilot's repository tools in VS Code, so coverage is broad: repository search, file contents, issues, pull requests and more. Because it is hosted by GitHub you do not need to run the open-source github-mcp-server binary locally, generate a PAT, or manage scopes yourself — the OAuth 2.1 consent screen handles authorization.
Official GitHub MCP Endpoint & Transport Architecture
- Endpoint URL:
https://api.githubcopilot.com/mcp/ - Transport: Streamable HTTP
Streamable HTTP is the current MCP transport (2025-03-26 spec): a single URL accepts JSON-RPC POSTs and may stream responses over SSE, so one endpoint serves both simple and streaming workloads. GitHub MCP does not publish a separate legacy SSE endpoint, so your client must speak Streamable HTTP.
Authentication, Scopes & Permission Boundaries
GitHub MCP uses OAuth 2.1 — the first request returns a 401 Unauthorized challenge with a WWW-Authenticate header pointing at the authorization metadata. Compliant clients (Cursor, Claude, VS Code, ChatGPT) handle the whole flow — PKCE and Dynamic Client Registration, so no manual client setup is needed — and simply open a browser consent screen.
Of the 5 cataloged tools, 3 are read-only and 2 can write or mutate state (create resources, run SQL, post messages). Grant access only to the accounts and projects you intend agents to act on, and prefer scoped credentials or a dedicated workspace where the provider supports them.
Common Troubleshooting & Connection Tips
- 401 Unauthorized on connect — that's expected; the server is OAuth-protected. Let your client complete the browser consent flow, or inspect the endpoint in our OAuth debugger to see the exact
WWW-Authenticatechallenge. - "Session expired" / stale
Mcp-Session-Id— just re-sendinitialize; stateless clients can ignore session headers entirely. - Requires a GitHub account; a Copilot subscription is not required for the public preview endpoint.
- Toolsets can be restricted by passing a custom configuration if you only want read-only repository access.
🚀 GitHub MCP リモートMCPへの接続方法
- リモートエンドポイントを取得 — 公式エンドポイント https://api.githubcopilot.com/mcp/ をコピーします。
- クライアント設定に追加 — Cursor の mcp.json / Claude Code CLI / 各クライアントに URLを追加します(下記クライアント別ガイド参照)。
- 認可して検証 — ブラウザで OAuth 認可を完了後、当サイトの Inspector で initialize と tools/list を実行して接続を確認します。
🔌 GitHub × クライアント別MCP接続ガイド
❓ よくある質問
GitHub MCP のリモートMCPサーバーは公式ですか?
このエントリは「公式運営」と表示されています。エンドポイントは GitHub 公式が運営しています。掲載エンドポイントはすべて実際の MCP initialize ハンドシェイクで検証済みです。
Claude / Cursor で GitHub MCP にMCP接続するには?
リモートエンドポイント https://api.githubcopilot.com/mcp/ をコピーします。Claude Code では claude mcp add --transport http github https://api.githubcopilot.com/mcp/ を実行。Cursor ではワンクリック deeplink か ~/.cursor/mcp.json に { "mcpServers": { "github": { "url": "https://api.githubcopilot.com/mcp/" } } } を追加します。初回呼び出し時に OAuth 2.1 の認可画面が自動で開きます。
接続時に 401 が返る/キーを要求される場合は?
401 は OAuth 2.1 による正常なチャレンジです。クライアントが RFC 9728 メタデータに従って自動的に認可を行います。認可が途中で止まる場合は OAuth 2.1 Debugger で PRM / DCR / CORS の設定を確認してください。
ローカル stdio MCP とリモート MCP の違いは?
ローカル MCP は npx / uvx で起動する stdio 子プロセスで、ローカルランタイムが必要で API キーを平文で設定ファイルに書きます。リモート MCP は GitHub がホストする HTTPS エンドポイントで、インストール不要・OAuth 2.1 対応・同一 URL をデスクトップとモバイルで共用できます。詳しくは ローカル vs リモート MCP 比較 をご覧ください。