drio
Open app

GitHub PR Comments MCP Server

Source

MCP server that fetches GitHub Pull Request comments

Catalog onlyCatalog onlySTDIO

Overview

GitHub PR Comments MCP Server is a Model Context Protocol (MCP) server designed to fetch comments from GitHub Pull Requests using a personal access token.

To use the server, you can either install it via Smithery or manually clone the repository, install dependencies, and set up your GitHub token. After building the project, you can run the server and use the get_pr_comments tool to fetch comments.

  • Fetches PR comments along with file paths, line ranges, and replies. - Utilizes the GitHub API through Octokit. - Implements an MCP server with StdioServerTransport. - Returns comments in a structured JSON format.
  1. Automating the retrieval of comments for code reviews.
  2. Integrating with CI/CD pipelines to analyze PR feedback.
  3. Building tools that require access to PR discussions and comments.

Add to your AI client

Use these steps to connect GitHub PR Comments MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "github-pr-mcp-shaileshahuja": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-github-pr-mcp-shaileshahuja"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "github-pr-mcp-shaileshahuja": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-github-pr-mcp-shaileshahuja"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "github-pr-mcp-shaileshahuja": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-github-pr-mcp-shaileshahuja"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "github-pr-mcp-shaileshahuja": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-github-pr-mcp-shaileshahuja"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "github-pr-mcp-shaileshahuja": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-github-pr-mcp-shaileshahuja"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "github-pr-mcp-shaileshahuja": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-github-pr-mcp-shaileshahuja"
      ]
    }
  }
}

FAQ

How do I install the server?

You can install it via Smithery or manually by cloning the repository and setting up your environment.

What parameters does the `get_pr_comments` tool accept?

It accepts `owner`, `repo`, and `pull_number` as parameters to fetch comments.

Can I run the server in development mode?

Yes, you can run the server in development mode using the command `npm run dev`.