The GitHub Chat MCP server allows you to analyze and query GitHub repositories using AI.
Index a GitHub repository: You must first index a repository to analyze its codebase, which is a necessary first step.
Query a GitHub repository: Ask detailed questions about an indexed repository and receive AI-generated responses.
Multi-turn conversations: Supports conversation history for follow-up questions.
Repository analysis: Provides insights into tech stacks, architecture, and other aspects of a repository.
Enables analyzing and querying GitHub repositories, including indexing repository content and asking questions about code architecture and tech stack
GitHub Chat MCP
A Model Context Protocol (MCP) for analyzing and querying GitHub repositories using the GitHub Chat API. Official Site: https://github-chat.com
Installation
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
Related MCP server: GitHub 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:
Windows:
Setup with Cursor (Recommended)
In mcp.json:
With above, no envs required since it's a freemium release.
Setup with Claude Desktop
Installing via Smithery
You can install GitHub Chat for Claude Desktop automatically via Smithery:
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:
Local/Dev Setup Instructions
Clone repo
git clone https://github.com/yourusername/github-chat-mcp.git
Install dependencies
Install uv first.
MacOS/Linux:
Windows:
Then install MCP server dependencies:
Setup with Claude Desktop
Using MCP CLI SDK
Manually
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:
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