GitHub MCP 远程 MCP 服务器 – 官方端点、工具列表与一键连接指南

🛡️ Official✓ VerifiedStreamable HTTPOAuth 2.1🛡️ A+~3096 tok92 tools·Online310ms·30 天在线率: 100%·上次拨测 8 分钟前

GitHub 官方远程 MCP 服务器,托管于 api.githubcopilot.com。让 AI 代理直接搜索仓库、读取文件内容、管理 Issue 并创建 Pull Request。

本页收录其官方远程端点、传输协议、认证方式、全部工具 Schema、实时可用性拨测与安全审计结果,并为 Cursor、Claude Code、VS Code、ChatGPT 等 10 大客户端提供一键接入指引。

https://api.githubcopilot.com/mcp/
提供方
GitHub ↗
分类
🛠️ 开发者工具与 Git
Streamable HTTPhttps://api.githubcopilot.com/mcp/
Install in Cursor →

Or add to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "github": {
      "url": "https://api.githubcopilot.com/mcp/"
    }
  }
}

🧰 GitHub MCP 工具与 Schema(92)

ToolSafetyDescriptionParameters
get_me
~32 tok
🟢 ReadGet details of the authenticated GitHub user.—
get_teams
~36 tok
🟢 ReadGet details of the teams the authenticated user belongs to.—
get_team_members
~33 tok
🟢 ReadGet member usernames of a specific team.—
search_repositories
~40 tok
🟢 ReadSearch GitHub repositories by keyword, language and qualifiers.—
search_code
~32 tok
🟢 ReadSearch code across GitHub repositories.—
search_issues
~35 tok
🟢 ReadSearch issues across GitHub with qualifier support.—
search_pull_requests
~33 tok
🟢 ReadSearch pull requests across GitHub.—
search_users
~27 tok
🟢 ReadSearch GitHub users.—
search_orgs
~29 tok
🟢 ReadSearch GitHub organizations.—
get_file_contents
~38 tok
🟢 ReadRead the contents of a file or directory from a repository.—
create_or_update_file
~36 tok
🟠 WriteCreate or update a single file in a repository.—
push_files
~36 tok
🟠 WritePush multiple files in a single commit to a repository.—
delete_file
~30 tok
🔴 DestructiveDelete a file from a repository.—
create_repository
~35 tok
🟠 WriteCreate a new GitHub repository in your account.—
fork_repository
~36 tok
🟠 WriteFork a repository to your account or an organization.—
create_branch
~32 tok
🟠 WriteCreate a new branch in a repository.—
list_branches
~30 tok
🟢 ReadList branches in a repository.—
get_commit
~28 tok
🟢 ReadGet details of a commit.—
list_commits
~33 tok
🟢 ReadList commits of a branch in a repository.—
list_tags
~29 tok
🟢 ReadList git tags in a repository.—
get_tag
~27 tok
🟢 ReadGet details of a git tag.—
list_releases
~30 tok
🟢 ReadList releases in a repository.—
get_latest_release
~34 tok
🟢 ReadGet the latest release in a repository.—
get_release_by_tag
~30 tok
🟢 ReadGet a release by tag name.—
list_issues
~32 tok
🟢 ReadList issues in a repository with filters.—
get_issue
~30 tok
🟢 ReadGet details of a specific issue.—
get_issue_comments
~30 tok
🟢 ReadList comments on an issue.—
create_issue
~31 tok
🟠 WriteOpen a new issue in a repository.—
update_issue
~36 tok
🟠 WriteUpdate an existing issue's title, body, state or labels.—
add_issue_comment
~30 tok
🟠 WriteAdd a comment to an issue.—
list_issue_types
~36 tok
🟢 ReadList available issue types for the repository owner.—
list_sub_issues
~30 tok
🟢 ReadList sub-issues of an issue.—
add_sub_issue
~32 tok
🟠 WriteAdd an existing issue as a sub-issue.—
remove_sub_issue
~33 tok
🟠 WriteRemove a sub-issue from a parent issue.—
reprioritize_sub_issue
~34 tok
🟠 WriteReorder a sub-issue inside its parent.—
list_pull_requests
~33 tok
🟢 ReadList pull requests in a repository.—
get_pull_request
~31 tok
🟢 ReadGet details of a pull request.—
get_pull_request_files
~34 tok
🟢 ReadList files changed by a pull request.—
get_pull_request_diff
~32 tok
🟢 ReadGet the diff of a pull request.—
get_pull_request_status
~33 tok
🟢 ReadGet CI status of a pull request.—
get_pull_request_reviews
~33 tok
🟢 ReadList reviews on a pull request.—
get_pull_request_review_comments
~37 tok
🟢 ReadList review comments on a pull request.—
get_pull_request_comments
~34 tok
🟢 ReadList comments on a pull request.—
create_pull_request
~31 tok
🟠 WriteCreate a new pull request.—
update_pull_request
~35 tok
🟠 WriteUpdate a pull request's title, body or state.—
update_pull_request_branch
~37 tok
🟠 WriteUpdate a PR head branch with the base branch.—
merge_pull_request
~29 tok
🔴 DestructiveMerge a pull request.—
create_pending_pull_request_review
~38 tok
🟠 WriteStart a pending review on a pull request.—
add_comment_to_pending_review
~38 tok
🟠 WriteAdd a comment to a pending pull request review.—
submit_pending_pull_request_review
~37 tok
🟠 WriteSubmit a pending pull request review.—
delete_pending_pull_request_review
~37 tok
🔴 DestructiveDelete a pending pull request review.—
create_and_submit_pull_request_review
~42 tok
🟠 WriteCreate and submit a pull request review in one call.—
request_copilot_review
~37 tok
🟠 WriteRequest a Copilot code review on a pull request.—
list_discussions
~36 tok
🟢 ReadList discussions in a repository or organization.—
get_discussion
~30 tok
🟢 ReadGet a discussion by number.—
get_discussion_comments
~33 tok
🟢 ReadList comments on a discussion.—
list_discussion_categories
~33 tok
🟢 ReadList discussion categories.—
list_workflows
~34 tok
🟢 ReadList GitHub Actions workflows in a repository.—
run_workflow
~30 tok
🟠 WriteTrigger a workflow_dispatch run.—
list_workflow_runs
~32 tok
🟢 ReadList workflow runs with filters.—
get_workflow_run
~31 tok
🟢 ReadGet details of a workflow run.—
rerun_workflow_run
~31 tok
🟠 WriteRe-run an entire workflow run.—
rerun_failed_jobs
~34 tok
🟠 WriteRe-run only failed jobs of a workflow run.—
cancel_workflow_run
~32 tok
🔴 DestructiveCancel a running workflow run.—
list_workflow_jobs
~31 tok
🟢 ReadList jobs of a workflow run.—
get_job_logs
~30 tok
🟢 ReadDownload logs of a workflow job.—
get_workflow_run_logs
~33 tok
🟢 ReadDownload logs of a workflow run.—
get_workflow_run_usage
~34 tok
🟢 ReadGet usage metrics of a workflow run.—
list_workflow_run_artifacts
~37 tok
🟢 ReadList artifacts produced by a workflow run.—
download_workflow_run_artifact
~35 tok
🟢 ReadDownload a workflow run artifact.—
list_code_scanning_alerts
~36 tok
🟢 ReadList code scanning alerts of a repository.—
get_code_scanning_alert
~34 tok
🟢 ReadGet details of a code scanning alert.—
list_secret_scanning_alerts
~37 tok
🟢 ReadList secret scanning alerts of a repository.—
get_secret_scanning_alert
~35 tok
🟢 ReadGet details of a secret scanning alert.—
list_dependabot_alerts
~35 tok
🟢 ReadList Dependabot alerts of a repository.—
get_dependabot_alert
~33 tok
🟢 ReadGet details of a Dependabot alert.—
list_repository_security_advisories
~39 tok
🟢 ReadList repository-level security advisories.—
list_org_repository_security_advisories
~40 tok
🟢 ReadList security advisories for an organization.—
list_global_security_advisories
~37 tok
🟢 ReadList GitHub global security advisories.—
get_global_security_advisory
~37 tok
🟢 ReadGet details of a global security advisory.—
list_notifications
~30 tok
🟢 ReadList GitHub notifications.—
get_notification_details
~35 tok
🟢 ReadGet details of a notification thread.—
dismiss_notification
~32 tok
🟠 WriteDismiss a notification thread.—
mark_all_notifications_read
~34 tok
🟠 WriteMark all notifications as read.—
manage_notification_subscription
~38 tok
🟠 WriteManage a notification thread subscription.—
manage_repository_notification_subscription
~41 tok
🟠 WriteManage repository notification subscription.—
create_gist
~27 tok
🟠 WriteCreate a new gist.—
list_gists
~31 tok
🟢 ReadList gists of the authenticated user.—
update_gist
~28 tok
🟠 WriteUpdate an existing gist.—
assign_copilot_to_issue
~34 tok
🟠 WriteAssign Copilot to work on an issue.—
label_write
~37 tok
🟠 WriteAdd, remove or replace labels on an issue or pull request.—
get_label
~27 tok
🟢 ReadGet a repository label.—

🛡️ 安全评级、质量与上下文 Token 审计

🛡️ 安全评级 A+上下文 Token 开销: ~3096 tokens(该服务端 92 个工具定义注入每次系统提示词)

估算单次调用 Token 成本 →

  • 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
审计 OAuth 2.1 配置 →

📡 官方远程端点与传输协议

远程端点 https://api.githubcopilot.com/mcp/ 采用 Streamable HTTP(流式 HTTP,2025-03-26 规范)。Streamable HTTP 在单一 POST 端点上完成 JSON-RPC 双向交互,是当前 MCP 规范推荐的传输方式,可直接被 Claude、Cursor、VS Code 等客户端以 URL 形式接入,无需 npx mcp-remote 桥接。

接入前可将端点粘贴至本站 在线 MCP Inspector 实测 initialize / tools/list 握手,确认真实协议行为。

🔐 认证与权限机制

认证方式为 OAuth 2.1。首次连接时客户端会收到 401 挑战并从 WWW-Authenticate 头解析 RFC 9728 受保护资源元数据,随后自动完成授权服务器发现(RFC 8414)、动态客户端注册(DCR)与 PKCE S256 浏览器授权流程——你只需在浏览器中点击一次授权,无需手工粘贴任何密钥。

🛡️ 上下文开销与安全审计

该服务端当前登记 92 个工具,全部定义合计约 3096 tokens,会在每次请求时注入模型系统提示词。安全评级为 A+,官方直营来源。工具名与 Schema 越精简,对上下文窗口的"税"越低;可用 feecalculator.app 估算每次调用的边际成本。

🧩 主流客户端快速接入

本站为 GitHub MCP 生成了 Cursor / Claude Code / VS Code / ChatGPT / Windsurf / Kiro / Codex / Cline / Gemini 等 10 大客户端的专属配置——包括一键 deeplink、claude mcp add 命令与 JSON/TOML 片段。下方选择你的客户端即可查看 1 分钟接入步骤。代表性工具包括 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-Authenticate challenge.
  • "Session expired" / stale Mcp-Session-Id — just re-send initialize; 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

  1. 获取远程端点 — 复制官方端点 https://api.githubcopilot.com/mcp/。
  2. 写入客户端配置 — 在 Cursor 的 mcp.json / Claude Code CLI / 其他客户端中添加该 URL(见下方分客户端指南)。
  3. 授权并验证 — 完成浏览器 OAuth 授权后,在本站 Inspector 中运行 initialize 与 tools/list 验证连通性。

🔌 GitHub × 各客户端连接指南

❓ 常见问题

GitHub MCP 远程 MCP 服务器是官方提供的吗?

本条目标记为「官方直营」。端点由 GitHub 官方运营,所有收录端点均经过真实 MCP initialize 握手验证。

如何在 Claude / Cursor 中连接 GitHub 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 子进程,依赖本地运行时且密钥以明文写入配置文件;远程 MCP 是 GitHub 托管的 HTTPS 端点,免安装、支持 OAuth 2.1 授权流,且同一端点可跨桌面与移动端复用。详见 本地 vs 远程 MCP 对比。

🔗 同类远程 MCP 服务端