Sachin Uppal

MJO · Connect guide · Windsurf

How to connect an MCP server to Windsurf

By Sachin Uppal · 26 November 2026 · 3 min read · vendor docs checked 26 Nov 2026

MCP Journey Optimization (MJO), a term coined by Sachin Uppal, is the discipline of designing and measuring every step a person takes to find, connect, authorize, pay for and keep using a product inside an AI client such as Claude, ChatGPT, Gemini or an IDE over the Model Context Protocol.

Windsurf's agent, Cascade, takes MCP servers from its plugin store or from mcp_config.json. A remote server uses a serverUrl. Windsurf's documentation now lives on docs.devin.ai, and the config file location has moved with it; read the note on file paths before you edit anything.

For MCP Journey Optimization, Windsurf is a reminder that the client can change under you: a setup page written last quarter may point at the wrong file. The comparison with every other client is in the field guide.

What you need

Steps

  1. Go to Settings > Tools > Windsurf Settings > Add Server. If your server is in the Windsurf MCP Plugin Store, select it and click + Add Server.
  2. For a server that isn't listed, open Cascade's MCP menu and select Open MCP config file.
  3. Add your server under mcpServers with serverUrl:
    {
      "mcpServers": {
        "crushedwithit": {
          "serverUrl": "<your server URL>"
        }
      }
    }
    If the provider gave you a key rather than a sign-in, add a headers object. The docs support ${env:AUTH_TOKEN}-style interpolation in serverUrl, url and headers.
  4. Save, then press the refresh button so Cascade loads the server.
  5. Complete the provider's sign-in if one opens.

Where the file is

The current page gives the file Cascade opens as ~/.config/devin/mcp_config.json on macOS and Linux (or $XDG_CONFIG_HOME/devin/mcp_config.json) and %AppData%/devin/mcp_config.json on Windows. It separately names ~/.codeium/windsurf/mcp_config.json (or windsurf-next) as an editor discovery file. Many third-party guides still point only at the .codeium path. Use Open MCP config file rather than guessing.

Try it

Ask Cascade for something read-only. With the CrushedWithIt server as the example:

Use the crushedwithit tools to show my account and how many credits I can spend now.

Common errors and fixes

What you seeFixBasis
Server added but nothing happensPress the refresh button after adding or editing.Windsurf docs
Server blocked on a team planYour admin's allowlist must match your config exactly: anchored, case-sensitive regex, with special characters escaped (e.g. \.). Admins check logs for invalid-regex warnings.Windsurf docs
Edited the file, no changeYou may have edited the other file. Open it from Cascade's Open MCP config file.Windsurf docs (two paths listed)
Config copied from Cursor failsGeneral: Cursor examples use url; Windsurf's example uses serverUrl (its docs also mention url).Both vendors' docs
Too many toolsSwitch individual tools off with a disabledTools array in the server's entry.Windsurf docs

How to disconnect

The docs don't give removal steps. What they do support: list individual tools in disabledTools to switch them off, or edit the config file opened from Cascade. Deleting the server's entry from that file and refreshing is the evident route, but the page does not state it.

Sources

This is the client whose docs were least settled on the day we checked. If your screen disagrees, trust your screen and tell us. Screenshots are being added.

Other clients: the MCP field guide compares all ten. The framework: MCP Journey Optimization (MJO).

Cite as: Uppal, S. (2026). How to connect an MCP server to Windsurf. sachinuppal.com.