The official GitHub MCP Server provides comprehensive access to GitHub's API through the Model Context Protocol.
- Full repository management (create, fork, configure) - Pull request workflows with review, merge, and conflict resolution - Issue tracking with label management and milestone support - Code search across repositories with regex support - Commit history and diff viewing - Actions workflow management and monitoring - Branch protection rule management
Requires a GitHub Personal Access Token with appropriate scopes:
``bash
export GITHUB_TOKEN=ghp_your_token_here
`
Or configure via MCP settings:
`json
{
"mcpServers": {
"github": {
"command": "npx",
"args": ["@github/mcp-server"],
"env": { "GITHUB_TOKEN": "ghp_your_token" }
}
}
}
`
| Tool | Description |
|------|-------------|
| create_repository | Create a new repository |
| list_pull_requests | List PRs with filters |
| create_issue | Create an issue |
| search_code | Search code across repos |
| get_file_contents | Read file from repo |
| push_files` | Commit and push changes |