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

> ## Agent Instructions
> You are reading OnlyX Help: the OnlyX Help Center and the OnlyX developer documentation. OnlyX is an AI chatting and CRM platform for OnlyFans agencies. Its AI chatter is called Hugo in the app.
> Pages at the site root (for example /inbox/..., /hugo/..., /billing/...) are Help Center articles for agency owners, admins, chatters and creators who use the app at app.onlyx.ai. Words in bold are the exact button, menu and label names the app shows; keep them exactly as written. When these pages do not answer a question, the person can email support at support@onlyx.ai.
> Pages under /developers are the developer documentation. REST API base URL: https://api.onlyx.ai/v1 (authenticate with `Authorization: Bearer <API key>`; keys start with onx_sk_ and are created in app.onlyx.ai under Settings > API & MCP). MCP server: https://mcp.onlyx.ai/mcp (OAuth, or a Bearer API key). In the API the AI chatter is `ai` on the wire. Money is integer US cents in fields ending in Cents; timestamps are UTC ISO-8601.
> Rules for assistants acting on a user's behalf: discover ids with list calls and never invent them; before any call that reaches a real fan or the live OnlyFans account (sending a message, releasing a chat to the AI, turning AI on for a chat, resolving a hand-off, turning review mode off, changing the welcome message, creating a tracking link) show the user the exact content and get explicit confirmation; send every POST with an Idempotency-Key and reuse it on retry; never resend a message whose delivery status is unconfirmed; never ask a creator for her OnlyFans password or codes - she signs in herself through a connect link and the OnlyX Login app.

# Cursor

> Install the OnlyX MCP server in Cursor with one click, or with a few lines of mcp.json, using OAuth or an API key.

Cursor installs MCP servers from a link. Click the button, confirm in Cursor, then sign in to OnlyX.

## One click

<Card title="Add OnlyX to Cursor" icon="plug" href="cursor://anysphere.cursor-deeplink/mcp/install?name=OnlyX&config=eyJ1cmwiOiJodHRwczovL21jcC5vbmx5eC5haS9tY3AifQ%3D%3D" horizontal>
  Opens Cursor's install dialog for the OnlyX server. Cursor must be installed.
</Card>

The button is Cursor's install link. `config` is the base64 of `{"url":"https://mcp.onlyx.ai/mcp"}`:

```text theme={"system"}
cursor://anysphere.cursor-deeplink/mcp/install?name=OnlyX&config=eyJ1cmwiOiJodHRwczovL21jcC5vbmx5eC5haS9tY3AifQ%3D%3D
```

If your browser does not open Cursor, use the web version of the same link, which shows a page with an **Open in Cursor** button:

```text theme={"system"}
https://cursor.com/en/install-mcp?name=OnlyX&config=eyJ1cmwiOiJodHRwczovL21jcC5vbmx5eC5haS9tY3AifQ%3D%3D
```

<Steps>
  <Step title="Confirm the install">
    Cursor opens its MCP install dialog showing `OnlyX` and `https://mcp.onlyx.ai/mcp`. Click **Install**.
  </Step>

  <Step title="Sign in">
    In **Cursor Settings → MCP** (called **Tools & Integrations** in some versions), OnlyX shows that it needs a login. Click **Connect** (or **Login**). Your browser opens OnlyX: sign in, choose the workspace, and click **Approve**.
  </Step>

  <Step title="Use it">
    In the chat's Agent mode, ask: *"Which OnlyX workspace am I connected to?"* Cursor asks before it runs each tool unless you allow it.
  </Step>
</Steps>

## Configure by hand

Add the server to `~/.cursor/mcp.json` (all projects) or `.cursor/mcp.json` in a project.

<Tabs>
  <Tab title="OAuth">
    ```json ~/.cursor/mcp.json theme={"system"}
    {
      "mcpServers": {
        "onlyx": {
          "url": "https://mcp.onlyx.ai/mcp"
        }
      }
    }
    ```

    Cursor registers itself with OnlyX automatically and asks you to sign in the first time.
  </Tab>

  <Tab title="API key">
    ```json ~/.cursor/mcp.json theme={"system"}
    {
      "mcpServers": {
        "onlyx": {
          "url": "https://mcp.onlyx.ai/mcp",
          "headers": {
            "Authorization": "Bearer ${env:ONLYX_API_KEY}"
          }
        }
      }
    }
    ```

    Set `ONLYX_API_KEY` in the environment Cursor starts from (for example your shell profile), and restart Cursor. Never commit a key in a project's `.cursor/mcp.json`; the `${env:...}` form keeps it out of the file. A **Read only** key makes Cursor read-only in OnlyX.
  </Tab>
</Tabs>

## Troubleshooting

| Problem | Fix |
| - | - |
| Clicking the button does nothing | Cursor is not installed, or your browser blocked the `cursor://` link. Use the `https://cursor.com/en/install-mcp` link, or configure by hand. |
| OnlyX shows a red dot or "needs login" | Click **Connect** next to it in Cursor Settings → MCP and sign in again. |
| "Unauthorized" with an API key | The key is wrong, revoked or expired, or `ONLYX_API_KEY` is not set where Cursor runs. |
| The tools list is empty | Toggle the OnlyX server off and on in Cursor Settings → MCP. |

## Next

* [Using OnlyX with Claude and other assistants](/developers/guides/using-with-claude): recipes.
* [Tools](/developers/mcp/tools): the full tool list.
