Github MCP Server

Personal RAG over your GitHub history (commits, code, reviews), served to Claude Code over MCP.

Remote serverstreamable-httpPython

What is the Github MCP server?

If you already use Github, the github mcp server is the piece that lets your assistant work with it directly. Personal RAG over your GitHub history (commits, code, reviews), served to Claude Code over MCP.

What the server does

Try it now from Claude Code — drop this into ~/.claude.json and reload:

Credentials and setup notes

Configuration is passed through the environment: GT_PATHS__DATA_DIR, GITHUB_TOKEN, OTEL_EXPORTER_OTLP_ENDPOINT, OTEL_SERVICE_NAME, ANTHROPIC_API_KEY, GEMINI_API_KEY, GOOGLE_API_KEY, OLLAMA_HOST. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

Installation

Because this one is hosted, setup is mostly authentication — you point your client at the endpoint and approve access. Nothing runs on your machine, so there is no runtime to keep patched.

Where it fits

Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. It is maintained by ChristopherDavenport; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Worth knowing first

  • Your data travels to the provider's service, so the usual questions apply about what you send and what they retain.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

How to install the Github MCP server

{
  "mcpServers": {
    "github-twin": { "command": "uvx", "args": ["github-twin", "serve"] }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
GT_PATHS__DATA_DIRFilesystem location the server is allowed to use.Optional
GITHUB_TOKENCredential the server authenticates with.Yes
OTEL_EXPORTER_OTLP_ENDPOINTConfiguration value read at startup.Optional
OTEL_SERVICE_NAMEConfiguration value read at startup.Optional
ANTHROPIC_API_KEYCredential the server authenticates with.Yes
GEMINI_API_KEYCredential the server authenticates with.Yes
GOOGLE_API_KEYCredential the server authenticates with.Yes
OLLAMA_HOSTEndpoint or connection string the server talks to.Optional

Frequently asked questions

It connects Github to MCP-compatible AI assistants such as Claude and Cursor. Instead of copying data back and forth by hand, the assistant works with Github directly.