docs/installation-guides/install-windsurf.md
The remote GitHub MCP server is hosted by GitHub at https://api.githubcopilot.com/mcp/ and supports Streamable HTTP protocol. Windsurf currently supports PAT authentication only.
Windsurf supports Streamable HTTP servers with a serverUrl field:
{
"mcpServers": {
"github": {
"serverUrl": "https://api.githubcopilot.com/mcp/",
"headers": {
"Authorization": "Bearer YOUR_GITHUB_PAT"
}
}
}
}
Important: The npm package @modelcontextprotocol/server-github is no longer supported as of April 2025. Use the official Docker image ghcr.io/github/github-mcp-server instead.
{
"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_GITHUB_PAT"
}
}
}
}
~/.codeium/windsurf/mcp_config.json~/.codeium/windsurf/mcp_config.jsonAfter installation:
serverUrl field formatdocker logout ghcr.io then retry~/.codeium/windsurf/logs/https://api.githubcopilot.com/mcp/ghcr.io/github/github-mcp-server (official and supported)@modelcontextprotocol/server-github (deprecated as of April 2025 - no longer functional)