- Explore MCP Servers
- highlight-github-mcp
Github
What is Github
highlight-github-mcp is a GitHub MCP server that provides functionality to extract diffs from Pull Requests, enabling users to analyze changes made in code submissions.
Use cases
Use cases include extracting diffs for code reviews, monitoring changes in collaborative projects, and automating the analysis of Pull Requests.
How to use
To use highlight-github-mcp, set your GitHub Personal Access Token as an environment variable and call the ‘get_diff_pr’ function with the required parameters: owner, repo, and pr_number.
Key features
Key features include retrieving diff content from Pull Requests, standard error handling for authentication and parameter issues, and support for Node.js >=18.0.0.
Where to use
highlight-github-mcp can be used in software development environments where GitHub is utilized, particularly in CI/CD pipelines and code review processes.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Overview
What is Github
highlight-github-mcp is a GitHub MCP server that provides functionality to extract diffs from Pull Requests, enabling users to analyze changes made in code submissions.
Use cases
Use cases include extracting diffs for code reviews, monitoring changes in collaborative projects, and automating the analysis of Pull Requests.
How to use
To use highlight-github-mcp, set your GitHub Personal Access Token as an environment variable and call the ‘get_diff_pr’ function with the required parameters: owner, repo, and pr_number.
Key features
Key features include retrieving diff content from Pull Requests, standard error handling for authentication and parameter issues, and support for Node.js >=18.0.0.
Where to use
highlight-github-mcp can be used in software development environments where GitHub is utilized, particularly in CI/CD pipelines and code review processes.
Clients Supporting MCP
The following are the main client software that supports the Model Context Protocol. Click the link to visit the official website for more information.
Content
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
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
Dev Tools Supporting MCP
The following are the main code editors that support the Model Context Protocol. Click the link to visit the official website for more information.










