← Back to PR Review MCP Server

Install PR Review MCP Server

Pick your client, copy the command, done.

Manual setup required. The maintainer's config contains paths only you know — edit the placeholders below before adding it to Claude Code.
1

Prepare the server locally

Run this once before adding it to Claude Code.

git clone https://github.com/<your-username>/pr-review-mcp.git
cd pr-review-mcp
pip install -r requirements.txt
2

Register it in Claude Code

claude mcp add -e "GITHUB_TOKEN=${GITHUB_TOKEN}" -e "GITHUB_REPO=${GITHUB_REPO}" pr-review -- python /path/to/pr-review-mcp/server.py

Replace any placeholder paths in the command with the real path on your machine.

Required:GITHUB_TOKENGITHUB_REPO+ 1 optional

Environment Variables

Set these before running PR Review MCP Server.

VariableDescriptionRequired
GITHUB_TOKENGitHub Personal Access Token (classic) with repo scopeYes
GITHUB_REPOThe repository in owner/repo formatYes
MCP_DEBUGEnables verbose debug loggingNo

Available Tools (2)

Once configured, PR Review MCP Server gives your AI agent access to:

list_open_prsLists open PRs in the configured repository.
get_pr_diffFetches the code diff for a specific PR number, filtering out binary/asset files.
pr_number

Try It Out

After setup, try these prompts with your AI agent:

List open PRs
Review PR #42
What changed in PR #15?
Prerequisites & system requirements
  • An MCP-compatible client (Claude Code, Cursor, Windsurf, Claude Desktop, or Codex)
  • Python 3.8+ with pip installed
  • GITHUB_TOKEN — GitHub Personal Access Token (classic) with repo scope
  • GITHUB_REPO — The repository in owner/repo format

Keep this setup from going cold

Save the docs, env vars, and workflow around PR Review MCP Server in Conare so Claude Code, Codex, and Cursor remember it next time.

Remember this setup