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

# Connect your client

> Set up the Quartr MCP server in Claude Code, your own agents or any other MCP client

Every client connects to the same server URL and authenticates with your API key in the `x-api-key` header.

```
https://api.quartr.com/public/mcp
```

See [Authentication](https://quartr.com/docs/mcp/authentication.md) for how to get a key.

## Claude Code

Add the server with your API key as a header, then ask a question in a new session.

```bash Command theme={null}
claude mcp add --transport http \
  --header "x-api-key: YOUR_API_KEY" \
  quartr https://api.quartr.com/public/mcp
```

```json .mcp.json theme={null}
{
  "mcpServers": {
    "quartr": {
      "type": "http",
      "url": "https://api.quartr.com/public/mcp",
      "headers": {
        "x-api-key": "YOUR_API_KEY"
      }
    }
  }
}
```

## Other MCP clients

Any client that supports remote MCP servers over Streamable HTTP and lets you set a request header can connect. Add `https://api.quartr.com/public/mcp` as a remote HTTP server and set the `x-api-key` header to your API key. The configuration usually looks like the `.mcp.json` example above.

## Your own agents and scripts

Agents and scripts you build yourself send the `x-api-key` header on every request to the server URL, the same way they call the REST API. Most MCP client libraries accept custom headers when you create the transport.

## Disconnecting

Remove the server entry in your client. To revoke access entirely, delete the API key in the [Quartr Portal](https://portal.quartr.dev).


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