Personal RAG over your GitHub history (commits, code, reviews), served to Claude Code over MCP.
Connect Runs on your machine
claude mcp add github-twin -e GITHUB_TOKEN=<GITHUB_TOKEN> -e ANTHROPIC_API_KEY=<ANTHROPIC_API_KEY> -e GEMINI_API_KEY=<GEMINI_API_KEY> -e GT_PATHS__DATA_DIR=<GT_PATHS__DATA_DIR> -- uvx github-twin==0.0.17
{
"mcpServers": {
"github-twin": {
"command": "uvx",
"args": [
"github-twin==0.0.17"
],
"env": {
"GITHUB_TOKEN": "<GITHUB_TOKEN>",
"ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>",
"GEMINI_API_KEY": "<GEMINI_API_KEY>",
"GT_PATHS__DATA_DIR": "<GT_PATHS__DATA_DIR>"
}
}
}
}
{
"mcpServers": {
"github-twin": {
"command": "uvx",
"args": [
"github-twin==0.0.17"
],
"env": {
"GITHUB_TOKEN": "<GITHUB_TOKEN>",
"ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>",
"GEMINI_API_KEY": "<GEMINI_API_KEY>",
"GT_PATHS__DATA_DIR": "<GT_PATHS__DATA_DIR>"
}
}
}
}
{
"servers": {
"github-twin": {
"type": "stdio",
"command": "uvx",
"args": [
"github-twin==0.0.17"
],
"env": {
"GITHUB_TOKEN": "<GITHUB_TOKEN>",
"ANTHROPIC_API_KEY": "<ANTHROPIC_API_KEY>",
"GEMINI_API_KEY": "<GEMINI_API_KEY>",
"GT_PATHS__DATA_DIR": "<GT_PATHS__DATA_DIR>"
}
}
}
}
Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.
Tools
This server runs locally, so its tools are listed by your MCP client once it starts.
Environment variables
| Name | Description |
|---|---|
GITHUB_TOKENOptional, secret | GitHub personal access token. Optional: github-twin can also pick the token up from `gh auth token` or from its own OAuth device-flow login (`gt auth login`). |
ANTHROPIC_API_KEYOptional, secret | Optional. Enables the Claude backend for `gt summarize`, `gt distill`, and `gt eval`. Defaults to local Ollama when unset. |
GEMINI_API_KEYOptional, secret | Optional. Enables the Gemini backend for embedding and the LLM seam. Vertex AI ADC via `GT_GEMINI_PROJECT` is also supported. |
GT_PATHS__DATA_DIROptional | Optional. Override the on-disk data directory holding the SQLite index, embeddings, and cached GitHub responses. Defaults to `$XDG_DATA_HOME/github-twin`. |
Details
| Package | [email protected] (PYPI, stdio) |
| First published | 29 May 2026 |
| Last updated | 29 May 2026 |
| Registry name | io.github.ChristopherDavenport/github-twin |
More developer tools servers See all
Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.
