> ## 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.

# Introduction

> OnlyTraffic Studio MCP server: connect Claude, ChatGPT and other AI assistants to your Studio account.

The OnlyTraffic Studio **Model Context Protocol (MCP)** server lets AI assistants like Claude and ChatGPT do all the main things you do in Studio, plus advanced analytics, on demand.

It speaks the standard MCP protocol over HTTP, so any MCP-compatible client can connect.

## Endpoint

```text theme={null}
https://studio-api.onlytraffic.com/mcp
```

This is the only URL you ever need to share with an AI client.

## Authorization

When a client connects for the first time, it opens a browser window pointing to our authorize page. You paste your **OnlyTraffic Studio API key** there, and the assistant gets access to your account.

MCP uses a single OAuth scope: `mcp`. It gives the connected assistant full account access through the MCP tools enabled for your account, using the same API key you authorize with.

<Steps>
  <Step title="Create an API key">
    Go to [studio.onlytraffic.com/api](https://studio.onlytraffic.com/api) and create a key.
    The MCP server uses the same keys as the REST API. One key works for both.
  </Step>

  <Step title="Add the MCP server in your AI client">
    Pick your client below and follow the integration guide:

    <CardGroup cols={2}>
      <Card title="Claude" icon="comment" href="/mcp/claude">
        Claude.ai web (Pro / Max / Team) and Claude Desktop.
      </Card>

      <Card title="ChatGPT" icon="comments" href="/mcp/chatgpt">
        ChatGPT with Developer Mode enabled.
      </Card>
    </CardGroup>
  </Step>

  <Step title="Paste your API key on the authorize page">
    The first time the client connects, you'll be asked to enter your API key.
    After that, the session is remembered until you revoke the key.
  </Step>
</Steps>

## What you can ask

The assistant can carry out the same things you do in Studio, and answer analytical questions about your data on demand. A few example prompts:

* "Show my CPL orders for the last 7 days, grouped by status."
* "List my OnlyFans accounts with their current subscriber count and 7-day growth."
* "Pull subscriber growth for the last 30 days and break it down by traffic source."
* "Find my best-performing CPC creative this month by clicks and CR."
* "Open a new CPL order on offer X for 50 subscribers from the US."
* "Summarize my RevShare earnings last month and compare to the previous month."

If a question can be answered from your Studio data, the assistant will figure out how to put the answer together. You don't need to know any technical details.

## Troubleshooting

<AccordionGroup>
  <Accordion title="The client says 'Invalid or inactive API key'">
    Make sure the key is active in [Studio → API](https://studio.onlytraffic.com/api). Revoked or expired keys won't authorize. Create a new key and try again.
  </Accordion>

  <Accordion title="The AI says 'too many requests'">
    Wait the duration the assistant mentions, then ask again. If it keeps happening, reduce request frequency or contact support.
  </Accordion>

  <Accordion title="The AI says it can't do a specific action">
    Not every Studio action is available through MCP. If you need a specific action enabled, contact support.
  </Accordion>
</AccordionGroup>
