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

# OFAuth MCP server

> Connect your AI client and read a linked account's profile.

The OFAuth MCP server lets an AI client use your accounts through tools. Connect your client, approve account access, and ask it to read an account's profile. You choose which accounts and permissions to share.

## Connect your client

Choose your client below. Each connects to the same remote MCP server and opens OFAuth authorization in your browser.

> [tab] Codex
>
> Add the server and start OAuth sign-in:
>
> ```bash theme={null}
> codex mcp add ofauth --url https://mcp.ofauth.com/mcp
> codex mcp login ofauth
> ```
>
> Complete the browser authorization, then run `codex mcp list` to confirm that `ofauth` is configured. In an interactive Codex session, `/mcp` shows the active servers.
>
> See [Codex MCP configuration](https://learn.chatgpt.com/docs/extend/mcp?surface=cli).

> [tab] Cursor
>
> Create or update `.cursor/mcp.json` in your project. Add the `ofauth` entry alongside any existing servers:
>
> ```json theme={null}
> {
>   "mcpServers": {
>     "ofauth": {
>       "url": "https://mcp.ofauth.com/mcp"
>     }
>   }
> }
> ```
>
> Open Cursor's **Customize** page, enable OFAuth, and complete browser authorization when prompted. Use `~/.cursor/mcp.json` instead for a server available across your projects.
>
> See [Cursor MCP configuration](https://cursor.com/docs/mcp).

> [tab] ChatGPT
>
> 1. Open [ChatGPT Plugins](https://chatgpt.com/plugins).
> 2. Select the plus button, then **Add custom MCP server**.
> 3. Name it **OFAuth** and enter `https://mcp.ofauth.com/mcp` as the public server URL.
> 4. Choose OAuth authentication, review the connection, and select **Create as a plugin**.
> 5. Complete OFAuth authorization and install the resulting plugin.
> 6. Start a conversation, type `@`, and select OFAuth.
>
> See [ChatGPT custom MCP setup](https://developers.openai.com/plugins/deploy/connect-chatgpt#add-the-mcp-server) for account and workspace requirements.

> [tab] Other clients
>
> Use a client that supports remote MCP servers and browser-based OAuth. Add a remote server named **OFAuth** with this URL:
>
> ```text theme={null}
> https://mcp.ofauth.com/mcp
> ```
>
> Start its connection or authentication action, then complete OFAuth authorization in the browser. Follow your client's remote-server instructions.

## Authorize account access

Review the accounts and permissions requested in OFAuth. Approve the access you intend to grant, then return to your AI client.

The MCP connection uses its own OAuth flow. Keep your application's client secret, API keys, and account cookies out of the client's MCP configuration.

## Check the connection

Send this prompt in a conversation with OFAuth enabled:

```text theme={null}
Read the profile of the OnlyFans account I selected in OFAuth.
Show its name, username, and account identifier so I can check it.
Do not send messages, publish content, or change settings.
```

If you have several linked accounts, select the intended one when prompted. If you are prompted to link an account, complete the flow and repeat the profile request.

Check that the returned name, username, and identifier belong to the intended account. A profile field can be unavailable; ask the agent to identify missing fields rather than invent a value. Confirm that the client reads the correct account's profile. Sign-in alone does not confirm account access.

## Use account tools

Ask for a concrete task, such as reviewing recent conversations or summarizing account activity. The available actions depend on your authorized accounts and permissions. The first access request asks for read permissions. To change an account, the client must request and receive the matching write permission.

To build an application with a coding agent, use [Agent skills](https://docs.ofauth.com/v3/agents/skills.md) and [Add project context](https://docs.ofauth.com/v3/agents/project-context.md). A skill provides instructions; the MCP connection authorizes account tools.

## Troubleshoot

| Symptom | Next step |
| - | - |
| The client does not start authentication | Confirm the server URL and select its OAuth connection action. Allow the browser authorization page to open. |
| OAuth fails before you can approve access | Check the client's remote MCP configuration. Do not substitute your application's OAuth client ID or callback. |
| Tools load but an account request is denied | Confirm the selected account and permissions, then follow the returned recovery step. |
| Few tools appear in the client | Ask for the account task. OFAuth's `code` tool can find the available account actions. The first tool list does not show every action. |
| Your MCP session expires | Reconnect through the client's authentication flow. |
| The OnlyFans account needs reconnect | Reconnect the account in OFAuth. Signing in to the MCP client again does not restore the OnlyFans session. |

For recovery, see [Handle failed requests](https://docs.ofauth.com/v3/reference/error-handling.md) and [Account reconnects](https://docs.ofauth.com/v3/guides/reconnect.md).

## Documentation access is separate

A documentation MCP server lets an agent search and read docs. It does not supply OFAuth account tools or authorize account actions. Installing an [OFAuth skill](https://docs.ofauth.com/v3/agents/skills.md) also does not establish an MCP connection.

For your own application, use [App authorization with OAuth](https://docs.ofauth.com/v3/guides/link.md) and the [API reference](https://docs.ofauth.com/v3/api-reference.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.