MCP servers in Windsurf
Windsurf's Cascade reads MCP servers from an "mcpServers" object in ~/.codeium/windsurf/mcp_config.json. Unlike most clients, remote servers are configured with the "serverUrl" field rather than "url", so a config that uses "url" silently fails to connect. Native remote transport is supported without an OAuth flow.
Where the config lives
- macOS / Linux:
~/.codeium/windsurf/mcp_config.json - Windows:
%USERPROFILE%\.codeium\windsurf\mcp_config.json
Worked example: Git
Here's the exact config to add the Git MCP server to Windsurf. Every server in the directory has a ready-to-paste Windsurf config like this.
Add to ~/.codeium/windsurf/mcp_config.json
~/.codeium/windsurf/mcp_config.json
json
{
"mcpServers": {
"git": {
"command": "uvx",
"args": [
"mcp-server-git",
"--repository",
"/path/to/repo"
]
}
}
}