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

# Claude Integration

> Connect OnlyTraffic Studio MCP to Claude.ai (web) or Claude Desktop.

Claude supports MCP both in the web app (Pro / Max / Team plans) and on the desktop app. Pick the path that matches your setup.

## Claude.ai (web)

Available on **Pro**, **Max** and **Team** plans. The web app talks to remote MCP servers natively, no bridge required.

<Steps>
  <Step title="Open Connectors">
    In Claude.ai, click your profile (bottom-left) → **Settings** → **Connectors**.
  </Step>

  <Step title="Add a custom connector">
    Scroll to the bottom and click **Add custom connector**.

    | Field | Value                                    |
    | ----- | ---------------------------------------- |
    | Name  | `OnlyTraffic Studio`                     |
    | URL   | `https://studio-api.onlytraffic.com/mcp` |
  </Step>

  <Step title="Authorize">
    Claude opens the OnlyTraffic authorize page in a popup. Paste your **Studio API key** ([create one here](https://studio.onlytraffic.com/api)) and click **Authorize**.

    The popup closes and the connector turns green.
  </Step>

  <Step title="Try it">
    Start a new chat and ask, for example:

    > Show me my last 7 days of CPL orders, grouped by status.

    Claude will figure out how to answer from your Studio data.
  </Step>
</Steps>

<Info>Connectors are remembered per-organization. If a teammate adds the same connector with their own API key, the data stays scoped to their account, not yours.</Info>

## Claude Desktop

Claude Desktop (macOS / Windows) talks to local MCP servers over stdio. To reach our remote server, use the [`mcp-remote`](https://www.npmjs.com/package/mcp-remote) bridge.

<Steps>
  <Step title="Open the config">
    Open the Claude Desktop config file:

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

    Create the file if it doesn't exist.
  </Step>

  <Step title="Add the MCP server">
    Add an entry under `mcpServers`:

    ```json theme={null}
    {
      "mcpServers": {
        "onlytraffic-studio": {
          "command": "npx",
          "args": [
            "-y",
            "mcp-remote",
            "https://studio-api.onlytraffic.com/mcp"
          ]
        }
      }
    }
    ```

    `mcp-remote` is a small Node bridge that translates stdio MCP into HTTP MCP and handles the OAuth dance for you. It runs locally, no data goes through any third party.
  </Step>

  <Step title="Restart Claude Desktop">
    Fully quit and reopen Claude. The first time you ask Claude to use a Studio tool, your browser opens to the authorize page. Paste your API key and confirm.
  </Step>

  <Step title="Try it">
    In a new chat, ask:

    > List my OnlyFans accounts and their last subscriber counts.

    Claude will pull the answer from your Studio data.
  </Step>
</Steps>

## Revoking access

To disconnect Claude from your Studio account:

1. Go to [Studio → API](https://studio.onlytraffic.com/api).
2. Revoke the API key Claude is using. All Claude sessions tied to that key stop working immediately.

You can also remove the connector from Claude's settings — that's enough if you only want to disconnect this client and keep the key.
