Token导航 LogoToken导航TokenDH.com
GitHub Chat MCP logo
开发工具stdio官方级别未说明来源级核验

GitHub Chat MCP

MCP Server

A Model Context Protocol (MCP) for analyzing and querying GitHub repositories using the GitHub Chat API.

工具数

2

提示词数

0

GitHub Stars

62

资源数

0
PythonClaude代码索引Claude DesktopClaude

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

AsyncFuncAI

提供方

AsyncFuncAI

最后核验

2026/5/18 03:28

运行时

Python

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

命令预览

pip install 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
  1. 开始使用它与克劳德!

示例提示:

  • “使用github chat mcp分析React仓库”
  • “使用github chat mcp对TypeScript存储库进行索引,并询问其架构”

GitHub聊天MCP服务器

](https://smithery.ai/server/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"
      ]
    }
  }
}

有了上述功能,不需要envs,因为这是一个免费增值版本。

使用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

使用GitHub与Claude聊天

  1. 首先索引GitHub存储库:

“将GitHub存储库索引到https://github.com/username/repo"

  1. 然后询问有关存储库的问题:

“这个存储库中使用的核心技术栈是什么?”

调试

运行:

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存储库:

“将GitHub存储库索引到https://github.com/username/repo"

  1. 然后询问有关存储库的问题:

“这个存储库中使用的核心技术栈是什么?”

调试

运行:

# 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

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

备注

  • 测井水平可通过以下方式调节 FASTMCP_LOG_LEVEL 环境变量(例如。 FASTMCP_LOG_LEVEL="ERROR")
  • 此MCP服务器提供两个主要工具:

1. 仓库索引-对GitHub仓库进行索引和分析 1. 存储库查询-询问有关索引存储库的问题

目录标签

目录标签

PythonClaude代码索引developer-toolsgithubmcpmcp-serverGitHub分析本地部署仓库查询开发工具

支持客户端

Claude DesktopClaude

接入字段

传输方式(transport,传输协议)

stdio

鉴权方式(authType,认证方式)

none

运行时(runtime,运行环境)

Python

部署方式(deploymentType,部署类型)

remote-capable

工具数量(toolCount,工具数)

2

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

stdiononeremote-capable

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

来源信息

继续浏览同类 MCP