GitHub MCP Server
GitHub 官方 MCP Server 把你的 GitHub 工作流接进 AI:查 issue、看 PR、读代码、触发 Actions,都能用自然语言让 AI 代劳。
比如「看看这个仓库最近有哪些没人回的 issue,帮我起草回复」——AI 会调用这个 server 拉数据、按你的意思处理。
它能帮你做什么
让 AI 直接操作你的 GitHub——读代码、开 issue、看 PR、查提交历史,把「去 GitHub 上找一下」这类活交给 AI。
能力
- 读取仓库文件与代码
- 创建 / 评论 issue 和 PR
- 查提交历史、搜索代码
装好后,试试这样问 AI
在 Claude / Cursor 等接了这个 server 的客户端里直接说
- ›“看看这个仓库最近有哪些没合并的 PR,各是干嘛的”
- ›“根据这个 bug 描述,在 issue 里帮我起个草稿”
安装 / 接入
# No npm package — install from source.
# See the repo's README for the exact command:
# https://github.com/github/github-mcp-server以官方 README 为准;env 与参数各 server 不同。
为什么用它
适合:想用 AI 管理仓库、加速代码评审和 issue 处理的团队与个人开发者。
这是 GitHub 官方出的 server,可靠性和维护有保障,下方是它在本站的实测健康数据。
相似 / 替代 server
@upstash/context7-mcp
Context7 Platform -- Up-to-date code documentation for LLMs and AI code editors
figma-developer-mcp
MCP server to provide Figma layout information to AI coding agents like Cursor
sentry-mcp
An MCP server for interacting with Sentry via LLMs.
terraform-mcp-server
The Terraform MCP Server provides seamless integration with Terraform ecosystem,
常见问题
需要 GitHub token 吗?
需要。它通过你的 personal access token 访问仓库,权限范围由 token 决定,建议按最小权限原则配置。
能操作私有仓库吗?
能,只要你的 token 有对应私有仓库的权限。