GitHub PR Diff
FreeNot checkedIntegrates with GitHub's Pull Request API to extract diff content, enabling automated code review and analysis workflows.
About
Integrates with GitHub's Pull Request API to extract diff content, enabling automated code review and analysis workflows.
README
The GitHub MCP server provides functionality to extract diffs from Pull Requests.
Available Tools
get_diff_pr
Retrieves the diff content from a GitHub Pull Request.
Parameters:
owner: Repository owner/organization namerepo: Repository namepr_number: Pull Request number
Returns: Object containing:
content: String containing the PR diff
Authentication
Required: Set the GitHub Personal Access Token as an environment variable:
export GITHUB_TOKEN=<your-github-token>
The token needs at least repo scope permissions to access private repositories. For public repositories, a token with public_repo scope is sufficient.
Error Handling
The server implements standard error handling:
- Missing/invalid token returns
ErrorCode.AuthenticationError - Invalid repository details return
ErrorCode.InvalidParams - Non-existent PR returns
ErrorCode.NotFound - Failed diff fetches return formatted error messages
- Graceful shutdown on SIGINT
Technical Details
- Built using the Highlight AI MCP SDK
- Uses GitHub REST API v3
- Input validation via Zod
- Runs as a stdio-based MCP server
- Supports Node.js >=18.0.0
Limitations
- Rate limits apply based on GitHub API restrictions
- Large diffs may be truncated according to GitHub API limits
- Token requires appropriate repository access permissions
Installing GitHub PR Diff
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/highlight-ing/highlight-github-mcpFAQ
Is GitHub PR Diff MCP free?
Yes, GitHub PR Diff MCP is free — one-click install via Unyly at no cost.
Does GitHub PR Diff need an API key?
No, GitHub PR Diff runs without API keys or environment variables.
Is GitHub PR Diff hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install GitHub PR Diff in Claude Desktop, Claude Code or Cursor?
Open GitHub PR Diff on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectCompare GitHub PR Diff with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
