GitHub リモートMCPを Claude Code にMCP接続する方法(設定手順)
GitHub のリモートMCPサーバーを Claude Code に約1分でMCP接続。OAuth / 401 の問題は先に OAuth 2.1 デバッガーで確認できます。
Streamable HTTPhttps://api.githubcopilot.com/mcp/
Install in Cursor →
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/
Install in VS Code →
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/"
}
}
}接続手順
- 追加コマンドを実行 —
claude mcp add --transport http githubhttps://api.githubcopilot.com/mcp/`` を実行します。 - 認証を完了 — 初回呼び出し時に GitHub の OAuth 認可画面が開きます。許可するとツールが有効になります。Claude Code 内で
/mcpを実行すると OAuth フローが開始されます。 - 状態を確認 —
claude mcp listで接続済みと表示されれば成功です。OAuth コールバックが失敗する場合はclaude mcp remove githubで削除して再追加し、ブラウザからコールバック URL へ到達できるか確認してください。オンライン Inspector にhttps://api.githubcopilot.com/mcp/を貼り付け、initialize と tools/list を実行して接続を確認します。
🧰 ツール一覧(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. | — |