MCP Catalogs
首页

octocode-mcp vs gh-mcp

并排对比,帮你在这两个 MCP server 之间做选择。

octocode-mcp
by bgauryy
gh-mcp
by shuymn
Stars★ 832★ 29
30天用量
综合分5244
官方
分类
开发者工具AI / LLM 工具GitHub 集成
开发者工具GitHub 集成AI / LLM 工具
实现语言TypeScriptGo
最近提交本月本月

octocode-mcp · 概述

MCP 服务器用于在 GitHub/GitLab 和本地仓库中进行语义代码研究,具有高级 LSP 集成。

gh-mcp · 概述

GitHub CLI 扩展,使用现有的 gh 身份验证运行 github-mcp-server,无需手动设置 PAT。

octocode-mcp · 使用场景

  • 跨公共和私有仓库进行代码探索和模式匹配
  • 使用 AST 和依赖图进行高级代码分析和文档生成
  • 使用 LSP 流跟踪在多个领域进行拉取请求审查

gh-mcp · 使用场景

  • 将 GitHub 访问与支持 MCP 的 AI 编码助手集成
  • 无需管理单独的 PAT 即可访问 GitHub 仓库和问题
  • 使 Claude Code 或其他 MCP 客户端能够与 GitHub 资源交互

octocode-mcp · 安装

安装

推荐方式:Octocode CLI

npx octocode-cli install

手动 MCP 配置

添加到您的 MCP 配置文件中:

{
  "mcpServers": {
    "octocode": {
      "command": "npx",
      "args": ["octocode-mcp@latest"]
    }
  }
}

gh-mcp · 安装

安装

gh extension install shuymn/gh-mcp

Claude Desktop 配置

将以下内容添加到您的 Claude Desktop 配置中:

{
  "github": {
    "command": "gh",
    "args": ["mcp"]
  }
}

使用环境变量:

{
  "github": {
    "command": "gh",
    "args": ["mcp"],
    "env": {
      "GITHUB_TOOLSETS": "repos,issues,pull_requests",
      "GITHUB_READ_ONLY": "1"
    }
  }
}
对比内容由 README + GitHub 公开数据自动生成,定期更新。