Skip to content
MCP server

CodeReview

Multi-model review gate that checks AI-written code before it merges

Runs locally

CodeReview is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, API, Linux
Runs
Locally
What it can do
Can change data (1 tool)
Version
0.13.5
Listing updated

Similar MCP servers

Install

You install MCP servers on a computer. Send yourself the link.

Add with the CLI

Run in a terminal

claude mcp add codereview --env OPENAI_API_KEY='<OPENAI_API_KEY>' --env GEMINI_API_KEY='<GEMINI_API_KEY>' -- uvx codereview-loop

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

Or share it with your project

Add to .mcp.json

{
  "mcpServers": {
    "codereview": {
      "command": "uvx",
      "args": [
        "codereview-loop"
      ],
      "env": {
        "OPENAI_API_KEY": "<OPENAI_API_KEY>",
        "GEMINI_API_KEY": "<GEMINI_API_KEY>"
      }
    }
  }
}

Claude Code setup guide

Add to claude_desktop_config.json

{
  "mcpServers": {
    "codereview": {
      "command": "uvx",
      "args": [
        "codereview-loop"
      ],
      "env": {
        "OPENAI_API_KEY": "<OPENAI_API_KEY>",
        "GEMINI_API_KEY": "<GEMINI_API_KEY>"
      }
    }
  }
}

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

Claude Desktop setup guide

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "codereview": {
      "command": "uvx",
      "args": [
        "codereview-loop"
      ],
      "env": {
        "OPENAI_API_KEY": "<OPENAI_API_KEY>",
        "GEMINI_API_KEY": "<GEMINI_API_KEY>"
      }
    }
  }
}

Use .cursor/mcp.json in a project to share it with the project.

Cursor setup guide

Add to ~/.copilot/mcp-config.json

{
  "mcpServers": {
    "codereview": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "codereview-loop"
      ],
      "env": {
        "OPENAI_API_KEY": "<OPENAI_API_KEY>",
        "GEMINI_API_KEY": "<GEMINI_API_KEY>"
      }
    }
  }
}

Or put the same entry in .mcp.json at your workspace root to share it.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add codereview --env OPENAI_API_KEY='<OPENAI_API_KEY>' --env GEMINI_API_KEY='<GEMINI_API_KEY>' -- uvx codereview-loop

Or add to config.toml

Add to ~/.codex/config.toml

[mcp_servers.codereview]
command = "uvx"
args = ["codereview-loop"]
env = { OPENAI_API_KEY = "<OPENAI_API_KEY>", GEMINI_API_KEY = "<GEMINI_API_KEY>" }

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "codereview": {
      "command": "uvx",
      "args": [
        "codereview-loop"
      ],
      "env": {
        "OPENAI_API_KEY": "<OPENAI_API_KEY>",
        "GEMINI_API_KEY": "<GEMINI_API_KEY>"
      }
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.json

    {
      "mcpServers": {
        "codereview": {
          "command": "uvx",
          "args": [
            "codereview-loop"
          ],
          "env": {
            "OPENAI_API_KEY": "<OPENAI_API_KEY>",
            "GEMINI_API_KEY": "<GEMINI_API_KEY>"
          }
        }
      }
    }

    Or run: gemini mcp add -s user -e OPENAI_API_KEY='<OPENAI_API_KEY>' -e GEMINI_API_KEY='<GEMINI_API_KEY>' codereview uvx -- codereview-loop

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

    {
      "mcpServers": {
        "codereview": {
          "command": "uvx",
          "args": [
            "codereview-loop"
          ],
          "env": {
            "OPENAI_API_KEY": "<OPENAI_API_KEY>",
            "GEMINI_API_KEY": "<GEMINI_API_KEY>"
          }
        }
      }
    }

    Use .agents/mcp_config.json to add it to one workspace only.

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.json

    {
      "mcpServers": {
        "codereview": {
          "command": "uvx",
          "args": [
            "codereview-loop"
          ],
          "env": {
            "OPENAI_API_KEY": "<OPENAI_API_KEY>",
            "GEMINI_API_KEY": "<GEMINI_API_KEY>"
          }
        }
      }
    }

    On Windows the file is %APPDATA%\devin\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

    {
      "mcpServers": {
        "codereview": {
          "command": "uvx",
          "args": [
            "codereview-loop"
          ],
          "env": {
            "OPENAI_API_KEY": "<OPENAI_API_KEY>",
            "GEMINI_API_KEY": "<GEMINI_API_KEY>"
          }
        }
      }
    }

    Open it from the MCP Servers icon → Configure → Configure MCP Servers.

    Cline setup guide

  • Zed

    Add to Zed settings.json

    {
      "context_servers": {
        "codereview": {
          "command": "uvx",
          "args": [
            "codereview-loop"
          ],
          "env": {
            "OPENAI_API_KEY": "<OPENAI_API_KEY>",
            "GEMINI_API_KEY": "<GEMINI_API_KEY>"
          }
        }
      }
    }

    Open it with zed: open settings file. Merge context_servers into the settings you already have.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

    {
      "mcpServers": {
        "codereview": {
          "command": "uvx",
          "args": [
            "codereview-loop"
          ],
          "env": {
            "OPENAI_API_KEY": "<OPENAI_API_KEY>",
            "GEMINI_API_KEY": "<GEMINI_API_KEY>"
          }
        }
      }
    }

    The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

    Junie

    Add to ~/.junie/mcp/mcp.json

    {
      "mcpServers": {
        "codereview": {
          "command": "uvx",
          "args": [
            "codereview-loop"
          ],
          "env": {
            "OPENAI_API_KEY": "<OPENAI_API_KEY>",
            "GEMINI_API_KEY": "<GEMINI_API_KEY>"
          }
        }
      }
    }

    Use .junie/mcp/mcp.json to share it with a project.

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

    {
      "mcpServers": {
        "codereview": {
          "command": "uvx",
          "args": [
            "codereview-loop"
          ],
          "env": {
            "OPENAI_API_KEY": "<OPENAI_API_KEY>",
            "GEMINI_API_KEY": "<GEMINI_API_KEY>"
          }
        }
      }
    }

    Use .kiro/settings/mcp.json to add it to one workspace only.

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

Configuration

  • OPENAI_API_KEYProvider API key. Bring any two providers (OpenAI, Gemini, Anthropic, DeepSeek) and assign models per role in `codereview setup`.
  • GEMINI_API_KEYProvider API key. Bring any two providers (OpenAI, Gemini, Anthropic, DeepSeek) and assign models per role in `codereview setup`.

About CodeReview

Independent models from different providers review each code change, cross-check one another's findings, and produce a recorded verdict of PASS, BLOCKED or INCONCLUSIVE. Findings must quote the diff verbatim, and checks run in a sandbox with no network access by default, so a builder agent never approves its own work.

It runs as a command-line tool or as an MCP server, letting coding agents submit their work to the gate before merge. A loop driver can hand blocked findings back to a builder, re-verify the fix, and escalate to a person after a set number of rounds. A GitHub PR mode reviews public pull requests without a token and can post the report as a review comment.

You supply your own API keys and assign models to each review role, and code is sent only to the providers you choose. It suits teams using AI coding agents who want an auditable, deterministic gate on generated changes.

Tools this server provides (2)

Taken from the project documentation; the running server may differ.

From the tool list in its README, going by the names, 1 of 2 tools changes data.

From the server's own tool labels and tool names; not verified by us.

run_gateName suggests: changes
Runs the review gate on submitted work.
get_verdictName suggests: reads
Returns the verdict for a previous gate run.

What it does

Multi-model review panel
Reviewers from several providers examine each diff, and any OpenAI-compatible endpoint can be added.
Deterministic pass or block
Pass and block decisions follow fixed rules applied to structured findings rather than model opinion.
Evidence-grounded findings
Each model finding must include a quote from the diff that is checked automatically.
Sandboxed test runner
Tests, lint and SAST run in a throwaway tree with no network by default and no exposure of API keys.
Review loop driver
Runs review, hands blocked findings to a builder agent, verifies fixes and repeats up to a round limit.
GitHub PR review
Reads public pull requests without a token and can post reports and a commit status.
SARIF export
Exports findings in SARIF format for GitHub code scanning and other static-analysis tools.

Good for

  • Gating AI-generated code changes before they merge into a repository
  • Letting a coding agent submit its own diff to a review gate and act on the verdict
  • Running independent model reviews on pull requests from public GitHub repositories
  • Recording auditable verdicts for changes that need a release sign-off

Pricing

Open source

Free and MIT licensed; you pay your own model provider costs.

CodeReview FAQ

Which providers can I use?

Presets exist for OpenAI, Gemini, Anthropic, DeepSeek, MiniMax, Moonshot, NVIDIA, xAI, Mistral and OpenRouter, plus any OpenAI-compatible endpoint. You bring your own API keys.

Does CodeReview come with a default set of models?

No. You choose providers and assign a model per role during setup.

What license is CodeReview under?

MIT.

Which platforms are supported?

It runs on POSIX systems; Windows and macOS desktop apps are described as in development.

Is CodeReview free?

Yes. CodeReview is open source, so you can use and self-host it for free.

How do I add CodeReview to Claude Code?

Run this command in your terminal: claude mcp add codereview --env OPENAI_API_KEY='<OPENAI_API_KEY>' --env GEMINI_API_KEY='<GEMINI_API_KEY>' -- uvx codereview-loop

What are the best alternatives to CodeReview?

The closest alternatives to CodeReview are Panel Review, Review MCP, ReviewGate, Myopic and Multi-MCP.

Where this comes from

  • Description: written from the project's README and its MCP Registry entry.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers