Gerrit Code Review MCP Server

This MCP server provides integration with Gerrit code review system, allowing AI assistants to review code changes and their details through a simple

Local serverstdioPython

What is the Gerrit Code Review MCP MCP server?

This MCP server provides integration with Gerrit code review system, allowing AI assistants to review code changes and their details through a simple interface. That is what the gerrit code review mcp mcp server brings to an AI assistant: the same capability, reachable through the Model Context Protocol rather than a separate app or dashboard.

Getting it running

Installation goes through your MCP client rather than a global install: point it at @smithery/cli on npm and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

What it needs from you

Configuration is passed through the environment: PYTHONPATH, VIRTUAL_ENV, GERRIT_HOST, GERRIT_USER, GERRIT_HTTP_PASSWORD, GERRIT_EXCLUDED_PATTERNS, GERRIT_SSL_VERIFY, GERRIT_CA_BUNDLE. 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.

  • Python 3.10 or higher (Python 3.11 recommended) - Gerrit HTTP access credentials - HTTP password generated from Gerrit settings - Access to the mcp[cli] package repository (private package)

How it compares

Plenty of developer tooling servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. It is maintained by cayirtepeomer; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

How to install the Gerrit Code Review MCP MCP server

{
  "mcpServers": {
    "gerrit-review-mcp": {
      "command": "/path/to/your/workspace/gerrit-code-review-mcp/.venv/bin/python",
      "args": [
        "/path/to/your/workspace/gerrit-code-review-mcp/server.py",
        "--transport",
        "stdio"
      ],
      "cwd": "/path/to/your/workspace/gerrit-code-review-mcp",
      "env": {
        "PYTHONPATH": "/path/to/your/workspace/gerrit-code-review-mcp",
        "VIRTUAL_ENV": "/path/to/your/workspace/gerrit-code-review-mcp/.venv",
        "PATH": "/path/to/your/workspace/gerrit-code-review-mcp/.venv/bin:/usr/local/bin:/usr/bin:/bin"
      },
      "stdio": true
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

  • Python 3.10 or higher (Python 3.11 recommended) - Gerrit HTTP access credentials - HTTP password generated from Gerrit settings - Access to the mcp[cli] package repository (private package)
VariableDescriptionRequired
PYTHONPATHFilesystem location the server is allowed to use.Optional
VIRTUAL_ENVConfiguration value read at startup.Optional
GERRIT_HOSTEndpoint or connection string the server talks to.Optional
GERRIT_USERConfiguration value read at startup.Optional
GERRIT_HTTP_PASSWORDConfiguration value read at startup.Optional
GERRIT_EXCLUDED_PATTERNSConfiguration value read at startup.Optional
GERRIT_SSL_VERIFYConfiguration value read at startup.Optional
GERRIT_CA_BUNDLEConfiguration value read at startup.Optional

Frequently asked questions

It connects Gerrit Code Review MCP to MCP-compatible AI assistants such as Claude and Cursor. Instead of copying data back and forth by hand, the assistant works with Gerrit Code Review MCP directly.