# github-twin MCP server

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

## At a glance

github-twin is an MCP server in the Dev Tools & Git category. It runs locally over stdio via `uvx github-twin`, and needs GITHUB_TOKEN, ANTHROPIC_API_KEY and GEMINI_API_KEY. It exposes 7 tools, including find_review_comments, find_style_examples and find_code. It scores B (72/100) on the MCP Skills Hub health score as of Oct 28, 2026.

## Install

### How to install github-twin in Claude Code

1. Add the server

```bash
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
```

2. Fill in your credentials

   Replace <GITHUB_TOKEN>, <ANTHROPIC_API_KEY>, <GEMINI_API_KEY> with your real values. Keep secrets out of any config file you commit.

3. Verify it's connected

```bash
claude mcp list
```

4. Sharing it with your team?

   Add `--scope project` to write it to .mcp.json in the repository root, which you can commit (with the secrets left as environment variables).

5. Use it in a session

   Ask Claude to use the tools this server exposes (e.g. find_review_comments, find_style_examples, find_code). It discovers them automatically.

### How to install github-twin in Claude Desktop

1. Open your MCP config

   macOS: ~/Library/Application Support/Claude/claude_desktop_config.json · Windows: %APPDATA%\Claude\claude_desktop_config.json

2. Add this server

```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>"
      }
    }
  }
}
```

3. Fill in your credentials

   Replace <GITHUB_TOKEN>, <ANTHROPIC_API_KEY>, <GEMINI_API_KEY> with your real values. Keep secrets out of any config file you commit.

4. Restart Claude Desktop

   The tools appear under the 🔌 menu once the app reloads.

### How to install github-twin in Cursor

1. Create / edit .cursor/mcp.json in your project

```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>"
      }
    }
  }
}
```

2. Fill in your credentials

   Replace <GITHUB_TOKEN>, <ANTHROPIC_API_KEY>, <GEMINI_API_KEY> with your real values. Keep secrets out of any config file you commit.

3. Enable it

   Cursor Settings → MCP → toggle the server on. Tools become available to the Composer/Agent.

### How to install github-twin in Codex CLI

1. Add to ~/.codex/config.toml

```toml
[mcp_servers.github-twin]
command = "uvx"
args = ["github-twin"]
env = { GITHUB_TOKEN = "<GITHUB_TOKEN>", ANTHROPIC_API_KEY = "<ANTHROPIC_API_KEY>", GEMINI_API_KEY = "<GEMINI_API_KEY>" }
```

2. Fill in your credentials

   Replace <GITHUB_TOKEN>, <ANTHROPIC_API_KEY>, <GEMINI_API_KEY> with your real values. Keep secrets out of any config file you commit.

3. Run Codex

   Codex loads MCP servers from config.toml on startup and exposes their tools to the agent.

### How to install github-twin in Windsurf

1. Edit ~/.codeium/windsurf/mcp_config.json

```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>"
      }
    }
  }
}
```

2. Fill in your credentials

   Replace <GITHUB_TOKEN>, <ANTHROPIC_API_KEY>, <GEMINI_API_KEY> with your real values. Keep secrets out of any config file you commit.

3. Reload

   Windsurf → Cascade → refresh MCP servers. Cascade can now call the tools.

### How to install github-twin in Cline

1. Open Cline → MCP Servers → Configure

   Adds to cline_mcp_settings.json.

2. Add the server

```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>"
      }
    }
  }
}
```

3. Fill in your credentials

   Replace <GITHUB_TOKEN>, <ANTHROPIC_API_KEY>, <GEMINI_API_KEY> with your real values. Keep secrets out of any config file you commit.

### How to install github-twin in VS Code

1. Create .vscode/mcp.json

```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>"
      }
    }
  }
}
```

2. Fill in your credentials

   Replace <GITHUB_TOKEN>, <ANTHROPIC_API_KEY>, <GEMINI_API_KEY> with your real values. Keep secrets out of any config file you commit.

3. Start it

   VS Code shows a ▶ Start action above the server entry. Agent mode (Copilot Chat) can then use the tools.

## Tools

- `find_review_comments` — Past review comments on diffs similar to the input.
- `find_style_examples` — Past code chunks matching a description.
- `find_code` — Source snippets from files at HEAD (org mode).
- `find_applicable_rules` — Distilled code-pattern rules relevant to a coding task.
- `predict_review_outcome` — Weighted prediction over nearest past PRs: `{approved, changes_requested, commented}`.
- `summarize_review_patterns` — Distilled rules from clustered review comments (run `gt distill` first).
- `sync` — Incremental ingest + summarize + embed.

Source repository: https://github.com/ChristopherDavenport/github-twin

---

Source: https://mcp-skills-hub.vercel.app/mcps/io-github-christopherdavenport-github-twin · MCP Skills Hub · data as of 2026-10-28T12:31:05Z
