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: claude-mem
Here's the exact config to add the claude-mem 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": {
"claude-mem": {
"command": "npx",
"args": [
"-y",
"claude-mem",
"mcp"
]
}
}
}