A community-driven registry for Claude, Cursor, Windsurf, Cline & more. Not affiliated with Anthropic.
Are you the author? Sign in to claim
A Model Context Protocol (MCP) tool that automates code review and leaves comments directly on GitHub PRs, with support
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.
GITHUB_TOKEN environment variable (to use the GitHub RESTful API), orgh) installed and authenticatedTo use this tool in any app that supports MCP, follow these steps:
{
"mcpServers": {
"code-review-tool": {
"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",
"LOCAL_INSTRUCTIONS_FILE_PATH": "/path/to/complete-instructions.md",
"IGNORE_PATTERNS": "pattern1,pattern2,pattern3"
}
}
}
}
| Variable | Required | Description |
|---|---|---|
GITHUB_TOKEN | Optional | GitHub personal access token for API access. Falls back to GitHub CLI if not provided. |
LOCAL_INSTRUCTIONS_FILE_PATH | Optional | Path to a local markdown file containing complete review instructions. When provided, this file completely replaces the combined Notion/default guidelines. Priority: Local > Notion > Default. |
IGNORE_PATTERNS | Optional | Comma-separated glob patterns for files to exclude from review. |
| Notion | ||
NOTION_API_KEY | Optional | Required for fetching review guidelines from Notion. |
NOTION_CODE_REVIEW_GUIDELINE_CODE_BLOCK_URL | Optional | Notion URL containing code review guidelines. Must point to a Notion </> Code block and requires valid NOTION_API_KEY to function. Falls back to default guidelines if not configured. |
NOTION_STYLE_GUIDELINE_CODE_BLOCK_URL | Optional | Notion URL containing style guidelines. Must point to a Notion </> Code block and requires valid NOTION_API_KEY to function. Falls back to default guidelines if not configured. |
The tool supports multiple sources for review instructions with the following priority order (implementation):
Local Markdown File (Highest Priority)
LOCAL_INSTRUCTIONS_FILE_PATH environment variable.md or .markdown fileNotion Integration (Medium Priority)
NOTION_API_KEY and respective URL environment variablesDefault Guidelines (Lowest Priority)
For detailed instructions, refer to: Notion API Authorization Guide
The tool requires the following environment variables:
NOTION_API_KEY=your_token_here
NOTION_CODE_REVIEW_GUIDELINE_CODE_BLOCK_URL=your_notion_code_block_url
NOTION_STYLE_GUIDELINE_CODE_BLOCK_URL=your_notion_style_guideline_url
These can be provided in the env section of your MCP configuration as shown above.
Share button on your Notion pageNote: Currently only supports reading code blocks from Notion
For detailed instructions, refer to: Notion API Connections Guide
Tip: For better review results, it's recommended to switch to the branch being reviewed before running the code review command.
In your MCP-compatible app, send the following command:
code review
base branch: branch/any_branch
This will:
To get only the git diff without review instructions:
get local git diff
base branch: main
This will return the raw git diff output between the current branch and the specified base branch, useful for further processing or analysis.
In your MCP-compatible app, send the following command:
code review
https://github.com/owner/repo/pull/123
After generating the review report, please:
1. Add PR summary comment
2. If individual files require suggested changes, use line comments.
This will fetch the PR's diff, provide a code review, and leave PR comments directly on GitHub.
Create a PR with automatic repository detection:
create PR base on diff
base branch: main
The tool will:
Manual override (if auto-detection fails):
create PR
github url: https://github.com/user/repo
base branch: main
Read PR templates from your repository:
get PR template
This will:
pull_request_template.md in the specified folder.github/ subdirectoryCustom template name:
get PR template
folder path: /path/to/your/repo/template
template name: custom_template.md
You can automate code review in your CI pipeline by triggering an n8n webhook, which will call this project's MCP tool to perform the review and return results or leave comments on your PR.
For a step-by-step guide and recommended workflow diagram, see: CI Integration with n8n and MCP Tool
This tool provides multiple ways to configure review guidelines:
Create a complete instruction file in markdown format and set the LOCAL_INSTRUCTIONS_FILE_PATH environment variable. This provides the most flexibility and version control for your review process.
Configure separate style and code review guidelines through Notion code blocks.
The tool includes built-in guidelines covering:
Run Claude Code as an MCP server so any agent can delegate coding tasks to it
Browser automation using accessibility snapshots instead of screenshots
MCP server integration for DaVinci Resolve Studio
A Jetbrains IDE IntelliJ plugin aimed to provide coding agents the ability to leverage intelliJ's indexing of the codeba