Quickstart
You need an Xholic account with an active plan or trial and at least one connected X account. Everything below works on every plan.
Connect your AI (MCP)
Section titled “Connect your AI (MCP)”Prefer to watch? Every app and agent below has a setup video under a minute long.
The server URL is the same everywhere:
https://api.xholic.ai/mcpClients that support OAuth open the Xholic sign-in and consent screen the first time you use it. Read, Write and Publish are ticked; untick Publish if you don’t want it posting yet. Pick the X accounts it can use, then approve. If Publish is off when your AI needs to post, it gives you a link to allow that in one click.
Claude
Section titled “Claude”In Claude, click Customize in the sidebar and choose the Connectors tab. Click Add → Add custom connector, enter Xholic as the Name, paste the URL as the MCP server URL and click Continue. Then click Connect and approve. In a chat, turn Xholic on from + → Connectors and ask something like “What happened on my X account this week?”.
Connectors belong to your Claude account, so once added, Xholic also works in Claude Code (when signed in with that account) and the Claude mobile app.
ChatGPT
Section titled “ChatGPT”ChatGPT has two separate places for MCP servers:
- chatgpt.com: click Plugins in the sidebar, then Add (top right) → Add custom MCP server. Enter Xholic as the Name, keep Server URL under Connection and paste the URL, keep Authentication on OAuth, tick I understand and want to continue and click Create as a plugin. In a chat, click + (or type
@) and pick Xholic. If your plan doesn’t offer Add custom MCP server, use the desktop app below. On Business, Enterprise and Edu, a workspace admin or owner adds it for the team. ChatGPT keeps a snapshot of the tools, so refresh the plugin to pick up new ones. - ChatGPT desktop app (if you don’t see Add custom MCP server): open Settings → MCP servers, click Add server, choose Streamable HTTP, paste the URL and save. Click Restart, then Authenticate next to the server. This setup is shared with the Codex CLI and IDE extension on the same computer. Start a new Codex chat and name Xholic in your request (“Use Xholic: …”) so the app loads its tools. ChatGPT’s plain Chat mode doesn’t use this setup.
On grok.com, click Plugins at the bottom of the sidebar and choose the Connectors tab. Click New Connector → Custom, enter Xholic as the Name, paste the URL as the Server URL and click Add Connector. Sign in when Grok asks, then approve in Xholic. In a chat, ask Grok to use it: “Use Xholic: what should I post today?”. Connectors are on every Grok plan; on Grok Business or Enterprise, an admin adds the connector first.
Claude Code
Section titled “Claude Code”Already signed in to Claude Code with a Claude account that has the connector? You’re done. Otherwise:
claude mcp add --scope user --transport http xholic https://api.xholic.ai/mcpThen run /mcp inside Claude Code and pick xholic to sign in.
codex mcp add xholic --url https://api.xholic.ai/mcpcodex mcp login xholicCursor
Section titled “Cursor”Add Xholic to ~/.cursor/mcp.json (or .cursor/mcp.json in a project):
{ "mcpServers": { "xholic": { "url": "https://api.xholic.ai/mcp" } }}VS Code
Section titled “VS Code”Add it to .vscode/mcp.json:
{ "servers": { "xholic": { "type": "http", "url": "https://api.xholic.ai/mcp" } }}Clients without OAuth
Section titled “Clients without OAuth”Send an API key as a header instead. For example, in Claude Code:
claude mcp add --scope user --transport http xholic https://api.xholic.ai/mcp \ --header "Authorization: Bearer $XHOLIC_API_KEY"Or in a JSON config:
{ "mcpServers": { "xholic": { "url": "https://api.xholic.ai/mcp", "headers": { "Authorization": "Bearer xhk_your_key" } } }}Grok agents (xAI API)
Section titled “Grok agents (xAI API)”Your own agent on xAI’s Responses API can use Xholic as a remote MCP tool. Create an API key in Xholic and send it as a header:
curl https://api.x.ai/v1/responses \ -H "Authorization: Bearer $XAI_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "grok-4.7", "input": [{ "role": "user", "content": "What should I post on X today?" }], "tools": [{ "type": "mcp", "server_url": "https://api.xholic.ai/mcp", "server_label": "xholic", "headers": { "Authorization": "Bearer xhk_your_key" } }] }'xAI loads every Xholic tool into the model’s context unless you limit them with allowed_tools.
Call the REST API
Section titled “Call the REST API”- In Xholic, open Settings → API / MCP / CLI and create an API key. Pick its scopes and the X accounts it can use. The key (
xhk_…) is shown once; store it as a secret. - Read your profile:
export XHOLIC_API_KEY="xhk_your_key"
curl https://api.xholic.ai/v1/me/get \ -H "Authorization: Bearer $XHOLIC_API_KEY"- Schedule a post (needs the
publishscope):
curl https://api.xholic.ai/v1/posts/schedule \ -H "Authorization: Bearer $XHOLIC_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "text": "Shipping beats planning. Every time.", "scheduledAt": "2026-11-03T09:00", "timezone": "Europe/London", "idempotencyKey": "launch-post-001" }'Every response starts with a readable summary, then data. Add "dryRun": true to any change to see what would happen without doing it. See Responses and errors.
Prefer clicking? The API playground runs any call from your browser with your key, in any of nine languages, and every change starts as a dry run. Each page of the REST API reference has a Try it button that opens its call there.
Use the CLI
Section titled “Use the CLI”npm i -g xholicxholic login # opens the browser to sign inxholic me getxholic posts schedule --text "Shipping beats planning." \ --scheduled-at 2026-11-03T09:00 --timezone Europe/LondonIn CI, set XHOLIC_API_KEY instead of logging in. See CLI.
- Authentication: keys, OAuth, scopes and accounts
- MCP tools: what your AI can do
- Credits: what costs anything, and the quote flow
- Webhooks: get events pushed to your server
