G
This server wraps the GitHub REST and GraphQL APIs so models can update files, work with issues, create pull requests, and inspect repository history from a conversation. It reduces context switching during everyday development and collaboration.
Tools
create_or_update_file
Create a new repository file or update an existing one
search_repositories
Search repositories by keyword
create_issue
Create a new issue
create_pull_request
Open a pull request
list_commits
List commit history for a branch
merge_pull_request
Merge an approved pull request
Setup
Create a GitHub Personal Access Token with the repository permissions you need, then pass it through the configured environment variable.
claude_desktop_config.json
{
"mcpServers": {
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "ghp_xxxxxxxxxxxx"
}
}
}
}
Use cases
Create a fix branch and open a pull request
Triage and respond to a backlog of issues
Generate a weekly summary of repository commits
Supported clients
Claude DesktopFull support
CursorFull support
ClineFull support
VS CodePartial support