# Connecting Windsurf

> Connect Windsurf to ZopNight's MCP server to query your cloud infrastructure directly from your editor using Cascade.

Source: https://zop.dev/developer-docs/integrations/mcp-server/windsurf

---

Connect **Windsurf** to ZopNight's MCP server to query your cloud infrastructure directly from your editor using Cascade.

**Info**

Make sure you have completed the [prerequisites](https://zop.dev/docs/integrations/mcp-server/overview) — enable MCP for your organisation and create a Personal Access Token.

## Setup

1. Open **Windsurf**
2. Go to **Settings**
3. Scroll down to **Cascade** section
4. Click **Open MCP Registry**
5. In the **Installed** section, click the **Settings icon (⚙️)**
6. Paste the JSON config below
7. Press **Ctrl+S** (or Cmd+S) to save

## Configuration

```json
{
  "mcpServers": {
    "zopnight": {
      "serverUrl": "MCP_SERVER_URL",
      "headers": {
        "Authorization": "Bearer MCP_PAT"
      }
    }
  }
}
```

### Note

- Replace `MCP_SERVER_URL` with the Server URL shown on your Organisation Settings page, or on the Developer Settings page where you create your token. Copying it from the app means you always get the right host for your environment.
- Replace `MCP_PAT` with your own personal access token (it starts `zn_pat_`). Paste it plainly, with no angle brackets around it.
- Windsurf uses `serverUrl` (not `url`) in the config.

## Verify Connection

Once configured, open Cascade and ask:

```text
List my organisations
```

If configured correctly, it will call the `list_organisations` tool and show your organisations.
