---
title: "Windsurf MCP: How to Add a Remote Server (2026 Guide)"
description: "Windsurf MCP connects Cascade to external servers for tools and data. Add specific servers to your workflow and expand what your assistant can do."
url: https://www.activepieces.com/blog/windsurf-mcp-how-to-add-a-remote-server-2026-guide
updated: 2026-12-03
---

> Every page on www.activepieces.com is available as markdown: add `.md` to the URL, or send `Accept: text/markdown`. Site index: https://www.activepieces.com/llms.txt

# Windsurf MCP: How to Add a Remote Server (2026 Guide)

By Grace Muthoni Kariuki · December 3, 2026 · 14 min read · Filed under [Automation thoughts](https://www.activepieces.com/blog/category/automation-thoughts)

**Summary**

Add a remote MCP server to Windsurf via its marketplace with one-click install, or manually in mcp\_config.json with environment variables instead of hardcoded tokens.

- GitHub server uses 82 of Windsurf's 100 tool slots.
- MCP Security Audit Report found 483 of 501 servers had exploitable security flaws.
- Hardcoded tokens in mcp\_config.json travel into backups, screenshots and repositories.

MCP, the Model Context Protocol, is an open standard that lets Cascade, Windsurf's AI assistant, use external servers for tools and data.

A server is either a local process started by a command (stdio) or a remote endpoint at a URL, and some of those endpoints, such as the ones [Activepieces](https://www.activepieces.com) exposes, are simply added by URL.

![Two boxes side by side: a laptop running a local process started by a command (stdio), and a cloud endpoint at a URL, both…](https://ap-marketing-media.fra1.cdn.digitaloceanspaces.com/uploads/bbd2bac8-4aba-4e03-9dab-69fc2263b0c5/windsurf-mcp-how-to-add-a-remote-server-2026-gui-76934e4d.webp)

Windsurf MCP is the practice of connecting Model Context Protocol servers to Cascade, by adding each one to Windsurf's MCP configuration as a local command or a remote URL, so the assistant can call that server's tools and read its data.

## Call external tools using Windsurf MCP

### What an MCP server gives Cascade

Cascade can use only what a server exposes: tools, which are actions it can request, and data it can read. It decides when a tool is relevant, sends the call, and uses the result in its answer or in the edit it makes.

That's why the first question isn't "what can this server do?" but "**whose token is it running on**, and what scope does that token carry?"

Give a server a read-only token for one repository and it can leak or break very little. Give it a broad personal token and it **can act as you, everywhere that token reaches**.

**Settle the permission scope before you switch the server on, because Cascade's usefulness and its exposure both come from the same place.**

### Local stdio servers versus remote HTTP servers

On your machine, a stdio server runs from a command you configured. You're trusting the package you launched and any secrets placed in its environment, and you own updates.

With a remote server, the code runs on the vendor's side. You trust their hosting and their authorisation flow, and you typically grant access by signing in rather than pasting a long-lived key.

Neither is safer by default; **each moves the audit to a different place**.

### Sources checked for this Windsurf MCP guide

Checked on 3 December 2026 against three sources: the Windsurf documentation for MCP, the Windsurf pricing page and the Windsurf changelog.

> Neither is safer by default; each moves the audit to a different place.

## Add an MCP Marketplace server

To add a server, take five actions, in this order:

1. Open the MCPs icon in Cascade.
2. Pick one server.
3. Install it.
4. Authorise it.
5. Confirm its tools are on.

Sign in with your personal login and every tool call runs as you. That is why the ownership decision comes first: authorisation attaches to an account.

If the server belongs to a team, use a service account or a token created for this purpose, so you can revoke access without touching anyone's personal profile.

### Open the MCP panel

Open Cascade, Windsurf's AI assistant panel, and select the MCPs icon in its toolbar. The marketplace list opens there, showing the servers Windsurf offers for one-click install.

Before installing, open the vendor's own documentation and note the scopes or token type the server asks for.

Whatever its popularity in the list, a server that wants write access when your task only needs reading is the wrong first choice.

### Install and authorise a Windsurf MCP server

Select the server, then choose Install. Windsurf adds it to your MCP configuration. Most servers then ask for authorisation, either through a sign-in prompt in the browser or a token you paste in.

![Activepieces MCP Server setup page with client configuration instructions and code example.](https://ap-marketing-media.fra1.cdn.digitaloceanspaces.com/uploads/8affcbbd-a52f-4275-ac83-32c629beafe3/suno-mcp-how-to-connect-it-to-ai-tools-2026-guid-4dc1cc00.webp)

Where you get the choice, grant the narrowest scope that covers your test. For a token, create a new one for this server alone rather than reusing one that already serves other tools.

### Run a test prompt and confirm the tool call

Return to the MCPs panel and open the server's entry. Each tool has a toggle. Leave on only the tools your test needs, and switch off anything that creates, edits or deletes if you only want to read.

![A panel listing one server's tools, each with a toggle switch; the read-only tools have switches on, and the tools that…](https://ap-marketing-media.fra1.cdn.digitaloceanspaces.com/uploads/20e52b88-dfa7-4f48-aa7a-382e89f18673/windsurf-mcp-how-to-add-a-remote-server-2026-gui-3b51cfb4.webp)

Then write a prompt that can only be answered by calling the server. Ask for something specific to the connected system, such as listing the items your account can see, rather than a general question the model could answer from memory.

You should see Cascade call a tool from that server and display the result. If the answer arrives without a visible tool call, treat it as unverified.

You have a working server when you can name the account it runs as, the scope it holds, and the tool call that proved it.

## Stage 2: Add a custom server in mcp_config.JSON

Open `~/.codeium/windsurf/mcp_config.json`, add one entry under `mcpServers`, pass secrets through environment-variable interpolation rather than pasting them, and refresh. Before you save, write down who owns the credential in that entry, because the file doesn't record it.

```json
{
 "mcpServers": {
 "github": {
 "command": "npx",
 "args": ["-y", "@modelcontextprotocol/server-github"],
 "env": {
 "GITHUB_PERSONAL_ACCESS_TOKEN": "${env:GITHUB_MCP_TOKEN}"
 }
 },
 "docs-search": {
 "serverUrl": "https://mcp.example.com/mcp",
 "headers": {
 "Authorization": "Bearer ${env:DOCS_MCP_TOKEN}"
 }
 }
 }
}
```

![A JSON config file open in an editor, with a github entry under mcpServers containing a command npx, args, and an env line…](https://ap-marketing-media.fra1.cdn.digitaloceanspaces.com/uploads/0283181c-387a-4bf6-9e26-56a205b21694/windsurf-mcp-how-to-add-a-remote-server-2026-gui-9f0d0c31.webp)

### Configure a stdio MCP server entry

When Windsurf launches a stdio server, it runs as a local process. `command` is the executable, `args` is its argument list, and `env` holds the variables that process receives.

In the example, the GitHub server (it gives Cascade, Windsurf's agent panel, access to repositories) starts through `npx`. Its token is read from `GITHUB_MCP_TOKEN` in your shell environment, so the file itself contains no secret.

Create that token as a fine-grained personal access token limited to the repositories this work needs, with read-only contents access unless you have a reason to write. A classic token with broad repo scope turns a narrow server into a wide one.

### Remote entry: serverUrl and headers

When the server is remote, someone else hosts it. You give Windsurf its address in `serverUrl` and any credentials in `headers`. The `Authorization` header above uses the same `${env:...}` form, so the bearer token stays out of the file and out of version control.

![Activepieces MCP Server configuration page with client setup instructions and server configuration code](https://ap-marketing-media.fra1.cdn.digitaloceanspaces.com/uploads/0eed6f5f-5a12-4a89-88f0-78055256395d/claude-enterprise-automation-a-complete-2026-gui-577ef85d.webp)

Confirm the exact URL and the header name in the vendor's documentation. Some remote servers use a different header, and a guessed one fails without explaining why.

### Refresh and verify your MCP servers

Save the file, then use the refresh control in Cascade's MCP panel so Windsurf rereads the configuration. Each server should appear with its tools listed.

A server that shows an error usually has a misspelled variable name or a variable your shell never exported, so check those first.

Switch off any tool you won't use. Those switches are the last place to narrow a server's permissions before it starts acting on your behalf.

## What Windsurf MCP costs and requires

Those switches sit inside a plan, and the plan decides who gets them, what they cost and whether an admin can overrule them. I couldn't verify the prices and quotas below, so the table marks each unverified cell instead of guessing.

### Windsurf plans and MCP

| Plan | Price per user per month | Usage quota | MCP calls count against it | Admin server whitelisting | Date checked |
|---|---|---|---|---|---|
| Free | Unverified | Unverified | Unverified | Unverified | Not checked |
| Pro | Unverified | Unverified | Unverified | Unverified | Not checked |
| Teams | Unverified | Unverified | Unverified | Unverified | Not checked |
| Enterprise | Unverified | Unverified | Unverified | Unverified | Not checked |

The "MCP calls count against it" column matters most. If a tool call spends the same allowance as a chat prompt, a chatty server drains the quota faster than the editor alone would.

I can confirm one hard limit: tool count. According to [Nodeflare](https://nodeflare.tech/blog/mcp-tool-limits-by-client), **Windsurf loads up to 100 tools at once**, older Cursor versions 40, and VS Code Copilot 128. I didn't verify the date of those figures.

![How many MCP tools each AI editor loads at once](https://ap-marketing-media.fra1.cdn.digitaloceanspaces.com/uploads/5ce0a543-3ec2-48e3-9d03-214251e87974/windsurf-mcp-how-to-add-a-remote-server-2026-gui-079bd2ae.svg "Source: Nodeflare")

According to [Nodeflare](https://nodeflare.tech/blog/mcp-tool-limits-by-client), in practice a single server that exposes dozens of tools can use up most of Windsurf's 100 before a second server is added. That's a reason to enable one narrow server rather than several broad ones.

### Windsurf MCP admin controls for teams

On a team plan, the first question is who owns each connection: the person who pasted the token, or the organisation.

With server whitelisting, an admin decides which servers developers may enable.

I couldn't verify which tiers include it, so confirm that in Windsurf's admin documentation before you rely on it. Without it, each developer's personal access token becomes a connection nobody else can see, and it leaves with them.

### Costs outside Windsurf

The editor's price is only part of the bill. Each server authenticates to a third-party service, and that service may require a paid tier, an API key or an OAuth app before it grants the scope you need.

## Avoid MCP mistakes that waste credits

**Six mistakes cause most of the wasted credits** and leaked secrets in Windsurf MCP, and each has a short fix. Use the list as a handover checklist: check the mistake, apply the fix, and record who owns the connection.

- Too many tools near the 100-tool cap: switch off every tool you don't use.
- Hardcoded tokens: reference an environment variable instead of pasting the value.
- Over-broad scopes: issue a token that can do only what the workflow needs.
- Unvetted servers: read the vendor's own documentation and source before installing.
- `npx` missing from PATH: set the absolute path to `npx` as the command.
- Forgetting Refresh: refresh the server list after every config edit.

82 of your 100 slots can go to one server. [Marchward](https://marchward.ai/servers/github-mcp-server) lists the GitHub server, which gives the agent access to repositories and pull requests, as 52 read-only tools and 30 that can write, and that leaves little room for anything else.

![Where the GitHub MCP server's tools can write](https://ap-marketing-media.fra1.cdn.digitaloceanspaces.com/uploads/5e0708f9-b689-467e-8493-348eecccc38a/windsurf-mcp-how-to-add-a-remote-server-2026-gui-a3e3c920.svg "Source: Marchward")

### Protect MCP tokens and limit scopes

Paste a token into `mcp_config.json` and it travels with that file into backups, screenshots and repositories. Put the value in an environment variable, reference it in the config, and name an owner who can rotate it.

Then match the scope to the job.

If the agent only reads issues, a token limited to reading means the 30 write tools fail instead of succeeding in the wrong hands.

### Silent failures and unvetted servers

If `npx` isn't on the PATH that Windsurf sees, the server never starts and the error is easy to miss. Run `which npx` in a terminal and put the full path in the `command` field.

After saving, press Refresh in the MCP panel, because the old tool list stays loaded until you do.

Vetting matters more than either. The [MCP Security Audit Report](https://tamgraph.com/research/mcp-statistics) scanned 501 servers and **found an exploitable flaw in 483 of them**, about 96%. In 147 the severity was critical, so roughly three in ten servers you might install could be a serious hole.

![How many audited MCP servers had exploitable flaws](https://ap-marketing-media.fra1.cdn.digitaloceanspaces.com/uploads/3bb7644c-3331-4e28-9993-9daed4b315c4/windsurf-mcp-how-to-add-a-remote-server-2026-gui-28a67352.svg "Source: MCP Security Audit Report")

### When one workflow-based MCP server beats many small ones

Five small servers mean five tokens, five owners and five sets of tools competing for the cap.

With a single server that exposes a handful of defined workflows, you have one token to scope, one owner to ask and far fewer tools to count. Choose it when the work is a repeatable sequence rather than open-ended exploration.

## What Activepieces does about this

The problem this article keeps returning to is that every MCP server is a token someone has to own, and every tool it exposes counts against a cap of 100. Activepieces handles that by giving Cascade one server rather than one per app.

Each project gets its own MCP server, and the integrations connected in that project are exposed on it as tools.

You add a single entry to `mcp_config.json`, with its token held in an environment variable like the others, and you have one credential to scope and one owner to name.

The part you can check is that a flow step and an agent tool are the same thing.

The action a flow runs is the action the agent calls, so there is no second catalogue to publish and no second set of credentials to keep in step.

The open source repo holds 751 integrations under `packages/pieces`, and you can read the code to see which actions a given integration exposes before you enable it, so you're evaluating 751 integration options based on their actual source code.

That is the same vendor-source check this article asks of every other server.

The narrowing happens at the project. Connect only the integrations the task needs, and only those appear as tools, so a single server doesn't use up most of the 100 slots the way a broad one can.

Keep a project to the one sequence of work you want Cascade to run, such as updating a record and posting a message, and the tool count stays small enough to read in full.

The connection's credentials sit with the project, so revoking access means removing it there, not hunting through a developer's personal profile.

This fits only the cross-app case. If Cascade just needs your repository or a docs search, a single dedicated server with a read-only token is simpler, and adding a platform on top would be extra surface for no gain.

Where the job is a repeatable sequence across several apps, the single workflow-based server described above is what Activepieces provides. Check its current plan terms against the vendor's own pricing page, as you would for Windsurf's.

## Frequently asked questions

### Can I use Windsurf MCP on the free plan?

Before building a workflow around it, confirm free-plan access to MCP on Windsurf's current pricing and docs pages, because that is where it is set.

MCP is documented as a Cascade feature, and on team and enterprise plans an administrator may restrict which servers people can add. Before you install anything, find out who owns that allow-list.

### Can I share one MCP config across a team?

Share a template, not the live file. Windsurf reads MCP servers from a per-user config file (`mcp_config.json`, under the `.codeium/windsurf` folder in your home directory), and that file usually holds tokens.

Commit a copy with the server names, commands and arguments, leave the secrets blank, and have each person issue their own token. Each token then has one named owner, and revoking one person's access doesn't break everyone else's.

### Is Windsurf MCP the same as Cursor or Claude Code MCP?

Same protocol, different client: a server built to the MCP standard can run in any of the three, while the config file location, the approval prompts and the admin controls are each client's own.

Copying a config between them can work as a starting point. Re-check the permission scopes afterwards against each client's documentation.

### How do I remove or disable an MCP server in Windsurf?

To remove or disable an MCP server in Windsurf, delete the server's entry from the config file, or switch it off from the MCP panel in Cascade. Then refresh so the change takes effect. That only stops Windsurf from calling it.

Until you revoke it in the vendor's own settings, the token you issued stays valid, so do both, and record who revoked it.

### Does Windsurf support OAuth for remote MCP servers?

Remote servers can be configured by URL. How authentication is handled, whether OAuth or a pasted token, is stated in Windsurf's MCP documentation and in the server vendor's own docs. Check both before connecting.

If you're given a static token instead, ask three things: what scope it carries, when it expires, and which named person is accountable for it.

## Related reading

- [Cloudflare Workers MCP: How to Build a Remote Server](https://www.activepieces.com/blog/cloudflare-workers-mcp-how-to-build-a-remote-server)
- [Windsurf Automation: What It Can and Can't Do (2026)](https://www.activepieces.com/blog/windsurf-automation-what-it-can-and-cant-do-2026)
- [Windsurf Pricing: Plans, Limits & Costs (2026 Guide)](https://www.activepieces.com/blog/windsurf-pricing-plans-limits-costs-2026-guide)

## References

- [MCP Security Audit Report](https://tamgraph.com/research/mcp-statistics)
- [Nodeflare](https://nodeflare.tech/blog/mcp-tool-limits-by-client)
- [Marchward](https://marchward.ai/servers/github-mcp-server)
