About Claude GitHub MCP Server
Claude GitHub MCP Server lets Claude Desktop work with GitHub repositories, including pull request operations and repository management. It is installed through npm and uses a GitHub personal access token.
Key features
- 01List and inspect pull requests
- 02Summarize pull request diffs
- 03Comment on and merge pull requests
- 04Request reviewers or close pull requests
- 05Create and delete repositories
Use cases
- 01Review open pull requests in a repository
- 02Summarize changes before deciding on a merge
- 03Post comments or request reviewers
- 04Create or remove a GitHub repository
MCP support
It exposes GitHub pull request and repository management tools to MCP clients such as Claude Desktop. Configuration uses a GitHub personal access token.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEClaude GitHub MCP Server
A GitHub MCP Server for Claude Desktop that gives Claude the ability to interact with GitHub repository.
Here's the JSON to copy
{
"mcpServers": {
"github-pr": {
"command": "claude-github-mcp",
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "your_github_token_here"
}
}
}
}
Quick install
npm install -g claude-github-mcp
Features
- List and view pull requests from any GitHub repository
- Get detailed information about specific PRs
- Comment on pull requests
- Request reviewers for PRs
- Merge pull requests
- Summarize PR changes with diff highlighting
- Close/reject PRs with optional comments
- Create new repository
- Delete existing repository
Usage
"Show me open PRs for microsoft/vscode""Get details for PR #123 in owner/repo""Summarize the changes in PR #456 for owner/repo""Comment 'LGTM! Approving this change.' on PR #789 in owner/repo""Request alice and bob as reviewers for PR #42 in owner/repo""Merge PR #101 in owner/repo""Close PR #202 in owner/repo with reason 'This approach won't work'""Create a repo named test with files xyz and content 'test file'""Delete this repo 'repo link'"
Available Commands
list-prs: Lists pull requests for a repositorydiscuss-pr: Gets details about a specific PRsummarize-pr: Summarizes changes in a PR with diffscomment-on-pr: Posts a comment on a PRrequest-reviewers: Requests reviewers for a PRmerge-pr: Merges a PRclose-pr: Closes/rejects a PRcreate-repository: Creates a new repositorydelete-repository: Deletes an existing repository
Requirements
- Node.js 16+
- A GitHub account with an appropriate personal access token
- Claude Desktop
Enjoy!!
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.