GitHub Chat MCP

Analiza y consulta repositorios de GitHub utilizando la API de GitHub Chat.

Documentación

GitHub Chat 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 prompts:

  • "Usa github-chat-mcp para analizar el repositorio de React"
  • "Indexa el repositorio de TypeScript con github-chat-mcp y pregunta sobre su arquitectura"

Servidor GitHub Chat MCP

smithery badge

Instrucciones de configuración

Antes de nada, asegúrate de tener una clave de API de GitHub Chat. Esto es necesario para usar el servicio.

Instala uv primero.

MacOS/Linux:

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

Windows:

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 variables de entorno 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 Smithery

Puedes instalar GitHub Chat para Claude Desktop automáticamente mediante Smithery:

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

Usar GitHub Chat con Claude

  1. Indexa un repositorio de GitHub primero: "Indexa el repositorio de GitHub en https://github.com/username/repo"

  2. Luego haz preguntas sobre el repositorio: "¿Cuál es el stack tecnológico principal utilizado en este repositorio?"

Depuración

Ejecuta:

npx @modelcontextprotocol/inspector uvx github-chat-mcp

Instrucciones de configuración local/desarrollo

Clonar el repositorio

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

Instalar dependencias

Instala uv primero.

MacOS/Linux:

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

Windows:

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

Luego instala 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

Usando el 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"

Manualmente

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

Usar GitHub Chat con Claude

  1. Indexa un repositorio de GitHub primero: "Indexa el repositorio de GitHub en https://github.com/username/repo"

  2. Luego haz preguntas sobre el repositorio: "¿Cuál es el stack tecnológico principal utilizado en este repositorio?"

Depuración

Ejecuta:

# 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 necesites 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 mediante 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: indexa y analiza un repositorio de GitHub
    2. Consulta de repositorios: haz preguntas sobre el repositorio indexado