mcp-review-pr
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-review-prReview my current pull request"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-review-pr
An MCP (Model Context Protocol) server for multi-language PR review with deterministic analysis. It provides AI-powered code review tools that automatically detect languages, apply relevant review guidelines, and run quality checks on your pull requests.
✨ Features
Skill-Based Architecture — Modular review skills that auto-activate based on file types, path patterns, and content detection
Deterministic Quality Checks — Run linters and tests as part of the review pipeline, not just AI suggestions
Impact Analysis — Classify changes by architectural layer (UI, domain, infra, shared) and detect breaking changes
Smart Diff Chunking — Automatically splits large PRs into prioritized chunks for incremental review
Result Caching — Cache diff results and guidelines keyed by commit SHA for fast re-runs
Custom Rules — Layer project-specific rules on top of skill-provided guidelines via a simple
rules.mdfileConfigurable — Tune behavior with
.mcp.config.json(ignored files, risk thresholds, max diff size, etc.)
Related MCP server: pr-mcp-server
📦 Built-in Skills
Skill | Priority | Activates On | Linter |
Security | 15 |
| — |
React | 10 |
| ESLint |
TypeScript | 8 |
| ESLint |
Clean Architecture | 7 |
| — |
JavaScript | 5 |
| ESLint |
Skills are activated automatically when PR diffs match their criteria. Multiple skills can be active simultaneously — their guidelines and rules are merged by priority.
🛠 MCP Tools
The server exposes the following tools via the MCP protocol:
Tool | Description |
| Get structured file diffs with additions, deletions, and change types |
| Classify changes by layer, detect breaking changes, assign risk level |
| List all available skills and which ones are active for the current PR |
| Get merged review guidelines from all active skills + custom rules |
| Load all applicable rules (skill rules + custom repo rules) |
| Run skill linters and test suites, returns lint issues and test results |
| Full structured PR review combining all tools into a comprehensive |
🚀 Getting Started
Prerequisites
Node.js ≥ 18
npm
Installation
npm installBuild
npm run buildRunning as MCP Server
Start the server over stdio transport (for integration with MCP-compatible clients):
# Using the compiled output
npm start
# Or during development
npm run devThen configure your MCP client to connect via stdio. For example, in your MCP client config:
{
"mcpServers": {
"review-pr": {
"command": "node",
"args": ["/path/to/mcp-review-pr/dist/server.js"]
}
}
}Running as CLI
The CLI provides standalone usage without an MCP client:
# Review the current repository
npx mcp-review
# Compare against a specific branch
npx mcp-review --base develop
# List available skills and which are active
npx mcp-review --mode skills
# Show active guidelines for your PR
npx mcp-review --mode guidelines
# Analyze impact only
npx mcp-review --mode impact
# Output as markdown instead of JSON
npx mcp-review --format markdown
# Use custom skills directory
npx mcp-review --skills-dir ./my-skillsCLI Options
Option | Alias | Description | Default |
|
| Repository path | Current directory |
|
| Base branch to diff against |
|
|
| Custom skills directory | Built-in skills |
|
| Output format: |
|
|
| Mode: |
|
|
| Show help | — |
⚙️ Configuration
Create a .mcp.config.json in your repository root to customize behavior:
{
"productionBranches": ["main", "production"],
"maxDiffLines": 5000,
"failOnRiskLevel": "high",
"ignoreFiles": ["package-lock.json", "yarn.lock", "pnpm-lock.yaml"],
"enableCaching": true
}Option | Type | Default | Description |
|
|
| Branches considered production |
|
|
| Max diff lines per review chunk |
|
|
| Risk level threshold to flag |
|
| Lock files | Files to exclude from review |
|
|
| Enable diff/guideline caching |
Custom Rules
Add a rules.md file to your repository root with project-specific review rules:
- All API endpoints must validate input with Zod schemas
- Database queries must use parameterized statements
- Components must have display names for debuggingThese rules are merged with skill-provided rules during review.
🧩 Creating Custom Skills
Skills are directories containing three files. Place them in the skills/ directory (or a custom directory via --skills-dir):
skills/
└── my-skill/
├── skill.json # Manifest (required)
├── guideline.md # Review guidelines
└── rules.md # Checklist rulesskill.json — Manifest
{
"name": "my-skill",
"description": "Description of what this skill reviews",
"version": "1.0.0",
"filePatterns": ["**/*.py"],
"activateOn": {
"extensions": [".py"],
"fileContains": ["import django"],
"pathPatterns": ["views/", "models/"]
},
"priority": 8,
"linter": {
"command": "npx",
"args": ["pylint", "--output-format", "json"],
"fileExtensions": [".py"]
}
}Field | Required | Description |
| ✅ | Unique skill identifier |
| — | Human-readable description |
| — | Semantic version |
| — | Glob patterns for relevant files |
| ✅ | Activation criteria (see below) |
| — | Higher = evaluated first (default: 0) |
| — | Optional linter configuration |
Activation criteria (any match triggers activation):
extensions— File extensions in the diff (e.g.,[".ts", ".tsx"])fileContains— Strings found in diff content (e.g.,["from 'react'"])pathPatterns— Path substrings in changed files (e.g.,["components/"])
guideline.md — Review Guidelines
Free-form markdown that provides context and best practices for the reviewer. This is included in the review context when the skill is active.
rules.md — Review Rules
A markdown list of specific, checkable rules:
- Use strict type annotations, avoid `any`
- Prefer `const` over `let` where possible
- All exported functions must have JSDoc comments🏗 Architecture
src/
├── server.ts # MCP server — registers all tools
├── cli.ts # CLI entry point with argument parsing
├── config.ts # .mcp.config.json loader
├── types.ts # Shared TypeScript types
├── cache.ts # Diff and guideline caching (SHA-keyed)
├── chunker.ts # Smart diff chunking with priority ordering
├── retry.ts # Exponential backoff utility
├── skills/
│ ├── index.ts # Public API re-exports
│ ├── types.ts # Skill manifest & runtime types
│ ├── loader.ts # Skill discovery, activation, guideline/rule loading
│ └── runner.ts # Skill linter execution
└── tools/
├── diff.ts # Git diff extraction via simple-git
├── impact.ts # Change impact & risk analysis
├── quality.ts # Lint + test orchestration
├── review.ts # Structured review generation
└── rules.ts # Custom rules.md loader📜 Scripts
Script | Description |
| Compile TypeScript to |
| Run in development mode (via |
| Start the compiled MCP server |
| Run tests (Vitest) |
| Run tests in watch mode |
| Type-check without emitting |
| Lint source files with ESLint |
📄 License
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceAn MCP server that automates code reviews through linting, testing, and git diff analysis. It also generates conventional commit messages and detailed pull request descriptions based on file changes and code patterns.
- AlicenseAqualityDmaintenanceMCP server to automate Pull Request creation with AI. Analyzes Git branches, generates descriptions, titles, suggests reviewers, and performs code reviews.84MIT
- Alicense-qualityDmaintenanceAn MCP server that performs automated code reviews by analyzing git diffs against configurable review standards with custom reviewer personas.2MIT
- Alicense-qualityBmaintenanceMCP server for automated code review using AI agents. It analyzes code diffs or file paths for bugs, security issues, and style violations.MIT
Related MCP Connectors
A Model Context Protocol (MCP) application for automated GitHub PR analysis and issue management.…
AI code review for GitHub PRs with an MCP autofix loop for Claude Code and Cursor
A MCP server built for developers enabling Git based project management with project and personal…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/thangtn83/mcp_pr_review'
If you have feedback or need assistance with the MCP directory API, please join our Discord server