GitHub Chat MCP

Analise e consulte repositórios do GitHub usando a API do GitHub Chat.

Documentação

GitHub Chat MCP

Um Model Context Protocol (MCP) para analisar e consultar repositórios do GitHub usando a API do GitHub Chat. Site oficial: https://github-chat.com

Instalação

# Install with pip
pip install github-chat-mcp

# Or install with the newer uv package manager
uv install github-chat-mcp
  1. Comece a usá-lo com o Claude!

Exemplos de prompts:

  • "Use o github-chat-mcp para analisar o repositório React"
  • "Indexe o repositório TypeScript com github-chat-mcp e pergunte sobre sua arquitetura"

GitHub Chat MCP server

smithery badge

Instruções de Configuração

Antes de tudo, garanta que você tenha uma chave de API do GitHub Chat. Isso é necessário para usar o serviço.

Instale o uv primeiro.

MacOS/Linux:

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

Windows:

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

Configuração com Cursor (Recomendado)

Em mcp.json:

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

Com o acima, nenhuma variável de ambiente é necessária, pois é uma versão freemium.

Configuração com 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": {
      }
    }
  }
}

Instalação via Smithery

Você pode instalar o GitHub Chat para Claude Desktop automaticamente via Smithery:

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

Usando o GitHub Chat com Claude

  1. Indexe um repositório do GitHub primeiro: "Indexe o repositório do GitHub em https://github.com/username/repo"

  2. Depois faça perguntas sobre o repositório: "Qual é a principal pilha de tecnologia usada neste repositório?"

Depuração

Execute:

npx @modelcontextprotocol/inspector uvx github-chat-mcp

Instruções de Configuração Local/Dev

Clone o repositório

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

Instale as dependências

Instale o uv primeiro.

MacOS/Linux:

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

Windows:

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

Depois instale as dependências do 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

Configuração com Claude Desktop

Usando o SDK CLI do 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": {
      }
    }
  }
}

Usando o GitHub Chat com Claude

  1. Indexe um repositório do GitHub primeiro: "Indexe o repositório do GitHub em https://github.com/username/repo"

  2. Depois faça perguntas sobre o repositório: "Qual é a principal pilha de tecnologia usada neste repositório?"

Depuração

Execute:

# 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

Depois acesse o MCP Inspector em http://localhost:5173. Você pode precisar adicionar sua chave de API do GitHub nas variáveis de ambiente no inspector sob GITHUB_API_KEY.

Notas

  • O nível de registro é ajustável através da variável de ambiente FASTMCP_LOG_LEVEL (por exemplo, FASTMCP_LOG_LEVEL="ERROR")
  • Este servidor MCP fornece duas ferramentas principais:
    1. Indexação de Repositório - Indexe e analise um repositório do GitHub
    2. Consulta de Repositório - Faça perguntas sobre o repositório indexado