Skip to content
100% Free OSSCoding, Docs Grounding & PR Reviewmcp-stdio

GitHub Official Repository & PR MCP for Claude Code, ChatGPT, Gemini CLI & Cursor

Search code, inspect issues, manage branches, open pull requests & triage CI runs directly from chat.

Quick Answer Summary (Claude Code • ChatGPT • Cursor • Gemini CLI)

GitHub Official Repository & PR MCP (100% Free OSS) connects to AI coding and chat agents via claude mcp add github -e GITHUB_PERSONAL_ACCESS_TOKEN=$GITHUB_PERSONAL_ACCESS_TOKEN -- npx -y @modelcontextprotocol/server-github. Free Tier: 100% Free with any personal GitHub token (`GITHUB_PERSONAL_ACCESS_TOKEN`). Paid Upgrade Threshold: Free for public & private repos on GitHub Free; GitHub Team ($4/user/mo) only for protected org rulesets.

What Works for $0 (Free Tier)

100% Free with any personal GitHub token (`GITHUB_PERSONAL_ACCESS_TOKEN`).

When a Paid Subscription Is Required

Free for public & private repos on GitHub Free; GitHub Team ($4/user/mo) only for protected org rulesets.

Required Env Var(s): GITHUB_PERSONAL_ACCESS_TOKEN

1-Command Setup for Claude Code, Google Gemini CLI & Cursor

Copy the exact snippet for your AI coding agent — merges alongside the StackOS Master Router so future tool recommendations happen automatically.

1. Claude Code CLI One-Liner
claude mcp add github -e GITHUB_PERSONAL_ACCESS_TOKEN=$GITHUB_PERSONAL_ACCESS_TOKEN -- npx -y @modelcontextprotocol/server-github
2. Google Gemini CLI (~/.gemini/settings.json)
{
  "mcpServers": {
    "github": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-github"
      ],
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "${GITHUB_PERSONAL_ACCESS_TOKEN}"
      }
    },
    "stackos-router": {
      "httpUrl": "https://stackos-ai.vercel.app/api/mcp"
    }
  }
}
3. Cursor IDE & Claude Desktop (.mcp.json)
{
  "mcpServers": {
    "github": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-github"
      ],
      "env": {
        "GITHUB_PERSONAL_ACCESS_TOKEN": "${GITHUB_PERSONAL_ACCESS_TOKEN}"
      }
    },
    "stackos": {
      "url": "https://stackos-ai.vercel.app/api/mcp"
    }
  }
}
4. Non-Destructive Workspace Auto-Installer (Merges .mcp.json + SKILL.md)
curl -fsSL "https://stackos-ai.vercel.app/api/plugins/install?tools=github-mcp&src=plugin-seo-github-mcp" | node

Recommended SKILL.md / GEMINI.md Rule & GitHub README Badge

Query repository issues, inspect PR diffs, and verify GitHub Actions statuses cleanly.

GitHub Official Repository & PR MCP verified on StackOSEmbed this live SVG badge in GitHub READMEs or engineering docs:

Best Companion Plugins for Coding, Docs Grounding & PR Review