GitHub Chat MCP
一个 MCP 服务器,它通过 GitHub Chat API 实现对 GitHub 仓库的分析和查询,允许用户索引仓库并询问关于其代码、架构和技术栈的问题。
Tools
index_repository
Index a GitHub repository to analyze its codebase. This must be done before asking questions about the repository.
query_repository
Ask questions about a GitHub repository and receive detailed AI responses. The repository must be indexed first.
README
GitHub Chat MCP
一个用于分析和查询 GitHub 仓库的 Model Context Protocol (MCP),它使用 GitHub Chat API。
安装
# 使用 pip 安装
pip install github-chat-mcp
# 或者使用更新的 uv 包管理器安装
uv install github-chat-mcp
- 开始与 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
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
# 可以通过以下方式找到位置:
# 汉堡菜单 -> 文件 -> 设置 -> 开发者 -> 编辑配置
{
"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
将 GitHub Chat 与 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
Windows:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
然后安装 MCP 服务器依赖项:
cd github-chat-mcp
# 创建虚拟环境并激活它
uv venv
source .venv/bin/activate # MacOS/Linux
# OR
.venv/Scripts/activate # Windows
# 安装依赖
uv sync
使用 Claude Desktop 设置
使用 MCP CLI SDK
# 如果您还没有安装,请运行 `pip install mcp[cli]`
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
# 可以通过以下方式找到位置:
# 汉堡菜单 -> 文件 -> 设置 -> 开发者 -> 编辑配置
{
"mcpServers": {
"github-chat": {
"command": "uv",
"args": [
"--directory",
"/ABSOLUTE/PATH/TO/PARENT/FOLDER/github-chat-mcp",
"run",
"github-chat-mcp"
],
"env": {
}
}
}
}
将 GitHub Chat 与 Claude 结合使用
-
首先索引一个 GitHub 仓库: "索引位于 https://github.com/username/repo 的 GitHub 仓库"
-
然后询问有关该仓库的问题: "此仓库中使用的核心技术栈是什么?"
调试
运行:
# 如果安装了 mcp cli (`pip install mcp[cli]`)
mcp dev /ABSOLUTE/PATH/TO/PARENT/FOLDER/github-chat-mcp/src/github_chat_mcp/server.py
# 如果没有安装
npx @modelcontextprotocol/inspector \
uv \
--directory /ABSOLUTE/PATH/TO/PARENT/FOLDER/github-chat-mcp \
run \
github-chat-mcp
然后访问 MCP Inspector,地址为 http://localhost:5173。 您可能需要在 inspector 的环境变量中添加您的 GitHub API 密钥,变量名为 GITHUB_API_KEY。
注意
- 可以通过
FASTMCP_LOG_LEVEL环境变量调整日志记录级别(例如FASTMCP_LOG_LEVEL="ERROR") - 此 MCP 服务器提供两个主要工具:
- 仓库索引 - 索引和分析 GitHub 仓库
- 仓库查询 - 询问有关索引仓库的问题
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。