Skip to main content
Glama

Chat de GitHub MCP

Un Protocolo de Contexto de Modelo (MCP) para analizar y consultar repositorios de GitHub mediante la API de GitHub Chat. Sitio oficial: https://github-chat.com

Instalación

# Install with pip
pip install github-chat-mcp

# Or install with the newer uv package manager
uv install github-chat-mcp
  1. ¡Empieza a usarlo con Claude!

Ejemplos de indicaciones:

  • Utiliza github-chat-mcp para analizar el repositorio de React.

  • Indexa el repositorio de TypeScript con github-chat-mcp y pregunta sobre su arquitectura.

Servidor MCP de GitHub Chat

insignia de herrería

Related MCP server: MCP GitHub Reader

Instrucciones de configuración

Antes de nada, asegúrate de tener una clave API de GitHub Chat. Es necesaria para usar el servicio.

Primero instale uv.

MacOS/Linux:

curl -LsSf https://astral.sh/uv/install.sh | sh

Ventanas:

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

Configuración con cursor (recomendado)

En mcp.json:

{
  "mcpServers": {
    "github-chat": {
      "command": "uvx",
      "args": [
        "github-chat-mcp"
      ]
    }
  }
}

Con lo anterior, no se requieren entornos ya que es una versión freemium.

Configuración con 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": {
      }
    }
  }
}

Instalación mediante herrería

Puedes instalar GitHub Chat para Claude Desktop automáticamente a través de Smithery:

npx -y @smithery/cli install github-chat-mcp --client claude

Usando GitHub Chat con Claude

  1. Primero indexe un repositorio de GitHub: "Indexar el repositorio de GitHub en https://github.com/username/repo "

  2. Luego haga preguntas sobre el repositorio: "¿Cuál es la pila tecnológica principal utilizada en este repositorio?"

Depuración

Correr:

npx @modelcontextprotocol/inspector uvx github-chat-mcp

Instrucciones de configuración local/de desarrollo

Clonar repositorio

git clone https://github.com/yourusername/github-chat-mcp.git

Instalar dependencias

Primero instale uv.

MacOS/Linux:

curl -LsSf https://astral.sh/uv/install.sh | sh

Ventanas:

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

A continuación, instale las dependencias del servidor 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

Configuración con Claude Desktop

Uso del SDK CLI de MCP

# `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"

A mano

# 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": {
      }
    }
  }
}

Usando GitHub Chat con Claude

  1. Primero indexe un repositorio de GitHub: "Indexar el repositorio de GitHub en https://github.com/username/repo "

  2. Luego haga preguntas sobre el repositorio: "¿Cuál es la pila tecnológica principal utilizada en este repositorio?"

Depuración

Correr:

# 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

Luego, accede al Inspector de MCP en http://localhost:5173 . Es posible que debas agregar tu clave de API de GitHub en las variables de entorno del inspector, bajo GITHUB_API_KEY .

Notas

  • El nivel de registro se puede ajustar a través de la variable de entorno FASTMCP_LOG_LEVEL (por ejemplo, FASTMCP_LOG_LEVEL="ERROR" )

  • Este servidor MCP proporciona dos herramientas principales:

    1. Indexación de repositorios: indexar y analizar un repositorio de GitHub

    2. Consulta de repositorio: haga preguntas sobre el repositorio indexado

Available Tools

2 tools
index_repositoryA

Index a GitHub repository to analyze its codebase. This must be done before asking questions about the repository.

Inputs: repo_url (required).

query_repositoryB

Ask questions about a GitHub repository and receive detailed AI responses. The repository must be indexed first.

Inputs: repo_url (required), question (required), conversation_history.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.5/5.0

    Scored across 2 tools

    Disambiguation5/5

    The two tools have clearly distinct purposes: index_repository is for preparing the repository for analysis, while query_repository is for asking questions about the indexed repository. There is no overlap or ambiguity between them.

    Naming Consistency5/5

    Both tools follow a consistent verb_noun pattern (index_repository and query_repository), using the same naming convention and structure throughout the set.

    Tool Count2/5

    With only 2 tools, the server feels too thin for its apparent purpose of GitHub repository analysis. It lacks essential operations like listing repositories, managing indexes, or handling errors, which limits functionality and could cause agent failures.

    Completeness2/5

    The tool surface is severely incomplete for GitHub repository analysis. It covers only indexing and querying, missing core operations such as repository discovery, index management, or error handling, leading to significant gaps in workflow coverage.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers