> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xano.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Connecting Clients

## Before We Begin

Gather the following information about the MCP server you built in Xano — you'll need it regardless of client. Connecting to the instance-level [Xano MCP Server](https://docs.xano.com/ai-tools/xano-mcp-server.md) instead? Its URL and token come from a different place; grab them there, then pick your client below.

**1. Name**

This is just a name you want to give your MCP server. Make sure it is unique to other MCP servers you're using, and is human readable so you can easily keep track of what each server does.

**2. URL**

Every MCP server in the workspace is listed in one place. Click Connect this backend at the top left of the page, choose MCP Server URLs, and click the  icon next to the server you want. Expand the row to see its URLs — use the **streaming** one.

Working inside the MCP servers area already? From the sidebar, Agents & MCP → MCP Servers, then click Connection URL on the server's card and copy the one under **Streaming**. On the server's own page, it's Copy Connection URL on the **Connect to your MCP Server** card.

The URL follows the branch you're working on. On a non-live branch, the branch name is appended to the server's canonical after a colon, so you can connect a client to a branch before you make it live.

```text Live branch theme={null}
https://x8ki-letl-twmt.n7.xano.io/x2/mcp/67Dx5RNL/mcp/stream
```

```text Branch "dev" theme={null}
https://x8ki-letl-twmt.n7.xano.io/x2/mcp/67Dx5RNL:dev/mcp/stream
```

> [!WARNING]
>
> SSE as a connection method was **removed in [release 2.6](https://docs.xano.com/updates.md)**, after being deprecated in 2.5. Existing `/sse` connection URLs no longer work — reconnect each client using the streaming URL. Per the official MCP SDK, streaming is the transport to build against.

**3. Token**

The token for your MCP server is generated the same way your other auth tokens are generated, usually as part of your `signup` and `login` API logic.

If the server has [OAuth sign-in](https://docs.xano.com/ai-tools/mcp-builder/sign-in.md) turned on, there's no token to configure: the client signs the user in itself, and a session token sent in a header is refused.

> [!NOTE]
>
> Most clients on this page authenticate with a Bearer token sent in an `Authorization` header. Clients that can't send one, such as Claude Web, Claude mobile and Claude Desktop's **Add custom connector** dialog, need the server to support OAuth. Turn on [OAuth sign-in](https://docs.xano.com/ai-tools/mcp-builder/sign-in.md) for the server, and they sign the user in themselves.
>
> Header setups use **one shared token**, so Xano sees a single identity no matter who is asking. It's a fine basic gate for you or your team. If each user needs to arrive as themselves, so your tools can scope data to whoever is actually calling, turn on OAuth sign-in, whatever your client is capable of sending. Header tokens stop working on a server once sign-in is on.

***

> [card] [Claude Code](#claude-code)

> [card] [Claude Desktop](#claude-desktop)

> [card] [Claude Web / Mobile](#claude-web-and-mobile)

> [card] [Cursor](#cursor)

> [card] [Windsurf](#windsurf)

> [card] [Antigravity](#antigravity)

> [card] [VS Code](#vs-code)

> [card] [Raycast](#raycast)

> [card] [Warp](#warp)

***

## &#x20;Claude Code

In your terminal, run the following command, replacing `<name>`, `<url>`, and `<token>` with your server's details:

```bash theme={null}
claude mcp add --transport http <name> <url> --header "Authorization: Bearer <token>"
```

***

## &#x20;Claude Desktop

Claude Desktop's **Add custom connector** dialog takes a name and a URL but has no field for an `Authorization` header. The desktop app also reads a local config file, though, and that route does support headers — you bridge the remote server to stdio with [`mcp-remote`](https://github.com/geelen/mcp-remote), which injects the header for you. Requires Node.js.

**1. Open your config file**

Go to **Settings > Developer** and click **Edit Config**, or open it directly:

* **macOS**: `~/Library/Application Support/Claude/claude_desktop_config.json`
* **Windows**: `%APPDATA%\Claude\claude_desktop_config.json`

**2. Add an entry for your MCP server**

Put the token in `env` rather than inline in `args`. On Windows, spaces inside `args` aren't escaped when Claude Desktop invokes `npx`, which mangles `Authorization: Bearer …` — writing the header as `Authorization:${AUTH_HEADER}` with no space around the colon avoids it, and works on macOS too.

```json theme={null}
{
  "mcpServers": {
    "xano": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://your-instance.xano.io/x2/mcp/{server-id}/mcp/streaming",
        "--header",
        "Authorization:${AUTH_HEADER}"
      ],
      "env": {
        "AUTH_HEADER": "Bearer your_token_here"
      }
    }
  }
}
```

**3. Restart Claude Desktop**

Quit the app completely and reopen it. Your tools appear under **Connectors**. If the server doesn't show up, check `~/Library/Logs/Claude/mcp*.log` (macOS) or `%APPDATA%\Claude\logs` (Windows).

> [!NOTE]
>
> This is one shared token for whoever is sitting at that machine, the same as every other client on this page. If you want each user to arrive as themselves, turn on [OAuth sign-in](https://docs.xano.com/ai-tools/mcp-builder/sign-in.md) and use the connector dialog instead — that's also the only option on Claude Web and mobile.

***

## &#x20;Claude Web and Mobile

These have no config file. **Add custom connector** is the only way in, and it takes a name and a URL with no field for an `Authorization` header. Claude runs an OAuth handshake for every custom connector, so the server needs [OAuth sign-in](https://docs.xano.com/ai-tools/mcp-builder/sign-in.md) turned on. Putting a token in the URL doesn't work.

**1. Turn on sign-in for the server**

Open the MCP server, click Edit MCP Server, and configure **Sign-in (OAuth)**. See [Require sign-in (OAuth)](https://docs.xano.com/ai-tools/mcp-builder/sign-in.md).

**2. Add a custom connector**

In Claude, go to **Settings > Connectors**, click **Add custom connector**, and paste the server's streaming connection URL as it is. Leave the advanced OAuth fields empty: Claude registers itself with the server.

**3. Sign in**

Click **Connect**. Claude sends you to the server's sign-in, and once you approve, lists the server's tools.

> [!TIP]
>
> Need to run the OAuth front end yourself, for example because your identity provider issues opaque tokens? See [Bring your own identity provider](https://docs.xano.com/ai-tools/mcp-builder/oauth-proxy.md).

***

## &#x20;Cursor

Cursor supports one-click MCP server installation via install links, with your token sent as an `Authorization` header. Use the generator below to create yours.

***

## &#x20;Windsurf

**1. Access your Windsurf settings**

Head to Windsurf Settings > Cascade and click **MCP Marketplace**.

Click the  icon to access your `mcp_config.json` file directly.

**2. Add an entry for your MCP server**

Use the generator below to get the correct JSON.

***

## &#x20;Antigravity

**1. Access your Antigravity MCP settings**

1. Open the MCP store via the "..." dropdown at the top of the editor's agent panel.
2. Click on "Manage MCP Servers"
3. Click on "View raw config"
4. Modify the mcp\_config.json with your custom MCP server configuration.

**2. Add an entry for your MCP server**

Use the generator below to get the correct JSON.

***

## &#x20;VS Code

These instructions may work for other VS Code-based IDEs, but we recommend consulting that client's official documentation for more specific instructions.

**Per-project**: Create or open `.vscode/mcp.json` in your workspace and add the configuration generated below.

**Across multiple projects**:

1. Run the **MCP: Open User Configuration** command, which opens the `mcp.json` file for your user profile. Add the configuration generated below.

***

## &#x20;Raycast

Raycast connects to remote MCP servers through its built-in **Install MCP Server** form, which supports custom HTTP headers. Native MCP support requires Raycast 1.98 or later.

1. Run the **Install MCP Server** command, or run **Manage MCP Servers** and choose **Install New Server**.
2. Set **Transport** to **HTTP** and enter your MCP server's **URL**.
3. Under **HTTP Headers**, add a header with the key `Authorization` and the value `Bearer <token>`. Leave the OAuth fields empty. Header auth only works while [OAuth sign-in](https://docs.xano.com/ai-tools/mcp-builder/sign-in.md) is off on the server.
4. Press **⌘ + Enter** to install. Raycast connects to the server and loads its tools, which you can then @-mention in AI Chat.

***

## &#x20;Warp

1. Access **Warp Drive** and click **MCP Servers** in your Personal settings.
2. Click **+ Add** and add the configuration generated below.

***

## Other header-capable clients

These clients all accept a Bearer token in an `Authorization` header — they just configure it differently. Point them at your streaming connection URL and set the header where the table says.

| Client | Where the header goes | Docs |
| - | - | - |
| Zed | `context_servers.<name>.headers` | [zed.dev/docs/ai/mcp](https://zed.dev/docs/ai/mcp) |
| Cline | `"type": "streamableHttp"` + `headers` | [docs.cline.bot](https://docs.cline.bot/mcp/connecting-to-a-remote-server) |
| Roo Code | `"type": "streamable-http"` + `headers` | [Roo Code MCP](https://roocodeinc.github.io/Roo-Code/features/mcp/using-mcp-in-roo) |
| Continue | `requestOptions.headers` — there is no top-level `headers` key | [docs.continue.dev](https://docs.continue.dev/customize/deep-dives/mcp) |
| Gemini CLI | `httpUrl` + `headers` | [gemini-cli docs](https://github.com/google-gemini/gemini-cli/blob/main/docs/tools/mcp-server.md) |
| Codex CLI | `http_headers` or `bearer_token_env_var` in `config.toml` | [learn.chatgpt.com](https://learn.chatgpt.com/docs/extend/mcp?surface=cli) |
| Goose | `type: streamable_http` + `headers` in `config.yaml` | [goose-docs.ai](https://goose-docs.ai/docs/guides/config-files/) |
| Amp | `amp.mcpServers.<name>.headers` | [ampcode.com/manual](https://ampcode.com/manual) |
| JetBrains Junie | `mcpServers.<name>.headers` | [Junie MCP configuration](https://junie.jetbrains.com/docs/junie-cli-mcp-configuration.html) |
| LibreChat | `librechat.yaml` → `headers:` | [librechat.ai](https://www.librechat.ai/docs/configuration/librechat_yaml/object_structure/mcp_servers) |
| Open WebUI | Admin → Integrations → Auth: Bearer | [docs.openwebui.com](https://docs.openwebui.com/features/extensibility/mcp/) |
| n8n MCP Client | Bearer or Header Auth credential | [docs.n8n.io](https://docs.n8n.io/integrations/builtin/cluster-nodes/sub-nodes/n8n-nodes-langchain.toolmcp/) |

Windsurf has been renamed **Devin Desktop**, and its config key is `serverUrl`, not `url` — the [Windsurf](#windsurf) instructions above still apply.


## Related topics

- [Build the OAuth Worker by hand](https://docs.xano.com/ai-tools/mcp-builder/oauth-proxy/manual-setup.md)
- [Xano MCP Server](https://docs.xano.com/ai-tools/xano-mcp-server.md)
- [Bring your own identity provider](https://docs.xano.com/ai-tools/mcp-builder/oauth-proxy.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.