🎉 Cyber Week: 30% off your first payment — ends Sunday, Dec 7Claim 30% off
MCP · ChatGPT

ChatGPT

The desktop app runs XBeast through the Codex host config.
ChatGPT on the web only offers OAuth (or no auth) for custom MCP servers, so it cannot send an XBeast API key. The desktop app shares the Codex host config, which supports a bearer token from an environment variable. Add the entry below and XBeast’s tools show up in the app.
Included with paid plans60 tools · 8 groups · Draft-first by default
What the agent gets

60 tools in 8 groups

60 tools, one workspaceAccounts, presets, schedules, posts, generation, content, insights and billing — all reachable from the agent.
Same key, same creditsUse the API key and plan you already have. There is no separate MCP subscription or balance.
Drafts firstAnything the agent writes lands in XBeast as a draft. Review it, edit it, or let it fill the next scheduled slot.
Safe by defaultRead-only keys for observers. Full-access keys can publish, but create_post defaults to a draft.
Connect

Connect ChatGPT

Create an API key on the Developer page, then add the server to the Codex host config. The key comes from your environment, so the file itself never contains a secret.
  1. Create an API key under Developer API in your XBeast account.
  2. Add the entry below to ~/.codex/config.toml. The ChatGPT desktop app and Codex CLI share this file.
  3. Export the raw key, restart the desktop app, then ask it to list your XBeast accounts.
The value is the raw key. The host adds the Bearer header itself.
The same entry also connects Codex CLI, since both read ~/.codex/config.toml.
Add to ~/.codex/config.toml
ChatGPT
toml
[mcp_servers.xbeast]
url = "https://xbeast.io/api/mcp"
bearer_token_env_var = "XBEAT_API_KEY"
Export the key, then restart the app
ChatGPT
bash
export XBEAT_API_KEY="xb_live_..."   # raw key, no "Bearer " prefix

# Restart the ChatGPT desktop app, then ask:
# "List my XBeast accounts."
The loop

Find, inspect, write, schedule

Four messages do the whole job. The tool names below are the ones the agent calls for you.
01
Find

Find what already exists

Ask for an account, preset or post in plain language. Read tools return real IDs, statuses and dates, and cost nothing.
list_accountslist_presetslist_scheduleslist_posts
02
Inspect

Read before you spend

Check credits, audience growth and post performance before the agent writes anything.
get_workspaceget_account_analytics_overviewlist_account_postsget_post
03
Write

Write in your voice

Generate from a preset, rewrite a hook, add media or save a draft. create_post defaults to a draft, so nothing ships by accident.
generate_textbeast_mode_generateedit_post_with_aicreate_post
04
Schedule

Put it on the calendar

Move a slot, drop the post into the next queue slot or publish now — with the same rules as the dashboard.
create_scheduleupdate_schedulequeue_postpublish_post
A real session

What it looks like when it runs

Real tool names; the values are illustrative.
ChatGPT
MCP
Summarize how my accounts performed this month and what to post next.
get_account_analytics_overview
@founder +1,284 followers · 4.8% engagement · best format: one-liner
Turn the three best hooks into drafts in our founder voice.
list_presetsgenerate_text
3 drafts · “Founder voice” preset · 2 credits
Schedule the best one for Thursday 9:00 and move the rest to next week.
create_postupdate_post
post 4812 scheduled Thu 09:00 · two drafts moved to Mon/Wed
Three prompts to try

Start with one of these

Summarize this month's growth and tell me the three posts I should write next.
Turn those ideas into drafts in my founder voice.
Schedule the strongest draft for Thursday 9:00 and queue the other two.
FAQ

Common questions

Also works with

One server. Any client.

Claude CodeMCP guide
CursorMCP guide
Codex CLIMCP guide
Hermes Agent
Hermes AgentMCP guide
Every tool, protocol version and header rule: MCP server docs. The REST API behind those tools: API overview.

Connect XBeast to ChatGPT

Create a key, add the server, and ask the agent to call list_accounts. The whole workspace follows.