github-twin MCP Server
by christopherdavenportio.github.ChristopherDavenport/github-twinv0.0.17
Personal RAG over your GitHub history (commits, code, reviews), served to Claude Code over MCP.
context tax
queued
security
queued
cold start
queued
freshness
Slowing3mo ago
Install github-twin MCP server
Install in Claude Code
claude mcp add github-twin -e GITHUB_TOKEN='<github-token>' -e ANTHROPIC_API_KEY='<anthropic-api-key>' -e GEMINI_API_KEY='<gemini-api-key>' -- uvx github-twinInstall in Cursor
{
"mcpServers": {
"github-twin": {
"command": "uvx",
"args": [
"github-twin"
],
"env": {
"GITHUB_TOKEN": "<github-token>",
"ANTHROPIC_API_KEY": "<anthropic-api-key>",
"GEMINI_API_KEY": "<gemini-api-key>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"github-twin": {
"command": "uvx",
"args": [
"github-twin"
],
"env": {
"GITHUB_TOKEN": "<github-token>",
"ANTHROPIC_API_KEY": "<anthropic-api-key>",
"GEMINI_API_KEY": "<gemini-api-key>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"github-twin": {
"type": "stdio",
"command": "uvx",
"args": [
"github-twin"
],
"env": {
"GITHUB_TOKEN": "<github-token>",
"ANTHROPIC_API_KEY": "<anthropic-api-key>",
"GEMINI_API_KEY": "<gemini-api-key>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"github-twin": {
"command": "uvx",
"args": [
"github-twin"
],
"env": {
"GITHUB_TOKEN": "<github-token>",
"ANTHROPIC_API_KEY": "<anthropic-api-key>",
"GEMINI_API_KEY": "<gemini-api-key>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| GITHUB_TOKEN | — | yes | 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_KEY | — | yes | Optional. Enables the Claude backend for `gt summarize`, `gt distill`, and `gt eval`. Defaults to local Ollama when unset. |
| GEMINI_API_KEY | — | yes | Optional. Enables the Gemini backend for embedding and the LLM seam. Vertex AI ADC via `GT_GEMINI_PROJECT` is also supported. |
| GT_PATHS__DATA_DIR | — | — | Optional. Override the on-disk data directory holding the SQLite index, embeddings, and cached GitHub responses. Defaults to `$XDG_DATA_HOME/github-twin`. |
Freshness
Slowing — last maintenance signal 3mo ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-07-02 · 3mo ago · GitHub
Latest release
2026-05-18 · 5mo ago · GitHub · v0.0.9
Package published
no data · npm/PyPI
Registry entry updated
2026-05-29 · 4mo ago · official registry · v0.0.17
FAQ
›How do I install the github-twin MCP server in Claude Code?
Run: claude mcp add github-twin -e GITHUB_TOKEN='<github-token>' -e ANTHROPIC_API_KEY='<anthropic-api-key>' -e GEMINI_API_KEY='<gemini-api-key>' -- uvx github-twin. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does github-twin require an API key?
Yes. It expects GITHUB_TOKEN, ANTHROPIC_API_KEY, GEMINI_API_KEY, of which 3 are secrets.
›Can I use github-twin as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is github-twin in the official MCP registry?
Yes, as io.github.ChristopherDavenport/github-twin.
Alternatives to github-twin
Other version control MCP servers.