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">

![PR Generation Meme](https://i.imgflip.com/8i7s5k.jpg)

_When your PR description writes itself_

[![npm version](https://img.shields.io/npm/v/generate-pr-mcp.svg)](https://www.npmjs.com/package/MIT)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](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.