pr-mcp-server
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., "@pr-mcp-serverCreate a pull request with a review"
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.
pr-mcp-server
MCP (Model Context Protocol) server to automate Pull Request creation with AI. Analyzes Git branches, generates descriptions, titles, suggests reviewers, and performs code reviews. Designed to speed up reviews and improve PR quality.
β¨ Features
π Unified PR Workflow - Complete PR creation with one command ("Create a PR")
π§ AI-Powered Code Review - Context-aware review integrated into PR description
π Project Context Analysis - Detects TypeScript, i18n, state management, styling, testing frameworks
π PR Generation - Generate PR descriptions (standard, detailed, minimal templates | EN/FR)
π·οΈ Conventional Titles - Generate conventional PR titles (feat, fix, docs, etc.)
π¨ Smart GIFs - Automatically adds relevant GIFs based on work type
π₯ Auto Reviewers - Suggest and add reviewers based on contribution history
π Code Review - Automated code review with actionable feedback
π€ AI-Ready - Works with MCP Inspector, Cursor, and Claude Desktop
π Documentation
Configuration Guide - Setup for Cursor, Claude Desktop, and MCP Inspector
Tools Reference - Detailed description of all available tools
GitHub Integration - Creating PRs on GitHub with auto-reviewers
Smart Reviewers - How reviewer detection works and troubleshooting
Smart GIF Selection - Automatic GIF selection and rate limit handling
Examples - Real-world usage examples
Architecture - Project structure and design
π Quick Start
Requirements
Node.js 18+
A Git repository
Installation
Local development:
npm install
npm run buildGlobal installation (recommended):
npm linkThis makes the pr-mcp-server command available globally.
Test with MCP Inspector
After npm link, run:
npx @modelcontextprotocol/inspector pr-mcp-serverThe Inspector will list all available tools. Run it inside a Git repository for full functionality.
Use with Cursor
Add to ~/.cursor/mcp.json:
{
"mcpServers": {
"pr-mcp-server": {
"command": "pr-mcp-server",
"cwd": "{workspaceFolder}"
}
}
}Restart Cursor, then ask:
"Create a PR" - Uses the unified workflow (recommended)
"Génère le titre de ma PR"
"Analyse ma branche et génère la description de la PR"
"CrΓ©e une PR sur GitHub avec des reviewers"
See Configuration Guide for more details.
π― Unified PR Creation Workflow (AI-Powered)
When you say "Create a PR", Claude (the AI) orchestrates an intelligent workflow:
How It Works
Call
reviewtool - Gathers comprehensive project context:Detects language/framework (TypeScript, PHP, Python, Go, Rust, etc.)
Identifies technologies (i18n, state management, styling, testing)
Extracts full diff and commit history
Returns structured prompt with all context
Claude analyzes and generates review - True AI-powered analysis:
Understands project conventions automatically
Identifies issues specific to YOUR tech stack
Provides intelligent, context-aware suggestions
Works for ANY language/framework (not just TypeScript!)
Call
create_pr_completewith review - Creates complete PR:Generates conventional commit-style title
Creates comprehensive description
Includes Claude's intelligent review
Adds smart GIF based on PR type
Creates/updates GitHub PR
Assigns reviewers from Git history
What Makes It Intelligent
Unlike rule-based tools, this uses Claude's intelligence to:
β Adapt to ANY project (PHP Laravel, Python Django, Go, Rust, etc.)
β Understand complex patterns and context
β Provide project-specific recommendations
β Detect violations of YOUR project's conventions
Example: In a PHP Laravel project, it will flag SQL injection vulnerabilities and suggest Eloquent ORM. In a React i18n project, it will catch hardcoded strings. All automatically!
Example Usage
# In Cursor or Claude Desktop, simply say:
"Create a PR"
# Claude will automatically:
# 1. Call 'review' to get project context
# 2. Analyze the context and generate intelligent review
# 3. Call 'create_pr_complete' with the review
# 4. Return the PR URL
# With specific options:
"Create a PR in English with the detailed template"
"Create a draft PR without reviewers"See AI_POWERED_REVIEW.md for technical details on how the AI review works.
π οΈ Available Tools
Tool | Description | Recommended |
| π Unified workflow - Complete PR creation with AI review | β YES |
| Create PR on GitHub with auto-reviewers (no AI review) | |
| Analyze differences between branches | |
| Generate conventional PR title | |
| Generate PR description | |
| Generate both title and description | |
| Suggest reviewers based on Git history | |
| Automated code review (context-aware) |
Recommendation: Use create_pr_complete for the best experience. It combines all features with intelligent, context-aware code review.
See Tools Reference for detailed documentation.
π¦ Useful Scripts
npm run build # Compile TypeScript to dist/
npm start # Start the MCP server
npm test # Run tests
npm run test:watch # Run tests in watch mode
npm run test:ui # Run tests with UI
npm run dev # Run in development modeπ Troubleshooting
"Not a git repository": Run the server inside a Git repo
ESM import issues: Use Node 18+ and build the project (
npm run build)Permission errors: Ensure your shell has access to the repo
"GitHub token is required": Set
GITHUB_TOKENenvironment variable"Branch does not exist on remote": Push your branch first
See GitHub Integration for more troubleshooting.
π License
MIT
This server cannot be installed
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
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/valentin-harrang/pr-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server