🎉 Black Friday: 30% off your first payment — ends Monday, Nov 30Claim 30% off
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.

Quick start

  1. 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.
  2. Connect your X account from the dashboard.
  3. Add the XBeast MCP server to your AI client (snippets below).
  4. Ask the agent to call list_accounts and then list_presets to 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

ToolAccessWhat it does
get_workspaceReadPlan, credits, reset date, limits, account/post counts.
get_accountReadOne account with prompts, timezone, follower counts.
list_accountsReadFilter by platform or posting_enabled.
update_accountWriteEdit account_prompt, reply_prompt, timezone, posting_enabled.
delete_accountDestructiveRemove an account and its schedules and posts. confirm: true.
get_connect_urlReadBrowser URL to connect a new X account (X only today).

Presets

ToolAccessWhat it does
list_presetsReadOwned presets, optionally with community presets.
get_presetReadEvery generator field of one preset.
create_presetWriteCreate a preset; title is the only required field.
update_presetWriteEdit any preset field. Community presets must be duplicated first.
delete_presetDestructiveDelete a preset and remove it from schedules. confirm: true.
duplicate_presetWriteCopy a community or owned preset into your workspace.
generate_from_presetWriteTest-run a preset and save a history post. Costs credits.

Schedules

ToolAccessWhat it does
list_schedulesReadPreset slots, queue slots and reply sessions.
create_scheduleWriteAdd a slot with days, time window and automations.
update_scheduleWriteChange days, times, auto-reply/retweet/plug or community.
delete_scheduleDestructiveDelete a weekly slot or reply session.

Posts

ToolAccessWhat it does
list_postsReadDrafts, scheduled, queue, posted, cancelled, error and history.
get_postReadFull tweets, article, settings, metrics and error detail.
create_postWriteCreate a draft, schedule or publish now. Defaults to draft.
update_postWriteEdit tweets, article, time, media or settings before it is sent.
delete_postDestructiveCancel an upcoming post or delete a draft/history post.
publish_postWritePublish now. Safe to retry; costs 1 credit (+10 with a URL).
queue_postWriteMove a post into the next available queue slot.
cancel_postDestructiveCancel a scheduled post.
uncancel_postWriteRestore a cancelled post.
mark_post_publishedWriteClear an uncertain failure after verifying the post is live.
regenerate_postWriteRegenerate a scheduled preset post. Costs credits.

Generation & media

ToolAccessWhat it does
generate_textWriteAI, web search, YouTube, X rewrite, X news, link, list or article.
beast_mode_generateWriteOne tweet from an account’s profile and recent history. 1 credit.
edit_post_with_aiWriteRewrite a saved post with post_id (saves by default), or edit tweets state without saving.
generate_imageWriteAI image generation. Costs the model price.
edit_imageWriteEdit a public HTTPS image. 5 credits.
recommend_mediaWriteSuggest a stock search query or AI image prompt. 1 credit.
search_mediaReadSearch Unsplash, Pixabay, Lexica or Yandex. Free.
upload_mediaWriteStore media from an HTTPS URL or base64.

Styles, auto plugs & tweet bank

ToolAccessWhat it does
list_stylesReadOwned and community writing styles.
get_styleReadA style and its examples.
create_styleWriteCreate an empty style.
update_styleWriteRename, add text/URL/handle examples, replace or remove examples.
delete_styleDestructiveDelete a style you own.
list_auto_plugsReadReusable plug tweets.
create_auto_plugWriteCreate a plug tweet (paid plans).
update_auto_plugWriteEdit a plug tweet.
delete_auto_plugDestructiveDelete a plug tweet.

Analytics, communities & account admin

ToolAccessWhat it does
get_account_analyticsReadFollowers, following, tweets, likes and listed over time.
list_account_postsReadSent-post performance for one account with engagement ratio, status, date range and pagination.
list_auto_repliesReadAuto-reply activity for an account or post.
list_leaderboardReadSearch the public creator leaderboard.
list_tweet_bankReadBrowse viral tweets with handle, format and recency filters.
import_tweet_bankWriteImport up to 20 post URLs or a handle’s recent top tweets.
search_communitiesReadSearch X communities for scheduling.
ToolAccessWhat it does
get_affiliateReadReferral link, commission and pending payout.
get_affiliate_earningsReadEarnings, payout history and amount owed.
request_payoutDestructiveRequest an affiliate payout. Needs $50 and confirm: true.
list_api_keysReadActive keys with prefix, access mode and last-used time.
create_api_keyWriteCreate a full-access or read-only key. Maximum 5 active keys.
revoke_api_keyDestructiveRevoke a key. confirm: true.
get_billing_portal_urlWriteStripe billing portal URL or the in-app /premium fallback.

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 403 with 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_post defaults to a draft. Publishing requires an explicit mode: "now" or a separate publish_post call.
  • 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 explicit confirm: true argument.
  • Use an idempotency_key (or the REST Idempotency-Key header) 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 429 with a Retry-After header. 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 http with the Authorization header.
  • Cursor — mcp.json with a url and headers (snippet above).
  • Claude Desktop — npx -y mcp-remote bridging 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 REST Idempotency-Key header) so a timeout retry returns the original post.
  • Cloudflare Workers — the endpoint is verified with pnpm preview plus node scripts/mcp-smoke.mjs before 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.