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.
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.
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.
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.
Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.
Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.
| Tool | What it does |
|---|---|
| CodeReview | Runs git diff between branch and base branch. Returns the diff along with instructions to review and fix issues. |
| GetLocalGitDiff | Get git diff between two branches locally. Returns raw diff output without review instructions. |
| CodeReviewWithGithubUrl | Fetches diff from a GitHub PR URL. Returns the diff along with instructions to review and fix issues. |
| AddPRSummaryComment | Adds a summary comment to a GitHub PR. |
| AddPRLineComment | Adds multiple comments to specific lines in a GitHub PR. Supports commenting on specific changed lines in the PR diff. |
| GetPRTemplate | Read PR template from specified folder path and template name, returns template content or default template if not found. |
| CreatePR | Create a new GitHub Pull Request with specified title, body, and branches. Automatically detects GitHub URL and current branch from local git configuration. |
{
"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.
| Variable | Description | Required |
|---|---|---|
| GITHUB_TOKEN | Declared in the maintainer’s client configuration. | Check documentation |
| NOTION_API_KEY | Declared in the maintainer’s client configuration. | Check documentation |
| NOTION_CODE_REVIEW_GUIDELINE_CODE_BLOCK_URL | Declared in the maintainer’s client configuration. | Check documentation |
| NOTION_STYLE_GUIDELINE_CODE_BLOCK_URL | Declared in the maintainer’s client configuration. | Check documentation |
| LOCAL_INSTRUCTIONS_FILE_PATH | Declared in the maintainer’s client configuration. | Check documentation |
| IGNORE_PATTERNS | Declared in the maintainer’s client configuration. | Check documentation |
Read, search and edit files inside allowed directories with the Model Context Protocol reference Filesystem server.
Retrieve version-aware library documentation and code examples with Context7 MCP, using resolve-library-id and query-docs.
Free proof-of-existence attestation for digital files, MCP tools for the imgauth service.
Give AI agents Git history tools: commit search, file history, blame, contributors, ref diffs.
Checks the status of Airbyte connections through the Claude Desktop MCP protocol.
1. Fork the Repository: Create your own copy on GitHub. 2. Create a Branch: Work on your feature or fix in a new branch. 3. Submit a Pull Request: Include a clear description of your changes.