The short answer
- In the Cascade panel open the … menu and the MCPs section, then Open MCP config file. That opens the right
mcp_config.jsonfor your version. - Add your server under
mcpServers:commandandargsfor a local one,serverUrlplusheadersfor a remote one. - Write keys as
${env:NAME}, never the value. - Save the file, then refresh the MCPs list (or restart the app) and check the server's tools.
- 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.
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.