# PubNio MCP for X (Twitter)

Human page: https://pubnio.com/x-mcp
API reference page: https://pubnio.com/platforms/x.md
Hosted MCP URL: https://pubnio.com/mcp

## Summary

Connect your MCP client to https://pubnio.com/mcp to let agents turn release notes or docs into validated X posts and threads over OAuth. Preflight checks catch character limits and surface X's exact pass-through create cost before publishing.

PubNio operates this third-party MCP service. Availability depends on platform approval and account permissions.

## Quick setup

```sh
claude mcp add --transport http pubnio https://pubnio.com/mcp
codex mcp add pubnio --url https://pubnio.com/mcp && codex mcp login pubnio
```

## Example agent prompts

- "Draft a 4-post X thread summarizing our v2 release notes, validate every item's length, and schedule it for 10:00 America/Los_Angeles."
- "Cross-post our release announcement to LinkedIn and X, adapting the X copy to fit cleanly."
- "Check whether our scheduled X thread confirmed live."

## Expected Code Mode flow

```text
search   -> find account and post operations
execute  -> list ready X accounts => { accounts: [{ id: "acc_x_01", readiness: "ready" }] }
execute  -> create post { text } => { postId: "pst_01j9..." }
execute  -> read post until settled => { status: "published" }
```

## FAQs

### Can Claude Code or Codex publish X threads directly?

Yes. Connect your X account in PubNio, register https://pubnio.com/mcp, and ask your agent to draft, validate, and publish a thread.

### What if my X token expires during a multi-platform launch?

PubNio isolates delivery per target: already-published channels like LinkedIn or Facebook stay live, and you only retry X after reconnecting.
