GitHub
Work with issues, pull requests, code search, and Actions workflows from inside your agent.
Add GitHub to your agent
Remote hosted server (recommended for Cursor). Requires a GitHub PAT in the header because GitHub does not use Cursor OAuth for this endpoint yet. GitHub also documents a local Docker setup in github/github-mcp-server.
1Config location
Global: ~/.cursor/mcp.json or project: .cursor/mcp.json
2Copy this snippet
{
"mcpServers": {
"github": {
"url": "https://api.githubcopilot.com/mcp/",
"headers": {
"Authorization": "Bearer YOUR_GITHUB_PAT"
}
}
}
}
Add this block under mcpServers, then restart Cursor.