Code Review MCP Tool for Cursor
@Orcus2021
About Code Review MCP Tool for Cursor
A Model Context Protocol (MCP) tool that automates code review and leaves comments directly on GitHub PRs, with support for Notion integration for custom review guidelines.
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"code-review": {
"command": "npx",
"args": [
"-y",
"code-review-mcp-server"
],
"env": {
"GITHUB_TOKEN": "github_token",
"NOTION_API_KEY": "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",
"IGNORE_PATTERNS": "pattern1,pattern2,pattern3"
}
}
}
}Tools
7Run a git diff between branches. Requires a base branch name to compare against the current branch, and provide instructions to review/fix issues.
Get git diff between two branches locally. Returns raw diff output without review instructions.
Run a git diff using a GitHub PR URL. Requires a GitHub pull request URL to fetch the diff, and provide instructions to review/fix issues.
Add a summary comment to a GitHub pull request
Add multiple comments to specific lines in a GitHub pull request
Read PR template from specified folder path and template name, returns template content or default template if not found
Create a new GitHub Pull Request with specified title, body, and branches. Automatically detects GitHub URL and current branch from local git configuration.
Overview
What is Code Review MCP Tool for Cursor?
Code Review MCP Tool for Cursor is a Model Context Protocol (MCP) server that provides automated code review and leaves GitHub PR comments for any app supporting MCP integration, such as Cursor.
How to use Code Review MCP Tool for Cursor?
Add an MCP server configuration in your app’s JSON file with command: "npx", args: ["-y", "code-review-mcp-server"], and required environment variables like GITHUB_TOKEN. Then send commands such as code review with a base branch or a GitHub PR URL to get diffs and review suggestions.
Key features of Code Review MCP Tool for Cursor
- Compare code differences between two git branches
- Compare code differences from GitHub pull request URLs
- Add summary and line-specific comments to GitHub PRs
- Retrieve review guidelines from Notion code blocks
- Read PR templates from local directories
- Create GitHub Pull Requests with auto-detected repository info
Use cases of Code Review MCP Tool for Cursor
- Perform local branch review before merging changes
- Automate code review and comment on GitHub pull requests
- Integrate with CI pipelines using n8n webhooks for automated review
- Provide consistent review instructions via local markdown files or Notion
FAQ from Code Review MCP Tool for Cursor
What are the prerequisites for using this tool?
Node.js v18 or above, Git installed, and either a GITHUB_TOKEN environment variable or the GitHub CLI (gh) installed and authenticated for PR operations.
How are review instructions prioritized?
The tool uses a priority order: 1) Local markdown file via LOCAL_INSTRUCTIONS_FILE_PATH, 2) Notion integration (requires NOTION_API_KEY), 3) Built-in default guidelines.
Can I use it with Cursor or other MCP apps?
Yes, it is an MCP server compatible with any app that supports MCP integration, including Cursor.
Does it require a GitHub token?
It is optional; the tool falls back to the GitHub CLI (gh) if GITHUB_TOKEN is not set.
Where does the review data live?
Code diffs are obtained from local git or GitHub PRs via the API. No external data storage is used by the server; PR comments are added directly to GitHub.
Frequently asked questions
What are the prerequisites for using this tool?
Node.js v18 or above, Git installed, and either a `GITHUB_TOKEN` environment variable or the GitHub CLI (`gh`) installed and authenticated for PR operations.
How are review instructions prioritized?
The tool uses a priority order: 1) Local markdown file via `LOCAL_INSTRUCTIONS_FILE_PATH`, 2) Notion integration (requires `NOTION_API_KEY`), 3) Built-in default guidelines.
Can I use it with Cursor or other MCP apps?
Yes, it is an MCP server compatible with any app that supports MCP integration, including Cursor.
Does it require a GitHub token?
It is optional; the tool falls back to the GitHub CLI (`gh`) if `GITHUB_TOKEN` is not set.
Where does the review data live?
Code diffs are obtained from local git or GitHub PRs via the API. No external data storage is used by the server; PR comments are added directly to GitHub.
Basic information
More Developer Tools MCP servers
Vibgrate MCP
VibgrateQuery your team's drift, vulnerability, and migration data from any AI assistant. Vibgrate MCP connects Cursor, Claude, ChatGPT, Windsurf, or VS Code to Vibgrate Cloud: 51 tools for DriftScores, CVEs and EOL runtimes, up

Apiosk
obcraftAI-native payments for tools and APIs. Discover, pay for, execute, and publish monetized APIs directly from your agent, settled per call in USDC over x402, through the Model Context Protocol. payments · finance · x402 ·
Mobbin
MobbinMobbin MCP connects your AI agents to 600,000+ real product screens, so what they build starts with what already works.

TaskerArmy Agent
TaskerArmyAsk Claude or ChatGPT what Shopify theme optimization tasks are pending on your store, a remote MCP server for TaskerArmy Agent accounts.

CircleCI MCP Server
CircleCIManage CI/CD pipelines, debug failed builds, and optimize test suites directly from your AI agents - no terminal required. The CircleCI MCP Server is a remote server hosted by CircleCI that connects AI tools and agents
Comments