Develop with AI Agents
Use AI agents with OnlyFans API documentation resources and the official onlyfansapi-skill.
Not sure where to start?
AI-ready docs resources
llms.txt, llms-full.txt, per-page .mdx URLs, and the OpenAPI schema.
Connect our docs via MCP
One-click install for Cursor, VS Code, Claude, ChatGPT, and any other MCP client.
Install onlyfansapi-skill
Drop-in skill from skills.sh that teaches your agent the API surface.
Prompting tips
Small prompt tweaks that produce dramatically better agent output.
AI-ready docs resources
When building with AI agents, point them to these resources first:
- docs.onlyfansapi.com/llms.txt - canonical AI-friendly docs entrypoint
- docs.onlyfansapi.com/llms-full.txt - complete LLM-friendly docs (also used for backward compatibility)
- API Reference - interactive endpoint docs by category
- OpenAPI schema - machine-readable API spec
Per-page .mdx URLs
For individual guides or API endpoints, just append .mdx to the page URL and feed that directly to the AI agent.
Examples:
https://docs.onlyfansapi.com/introduction/guides/develop-with-ai-agents.mdxhttps://docs.onlyfansapi.com/api-reference/account/list-accounts.mdxhttps://docs.onlyfansapi.com/api-reference/chats/list-chats.mdx
Connect our docs via MCP
We host a remote Model Context Protocol server at:
https://docs.onlyfansapi.com/api/mcpHook it into Claude, Cursor, VS Code, ChatGPT, or any other MCP-compatible client and your agent gets three tools that query these docs directly — no copy/paste, always up to date:
search_docs(query, limit?)— full-text search across the docs (Algolia).get_doc_page(path)— raw Markdown for a single page (path or full URL).get_overview()— the entire docs as one Markdown document (llms.txt).
The MCP server is public, read-only, and requires no API key. It only exposes content already published at docs.onlyfansapi.com.
Cursor
Or manually: Settings → MCP → Add new server, type HTTP, URL https://docs.onlyfansapi.com/api/mcp.
VS Code (GitHub Copilot)
Or manually: open the Command Palette → MCP: Add Server → HTTP → URL https://docs.onlyfansapi.com/api/mcp.
Claude Desktop
Open Settings → Connectors → Add custom connector and paste the URL:
https://docs.onlyfansapi.com/api/mcpAlternatively, add this entry to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows) and restart the app:
{
"mcpServers": {
"onlyfansapi-docs": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://docs.onlyfansapi.com/api/mcp"]
}
}
}Claude.ai (web)
In Claude.ai: Settings → Connectors → Add custom connector → URL https://docs.onlyfansapi.com/api/mcp. Requires a paid plan that supports custom connectors.
ChatGPT
In ChatGPT: Settings → Connectors → Create → paste https://docs.onlyfansapi.com/api/mcp. Custom connectors are available on plans that include MCP support (Pro / Business / Enterprise at the time of writing).
Other MCP clients
Any client that speaks Streamable HTTP MCP works — point it at https://docs.onlyfansapi.com/api/mcp. For stdio-only clients, bridge with mcp-remote:
npx -y mcp-remote https://docs.onlyfansapi.com/api/mcpInstall onlyfansapi-skill from skills.sh
Skill page: skills.sh/onlyfansapi/skill/onlyfansapi-skill
Install command shown on the skill page:
npx skills add https://github.com/onlyfansapi/skill --skill onlyfansapi-skillRestart your agent/CLI session after installation so the new skill is loaded.
Configure your API key
The skill expects ONLYFANSAPI_API_KEY in your environment:
export ONLYFANSAPI_API_KEY="your_api_key_here"Get your key from: app.onlyfansapi.com/api-keys
Quick auth check:
curl -s -H "Authorization: Bearer $ONLYFANSAPI_API_KEY" \
"https://app.onlyfansapi.com/api/accounts" | jq .Prompting tips for better agent output
- Ask the agent to read
llms.txtorllms-full.txtbefore generating calls. - Include exact date ranges and timezone when requesting analytics.
- Ask for tables with totals when comparing multiple accounts.
- Ask the agent to show endpoint path + params before execution if you want to review requests first.