GitHub Chat MCP
A Machine Computer Program (MCP) for analyzing and querying GitHub repositories using the GitHub Chat API.
Installation
# Install with pip
pip install github-chat-mcp
# Or install with the newer uv package manager
uv install github-chat-mcp
Usage
-
Get a GitHub Chat API key from https://github-chat.com
-
Add the MCP to your Claude config file:
{
"mcpServers": {
"github-chat": {
"command": "github-chat-mcp",
"env": {
"GITHUB_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}
- Start using it with Claude!
Example prompts:
- "Use github-chat-mcp to analyze the React repository"
- "Index the TypeScript repository with github-chat-mcp and ask about its architecture"
GitHub Chat MCP server
Setup Instructions
Before anything, ensure you have a GitHub Chat API key. This is required to use the service.
Install uv first.
MacOS/Linux:
curl -LsSf https://astral.sh/uv/install.sh | sh
Windows:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
Setup with Claude Desktop
# claude_desktop_config.json
# Can find location through:
# Hamburger Menu -> File -> Settings -> Developer -> Edit Config
{
"mcpServers": {
"github-chat": {
"command": "uvx",
"args": ["github-chat-mcp"],
"env": {
"GITHUB_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}
Installing via Smithery
You can install GitHub Chat for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install github-chat-mcp --client claude
Using GitHub Chat with Claude
-
Index a GitHub repository first: "Index the GitHub repository at https://github.com/username/repo"
-
Then ask questions about the repository: "What is the core tech stack used in this repository?"
Debugging
Run:
npx @modelcontextprotocol/inspector uvx github-chat-mcp
Local/Dev Setup Instructions
Clone repo
git clone https://github.com/yourusername/github-chat-mcp.git
Install dependencies
Install uv first.
MacOS/Linux:
curl -LsSf https://astral.sh/uv/install.sh | sh
Windows:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
Then install MCP server dependencies:
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
Setup with Claude Desktop
Using 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"
Manually
# 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_API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}
Using GitHub Chat with Claude
-
Index a GitHub repository first: "Index the GitHub repository at https://github.com/username/repo"
-
Then ask questions about the repository: "What is the core tech stack used in this repository?"
Debugging
Run:
# 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
Then access MCP Inspector at http://localhost:5173. You may need to add your GitHub API key in the environment variables in the inspector under GITHUB_API_KEY.
Notes
- Level of logging is adjustable through the
FASTMCP_LOG_LEVELenvironment variable (e.g.FASTMCP_LOG_LEVEL="ERROR") - This MCP server provides two main tools:
- Repository Indexing - Index and analyze a GitHub repository
- Repository Querying - Ask questions about the indexed repository
Metadata
Release files for github-chat-mcp 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| github_chat_mcp-0.1.0.tar.gz | 18.1 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| github_chat_mcp-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 23.3 kB
Release files / github_chat_mcp-0.1.0.tar.gz
| Download URL | github_chat_mcp-0.1.0.tar.gz |
|---|---|
| Size | 18.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fd6c86861682100b6fe1b8842ebebc82fb93ca0e2499312179ea9900695f7eb2
|
|
BLAKE2b-256 checksum How to use checksums |
613cf0b6d60c41dbd0c1b82a01bb03615a7b5843cc32ecfacb54320fbc1fff4c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.6
|
Release files / github_chat_mcp-0.1.0-py3-none-any.whl
| Download URL | github_chat_mcp-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4fe3eda6c4afd8a20d1aaff534d5d46ab96199db8ca726620b165f0e0abe32b1
|
|
BLAKE2b-256 checksum How to use checksums |
1845ee12d868261b56a91f8bd6d58c4e0dfedb932602ddef8923c2547094f7e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.6
|
Security for github-chat-mcp 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.