GitHub-PR-Review-MCP-Server

Omjaiswal26/GitHub-PR-Review-MCP-Server

3.2

If you are the rightful owner of GitHub-PR-Review-MCP-Server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

This project demonstrates the use of the FastMCP library to create a GitHub PR review server.

GitHub-PR-Review-MCP

Overview

This project is a FastMCP based GitHub PR Review Server.

Features

  • List PRs in a repository
  • Get diff for a specific PR
  • Suggest comments for a PR
  • Review a PR

Setup

  1. Clone the repository
git clone https://github.com/cymake/GitHub-PR-Review-MCP.git
  1. Install the dependencies using uv
pip install uv
uv pip install -r requirements.txt
  1. Create a .env file and set the GITHUB_TOKEN environment variable
GITHUB_TOKEN=your_github_token

Usage

  1. Run the server
python server.py
  1. Run the client
python client.py

Connecting to Claude Desktop

  1. Run Claude Desktop
  2. Run the server
  3. Edit 'claude_desktop_config.json'
  4. Add the following
{
  "mcpServers": {
    "pr-review-server": {
      "command": "uv",
      "args": ["run","--with", "fastmcp", "--with", "dotenv", "--with", "requests", "python", "path/to/server.py"],
      "env": {
        "GITHUB_TOKEN": "your_github_token"
      }
    }
  }
}
  1. Restart Claude Desktop

  2. Ask about various PRs and Enjoy!!!