GitHub PR & Issue Analyzer MCP server

Integrates with GitHub's API to automate pull request analysis, issue management, and repository operations directly from desktop language models.
Back to servers
Setup instructions
Provider
Said Sef
Release date
May 21, 2025
Language
Rust
Stats
5 stars

The MCP server for GitHub provides automated analysis of pull requests, issue management, and release tracking through the Model Context Protocol. It serves as a bridge between LLMs and GitHub's repository features, enabling seamless interaction with GitHub repositories directly from your desktop LLM.

Requirements

  • Python 3.11+
  • GitHub Personal Access Token (with repo scope)

Installation

Clone and Setup

  1. Clone the repository:
git clone https://github.com/saidsef/mcp-github-pr-issue-analyser.git
cd mcp-github-pr-issue-analyser
  1. Launch MCP in stdio mode:
export GITHUB_TOKEN="<github-token>"
uvx ./
  1. Alternatively, launch MCP in sse mode:
export GITHUB_TOKEN="<github-token>"
export MCP_ENABLE_REMOTE=true
uvx ./

When running in SSE mode, you can access it at http://localhost:8080/sse

Integration with Desktop LLMs

To add this MCP server to your desktop LLM (such as Claude), add the following section to your LLM's configuration file:

{
  "mcpServers": {
    "github_pr_issues": {
      "command": "uvx",
      "env": {
        "GITHUB_TOKEN": "<your-github-token>"
      },
      "args": [
        "https://github.com/saidsef/mcp-github-pr-issue-analyser.git"
      ]
    }
  }
}

Available Features

Pull Request Management

  • Analyze GitHub Pull Requests and fetch diffs
  • Fetch content and metadata for specific PRs
  • Update PR title and description
  • Add comments to PRs
  • Add inline review comments to PRs

Issue Management

  • Create and update GitHub Issues
  • List all open Issues or Pull Requests

Tags and Releases

  • Create tags and releases
  • Tag repository commits
  • Publish releases with changelogs

Network Information

  • Retrieve IPv4 and IPv6 information
  • Get public IP address details

System Architecture

The MCP server connects your LLM to GitHub through several components:

  • PRIssueAnalyser: Main MCP server handling tool registration and requests
  • GitHub Integration: Manages all GitHub API interactions
  • IP Integration: Handles IPv4/IPv6 information retrieval
  • MCP Client: Interacts via stdio or Server-Sent Events (SSE)

The server provides a unified interface to GitHub's PRs, Issues, and Tags/Releases systems through standardized MCP tools.

How to install this MCP server

For Claude Code

To add this MCP server to Claude Code, run this command in your terminal:

claude mcp add-json "github_pr_issues" '{"command":"uvx","env":{"GITHUB_TOKEN":"<your-github-token>"},"args":["https://github.com/saidsef/mcp-github-pr-issue-analyser.git"]}'

See the official Claude Code MCP documentation for more details.

For Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > Tools & Integrations and click "New MCP Server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "github_pr_issues": {
            "command": "uvx",
            "env": {
                "GITHUB_TOKEN": "<your-github-token>"
            },
            "args": [
                "https://github.com/saidsef/mcp-github-pr-issue-analyser.git"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explicitly ask the agent to use the tool by mentioning the tool name and describing what the function does.

For Claude Desktop

To add this MCP server to Claude Desktop:

1. Find your configuration file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json
  • Linux: ~/.config/Claude/claude_desktop_config.json

2. Add this to your configuration file:

{
    "mcpServers": {
        "github_pr_issues": {
            "command": "uvx",
            "env": {
                "GITHUB_TOKEN": "<your-github-token>"
            },
            "args": [
                "https://github.com/saidsef/mcp-github-pr-issue-analyser.git"
            ]
        }
    }
}

3. Restart Claude Desktop for the changes to take effect

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later