PolarHub
  • Agents
  • MCP Servers
  • Skills
  • PolarBear
PolarHub © 2026
MCP Serversversion-controlGitHub-MCP代码分析工具
返回「version-control」

GitHub-MCP代码分析工具

modelscope·@AsyncFuncAI/github-chat-mcp

version-control0下载LocalModelScope

简介

一种MCP服务器,它通过GitHub聊天API启用对GitHub存储库的分析和查询,允许用户对存储库进行索引并对其代码、架构和技术堆栈提出问题。

MCP Server 详情

来自 ModelScope 索引

GitHub Chat MCP

一个用于通过 GitHub Chat API 分析和查询 GitHub 仓库的模型上下文协议 (MCP)。官方网站: https://github-chat.com

安装

# Install with pip
pip install github-chat-mcp

# Or install with the newer uv package manager
uv install github-chat-mcp
  1. 开始使用 Claude!

示例提示:

  • "使用 github-chat-mcp 分析 React 仓库"
  • "用 github-chat-mcp 索引 TypeScript 仓库并询问其架构"

GitHub Chat MCP 服务器

smithery 徽章

设置说明

在开始之前,请确保您拥有 GitHub Chat API 密钥。这是使用该服务所必需的。

首先安装 uv。

MacOS/Linux:

curl -LsSf https://astral.sh/uv/install.sh | sh

Windows:

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

使用 Cursor 设置(推荐)

在 mcp.json 中:

{
  "mcpServers": {
    "github-chat": {
      "command": "uvx",
      "args": [
        "github-chat-mcp"
      ]
    }
  }
}

如上所述,由于是免费版本,因此不需要环境变量。

使用 Claude Desktop 设置

# claude_desktop_config.json
# Can find location through:
# Hamburger Menu -> File -> Settings -> Developer -> Edit Config
# Must perform: brew install uv
{
  "mcpServers": {
    "github-chat": {
      "command": "uvx",
      "args": ["github-chat-mcp"],
      "env": {
      }
    }
  }
}

通过 Smithery 安装

您可以自动通过 Smithery 安装适用于 Claude Desktop 的 GitHub Chat:

npx -y @smithery/cli install github-chat-mcp --client claude

使用 Claude 进行 GitHub Chat

  1. 首先索引一个 GitHub 仓库: "索引位于 https://github.com/username/repo 的 GitHub 仓库"

  2. 然后询问关于该仓库的问题: "这个仓库中使用的核心技术栈是什么?"

调试

运行:

npx @modelcontextprotocol/inspector uvx github-chat-mcp

本地/开发设置说明

克隆仓库

git clone https://github.com/yourusername/github-chat-mcp.git

安装依赖项

首先安装 uv。

MacOS/Linux:

curl -LsSf https://astral.sh/uv/install.sh | sh

Windows:

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

然后安装 MCP 服务器依赖项:

cd github-chat-mcp

# Create virtual environment and activate it
uv venv

source .venv/bin/activate # MacOS/Linux
# OR
.venv/Scripts/activate # Windows

# Install dependencies
uv sync

使用 Claude Desktop 设置

使用 MCP CLI SDK

# `pip install mcp[cli]` if you haven't
mcp install /ABSOLUTE/PATH/TO/PARENT/FOLDER/github-chat-mcp/src/github_chat_mcp/server.py -v "GITHUB_API_KEY=API_KEY_HERE"

手动设置

# claude_desktop_config.json
# Can find location through:
# Hamburger Menu -> File -> Settings -> Developer -> Edit Config
{
  "mcpServers": {
    "github-chat": {
      "command": "uv",
      "args": [
        "--directory",
        "/ABSOLUTE/PATH/TO/PARENT/FOLDER/github-chat-mcp",
        "run",
        "github-chat-mcp"
      ],
      "env": {
      }
    }
  }
}

使用 Claude 进行 GitHub Chat

  1. 首先索引一个 GitHub 仓库: "索引位于 https://github.com/username/repo 的 GitHub 仓库"

  2. 然后询问关于该仓库的问题: "这个仓库中使用的核心技术栈是什么?"

调试

运行:

# If mcp cli installed (`pip install mcp[cli]`)
mcp dev /ABSOLUTE/PATH/TO/PARENT/FOLDER/github-chat-mcp/src/github_chat_mcp/server.py

# If not
npx @modelcontextprotocol/inspector \
      uv \
      --directory /ABSOLUTE/PATH/TO/PARENT/FOLDER/github-chat-mcp \
      run \
      github-chat-mcp

然后访问 http://localhost:5173 上的 MCP 检查器。您可能需要在检查器中的环境变量下添加您的 GitHub API 密钥,键名为 GITHUB_API_KEY。

注意事项

  • 日志级别可以通过 FASTMCP_LOG_LEVEL 环境变量进行调整(例如 FASTMCP_LOG_LEVEL="ERROR")
  • 该 MCP 服务器提供了两个主要工具:
    1. 仓库索引 - 索引并分析一个 GitHub 仓库
    2. 仓库查询 - 对已索引的仓库提问

相关 MCP Servers(来自「version-control」)

代码上下文MCP

一个MCP服务器,它在本地git仓库上提供语义搜索功能,使用户能够克隆仓库、处理分支并通过矢量化代码块搜索代码。

@fkesheh/code-context-mcp

代码索引MCP

一种模型上下文协议(MCP)服务器,可以帮助大型语言模型以最少的设置来索引、搜索和分析代码库。

@johnhuang316/code-index-mcp

塞琳娜编码代理

一个功能齐全的编码代理,它使用符号操作(由语言服务器启用),即使在大型代码库中也能很好地工作。本质上是 Cursor 和 Windsurf Agents、Cline、Roo Code 等的免费替代品。

@oraios/serena

虚幻分析器

为虚幻引擎代码库提供深度源代码分析,使人工智能助手能够理解C++类结构、搜索代码和分析子系统。

@ayeletstudioindia/unreal-analyzer-mcp

AI简历助手

一个通过分析你的编程项目、自动提取技能并生成专业描述来更新你的JSON简历,从而增强AI助手功能的服务器。

@jsonresume/mcp

Git MCP协议服务器

一种模型上下文协议服务器,使大型语言模型能够通过强大的API与Git仓库进行交互,支持仓库初始化、克隆、文件暂存、提交和分支管理等操作。

@cyanheads/git-mcp-server

自动安装

点击按钮会唤起 PolarBear 客户端,并把当前 MCP Server 的 Markdown 详情文档地址传给客户端。

/api/mcps/asyncfuncai-github-chat-mcp/markdown
打开 PolarBear 安装查看 Markdown 文档

手动安装

在 PolarBear 或其他支持 MCP 的客户端中,新建 MCP Server,并参考下方来源或安装提示配置。

# Install with pip pip install github-chat-mcp # Or install with the newer uv package manager uv install github-chat-mcp

基本信息

分类
version-control / developer-tools
运行方式
No
许可证
MIT License
详情文件
asyncfuncai-github-chat-mcp.md