github-twin
Personal RAG over your GitHub history (commits, code, reviews), served to Claude Code…
- Pricing
- Open source
- Runs
- Locally
- Version
- 0.0.17
- Listing updated
- 4 days ago
About github-twin
github-twin is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.
Personal RAG over your GitHub history (commits, code, reviews), served to Claude Code over MCP.
Install
Run in a terminal
claude mcp add github-twin --env GITHUB_TOKEN='<GITHUB_TOKEN>' --env ANTHROPIC_API_KEY='<ANTHROPIC_API_KEY>' --env GEMINI_API_KEY='<GEMINI_API_KEY>' -- uvx github-twinAdd to claude_desktop_config.json
{
"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
{
"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 .vscode/mcp.json
{
"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 ~/.codeium/windsurf/mcp_config.json
{
"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 your client's MCP settings (most use this shape)
{
"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>"
}
}
}
}Configuration
GITHUB_TOKENGitHub 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. Enables the Claude backend for `gt summarize`, `gt distill`, and `gt eval`. Defaults to local Ollama when unset.GEMINI_API_KEYOptional. Enables the Gemini backend for embedding and the LLM seam. Vertex AI ADC via `GT_GEMINI_PROJECT` is also supported.GT_PATHS__DATA_DIROptional. Override the on-disk data directory holding the SQLite index, embeddings, and cached GitHub responses. Defaults to `$XDG_DATA_HOME/github-twin`.
Pricing
Open source
github-twin FAQ
Is github-twin free?
Yes. github-twin is open source, so you can use and self-host it for free.
How do I add github-twin to Claude Code?
Run this command in your terminal: claude mcp add github-twin --env GITHUB_TOKEN='<GITHUB_TOKEN>' --env ANTHROPIC_API_KEY='<ANTHROPIC_API_KEY>' --env GEMINI_API_KEY='<GEMINI_API_KEY>' -- uvx github-twin
What are the best alternatives to github-twin?
The closest alternatives to github-twin are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.
Alternatives to github-twin

REA
MCP serverCLI and MCP server that lets coding agents reverse engineer apps and binaries
Runs locally- Open source
- 464K GitHub stars
- Developer tools

Codebase Memory
MCP serverLocal MCP server that builds a code knowledge graph for AI coding agents
Runs locally- Open source
- 48.7K GitHub stars
- Knowledge and memory

GitHub
MCP serverOfficial MCP server connecting AI assistants to GitHub repos, issues and workflows
Not checked yet- Remote
- Open source
- 34.5K GitHub stars
- Developer tools

Serena MCP: the IDE for your agent
MCP serverMCP toolkit giving coding agents symbol-level code retrieval and editing
Runs locally- Open source
- 31.5K GitHub stars
- Developer tools

XERJ
MCP serverLocal search engine for AI agents with cited answers over your code and docs
Runs locally- Open source
- 19.2K GitHub stars
- Knowledge and memory

Ouroboros
MCP serverSpec-first layer that pins requirements and verifies results of AI coding agent work
Runs locally- Open source
- 6.4K GitHub stars
- Developer tools