GitHub Chat MCP

Integrations

  • Enables analyzing and querying GitHub repositories, including indexing repository content and asking questions about code architecture and tech stack

GitHub 聊天 MCP

一个模型上下文协议 (MCP),用于使用 GitHub Chat API 分析和查询 GitHub 代码库。官方网站: 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 服务器

设置说明

首先,请确保你拥有 GitHub Chat API 密钥。这是使用该服务所必需的。

首先安装 uv。

MacOS/Linux:

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

视窗:

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

使用光标设置(推荐)

在 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 自动安装 GitHub Chat for Claude Desktop:

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

使用 GitHub 与 Claude 聊天

  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

视窗:

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": { } } } }

使用 GitHub 与 Claude 聊天

  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 Inspector。您可能需要在检查器的环境变量中添加您的 GitHub API 密钥,路径为GITHUB_API_KEY

笔记

  • 可以通过FASTMCP_LOG_LEVEL环境变量调整日志记录级别(例如FASTMCP_LOG_LEVEL="ERROR"
  • 该 MCP 服务器提供了两个主要工具:
    1. 存储库索引 - 索引和分析 GitHub 存储库
    2. 存储库查询 - 询问有关索引存储库的问题

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

MCP 服务器可以通过 GitHub Chat API 分析和查询 GitHub 存储库,允许用户索引存储库并询问有关其代码、架构和技术堆栈的问题。

  1. Installation
    1. GitHub Chat MCP server
      1. Setup Instructions
      2. Local/Dev Setup Instructions
    2. Notes

      Related MCP Servers

      • A
        security
        A
        license
        A
        quality
        MCP Server for the GitHub API, enabling file operations, repository management, search functionality, and more.
        Last updated -
        17
        36,796
        42,199
        JavaScript
        MIT License
      • A
        security
        F
        license
        A
        quality
        MCP Server for the GitHub API, providing features for file operations, repository management, and advanced search, with automatic branch creation and comprehensive error handling.
        Last updated -
        18
        4
        1
        TypeScript
      • A
        security
        A
        license
        A
        quality
        An MCP server for gitingest. It allows MCP clients like Claude Desktop, Cursor, Cline etc to quickly extract information about Github repositories including repository summaries, project directory structure, file contents, etc
        Last updated -
        3
        8
        Python
        MIT License
        • Apple
      • -
        security
        -
        license
        -
        quality
        An MCP server that allows Claude and other MCP-compatible LLMs to interact with the GitHub API, supporting features like creating issues, getting repository information, listing issues, and searching repositories.
        Last updated -
        TypeScript

      View all related MCP servers

      ID: rp7oni38yh