简介
GitHub MCP 是 GitHub 的官方 MCP 服务器,GitHub 5,000+ stars。AI Agent 可管理仓库、Issue、PR、代码搜索和 Actions。适合需要 AI 辅助 GitHub 工作流的开发者。
Official GitHub MCP server that gives AI agents access to repos, issues, PRs, code search, and Actions. Create branches, review PRs, and manage projects via natural language. 5,000+ stars.
这里应该同时让用户和 Agent 知道第一步该复制什么、安装什么、落到哪里。
将以下配置添加到 .mcp.json:
{
"mcpServers": {
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": { "GITHUB_TOKEN": "ghp_你的令牌" }
}
}
}GitHub MCP 是 GitHub 的官方 MCP 服务器,GitHub 5,000+ stars。AI Agent 可管理仓库、Issue、PR、代码搜索和 Actions。适合需要 AI 辅助 GitHub 工作流的开发者。
Created by Anthropic. Licensed under MIT.
server-github — ⭐ 5,000+