Home / GitHub MCP / Setup guides / Cursor
How to add the GitHub MCP server to Cursor
Server URL: https://api.githubcopilot.com/mcp/
Sign-in: OAuth failed in our test (no dynamic client registration). Use a personal access token in an Authorization header.
Our hands-on result: Partial 6 of 8 tasks passed, tested Oct 16, 2026 with MCP Inspector (reference client).
Cursor setup
File: ~/.cursor/mcp.json (or .cursor/mcp.json in a project)
{
"mcpServers": {
"github": {
"url": "https://api.githubcopilot.com/mcp/",
"headers": {
"Authorization": "Bearer ${env:GITHUB_PAT}"
}
}
}
}- Save the file. The server shows a green dot in Cursor Settings, then MCP.
We ran the hands-on test in a reference client, not in Cursor. This config follows Cursor's documented format for remote (Streamable HTTP) servers. If it fails for you, tell us and we will retest.
Known problems and fixes
- MCP error: "Incompatible auth server: does not support dynamic client registration"
- MCP Inspector keeps failing after a bad OAuth attempt
- GitHub MCP issue_write shows a form and creates nothing
Same server, other clients
Full GitHub test report | Compare all tested connectors | Connector Weather