Code Review MCP Tool for Cursor

This tool is a Model Context Protocol (MCP) server that provides automated code review and leaves GitHub PR comments for any app that supports MCP integration.

Local serverstdioMIT

What is the Code Review MCP Tool for Cursor MCP Server?

Code Review MCP Tool for Cursor is an MCP project maintained in the orcus2021/code-review-mcp-server repository. The maintainer describes its purpose as “This tool is a Model Context Protocol (MCP) server that provides automated code review and leaves GitHub PR comments for any app that supports MCP…”. Read the project documentation for the complete scope.

Installation

The documented npm package is code-review-mcp-server. The configuration below comes from the maintainer’s example; adapt its paths and account values to your environment.

Configuration values

The example declares GITHUB_TOKEN, NOTION_API_KEY, NOTION_CODE_REVIEW_GUIDELINE_CODE_BLOCK_URL, NOTION_STYLE_GUIDELINE_CODE_BLOCK_URL, LOCAL_INSTRUCTIONS_FILE_PATH, IGNORE_PATTERNS. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
CodeReviewRuns git diff between branch and base branch. Returns the diff along with instructions to review and fix issues.
GetLocalGitDiffGet git diff between two branches locally. Returns raw diff output without review instructions.
CodeReviewWithGithubUrlFetches diff from a GitHub PR URL. Returns the diff along with instructions to review and fix issues.
AddPRSummaryCommentAdds a summary comment to a GitHub PR.
AddPRLineCommentAdds multiple comments to specific lines in a GitHub PR. Supports commenting on specific changed lines in the PR diff.
GetPRTemplateRead PR template from specified folder path and template name, returns template content or default template if not found.
CreatePRCreate a new GitHub Pull Request with specified title, body, and branches. Automatically detects GitHub URL and current branch from local git configuration.

How to install the Code Review MCP Tool for Cursor MCP Server

{
  "mcpServers": {
    "code-review-tool": {
      "command": "npx",
      "args": [
        "-y",
        "code-review-mcp-server"
      ],
      "env": {
        "GITHUB_TOKEN": "YOUR_GITHUB_TOKEN",
        "NOTION_API_KEY": "YOUR_NOTION_API_KEY",
        "NOTION_CODE_REVIEW_GUIDELINE_CODE_BLOCK_URL": "notion_code_block_url_here",
        "NOTION_STYLE_GUIDELINE_CODE_BLOCK_URL": "notion_code_block_url_here",
        "LOCAL_INSTRUCTIONS_FILE_PATH": "/path/to/complete-instructions.md",
        "IGNORE_PATTERNS": "pattern1,pattern2,pattern3"
      }
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
GITHUB_TOKENDeclared in the maintainer’s client configuration.Check documentation
NOTION_API_KEYDeclared in the maintainer’s client configuration.Check documentation
NOTION_CODE_REVIEW_GUIDELINE_CODE_BLOCK_URLDeclared in the maintainer’s client configuration.Check documentation
NOTION_STYLE_GUIDELINE_CODE_BLOCK_URLDeclared in the maintainer’s client configuration.Check documentation
LOCAL_INSTRUCTIONS_FILE_PATHDeclared in the maintainer’s client configuration.Check documentation
IGNORE_PATTERNSDeclared in the maintainer’s client configuration.Check documentation