GitHub PR MCP Server
The GitHub PR MCP Server is designed to analyze and extract detailed information about GitHub Pull Requests.
With this server, you can:
Fetch comprehensive PR details including files changed, diff content, comments, and reviews
Specify target repositories by owner, name, and pull request number
Optionally authenticate using a GitHub personal access token for access to private repositories
Benefit from schema validation ensuring accurate data processing
Leverage TypeScript-based implementation for robust, type-safe operations
Enables analysis of GitHub Pull Requests, allowing users to extract information and insights from PRs through an MCP server architecture.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@GitHub PR MCP Serveranalyze the latest pull request in my repo for potential conflicts"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
GitHub PR MCP Server
An MCP (Model Context Protocol) server built with TypeScript for analyzing GitHub Pull Requests.
Prerequisites
Related MCP server: Drone CI MCP Server
Installation
Installing via Smithery
To install GitHub PR MCP Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @gourav221b/Github-PR-MCP-server --client claudeManual Installation
Clone the repository:
git clone https://github.com/gourav221b/Github-PR-MCP-server.gitNavigate to the project directory:
cd Github-PR-MCP-serverInstall dependencies:
npm installBuild the project:
npm run buildAdd the path to MCP Client Config:
command: node args: path/to/build/index.js
Project Structure
src/: Contains the TypeScript source code.build/: Holds the compiled JavaScript files.package.json: Lists project dependencies and scripts.tsconfig.json: TypeScript configuration file.
Scripts
npm run build: Compiles TypeScript files into JavaScript.npm start: Runs the compiled JavaScript server.
Contributing
Contributions are welcome! Please fork the repository and create a pull request with your changes.
License
This project is licensed under the MIT License.
Available Tools
1 toolget-pull-request-dataC
Get detailed information about a GitHub Pull Request including files, diff, comments, and reviews
| Name | Required | Description | Default |
|---|---|---|---|
| owner | Yes | GitHub repository owner | |
| pullNumber | Yes | Pull request number | |
| repo | Yes | GitHub repository name | |
| token | No | GitHub personal access token (optional) |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions what data is retrieved but fails to describe critical behaviors such as authentication requirements (though the token parameter is optional in the schema), rate limits, error handling, or response format. For a tool with no annotations, this leaves the agent with insufficient operational context.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, efficient sentence that front-loads the core action and details without waste. Every word earns its place by specifying the resource and the scope of information retrieved, making it highly concise and well-structured.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the complexity of retrieving detailed PR data and the lack of annotations and output schema, the description is incomplete. It does not cover behavioral aspects like authentication, rate limits, or response structure, which are crucial for an agent to use the tool effectively. The description alone is insufficient for safe and informed tool invocation.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The schema description coverage is 100%, so the schema already documents all parameters (owner, repo, pullNumber, token). The description does not add any meaning beyond what the schema provides, such as explaining parameter interactions or constraints. Baseline 3 is appropriate as the schema handles parameter documentation adequately.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the verb ('Get') and resource ('detailed information about a GitHub Pull Request'), and specifies what information is included ('files, diff, comments, and reviews'). It distinguishes the scope of data retrieved, though without sibling tools, differentiation isn't applicable. The purpose is specific and actionable.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives, prerequisites, or context for invocation. It lacks any mention of when-not-to-use scenarios or comparisons to other tools, which is a significant gap despite the absence of sibling tools. Usage is implied by the name and description but not explicitly stated.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
TDQS
With only one tool, there is no possibility of ambiguity or overlap between tools. The tool's purpose is clearly defined as retrieving detailed pull request data, making it distinct by default.
The single tool name follows a clear verb_noun pattern ('get-pull-request-data'), which is consistent within this minimal set. There are no other tools to compare against, so no inconsistency can arise.
A server named 'GitHub PR MCP Server' implies a focus on pull requests, but having only one tool is too few for this domain. It lacks essential operations like creating, updating, merging, or listing pull requests, making it severely limited in scope.
The tool surface is severely incomplete for a GitHub PR server. It only provides read access to pull request data, missing core functionalities such as creating, updating, commenting on, or merging pull requests, which are critical for typical workflows.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
A Model Context Protocol (MCP) application for automated GitHub PR analysis and issue management.…
A TypeScript MCP server for Home Assistant, enabling programmatic management of entities, automati…
Screens public GitHub repos and PRs to generate risk maps, findings, and merge-readiness signals.
Ship production-ready TypeScript code in half the time, at half the cost.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA Node.js/TypeScript server implementing the Model Context Protocol that provides integrations with GitHub and Notion, allowing automated workflow between these platforms via API endpoints.2,013MIT
- AlicenseBqualityCmaintenanceA TypeScript-based MCP server scaffold designed for monitoring and interacting with Drone CI environments. It provides tools for webhook parsing, HMAC signature verification, and state management for CI/CD pipelines.6Apache 2.0
- FlicenseNot gradedqualityDmaintenanceA TypeScript MCP server that validates codebases against configurable rules. It analyzes files for violations and generates JSON reports, supporting custom rule definitions and file extensions.
- FlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that exposes tools and resources for fetching GitHub user profiles and weather data, with a React interface and clean architecture.11
Appeared in Searches
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/gourav221b/Github-PR-MCP-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server