GitHub Chat MCP
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开始与 Claude 一起使用它!
提示示例:
“使用 github-chat-mcp 分析 React 仓库”
“使用 github-chat-mcp 索引 TypeScript 存储库并询问其架构”
GitHub Chat MCP 服务器
Related MCP server: MCP GitHub Reader
设置说明
首先,请确保你拥有 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 聊天
首先索引 GitHub 存储库:“在https://github.com/username/repo处索引 GitHub 存储库”
然后询问有关存储库的问题:“这个存储库使用的核心技术堆栈是什么?”
调试
跑步:
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 聊天
首先索引 GitHub 存储库:“在https://github.com/username/repo处索引 GitHub 存储库”
然后询问有关存储库的问题:“这个存储库使用的核心技术堆栈是什么?”
调试
跑步:
# 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 服务器提供了两个主要工具:
存储库索引 - 索引和分析 GitHub 存储库
存储库查询 - 询问有关索引存储库的问题
Available Tools
2 toolsindex_repositoryA
Index a GitHub repository to analyze its codebase. This must be done before asking questions about the repository.
Inputs: repo_url (required).
query_repositoryB
Ask questions about a GitHub repository and receive detailed AI responses. The repository must be indexed first.
Inputs: repo_url (required), question (required), conversation_history.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 2 tools
The two tools have clearly distinct purposes: index_repository is for preparing the repository for analysis, while query_repository is for asking questions about the indexed repository. There is no overlap or ambiguity between them.
Both tools follow a consistent verb_noun pattern (index_repository and query_repository), using the same naming convention and structure throughout the set.
With only 2 tools, the server feels too thin for its apparent purpose of GitHub repository analysis. It lacks essential operations like listing repositories, managing indexes, or handling errors, which limits functionality and could cause agent failures.
The tool surface is severely incomplete for GitHub repository analysis. It covers only indexing and querying, missing core operations such as repository discovery, index management, or error handling, leading to significant gaps in workflow coverage.
Maintenance
Related MCP Connectors
An MCP server that gives your AI access to the source code and docs of all public github repos
Create, deploy, and operate MCP servers directly from your GitHub repositories.
Driflyte MCP server which lets AI assistants query topic-specific knowledge from web and GitHub.
A MCP server built for developers enabling Git based project management with project and personal…
Related MCP Servers
- AlicenseCqualityDmaintenanceAn MCP server that analyzes local or remote GitHub repositories, providing intelligent code context and structure to AI coding assistants.1013MIT
- AlicenseDqualityDmaintenanceA lightweight MCP server for bringing GitHub repositories into context for large language models, enabling repository analysis, file access, and search without local cloning.47 npm6Apache 2.0
- AlicenseBqualityCmaintenanceAn MCP server that provides tools for interacting with the GitHub API, enabling AI assistants to query repositories, pull requests, issues, commits, users, and more.20MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables GitHub API operations such as managing repositories, issues, and pull requests through natural language.Apache 2.0