Docs
Docs
MCP Server
XBeast MCP Server
The XBeast MCP server lets an AI agent work inside your XBeast workspace using the same tools you use in the app: read connected accounts, edit account instructions, manage presets, change schedules, and create, edit or publish posts. It is a hosted remote MCP server at
https://xbeast.io/api/mcp and uses the same API keys as the REST API.Paid plans only
MCP access is included with every paid XBeast plan. Create a key on the Developer page, then paste the server URL into your MCP client. The REST API is included too — see the API docs.
Quick start
- Create an API key on the Developer page. Choose Full access (or Read-only if the agent should never change anything). Copy the
xb_live_…value once. - Connect your X account from the dashboard.
- Add the XBeast MCP server to your AI client (snippets below).
- Ask the agent to call
list_accountsand thenlist_presetsto confirm the connection.
Claude Code
terminal
claude mcp add --transport http xbeast https://xbeast.io/api/mcp \ --header "Authorization: Bearer xb_live_YOUR_KEY"
Cursor
Add this to your Cursor MCP configuration (for example
~/.cursor/mcp.json):mcp.json
{
"mcpServers": {
"xbeast": {
"url": "https://xbeast.io/api/mcp",
"headers": {
"Authorization": "Bearer xb_live_YOUR_KEY"
}
}
}
}Claude Desktop (via mcp-remote)
claude_desktop_config.json
{
"mcpServers": {
"xbeast": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://xbeast.io/api/mcp",
"--header",
"Authorization: Bearer xb_live_YOUR_KEY"
]
}
}
}Generic HTTP client
The server is stateless Streamable HTTP. Send JSON-RPC POST requests with
Accept: application/json, text/event-stream, and authenticate with either Authorization: Bearer xb_live_… or X-API-Key. Never put the key in the query string.initialize
curl -X POST "https://xbeast.io/api/mcp" \
-H "Authorization: Bearer xb_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "initialize",
"params": {
"protocolVersion": "2025-06-18",
"capabilities": {},
"clientInfo": { "name": "my-agent", "version": "0.0.1" }
}
}'Tool catalog
Read tools are safe on read-only keys. Write tools create or change data and may spend credits. Destructive tools remove data or cancel work. Each tool returns JSON text and reports expected failures as
{ error: { code, message, hint } }.Accounts & workspace
Presets
Schedules
Posts
Generation & media
Styles, auto plugs & tweet bank
Analytics, communities & account admin
In-app Copilot
The same tools power the in-app Copilot inside XBeast. If an action works there, it works for your MCP agent too — and vice versa. The Copilot adds in-app approval for destructive and public actions, but the tool names, inputs and results are identical to the ones documented here. The Copilot also has OpenRouter web search and web fetch built in, so it can answer current-facts questions and read links you share.
Resources and prompts
The server also exposes read-only resources and reusable prompts. Resources let an agent load a JSON snapshot without spending a tool call; prompts give it a step-by-step workflow.
xbeast://workspace,xbeast://accounts,xbeast://presets,xbeast://schedule/{account_id}- Prompts: Plan my week, Audit my schedule, Write and schedule a tweet
Example prompts
- "Set the account prompt for my main X account to: concise, technical, no hashtags."
- "Change my Tesla News preset to threads at 9am on Monday, Wednesday and Friday."
- "Edit the tweet in my draft to say: We just shipped the new API."
- "Create a draft tweet about our new release and show it to me before scheduling."
- "Queue the latest draft and tell me when it will publish."
- "Summarize my follower growth this month and which sent posts performed best."
Security and safety
- Paid plans only. Free accounts receive
403with a plan hint. - API-key auth. Keys start with
xb_live_, are hashed at rest, and are never accepted in query strings. Revoke a leaked key on the Developer page. - Read-only option. Create a read-only key when the agent should only read data. Every write and generation call is rejected with
403 read_only_key, and a read-only key cannot create a full-access key. - Draft-first.
create_postdefaults to a draft. Publishing requires an explicitmode: "now"or a separatepublish_postcall. - Destructive tools (
delete_account,delete_preset,delete_schedule,delete_post,delete_style,delete_auto_plug,revoke_api_key,request_payout) are annotated as destructive and require an explicitconfirm: trueargument. - Use an
idempotency_key(or the RESTIdempotency-Keyheader) so retrying a create call does not make a second post. - Publishing to X costs 1 credit per post, plus 10 if the post contains a URL. Generation costs the preset credit cost shown in the app.
- Max 7 scheduled or posted tweets per connected account per day (account timezone).
- Articles require an X Premium account. Auto-reply, auto-retweet and auto-plug require a paid plan.
- Requests are rate limited to roughly 120 per minute per API key (or client IP for unauthenticated requests). A rejected request returns
429with aRetry-Afterheader. The Developer page also shows the last 10 API/MCP calls for the workspace.
Client compatibility
The endpoint is stateless Streamable HTTP, so every client below uses the same URL and Bearer key. Tested configurations:
- Claude Code —
claude mcp add --transport httpwith theAuthorizationheader. - Cursor —
mcp.jsonwith aurland headers (snippet above). - Claude Desktop —
npx -y mcp-remotebridging the remote URL to stdio. - Generic clients — must send
Accept: application/json, text/event-stream; JSON-only and SSE-only clients both work because the response content type is negotiated. - Retries — send the same
idempotency_key(or RESTIdempotency-Keyheader) so a timeout retry returns the original post. - Cloudflare Workers — the endpoint is verified with
pnpm previewplusnode scripts/mcp-smoke.mjsbefore each release.
Troubleshooting
401 Unauthorized
The key is missing, revoked or malformed. Create a new
xb_live_ key on the Developer page and send it as a Bearer token.403 Forbidden
Either the account is on the free plan (MCP requires a paid plan), or the key is read-only and the tool is a write or generation tool. The error body's
reason distinguishes the two.405 Method Not Allowed
MCP JSON-RPC requests must use
POST. A plain browser GET is not a valid MCP request.429 Too Many Requests
The endpoint allows about 120 requests per minute per key/IP. Wait for the number of seconds in the
Retry-After header before retrying. Credits and plan limits are separate from this operational guard.A retry created a duplicate post
Pass the same
idempotency_key on every retry. The server returns the existing post instead of creating another. publish_post is also safe to retry: an already-sent post returns its existing result.