# MCP server

The CreatorHero MCP server lets AI assistants (Claude, Cursor, and other [MCP](https://modelcontextprotocol.io) clients) call this API for you. Ask in plain language, such as "Which creator earned the most this week?", and the assistant finds the operation and calls it with your API key.

| Setting | Value |
| --- | --- |
| URL | `https://mcp.creatorhero.com/mcp` |
| Transport | Streamable HTTP |
| Header | `X-API-Key: <your API key>` |

## Tools

The server has three tools instead of one per operation, so the assistant's context stays small.

| Tool | What it does |
| --- | --- |
| `search` | Looks up operations and schemas in the API reference. |
| `execute` | Reads data: `GET` and a few search/list `POST`s. Cannot change anything. |
| `execute_write` | Creates, updates, and deletes, including sending messages to fans. |

The assistant writes a short script that runs in a sandbox with no network access. The script can only call `/dashboard/api/**` operations, and your key never enters the sandbox.

Let your client run `search` and `execute` without asking, and approve each `execute_write` call. Writes are real and can't be undone.

## Claude Code

```bash
claude mcp add --transport http --scope user creatorhero https://mcp.creatorhero.com/mcp \
  --header "X-API-Key: <your API key>"
```

Run `claude mcp get creatorhero` and check that the status is `Connected`.

To skip approval for reads and keep it for writes, add this to `~/.claude/settings.json`:

```json
{
  "permissions": {
    "allow": ["mcp__creatorhero__search", "mcp__creatorhero__execute"]
  }
}
```

## Claude (desktop and web)

Connectors are saved to your Claude account, so one setup works in Claude Desktop and on claude.ai.

1. Open **Settings → Connectors**, then **Add → Add custom connector**.
2. Enter a name, such as `CreatorHero`, and the URL `https://mcp.creatorhero.com/mcp`. Click **Continue**.
3. Under **Authentication**, choose **No sign-in**.
4. Under **Request headers**, enter `X-API-Key` as the name and your API key as the value. Keep **Required** checked.
5. Click **Add**.

## Other MCP clients

Any client that supports Streamable HTTP and custom headers can connect with the settings at the top of this page. For example, Cursor reads `~/.cursor/mcp.json`:

```json
{
  "mcpServers": {
    "creatorhero": {
      "url": "https://mcp.creatorhero.com/mcp",
      "headers": {
        "X-API-Key": "<your API key>"
      }
    }
  }
}
```

Clients that only offer OAuth or no authentication, such as ChatGPT connectors, are not supported yet.

## Limits

- The assistant acts with your key's permissions. See [Authentication](/authentication).
- Its calls count toward your limit of 50 requests per 60 seconds. See [Errors](/errors).
- Each tool result is capped at about 6,000 tokens. Ask for filtered or summarized data, not full exports.
