The GitHub MCP server is the official server maintained by GitHub. It connects AI tools directly to the GitHub platform, enabling repository management, issue and pull request workflows, and code automation. It is available as a remote hosted server and as a local Docker image.
Capabilities
- Manage repositories, branches, files, issues, and pull requests
- Search code, issues, and users across GitHub
- Trigger and inspect GitHub Actions workflows
- Authenticate with a personal access token or OAuth
Usage
{
"mcpServers": {
"github": {
"command": "docker",
"args": ["run", "-i", "--rm", "-e", "GITHUB_PERSONAL_ACCESS_TOKEN", "ghcr.io/github/github-mcp-server"],
"env": { "GITHUB_PERSONAL_ACCESS_TOKEN": "<YOUR_TOKEN>" }
}
}
}