Developers
Your X account, as an API your agent can drive.
The same automation, pacing and approvals as the dashboard, available to AI agents, scripts and your own code. Nothing skips the Safety Governor.
MCP server
Hand your X account to Claude, Cursor or any MCP agent. 28 tools, every write confirmed and paced.
claude mcp add xautomator -- npx -y @xautomator/mcpCLI and TUI
xa schedules, approves and audits from your terminal. Run it bare for a live keyboard dashboard.
xa post "Launch day" --thread "Here is why"REST API
JSON over HTTPS. Posts, approvals, rotations, Boost rules, credits, audit and analytics.
curl https://xautomator.com/api/v1/postsWebhooks
post.sent, post.failed, approval.pending, credits.low and account.paused, signed with HMAC.
XAutomator-Signature: 5d41402abc4b2a76…Give this to your agent
One prompt installs and connects everything.
Paste it into Claude Code, Claude Desktop or Cursor. It checks Node, asks for your key without printing it, connects the MCP server and verifies the connection.
Agent install prompt
Install and connect the XAutomator MCP server so you can manage my X automation for me.
1. Check that Node.js 22 or newer is installed (node --version). If it is missing or older, tell me and stop.
2. Ask me for my XAutomator API key. It starts with xa_live_ and I create it at https://xautomator.com/app/developers. Never print it back, log it or write it into any file in a repository.
3. Connect the server:
- Claude Code: run claude mcp add xautomator --scope user -e XAUTOMATOR_API_KEY=<key> -- npx -y @xautomator/mcp
- Claude Desktop, Cursor, Windsurf or another MCP client: add this to the client's MCP config (mcpServers), then restart the client:
{ "xautomator": { "command": "npx", "args": ["-y", "@xautomator/mcp"], "env": { "XAUTOMATOR_API_KEY": "<key>" } } }
4. Verify: call the xa_whoami tool and tell me who is signed in and on which plan. If it says mock data, the key was not picked up, so fix the config.
5. From now on, use the xa_ tools for anything about my X account. Always call xa_estimate_cost before creating posts, and ask me before you send anything immediately, approve an action, resume an account or delete something.
Docs: https://xautomator.com/docs