Back to Developer Tools
generate-pr-mcp
A Model Context Protocol server that automatically generates detailed Pull Request descriptions from your code changes. Say goodbye to writing PR descriptions manually!
Last updated: 1/27/2026
README
# ๐ Generate PR MCP
<div align="center">

_When your PR description writes itself_
[](https://www.npmjs.com/package/MIT)
[](http://makeapullrequest.com)
</div>
## ๐ Overview
A Model Context Protocol server that automatically generates detailed Pull Request descriptions from your code changes. Say goodbye to writing PR descriptions manually!
## โจ Features
- ๐ Analyzes git diffs to create comprehensive PR descriptions
- ๐ Highlights key implementation points and code changes
- ๐งฉ Modular template architecture for customized PR generation
- ๐ Automatic project type detection
- ๐ Generates markdown files for easy sharing
- ๐ผ๏ธ Support for including before/after screenshots
## ๐ ๏ธ Installation
```bash
# Install globally
npm install -g generate-pr-mcp
# Or use with npx
npx generate-pr-mcp
```
## configuration with cursor
````bash
# get the path to the generate-pr-mcp package
npm list -g generate-pr-mcp --parseable
## output => /Users/username/.nvm/versions/node/v22.14.0/lib/node_modules/generate-pr-mcp/build/index.js
```json
{
"mcpServers": {
"generate-pr-mcp": {
"command": "node",
"args": [
"/Users/username /.nvm/versions/node/v22.14.0/lib/node_modules/generate-pr-mcp/build/index.js"
]
}
}
}
````
## ๐ฆ Usage
Run the MCP server in your project directory:
```bash
# If installed globally
mcp-server
# Or with npx
npx generate-pr-mcp
```
### ๐ Example Output
The tool generates a structured PR document including:
- PR title and description
- Summary of changes
- Key implementation points
- Code highlights
- Testing instructions
## ๐ How It Works
1. Detects the current git branch and finds the base branch (main/master)
2. Analyzes the diff between branches or staged changes
3. Processes the diff to identify key changes
4. Generates a formatted PR description using templates
5. Saves the output to a markdown file
## ๐งช Supported Project Types
The tool automatically detects and optimizes PR descriptions for:
- JavaScript/TypeScript projects
- React applications
- Node.js backends
- And more!
## ๐ค Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
1. Fork the repository
2. Create your feature branch (`git checkout -b feature/amazing-feature`)
3. Commit your changes (`git commit -m 'Add some amazing feature'`)
4. Push to the branch (`git push origin feature/amazing-feature`)
5. Open a Pull Request
## ๐ License
This project is licensed under the MIT License - see the LICENSE file for details.
Installation
Add this MCP to your configuration:
{
"mcpServers": {
"generate-pr-mcp": {
// See GitHub repository for configuration
}
}
}See the GitHub repository for full installation instructions.