Add an MCP server to Windsurf (now Devin Desktop)

Where Windsurf's Cascade keeps mcp_config.json today, the JSON for a local or keyed server, the 100-tool limit, and the old path older guides still give.

Updated 4 min readmcpwindsurfsetup

Tested 28 October 2026 with the configs' command lines on Linux and Windows 11, Node 22 (the app itself not run)On this page: 1 live demo

The short answer

  1. In the Cascade panel open the … menu and the MCPs section, then Open MCP config file. That opens the right mcp_config.json for your version.
  2. Add your server under mcpServers: command and args for a local one, serverUrl plus headers for a remote one.
  3. Write keys as ${env:NAME}, never the value.
  4. Save the file, then refresh the MCPs list (or restart the app) and check the server's tools.
  5. Stay under 100 tools in total: turn off servers you are not using, or list unused tools in disabledTools.

Windsurf's agent, Cascade, now ships inside Devin Desktop, and Windsurf's docs redirect to Devin's. The config format did not change, but the file moved, which is why guides from early 2026 disagree about the path.

Live demoBuild your mcp_config.json

The live demo loads here when scripts run. The text below says what it shows.

Type your server's name and the command that starts it (or its URL and the name of the variable that holds its key), pick your computer, and copy the result. It applies exactly the rules on this page and runs in your browser: nothing is sent or saved. With scripts off, the examples below are the same shapes.

Where the file is

Version macOS and Linux Windows
Devin Desktop (current) ~/.config/devin/mcp_config.json %APPDATA%\devin\mcp_config.json
Windsurf (older builds) ~/.codeium/windsurf/mcp_config.json %USERPROFILE%\.codeium\windsurf\mcp_config.json

The Open MCP config file button always opens the one your build reads. Devin's newer default agent (Devin Local) keeps its MCP servers in Devin CLI's config instead; this page is for Cascade.

A local server

{
  "mcpServers": {
    "everything": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-everything"]
    }
  }
}

@modelcontextprotocol/server-everything is the MCP project's own test server: free, on npm, no key, with an echo tool. Start with it to prove the setup, then swap in the command your server's README gives.

A server that needs a key

Remote servers use serverUrl (Cascade also accepts url). Interpolation works in serverUrl, headers, env, command and args. The example is Clinamen's hosted server, which needs a Clinamen Signature key (sales open at launch); any server that takes a bearer key works the same way:

{
  "mcpServers": {
    "clinamen": {
      "serverUrl": "https://mcp.clinamen.dev/mcp",
      "headers": { "Authorization": "Bearer ${env:CLINAMEN_LICENCE_KEY}" }
    }
  }
}

An unset variable becomes an empty string, so the server receives Bearer and nothing else; Clinamen's hosted server answers that with reason missing. Set the variable (export NAME=… in your shell profile on macOS and Linux, setx NAME "…" on Windows), quit the app fully, start it again. There is also ${file:/path/to/key.txt}, which reads the key from a file outside the project, if you would rather not keep it in your environment.

The 100-tool limit

Cascade uses at most 100 tools across all your servers at once and ignores the rest. A few large servers reach that quickly. Turn off whole servers you do not need in the MCPs section, or switch off single tools:

{
  "mcpServers": {
    "everything": {
      "command": "npx",
      "args": ["-y", "@modelcontextprotocol/server-everything"],
      "disabledTools": ["trigger-long-running-operation"]
    }
  }
}

If a server does not appear, run its command and args in a terminal: a working server waits for input, printing nothing or one startup line (Ctrl+C to stop). On Windows, a spawn npx ENOENT error means you should start it as "command": "cmd", "args": ["/c", "npx", "-y", "@modelcontextprotocol/server-everything"].

Something here did not work?

Every command on this page was run before it was published, on the systems named in "How we tested this". If a step fails for you, write to [email protected] with what you ran and what you saw, and we will fix the page.