> For the complete documentation index, see [llms.txt](https://docs.allmcp.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.allmcp.co/documentation/connect/windsurf.md).

# Windsurf

Connect AllMCP to Windsurf (Codeium's IDE).

<a href="/pages/416edc1381c20849bc41111b02e482a722a49b94" class="button primary" data-icon="key">Get your API key</a> <a href="/pages/QJVxDLqxIz5KMCH5afbE" class="button secondary" data-icon="table-cells">Browse providers</a>

***

## Set up the connection

Windsurf can connect either through its Settings UI or by editing the config file directly. Pick whichever you prefer.

{% tabs %}
{% tab title="Settings UI" %}
{% stepper %}
{% step %}

#### Open MCP Servers

Open **Settings** → **MCP Servers**.
{% endstep %}

{% step %}

#### Add a server

Click **Add Server**.
{% endstep %}

{% step %}

#### Fill in the details

* **Name:** `allmcp`
* **URL:** `https://go.allmcp.co/mcp/`
* **Header name:** `X-API-Key`
* **Header value:** `YOUR_API_KEY`
  {% endstep %}

{% step %}

#### Save

Click **Save**.
{% endstep %}
{% endstepper %}
{% endtab %}

{% tab title="Config file" %}
{% stepper %}
{% step %}

#### Edit the config file

Edit `~/.codeium/windsurf/mcp_config.json`:

{% code title="\~/.codeium/windsurf/mcp\_config.json" %}

```json
{
  "mcpServers": {
    "allmcp": {
      "url": "https://go.allmcp.co/mcp/",
      "headers": {
        "X-API-Key": "YOUR_API_KEY"
      }
    }
  }
}
```

{% endcode %}
{% endstep %}

{% step %}

#### Restart Windsurf

Restart Windsurf after editing the file.

{% hint style="warning" %}
**Restart required.** Windsurf only picks up the new config after a restart.
{% endhint %}
{% endstep %}
{% endstepper %}
{% endtab %}
{% endtabs %}

***

## Verify it's working

Open a Cascade chat in Agent mode and type:

```
What integrations does AllMCP support?
```

The agent will list the integrations AllMCP supports.

{% hint style="success" %}
**You're connected.** If you see the provider catalog, AllMCP is wired into Windsurf.
{% endhint %}

***

## Per-user scoping

To scope tools to a specific user:

{% code title="\~/.codeium/windsurf/mcp\_config.json" %}

```json
{
  "mcpServers": {
    "allmcp": {
      "url": "https://go.allmcp.co/mcp/?user_id=your-user-id",
      "headers": {
        "X-API-Key": "YOUR_API_KEY"
      }
    }
  }
}
```

{% endcode %}

***

## Next steps

{% content-ref url="/pages/416edc1381c20849bc41111b02e482a722a49b94" %}
[Quickstart](/documentation/quickstart.md)
{% endcontent-ref %}

{% content-ref url="/pages/QJVxDLqxIz5KMCH5afbE" %}
[All Providers](/documentation/providers/providers.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.allmcp.co/documentation/connect/windsurf.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
