Best for
- Development teams that want to handle issues, files, and pull requests from a coding assistant
- Maintainers automating repetitive GitHub workflows
GitHub workflow coverage is broad, but write-capable tokens need strict scoping; maintenance and reliability remain conservative until the current upstream implementation is runtime-verified.
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.
Create a GitHub Personal Access Token with the repository permissions you need, then pass it through the configured environment variable.
{
"mcpServers": {
"github": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-github"],
"env": {
"GITHUB_PERSONAL_ACCESS_TOKEN": "ghp_xxxxxxxxxxxx"
}
}
}
}