Pr MCP Server

AI-powered code review for GitHub & GitLab. Works with any LLM: GPT-4o, Claude, Llama, Gemini, Ollama. Free, open source.

Remote serverstreamable-httpPython

What is the Pr MCP server?

AI-powered code review for GitHub & GitLab. Works with any LLM: GPT-4o, Claude, Llama, Gemini, Ollama. Free, open source. That is what the pr mcp server brings to an AI assistant: the same capability, reachable through the Model Context Protocol rather than a separate app or dashboard.

The short version

jobs: review: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: mara-werils/ai-code-reviewer@v1 env: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} ```

The tools it exposes

The server publishes 1 tool. What each one is for:

  • Configuration — The Configuration tool exposed by this server

What it needs from you

Configuration is passed through the environment: GITHUB_APP_ID, GITHUB_WEBHOOK_SECRET, GROQ_API_KEY, GITHUB_TOKEN, OPENAI_API_KEY, GITHUB_PRIVATE_KEY, GOOGLE_API_KEY, ANTHROPIC_API_KEY. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

Getting it running

Because this one is hosted, setup is mostly authentication — you point your client at the endpoint and approve access. Nothing runs on your machine, so there is no runtime to keep patched.

How it compares

Among the developer tooling options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Pr's toolset — Configuration — is a fair guide to whether it matches your workflow.

This entry was verified against Pr's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Things to watch

  • Your data travels to the provider's service, so the usual questions apply about what you send and what they retain.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
ConfigurationThe Configuration tool exposed by this server.

How to install the Pr MCP server

{
  "mcpServers": {
    "pr-reviewer": {
      "command": "uvx",
      "args": ["pre-commit"],
      "env": {
        "GITHUB_APP_ID": "your-value",
        "GITHUB_WEBHOOK_SECRET": "your-value",
        "GROQ_API_KEY": "your-value",
        "GITHUB_TOKEN": "your-value",
        "OPENAI_API_KEY": "your-value",
        "GITHUB_PRIVATE_KEY": "your-value",
        "GOOGLE_API_KEY": "your-value",
        "ANTHROPIC_API_KEY": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
GITHUB_APP_IDConfiguration value read at startup.Optional
GITHUB_WEBHOOK_SECRETCredential the server authenticates with.Yes
GROQ_API_KEYCredential the server authenticates with.Yes
GITHUB_TOKENCredential the server authenticates with.Yes
OPENAI_API_KEYCredential the server authenticates with.Yes
GITHUB_PRIVATE_KEYCredential the server authenticates with.Yes
GOOGLE_API_KEYCredential the server authenticates with.Yes
ANTHROPIC_API_KEYCredential the server authenticates with.Yes

Example prompts to try

  • Use Pr to Configuration.

Frequently asked questions

It connects Pr to MCP-compatible AI assistants such as Claude and Cursor, exposing 1 tool (Configuration) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Pr directly.