Get the FREE Ultimate OpenClaw Setup Guide →

github-chat

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

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio asyncfuncai-github-chat-mcp uvx github-chat-mcp

How to use

GitHub Chat MCP provides two core capabilities for working with GitHub repositories via the GitHub Chat API: Repository Indexing and Repository Querying. Indexing ingests and analyzes a target GitHub repository so you can later ask questions about its structure, tech stack, and contents. Once indexed, you can query the repository to get insights such as core technologies, dependencies, architecture, and other details extracted from the codebase. The server is designed to be used with Claude Desktop or via the MCP Inspector for debugging and testing. To begin, ensure you have a GitHub Chat API key and then set up the MCP server using uvx as described in the installation/setup steps. After indexing a repository (for example, “Index the GitHub repository at https://github.com/username/repo”), you can follow with questions like “What is the core tech stack used in this repository?” to get targeted responses grounded in the indexed data.

How to install

Prerequisites:

  • A GitHub Chat API key (required to use the service).
  • uv (uvx) package manager installed on your system.
  • Optional: Claude Desktop if you plan to integrate with Claude.

Installation steps:

  1. Install uv (Mac/Linux): curl -LsSf https://astral.sh/uv/install.sh | sh

    Windows: use the PowerShell script

    powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
  2. Install the MCP server using uv: uv install github-chat-mcp

    Or follow the alternative install method shown in the README instructions if you prefer a different path

  3. Optional: If you want to run via Claude Desktop, prepare the mcp.json configuration as shown in the README and ensure UV is installed.
  4. For development debugging, you can run the inspector to connect to the MCP: npx @modelcontextprotocol/inspector uvx github-chat-mcp

Local/Dev setup (summary):

  • Clone the repository
  • Install uv
  • Create and activate a Python/virtual environment if required by your setup (the README references uv venv usage for Python workflows)
  • Install MCP dependencies via uv sync when working with the MCP server code

Note: The installation steps assume you use uvx as the command to run the MCP server and that you will point Claude or Claude Desktop to the appropriate mcp.json configuration. If you prefer the pip-based installation, you can also install the package with pip install github-chat-mcp, but the documented approach in this MCP uses uvx for setup and operation.

Additional notes

Tips and common issues:

  • Ensure you have a valid GitHub API key configured in your environment when indexing or querying repositories.
  • The server exposes two primary tools: Repository Indexing (to index and analyze a repository) and Repository Querying (to ask questions about the indexed repository).
  • You can adjust logging verbosity with the FASTMCP_LOG_LEVEL environment variable, e.g. FASTMCP_LOG_LEVEL="ERROR".
  • When using Claude Desktop, you can set up the MCP configuration either via the Cursor-based method (mcp.json with uvx) or via Claude Desktop’s JSON config, as demonstrated in the README.
  • Debugging: use the MCP Inspector to verify behavior and endpoints (http://localhost:5173 by default).
  • If you encounter issues with indexing or querying, re-index the repository or verify that the repository URL is accessible and the GitHub API key has the necessary scopes.

Related MCP Servers

Sponsor this space

Reach thousands of developers