Windsurf MCP Setup: Connect MCP Servers to Windsurf

CodeiumProprietarystdioSSEStreamable HTTPOfficial site

What it is

An agentic IDE built by Codeium whose Cascade agent can reason across a codebase and run tools end to end.

How MCP works in Windsurf

Cascade is an MCP client. It reads a JSON config of servers it can connect to over stdio and remote transports, with variable interpolation so secrets stay out of the file.

Config file location

~/.codeium/windsurf/mcp_config.json (on Windows %USERPROFILE%\.codeium\windsurf\mcp_config.json) holds an mcpServers object.

Add your first server

A good first server is Playwright MCP — Microsoft's browser automation server. It runs locally over stdio via npx, needs no API key, and gives the agent a real browser to drive. Here is the verified Windsurf config:

{
  "mcpServers": {
    "playwright": {
      "command": "npx",
      "args": ["@playwright/mcp@latest"]
    }
  }
}

Restart or reload Windsurf after saving, then confirm the server's tools show up. Swap in any other server from the directory using the same structure.

Transports & platforms

Transportsstdio, SSE, Streamable HTTP
PlatformsmacOS, Windows, Linux
LicenseProprietary
VendorCodeium

FAQ

Does Windsurf support MCP?

Yes. Windsurf works as an MCP client over stdio, SSE, Streamable HTTP. Cascade is an MCP client. It reads a JSON config of servers it can connect to over stdio and remote transports, with variable interpolation so secrets stay out of the file.

Where is the Windsurf MCP config?

~/.codeium/windsurf/mcp_config.json (on Windows %USERPROFILE%\.codeium\windsurf\mcp_config.json) holds an mcpServers object. The verified example above shows the exact structure it expects.

Which MCP servers work with Windsurf?

Any server that speaks a transport Windsurf supports (stdio, SSE, Streamable HTTP). Browse the MCP server directory on this site to find databases, browser automation, API integrations, and dev tools, then add them using the config format above.

Keep exploring