Claude Code Review▌

by praneybehl
Get structured & freeform code reviews with code quality analysis tools powered by OpenAI, Google & Anthropic. Supports
Provides a server for obtaining structured and freeform code reviews from OpenAI, Google, and Anthropic models with support for project context, related files, and language detection.
best for
- / Developers wanting automated code review feedback
- / Teams integrating AI reviews into git workflows
- / Getting second opinions on code changes before commits
capabilities
- / Review git diffs for staged changes
- / Compare code between branches
- / Generate structured code reviews with AI models
- / Detect programming languages automatically
- / Include project context in reviews
- / Output reviews in markdown format
what it does
Performs automated code reviews on git diffs using AI models from OpenAI, Google, and Anthropic. Analyzes staged changes, branch differences, or changes from HEAD with project context.
about
Claude Code Review is a community-built MCP server published by praneybehl that provides AI assistants with tools and capabilities via the Model Context Protocol. Get structured & freeform code reviews with code quality analysis tools powered by OpenAI, Google & Anthropic. Supports It is categorized under ai ml, developer tools.
how to install
You can install Claude Code Review in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.
license
MIT
Claude Code Review is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.
readme
@vibesnipe/code-review-mcp
Version: 1.0.0
An MCP (Model Context Protocol) server that provides a powerful tool to perform code reviews using various Large Language Models (LLMs). This server is designed to be seamlessly integrated with AI coding assistants like Anthropic's Claude Code, Cursor, Windsurf, or other MCP-compatible clients.
Note: This tool was initially created for Claude Code but has since been expanded to support other AI IDEs and Claude Desktop. See the integration guides for Claude Code, Cursor, and Windsurf.
It analyzes git diff output for staged changes, differences from HEAD, or differences between branches, providing contextualized reviews based on your task description and project details.
Features
- Reviews git diffs (staged changes, current HEAD, branch differences).
- Integrates with Google Gemini, OpenAI, and Anthropic models through the Vercel AI SDK.
- Allows specification of task description, review focus, and overall project context for tailored reviews.
- Outputs reviews in clear, actionable markdown format.
- Designed to be run from the root of any Git repository you wish to analyze.
- Easily installable and runnable via
npxfor immediate use.
Compatibility
- Node.js: Version 18 or higher is required.
- Operating Systems: Works on Windows, macOS, and Linux.
- Git: Version 2.20.0 or higher recommended.
Prerequisites
- Node.js: Version 18 or higher is required.
- Git: Must be installed and accessible in your system's PATH. The server executes
gitcommands. - API Keys for LLMs: You need API keys for the LLM providers you intend to use. These should be set as environment variables:
GOOGLE_API_KEYfor Google models.OPENAI_API_KEYfor OpenAI models.ANTHROPIC_API_KEYfor Anthropic models. These can be set globally in your environment or, conveniently, in a.envfile placed in the root of the project you are currently reviewing. The server will automatically try to load it.
Installation & Usage
The primary way to use this server is with npx, which ensures you're always using the latest version without needing a global installation.
Recommended: Using with npx
-
Navigate to Your Project: Open your terminal and change to the root directory of the Git repository you want to review.
cd /path/to/your-git-project -
Run the MCP Server: Execute the following command:
npx -y @vibesnipe/code-review-mcpThis command will download (if not already cached) and run the
@vibesnipe/code-review-mcpserver. You should see output in your terminal similar to:[MCP Server] Code Reviewer MCP Server is running via stdio and connected to transport.The server is now running and waiting for an MCP client (like Claude Code, Cursor, or Windsurf) to connect.
Installing via Smithery
To install code-review-mcp for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @praneybehl/code-review-mcp --client claude
Integration with Claude Code
Once the claude-code-review-mcp server is running (ideally via npx from your project's root):
-
Add as an MCP Server in Claude Code: In a separate terminal where Claude Code is running (or will be run), configure it to use this MCP server. The command to run the server (as used by Claude Code) would be
code-review-mcpif installed globally and in PATH, or thenpx ...command if you prefer Claude Code to always fetch it.To add it to Claude Code:
claude mcp add code-reviewer -s <user|local> -e GOOGLE_API_KEY="key" -- code-review-mcpIf you want Claude Code to use
npx(which is a good practice to ensure version consistency if you don't install globally):claude mcp add code-reviewer -s <user|local> -e GOOGLE_API_KEY="key" -- npx -y @vibesnipe/code-review-mcpThis tells Claude Code how to launch the MCP server when the "code-reviewer" toolset is requested. This configuration can be project-specific (saved in
.claude/.mcp.jsonin your project) or user-specific (global Claude Code settings). -
Use Smart Slash Commands in Claude Code: Create custom slash command files in your project's
.claude/commands/directory to easily invoke the review tool. The package includes several example commands in theexamples/claude-commands/directory that you can copy to your project.These improved slash commands don't require you to manually specify task descriptions or project context - they leverage Claude Code's existing knowledge of your project and the current task you're working on.
Example invocation using a slash command in Claude Code:
claude > /project:review-staged-claudeNo additional arguments needed! Claude will understand what you're currently working on and use that as context for the review.
For commands that require arguments (like
review-branch-custom-gemini.mdwhich uses a custom branch name), you can pass them directly after the command:claude > /project:review-branch-custom-gemini mainThis will pass "main" as the $ARGUMENTS_BASE_BRANCH parameter.
Integration with Modern AI IDEs
Cursor Integration
Cursor is a popular AI-powered IDE based on VS Code that supports MCP servers. Here's how to integrate the code review MCP server with Cursor:
-
Configure Cursor's Rules for Code Review:
Create or open the
.cursor/rules/project.mdcfile in your project and add the following section:## Slash Commands /review-staged: Use the perform_code_review tool from the code-reviewer MCP server to review staged changes. Use anthropic provider with claude-3-7-sonnet-20250219 model. Base the task description on our current conversation context and focus on code quality and best practices. /review-head: Use the perform_code_review tool from the code-reviewer MCP server to review all uncommitted changes (HEAD). Use openai provider with o3 model. Base the task description on our current conversation context and focus on code quality and best practices. /review-security: Use the perform_code_review tool from the code-reviewer MCP server to review staged changes. Use anthropic provider with claude-3-5-sonnet-20241022 model. Base the task description on our current conversation context and specifically focus on security vulnerabilities, input validation, and secure coding practices. -
Add the MCP Server in Cursor:
- Open Cursor settings
- Navigate to the MCP Servers section
- Add a new MCP server with the following JSON configuration:
"code-reviewer": { "command": "npx", "args": ["-y", "@vibesnipe/code-review-mcp"], "env": { "GOOGLE_API_KEY": "your-google-api-key", "OPENAI_API_KEY": "your-openai-api-key", "ANTHROPIC_API_KEY": "your-anthropic-api-key" } } -
Using the Commands:
In Cursor's AI chat interface, you can now simply type:
/review-stagedAnd Cursor will use the claude-code-review-mcp server to perform a code review of your staged changes.
Windsurf Integration
Windsurf (formerly Codeium) is another advanced AI IDE that supports custom workflows via slash commands. Here's how to integrate with Windsurf:
-
Configure the MCP Server in Windsurf:
- Open Windsurf
- Click on the Customizations icon in the top right of Cascade
- Navigate to the MCP Servers panel
- Add a new MCP server with the following JSON configuration:
"code-reviewer": { "command": "npx", "args": ["-y", "@vibesnipe/code-review-mcp"], "env": { "GOOGLE_API_KEY": "your-google-api-key", "OPENAI_API_KEY": "your-openai-api-key", "ANTHROPIC_API_KEY": "your-anthropic-api-key" } } -
Create Workflows for Code Review:
Windsurf supports workflows that can be invoked via slash commands. Create a file in
.windsurf/workflows/review-staged.md:# Review Staged Changes Perform a code review on the currently staged changes in the repository. ## Step 1 Use the perform_code_review tool from the code-reviewer MCP server with the following parameters:{ "target": "staged", "llmProvider": "anthropic", "modelName": "claude-3-7-sonnet-20250219", "taskDescription": "The task I am currently working on in this codebase", "reviewFocus": "General code quality, security best practices, and performance considerations", "projectContext": "This project is being developed in Windsurf. Please review the code carefully for any issues." }
Similarly, create workflows for other review types as needed.
-
Using the Workflows:
In Windsurf's Cascade interface, you can invoke these workflows with:
/review-stagedWindsurf will then execute the workflow, which will use the claude-code-review-mcp server to perform the code review.
Tool Provided by this MCP Server
perform_code_review
Description: Performs a code review using a specified Large Language Model on git changes within the current Git repository. This tool must be run from the root directory of the repository being reviewed.
Input Schema (Parameters):
The tool expects parameters matching the CodeReviewToolParamsSchema:
target(enum:'staged','HEAD','branch_diff'): Specifies the set of changes to review.'staged': Reviews only the changes currently staged for commit.'HEAD': Reviews uncommitted changes (both staged and unstaged) against the last commit.'branch_diff': Reviews
FAQ
- What is the Claude Code Review MCP server?
- Claude Code Review is a Model Context Protocol (MCP) server profile on explainx.ai. MCP lets AI hosts (e.g. Claude Desktop, Cursor) call tools and resources through a standard interface; this page summarizes categories, install hints, and community ratings.
- How do MCP servers relate to agent skills?
- Skills are reusable instruction packages (often SKILL.md); MCP servers expose live capabilities. Teams frequently combine both—skills for workflows, MCP for APIs and data. See explainx.ai/skills and explainx.ai/mcp-servers for parallel directories.
- How are reviews shown for Claude Code Review?
- This profile displays 10 aggregated ratings (sample rows for discoverability plus signed-in user reviews). Average score is about 4.5 out of 5—verify behavior in your own environment before production use.
Ratings
4.5★★★★★10 reviews- ★★★★★Shikha Mishra· Oct 10, 2024
Claude Code Review is among the better-indexed MCP projects we tried; the explainx.ai summary tracks the official description.
- ★★★★★Piyush G· Sep 9, 2024
We evaluated Claude Code Review against two servers with overlapping tools; this profile had the clearer scope statement.
- ★★★★★Chaitanya Patil· Aug 8, 2024
Useful MCP listing: Claude Code Review is the kind of server we cite when onboarding engineers to host + tool permissions.
- ★★★★★Sakshi Patil· Jul 7, 2024
Claude Code Review reduced integration guesswork — categories and install configs on the listing matched the upstream repo.
- ★★★★★Ganesh Mohane· Jun 6, 2024
I recommend Claude Code Review for teams standardizing on MCP; the explainx.ai page compares cleanly with sibling servers.
- ★★★★★Oshnikdeep· May 5, 2024
Strong directory entry: Claude Code Review surfaces stars and publisher context so we could sanity-check maintenance before adopting.
- ★★★★★Dhruvi Jain· Apr 4, 2024
Claude Code Review has been reliable for tool-calling workflows; the MCP profile page is a good permalink for internal docs.
- ★★★★★Rahul Santra· Mar 3, 2024
According to our notes, Claude Code Review benefits from clear Model Context Protocol framing — fewer ambiguous “AI plugin” claims.
- ★★★★★Pratham Ware· Feb 2, 2024
We wired Claude Code Review into a staging workspace; the listing’s GitHub and npm pointers saved time versus hunting across READMEs.
- ★★★★★Yash Thakker· Jan 1, 2024
Claude Code Review is a well-scoped MCP server in the explainx.ai directory — install snippets and categories matched our Claude Code setup.