GitHub MCP Server
Provides tools for listing pull requests, getting commit details, and comparing changes on GitHub repositories.
Click on "Deploy 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 MCP Server list open pull requests in facebook/react"
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 MCP Server
A Model Context Protocol (MCP) server for GitHub operations. This server provides tools for listing PRs, getting commit details, and comparing changes - useful for understanding what changed in a build or investigating test failures.
Installation
npm install -g @bugzy-ai/github-mcp-serverOr use with npx:
npx @bugzy-ai/github-mcp-serverRelated MCP server: mcp-server-github
Configuration
Set the GITHUB_TOKEN environment variable with a token that has repo scope:
export GITHUB_TOKEN=ghp_your_token_hereAvailable Tools
github_list_prs
List pull requests in a repository with optional filters.
Parameters:
owner(required): Repository ownerrepo(required): Repository namestate(optional): Filter by state - "open", "closed", or "all" (default: "all")base(optional): Filter by base branchsort(optional): Sort by "created", "updated", "popularity", or "long-running"direction(optional): Sort direction - "asc" or "desc"per_page(optional): Results per page (max 100)page(optional): Page number
github_get_pr
Get detailed information about a specific pull request.
Parameters:
owner(required): Repository ownerrepo(required): Repository namepull_number(required): Pull request number
github_list_commits
List commits on a branch with optional date range filters.
Parameters:
owner(required): Repository ownerrepo(required): Repository namesha(optional): Branch name, tag, or commit SHAsince(optional): Only commits after this date (ISO 8601)until(optional): Only commits before this date (ISO 8601)per_page(optional): Results per page (max 100)page(optional): Page number
github_get_commit
Get detailed information about a specific commit.
Parameters:
owner(required): Repository ownerrepo(required): Repository nameref(required): Commit SHA, branch name, or tag name
github_compare_commits
Compare two commits, branches, or tags.
Parameters:
owner(required): Repository ownerrepo(required): Repository namebase(required): Base ref (branch, tag, or SHA)head(required): Head ref (branch, tag, or SHA)per_page(optional): Results per page (max 100)page(optional): Page number
MCP Configuration
Add to your .mcp.json:
{
"mcpServers": {
"github": {
"command": "npx",
"args": ["-y", "@bugzy-ai/github-mcp-server"],
"env": {
"GITHUB_TOKEN": "${GITHUB_TOKEN}"
}
}
}
}License
Apache-2.0
Available Tools
5 toolsgithub_compare_commitsB
Compare two commits, branches, or tags to see what changed between them
Inputs: base (required), head (required), repo (required), owner (required), +2 more.
github_get_commitA
Get detailed information about a specific commit including file changes and stats
Inputs: ref (required), repo (required), owner (required).
github_get_prA
Get detailed information about a specific pull request including files changed, commits, and review status
Inputs: repo (required), owner (required), pull_number (required).
github_list_commitsB
List commits on a branch with optional date range filters
Inputs: repo (required), owner (required), sha, page, +3 more.
github_list_prsA
List pull requests in a repository with optional filters for state, base branch, and sorting
Inputs: repo (required), owner (required), base, page, +4 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool targets a clearly distinct resource and action: listing PRs, getting PR details, listing commits, getting commit details, and comparing refs. Even list_commits vs compare_commits are distinguishable by purpose, one showing branch history and the other showing changes between two refs.
All tool names follow the consistent pattern github_<verb>_<noun>, using snake_case throughout. The verbs list/get/compare are predictable and match the operation each tool performs.
Five tools is a well-scoped set for a focused GitHub read-only server covering PRs and commits. Each tool has a clear purpose and none feel redundant or unnecessary.
The set provides solid read-only coverage for exploring pull requests, commits, and diffs. Minor gaps exist, such as no direct branch listing or repository-level search, but these can be worked around using compare_commits and the included PR/commit detail endpoints.
Maintenance
Related MCP Connectors
Access the GitHub API, enabling file operations, repository management, search functionality, and…
Search, read and explain your GitHub repositories: code, symbols, imports, history and ownership.
Read repositories, pull requests, issues and CI runs; create issues and comments in GitHub.
GitHub repo search, stats, language breakdown and comparison as agent tools.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables access to GitHub repositories and data through the GitHub API. Supports retrieving repositories, issues, pull requests, and searching code across GitHub with authentication via personal access tokens.-
- AlicenseAqualityDmaintenanceEnables interaction with GitHub repositories, issues, pull requests, code search, branches, and GitHub Actions workflows.8MIT
- FlicenseAqualityDmaintenanceEnables natural-language queries about public GitHub repositories, including issues, pull requests, repo metadata, and READMEs, via the GitHub API.5-
- FlicenseAqualityDmaintenanceEnables analysis of GitHub Pull Requests, including details, diff, file lists, and review tracking.3-