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

# MCP

Membrane provides a cloud MCP server that exposes its API as tools for AI agents. Your agent gets access to all Membrane operations — managing connections, running actions, querying data, and more.

## Setup

Add Membrane's MCP server to your agent's configuration:

```
https://api.getmembrane.com/mcp/integrate-anything
```

**Claude Desktop** (`~/Library/Application Support/Claude/claude_desktop_config.json`):

```json theme={null}
{
  "mcpServers": {
    "membrane": {
      "type": "url",
      "url": "https://api.getmembrane.com/mcp/integrate-anything"
    }
  }
}
```

**Cursor** (`.cursor/mcp.json` in your project):

```json theme={null}
{
  "mcpServers": {
    "membrane": {
      "type": "url",
      "url": "https://api.getmembrane.com/mcp/integrate-anything"
    }
  }
}
```

For other MCP clients, use the URL above and follow your client's configuration format.

## Authentication

The MCP server supports OAuth — your agent will prompt you to log in when it first connects.

If your MCP client doesn't support OAuth, you can authenticate by adding a Bearer token in the `Authorization` header:

```
Authorization: Bearer eyJhbGciOiJIUzUxMiIs...
```

As a last resort, append the token to the URL:

```
https://api.getmembrane.com/mcp/integrate-anything?token=eyJhbGciOiJIUzUxMiIs...
```

See [Authentication](/docs/how-membrane-works/authentication) for how to get a token.
