Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.onlyfanskit.dev/llms.txt

Use this file to discover all available pages before exploring further.

Credentials

The MCP server reads the connected session from environment variables:
VariableDescription
OF_COOKIEFull Cookie header value.
OF_X_BCThe x-bc value.
OF_USER_IDNumeric user id.
OF_USER_AGENTOptional — reuse the browser’s UA.
MCP_API_KEYOptional — protect the server itself.

STDIO (desktop agents)

Most desktop agents (e.g. Claude Desktop) launch MCP servers over STDIO. Add an entry to your agent’s MCP config:
{
  "mcpServers": {
    "onlyfanskit": {
      "command": "npx",
      "args": ["onlyfanskit-mcp"],
      "env": {
        "OF_COOKIE": "<your-cookie>",
        "OF_X_BC": "<your-x-bc>",
        "OF_USER_ID": "<your-user-id>"
      }
    }
  }
}

HTTP

For hosted runtimes, run the server over HTTP:
OF_COOKIE=... OF_X_BC=... OF_USER_ID=... npx onlyfanskit-mcp
# serves MCP over HTTP on port 3001
Point your client at http://localhost:3001. Set MCP_API_KEY to require a key on inbound connections.
The MCP server acts on a single connected session at a time, taken from the environment. To drive many accounts from one agent, use the hosted MCP, which selects the account per call.