# X MCP server for AI agents

Connect ChatGPT, Claude, Claude Code, Cursor or Codex to X via MCP. Draft threads, polls, X Articles, analyze public X posts and manage replies.

Ship X threads, polls, quotes, Communities and X Articles directly from your terminal or chat window. PostSyncer’s MCP server offers 118 tools in one list (your client decides which of them it shows), complete with exact X character validation and AI-powered post analysis.

**MCP server:** https://postsyncer.com/mcp · **REST API:** https://postsyncer.com/api/v1 · **Docs:** https://postsyncer.com/docs/platforms/x

## Example X agent prompt

Prompt: “Turn our latest git release notes into a tight 3-post X thread for Tuesday at 9 AM, restrict replies to accounts we follow, and link the changelog in a first comment.”

- `list-workspaces`: Halden Coffee (#4815)

- `list-accounts`: X @haldencoffee (#16234)

- `get-brand`: Loaded crisp founder voice

- `create-post`: Scheduled 3-part X thread #81446 + inline first comment

Scheduled your 3-part X thread for @haldencoffee on Tuesday at 9:00 AM with reply_settings set to following and your changelog link going out with it as the final reply.

```json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "create-post",
    "arguments": {
      "workspace_id": 4815,
      "schedule_type": "schedule",
      "schedule_for": {
        "date": "2026-12-08",
        "time": "09:00",
        "timezone": "America/Los_Angeles"
      },
      "content": [
        {
          "text": "Two things we changed in our espresso blend this spring."
        },
        {
          "text": "1. Lighter washed Guji roast so citrus stays bright in oat milk."
        },
        {
          "text": "2. Every bag now shows its roast date on the front."
        },
        {
          "text": "Full changelog: haldencoffee.example/changelog",
          "is_first_comment": true,
          "first_comment_delay": 0
        }
      ],
      "accounts": [
        {
          "id": 16234,
          "settings": {
            "reply_settings": "following"
          }
        }
      ]
    }
  }
}
```

## Quick start

1. **Connect your AI client.** Use the official ChatGPT app or Claude plugin, or run one command in Claude Code, Cursor, Codex or Gemini CLI pointing at https://postsyncer.com/mcp.

2. **Sign in with OAuth or a drafts-only key.** Approve access with OAuth in PostSyncer, or supply a Bearer API key with workspaces:read, accounts:read, brand:read and posts:create (no posts:schedule) so coding agents draft threads you approve before they go live.

3. **Ship threads, polls and replies from chat.** Prompt your agent from your codebase or notes to craft X threads, run audience polls, analyze viral X posts and answer replies.

## MCP tools for X

These verified PostSyncer MCP tools give coding and writing agents end-to-end control over X publishing, thread replies, public post analysis and metrics.

- `list-accounts` (`accounts:read`): Find connected X account IDs (platform: twitter) and check X Premium capabilities.

- `get-account` (`accounts:read`): Check can_publish_articles before drafting a long-form X Article.

- `get-brand` (`brand:read`): Read workspace brand voice, hooks and guidelines before drafting X copy.

- `create-post` (`posts:create / schedule / publish`): Draft or schedule X posts, multi-part threads, polls, quotes, Community posts and X Articles.

- `analyze-twitter-post` (`posts:read`): Ask AI about any public X post and its replies to study hooks or audience reactions (paid plans).

- `list-comments` (`comments:read`): Read X replies on your published posts (available on every plan).

- `hide-comment` (`comments:update`, destructive): Hide an abusive or off-topic reply on X.

- `get-analytics-post` (`analytics:read`): Fetch impressions, likes, comments, reposts, quotes and saves.

## Agent workflows on X

Favorite X workflows builders and indie founders run directly from ChatGPT, Claude, Claude Code, Cursor and Codex.

### Ship-to-thread straight from your terminal

Prompt: “Read my last 5 git commits, write a concise 4-post X thread explaining what shipped and why users care, and save it as a draft for review.”

Tools: `get-brand`, `list-accounts`, `create-post`. Drafts a voice-matched build-in-public thread right from your repo without copy-pasting between editor and browser.

### Research a public X conversation before writing

Prompt: “Analyze this public X post and its replies, summarize the top 3 developer objections, and draft a response post with a 4-option poll.”

Tools: `analyze-twitter-post`, `get-brand`, `create-post`. Uses analyze-twitter-post (paid plans) to mine real questions from replies and produces a poll draft ready for scheduling.

### Publish a long-form X Article on Premium

Prompt: “Check if our X account can publish X Articles, then turn this markdown post into a draft X Article with our cover photo from the media library.”

Tools: `get-account`, `list-media`, `create-post`. Verifies can_publish_articles first, attaches cover image ID and saves a clean X Article draft.

### Answer X replies with screenshots

Prompt: “Sync replies on yesterday’s launch thread, find anyone asking how pricing works, and reply with our plan comparison graphic.”

Tools: `list-posts`, `sync-comments-from-platforms`, `list-comments`, `list-media`, `create-comment`. Sends media-backed X replies directly from the connected account without opening X.

## Why builders connect X through MCP right inside their IDE

Most developer announcements never get posted because switching from an IDE into a social dashboard breaks flow. With PostSyncer’s X MCP server connected to Claude Code, Cursor, Codex or Gemini CLI, your coding agent already has the diff, benchmarks and screenshots in context — it reads your brand voice via get-brand and saves a ready-to-publish X thread in seconds.

Because PostSyncer validates X’s weighted character count (emoji = 2, every link = 23, 280 for standard, 25,000 for Premium) on every item in the thread, the agent gets an immediate structured error pointing to the exact post number if one slide runs long and rewrites it automatically.

## Threads, polls, X Articles and auto-plugs over MCP

Your agent is not restricted to plain single tweets. It can assemble multi-item threads with up to 20 mixed photos, GIFs and videos per post, attach 2–4 option polls (on media-free posts), quote existing posts with quote_tweet_id, post inside X Communities, publish X Premium Articles, or configure update-post-auto-plug so a follow-up link drops automatically once a post crosses an engagement threshold.

On paid plans, analyze-twitter-post lets your agent inspect public X threads and reply sentiment before drafting commentary or product comparisons.

## Replies, hiding and thread deletion realities on X

X replies sync into PostSyncer on every plan (within a daily allowance on Free), two hours after publishing and daily for two days, plus on-demand refreshes via sync-comments-from-platforms. Agents can reply with media or hide unwanted replies with hide-comment (remember X does not support unhiding).

When delete-post runs on an X thread, PostSyncer asks X to delete only the first post, so the rest of the thread and the first comment stay live — and delete-post is always marked destructive so compliant MCP clients ask you before running it.

Related pages: [X REST API](https://postsyncer.com/x-api), [X scheduler](https://postsyncer.com/twitter-scheduler), [MCP server overview](https://postsyncer.com/mcp-social-media).

## Limits and plans

| Plan | Social accounts | Posts | API posts a day, per network |
| --- | --- | --- | --- |
| Free | 2 | 20 a month | Within the 20 |
| Starter ($29 a month) | 10 | Unlimited | Unlimited |
| Pro ($49 a month) | 30 | Unlimited | Unlimited |
| Agency ($99 a month) | 100, then $1/mo each | Unlimited | Unlimited |

Every plan: 60 requests a minute for each PostSyncer user, across all their keys, the API and the MCP server together.

## FAQ

### Can Claude Code, Cursor or Codex draft X threads straight from my repo?

Yes. Connect https://postsyncer.com/mcp, ask your coding agent to summarize recent commits or docs into a thread, and it saves or schedules the multi-part post via create-post.

### Does the X MCP server support X Premium long posts and X Articles?

Yes. Connected X Premium accounts support up to 25,000 characters per post and X Articles (checked via can_publish_articles on get-account).

### What does analyze-twitter-post do?

On paid plans, analyze-twitter-post uses PostSyncer’s AI to inspect a public X post and its replies so your agent can summarize feedback or spot common questions.

### Can an agent post an X poll and images together?

No. X forbids combining a poll and media in the same post. The MCP tool returns a clear error so the agent can either drop the media or turn off the poll.

### Can my agent hide or reply to X comments?

Yes. X replies are read on every plan (daily allowance on Free). Agents can post replies with media via create-comment or hide replies via hide-comment (X does not allow unhiding).

### How do I keep an AI agent from tweeting without my approval?

Connect the agent with a Bearer API key that grants workspaces:read, accounts:read and posts:create but not posts:schedule or posts:publish. A call to schedule or publish is then refused, so the agent saves drafts that you review and schedule in PostSyncer.

---

Page: https://postsyncer.com/x-mcp · Updated 2026-11-27
