> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.flockx.io/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.flockx.io/_mcp/server.

# Connect Flockx to ChatGPT, Codex, and the OpenAI API

> Set up the Flockx MCP server with OpenAI: add Flockx as a custom MCP server in ChatGPT, connect it to Codex with two commands, or call it from the OpenAI Responses API. Create on-brand images, video, and social posts from ChatGPT and Codex.

**Server address:** `https://mcp.flockx.io/mcp`

#### ChatGPT

ChatGPT connects to Flockx as a **custom MCP server** on ChatGPT web.

1. In ChatGPT, open **Plugins**.

2. Click **+**, then **Add custom MCP server**.

3. Name it `Flockx`. Optionally add a description, such as "Brand content, media, and social publishing."

4. Under **Connection**, enter the server address:

   ```
   https://mcp.flockx.io/mcp
   ```

5. Choose **OAuth** for authentication.

6. Review the risk warning, check **I understand and want to continue**, and select **Create as a plugin**.

7. Finish the Flockx sign-in in your browser and review the tools ChatGPT discovered.

8. Start a new chat, type `@`, and select **Flockx**.

**Plan availability.** OpenAI sets which plans can add custom MCP servers. At the time of writing, ChatGPT Business and Enterprise/Edu support every Flockx tool, including actions that create and publish content. ChatGPT Pro supports read-only tools. On Business and Enterprise workspaces, an admin or owner may need to add and publish the connection for the workspace. See OpenAI's [guide to custom MCP servers in ChatGPT](https://help.openai.com/en/articles/12584461-developer-mode-apps-and-full-mcp-connectors-in-chatgpt-beta) for current details.

ChatGPT selects a plugin per message. `@Flockx` again when a follow-up needs new Flockx data or another Flockx action.

#### Codex

Add the server, then sign in:

```bash
codex mcp add flockx --url https://mcp.flockx.io/mcp
codex mcp login flockx
```

The login command opens a browser for the Flockx sign-in. The same configuration works in the Codex CLI and the Codex IDE extension.

To configure it by hand instead, add this to `~/.codex/config.toml` and then run `codex mcp login flockx`:

```toml
[mcp_servers.flockx]
url = "https://mcp.flockx.io/mcp"
```

#### OpenAI API

The [Responses API](https://platform.openai.com/docs/guides/tools-remote-mcp) can call Flockx as a remote MCP tool for a user who signed in to Flockx through your application. Complete the Flockx OAuth sign-in in your app (see [connection details](/documentation/flockx-mcp/set-up-your-assistant/other-mcp-clients#connection-details)), then pass the user's access token:

```python
from openai import OpenAI

client = OpenAI()

response = client.responses.create(
    model="gpt-5",
    tools=[
        {
            "type": "mcp",
            "server_label": "flockx",
            "server_url": "https://mcp.flockx.io/mcp",
            "authorization": flockx_access_token,
            "require_approval": "always",
        }
    ],
    input="List my draft social posts that are waiting for review.",
)

print(response.output_text)
```

Keep `require_approval` on for tools that publish or post publicly (`publish-social-draft`, `linkedin-post-comment`, `run-workflow`), and show the approval request to the person before you approve it.

## Check that it works

Ask: "Which Flockx organizations can I use?" The assistant calls `list-organizations` and shows each organization and the one in use.

## Next steps

* [Capabilities](/documentation/flockx-mcp/capabilities)
* [How AI assistants use Flockx](/documentation/flockx-mcp/how-ai-assistants-use-flockx)
* [Troubleshooting](/documentation/flockx-mcp/troubleshooting)