This MCP server indexes GitHub pull request history and returns raw JSON context from prior reviews, comments, and PR descriptions for use by an IDE agent. It also provides tools to generate rules material, search review history, and retrieve team review patterns for grounded code review and code generation.
From the registry: AI code review grounded in your repo history. Supports Test Gen and Security Audits.
$ git clone https://github.com/<your-username>/github-pr-context-mcp.git && cd github-pr-context-mcp && git checkout v0.3.0-hardening && pipx install -e .Please install the `github-pr-context-mcp` MCP server into my current AI client (that's you).
Required prerequisites (do these first if not already done):
- **Install uvx or pipx** — Install a Python app runner such as uvx (recommended for instant runs) or pipx (for permanent installation).
- **GitHub token** — Create a GitHub personal access token for accessing PR history.
Optional prerequisites:
- Legacy v0.3.0 source install only — The pre-release v0.3.0 source install requires forking the repository, cloning it, checking out the v0.3.0-hardening branch, and installing with pipx. Prefer the simpler packaged install path when available. Run: `git clone https://github.com/<your-username>/github-pr-context-mcp.git && cd github-pr-context-mcp && git checkout v0.3.0-hardening && pipx install -e .`
Canonical MCP server config (stdio transport):
- command: `uvx`
- args: ["github-pr-engine"]
- required environment variables:
- `GITHUB_TOKEN`: GitHub personal access token used to fetch repository PR history and review context. (example: `<your-github-token>`)
Note: The README describes multiple versions and install paths. Prefer the simplest portable packaged path from the Quick Start: `uvx github-pr-engine` (or alternatively a pipx-installed command). The server is described as requiring only `GITHUB_TOKEN`. Although the README also references `github-pr-context-mcp` for legacy/source installs, the recommended packaged command shown is `github-pr-engine`.
Add this MCP server to my current client's config in the correct format for you. If you need secrets or credentials I haven't provided, ASK me — do not invent values or leave raw placeholders. After adding it, tell me how to verify the server is connected.GITHUB_TOKENrequiredGitHub access token used to fetch repository PR history and index repositories.Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
The GitKraken MCP Server for managing repos, PRs, issues across GitHub, GitLab, Bitbucket and more.
Comprehensive Git MCP server enabling native git tools including clone, commit, worktree, & more.