octocode-mcp vs github-mcp-server
并排对比,帮你在这两个 MCP server 之间做选择。
octocode-mcp by bgauryy | github-mcp-server by github | |
|---|---|---|
| Stars | ★ 832 | ★ 29,881 |
| 30天用量 | — | — |
| 综合分 | 52 | 64 |
| 官方 | — | — |
| 分类 | 开发者工具AI / LLM 工具GitHub 集成 | GitHub 集成开发者工具效率工具 |
| 实现语言 | TypeScript | Go |
| 最近提交 | 本月 | 本月 |
octocode-mcp · 概述
MCP 服务器用于在 GitHub/GitLab 和本地仓库中进行语义代码研究,具有高级 LSP 集成。
github-mcp-server · 概述
GitHub 官方 MCP 服务器将 AI 工具连接到 GitHub 平台,实现仓库管理、问题自动化和代码分析。
octocode-mcp · 使用场景
- 跨公共和私有仓库进行代码探索和模式匹配
- 使用 AST 和依赖图进行高级代码分析和文档生成
- 使用 LSP 流跟踪在多个领域进行拉取请求审查
github-mcp-server · 使用场景
- 在 AI 助手中浏览和分析代码仓库
- 自动化创建和管理 GitHub 问题与拉取请求
- 监控和分析 CI/CD 管道和 GitHub Actions 工作流
octocode-mcp · 安装
安装
推荐方式:Octocode CLI
npx octocode-cli install手动 MCP 配置
添加到您的 MCP 配置文件中:
{
"mcpServers": {
"octocode": {
"command": "npx",
"args": ["octocode-mcp@latest"]
}
}
}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或者克隆仓库后从源码安装。