
Github Twin
Give Claude Code a personal RAG layer over your commits, code, and review history so answers match how you actually ship.
Overview
github-twin is a Build-phase MCP server that serves personal RAG over your GitHub history to coding agents.
What is this MCP server?
- Personal RAG over GitHub commits, code, and reviews exposed via MCP
- stdio MCP server (github-twin) with PyPI package and uvx runtime hint
- GitHub auth via GITHUB_TOKEN, gh auth token, or device-flow gt auth login
- Optional Claude (ANTHROPIC_API_KEY) or Gemini/Vertex backends for summarize, distill, and eval
- Local Ollama default when cloud LLM keys are unset
- Package version 0.0.9 on PyPI (identifier github-twin)
- stdio transport with uvx runtime hint
What problem does it solve?
Agents lack durable, queryable memory of your past commits, code, and reviews across repositories.
Who is it for?
Solo developers who live in GitHub and want agent answers grounded in their real shipping history.
Skip if: Builders without GitHub activity or who only need ephemeral file edits with no historical context.
What do I get? / Deliverables
Claude Code can retrieve and reason over your GitHub timeline through MCP instead of manual log digging.
- Running MCP server indexing queryable GitHub history
- Agent tools for search and optional summarize/distill/eval over your repos
Recommended MCP Servers
Journey fit
Indexing and serving your GitHub corpus is agent infrastructure you add while building with AI, before relying on it in review or ops loops. github-twin is stdio MCP plus uvx/PyPI tooling—core agent-tooling that augments context from git history.
How it compares
GitHub-history RAG MCP server, not a generic filesystem or Slack integration.
Common Questions / FAQ
Who is Github Twin for?
Indie builders and small teams who want Claude Code to search and summarize their own GitHub commits, code, and reviews via MCP.
When should I use Github Twin?
Use it while setting up agent tooling in Build when context from past PRs and repos should inform every coding session.
How do I add Github Twin to my agent?
Register the Github Twin MCP server with transport stdio, run via uvx with the serve positional argument, set GITHUB_TOKEN (or use gh auth / gt auth login), and add optional ANTHROPIC_API_KEY or GEMINI_API_KEY for cloud backends.