Gerrit Code Review logo

Gerrit Code Review

Search, inspect, comment on, vote on, and transition Gerrit changes through capability-gated MCP tools.

Install Gerrit Code Review

Pick your client, then add it in one click or paste the config.

No confirmed install command yet

We only publish a config when the install details come from the project itself — its README, its docs, or a verified owner. We haven’t found those for Gerrit Code Review, and we’d rather show nothing than a guess you’d paste into your client.

Open setup steps on GitHub

Overview

Gerrit Code Review MCP server exposes Gerrit review operations over stdio, using HTTP credentials supplied through environment variables. It supports paginated change searches, review details, file lists, diffs, comment threads, reviews, votes, and state transitions. Write capabilities are disabled unless explicitly enabled, and operations are restricted to the authenticated user's changes by default. Reach for it when an MCP-compatible agent needs controlled access to Gerrit code review workflows.

Use cases

  • Search Gerrit changes by review criteria
  • Inspect revisions and file diffs
  • Publish inline and threaded review comments
  • Set review votes and transition change state

Key features

  • Capability-gated read and write tools
  • Paginated Gerrit change search
  • Revision file lists and diffs
  • Inline, range, file-level, and reply comments
  • Votes and review-state transitions
  • Optional per-session review notifications

Tools8

What Gerrit Code Review lets your agent do. Expand a tool for its parameters.

Self-reported~180 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked 2d ago

Recent health check succeeded.

6/6 checks healthy over the last 39d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars9Stargazers on the source repository.
Last commit14d agoMost recent push to the default branch.
Tools exposed8Callable tools this server registers over MCP.

How Gerrit Code Review works

What the Gerrit Code Review MCP server does

The Gerrit Code Review MCP server connects an MCP-compatible agent to a Gerrit 3.13 or newer instance. It lets an agent find changes, inspect review metadata and revisions, examine changed files and diffs, read comment threads, publish review comments, set label votes, and change review state.

Read operations include paginated searches using Gerrit's change query syntax, detailed change records, per-revision file statistics, individual file diffs, and comment history. Write operations cover consolidated reviews, label votes, and transitions such as submit, abandon, restore, work in progress, and ready.

How it works

The Gerrit Code Review MCP server uses the stdio transport. It authenticates with the Gerrit base URL, username, and HTTP credential supplied in the process environment. Its output uses llmxml, a semantically tagged text format intended for model consumption.

Capabilities are selected at startup with a comma-separated --groups value. The read group enables inspection tools. comment enables comment-related access, while transition enables voting and state changes. Groups can be combined, and each write group includes the read operations it needs.

With default settings, only read tools are exposed. Trail-leaving actions are also limited to changes owned by the authenticated account. Operators can explicitly widen access with --own-changes-only=false and can restrict activity to selected projects with --projects.

Setup and configuration

Install the binary from a GitHub release, use the published container image, or install it with go install. Register the executable as a stdio MCP server in the chosen client. Docker registrations pass the same environment variables into the container.

Set GERRIT_URL, GERRIT_USERNAME, and GERRIT_TOKEN. The credential is generated in Gerrit under Settings → HTTP Credentials; all three variables are required, and startup reports missing values. Flags also have GERRIT_MCP_* environment mirrors, which support per-project configuration in Claude Code and other environments that provide distinct process settings.

Tools and capabilities

The Gerrit Code Review MCP server provides these review functions:

  • Search changes with Gerrit query syntax and pagination.
  • Retrieve change status, ownership, labels, current revision, and messages.
  • List files and change statistics for a revision, or fetch one file's diff.
  • Read unresolved comment threads by default, or request all or resolved threads.
  • Publish top-level, inline, range, file-level, and reply comments in one call.
  • Set label values, including clearing the authenticated user's own vote with 0.
  • Submit, abandon, restore, mark work in progress, or mark ready.

Optional review notifications add subscription tools for change activity. They require the server-side notification flag and Claude Code's channels contract, and poll Gerrit at a configurable interval. Subscriptions remain in memory for the session and are not recorded in Gerrit.

Limitations and notes

The target platform is Gerrit 3.13 or newer, and authentication uses HTTP credentials rather than flags. Write access is intentionally opt-in. Enabling a write group does not by itself remove the own-change restriction.

Review notifications are disabled by default. When enabled, they depend on Claude Code 2.1.80 or newer and its research-preview channels contract. Subscriptions end with the session, disappear after a server restart, and must be created again. Merged, abandoned, deleted, or no-longer-visible changes end their subscriptions with a final notification.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Gerrit Code Review

Gerrit Code Review is an MCP server that connects AI agents to Gerrit 3.13+ through authenticated HTTP access. Its main tools search changes, read review details and diffs, retrieve comment threads, publish comments, set label votes, and transition change states. Read access is enabled by default; write capabilities require explicit configuration.

Install it from a GitHub release, with Docker, or using `go install`. Register the executable as a stdio MCP server, then provide `GERRIT_URL`, `GERRIT_USERNAME`, and `GERRIT_TOKEN` in its environment. The server requires all three variables and reports missing values at startup.

Enable write tools with the `--groups` option, such as `--groups read,comment,transition`. Commenting, voting, and state transitions remain limited to changes owned by the authenticated account unless you also set `--own-changes-only=false`. Project restrictions can be added with `--projects`.

Yes, it works with Claude Code through a stdio registration. You can add it with `claude mcp add`, passing the three Gerrit environment variables, or register the executable without an environment block and provide values through Claude Code settings. Review notifications additionally require Claude Code 2.1.80 or newer.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewGerrit Code Review AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/gerrit-code-review?style=directory)](https://allmcps.com/mcp/gerrit-code-review)
HTML Embed
<a href="https://allmcps.com/mcp/gerrit-code-review"><img src="https://allmcps.com/api/badge/gerrit-code-review?style=directory" alt="Gerrit Code Review on AllMCPs" /></a>