GitHub Integration MCP Server
Provides functionality to extract diffs from GitHub Pull Requests, allowing retrieval of PR diff content by specifying repository owner, repo name, and PR number.
Serves as the runtime environment for the MCP server, requiring version 18.0.0 or higher for operation.
Used for input validation within the MCP server to ensure proper parameter formatting before API requests are processed.
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 Integration MCP Serverget the diff for PR #42 in glama-ai/mcp-servers"
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 Integration
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
Related MCP server: PR Review MCP Server
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.AuthenticationErrorInvalid repository details return
ErrorCode.InvalidParamsNon-existent PR returns
ErrorCode.NotFoundFailed 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
This server cannot be installed
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 Servers
- Flicense-qualityDmaintenanceFetches GitHub pull request information including file changes, diffs, and metadata, then creates analysis summaries in Notion pages.Last updated1
- Alicense-qualityDmaintenanceConnects Claude to GitHub Pull Requests to fetch and filter code diffs for AI-assisted reviews. It enables listing open PRs and analyzing changes while automatically excluding binary and asset files to focus on relevant code.Last updated21MIT
- Alicense-qualityDmaintenanceEnables querying GitHub repositories for pull requests, commits, and comparisons to understand code changes.Last updated17Apache 2.0
- Flicense-qualityDmaintenanceEnables analysis of GitHub Pull Requests, including details, diff, file lists, and review tracking.Last updated
Related MCP Connectors
Screens public GitHub repos and PRs to generate risk maps, findings, and merge-readiness signals.
A Model Context Protocol (MCP) application for automated GitHub PR analysis and issue management.…
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
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/highlight-ing/highlight-github-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server