github-mcp-server vs gh-mcp
并排对比,帮你在这两个 MCP server 之间做选择。
github-mcp-server by github | gh-mcp by shuymn | |
|---|---|---|
| Stars | ★ 29,881 | ★ 29 |
| 30天用量 | — | — |
| 综合分 | 64 | 44 |
| 官方 | — | — |
| 分类 | GitHub 集成开发者工具效率工具 | 开发者工具GitHub 集成AI / LLM 工具 |
| 实现语言 | Go | Go |
| 最近提交 | 本月 | 本月 |
github-mcp-server · 概述
GitHub 官方 MCP 服务器将 AI 工具连接到 GitHub 平台,实现仓库管理、问题自动化和代码分析。
gh-mcp · 概述
GitHub CLI 扩展,使用现有的 gh 身份验证运行 github-mcp-server,无需手动设置 PAT。
github-mcp-server · 使用场景
- 在 AI 助手中浏览和分析代码仓库
- 自动化创建和管理 GitHub 问题与拉取请求
- 监控和分析 CI/CD 管道和 GitHub Actions 工作流
gh-mcp · 使用场景
- 将 GitHub 访问与支持 MCP 的 AI 编码助手集成
- 无需管理单独的 PAT 即可访问 GitHub 仓库和问题
- 使 Claude Code 或其他 MCP 客户端能够与 GitHub 资源交互
github-mcp-server · 安装
安装选项
远程安装(推荐)
添加到您的 MCP 主机配置(例如 VS Code 1.101+)中:
{
"servers": {
"github": {
"type": "http",
"url": "https://api.githubcopilot.com/mcp/"
}
}
}对于 Claude Desktop,添加到您的 claude_desktop_config.json 中:
{
"mcpServers": {
"github": {
"command": "http",
"args": ["https://api.githubcopilot.com/mcp/"]
}
}
}本地安装
使用 Docker:
docker run -i --rm -e GITHUB_PERSONAL_ACCESS_TOKEN=your_token ghcr.io/github/github-mcp-server或者克隆仓库后从源码安装。
gh-mcp · 安装
安装
gh extension install shuymn/gh-mcpClaude Desktop 配置
将以下内容添加到您的 Claude Desktop 配置中:
{
"github": {
"command": "gh",
"args": ["mcp"]
}
}使用环境变量:
{
"github": {
"command": "gh",
"args": ["mcp"],
"env": {
"GITHUB_TOOLSETS": "repos,issues,pull_requests",
"GITHUB_READ_ONLY": "1"
}
}
}