# X (Twitter) MCP server

Flaghand is an X (Twitter) MCP server for posting. Your agent writes the post or thread, you approve it with your passkey, and Flaghand posts exactly that.

Server URL: https://app.flaghand.com/mcp (Streamable HTTP). Apps that support OAuth sign in with the owner's passkey; any other MCP client sends
a workspace token as `Authorization: Bearer tok_…`. No token can approve, schedule or post.

[Start free trial](https://app.flaghand.com/start?plan=monthly) · [Pricing](https://flaghand.com/pricing)

## Set it up

- Claude (Free, Pro and Max; Free allows one custom connector): Customize › Connectors › Add custom connector, enter Flaghand and https://app.flaghand.com/mcp, then Add and Connect, and sign in. On Team and Enterprise an Owner adds it under Organization settings › Connectors, then each member connects.
- ChatGPT (Business, Enterprise and Edu, on the web): Plugins › + › Add custom MCP server, enter https://app.flaghand.com/mcp under Connection, choose OAuth, create it as a plugin, install it and sign in. OpenAI's help describes read access only on Pro and doesn't establish custom servers on Plus.
- Claude Code: `claude mcp add --scope user --transport http flaghand https://app.flaghand.com/mcp`, then /mcp to sign in. Or install the plugin, skill and server together: `/plugin marketplace add https://app.flaghand.com/agent-plugin/marketplace.json`, then `/plugin install flaghand@flaghand`.
- Codex: `codex mcp add flaghand --url https://app.flaghand.com/mcp` adds the server and signs in (OAuth). With a saved workspace token instead: `codex mcp add flaghand --url https://app.flaghand.com/mcp --bearer-token-env-var FLAGHAND_TOKEN` (only the variable's name is saved).
- Cursor: open [Add to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=flaghand&config=eyJ1cmwiOiJodHRwczovL2FwcC5mbGFnaGFuZC5jb20vbWNwIn0=), or merge {"mcpServers": {"flaghand": {"url": "https://app.flaghand.com/mcp"}}} into ~/.cursor/mcp.json, then connect Flaghand in Cursor's MCP settings and sign in.
- Gemini CLI: `gemini extensions install https://github.com/flaghand/flaghand`, restart Gemini, then /mcp auth flaghand and sign in.
- Any other MCP client: https://app.flaghand.com/mcp with OAuth, or `Authorization: Bearer tok_…`.

An agent can sign its person up and set itself up, handing the person only the passkey and payment links:
https://app.flaghand.com/docs/setup.md (and https://flaghand.com/llms.txt).

## What it does

- Drafts posts and threads, with photos, a video or a poll.
- Shows each one exactly as X will, counted as X counts.
- Asks you. Only your passkey approves.
- Posts it now or at its time, then checks the live post.

## What it doesn't do

- Messages: It never asks X for DM access.
- Likes and follows: Posting only.
- Search: It doesn't read X for your agent.
- Scraping: Only X's official API.

## X MCP questions

### Is there an X (Twitter) MCP for Claude?

Yes. In Claude, open Customize › Connectors › Add custom connector, add https://app.flaghand.com/mcp and sign in with your passkey. It works on Claude Free, Pro and Max (Free allows one custom connector), and in Claude Code with one command.

### Is there an official X MCP server?

Yes, for reading. X hosts one at api.x.com/mcp for searching and reading X, bookmarks and Articles; when we checked on October 25, 2026, it listed no tool that creates a post. Flaghand is for posting, with your approval.

### How do I connect X to ChatGPT?

On ChatGPT Business, Enterprise or Edu, on the web: Plugins › + › Add custom MCP server, enter https://app.flaghand.com/mcp, choose OAuth and sign in. On Pro, OpenAI's help describes read access only, and it doesn't offer custom servers on Plus.

### Can Claude post tweets?

With Flaghand, once you approve. Claude drafts the post or thread, checks it and asks you. You approve the exact posts with your passkey, and Flaghand posts them, now or at their time, then checks the live post.

### Is it safe for my X account?

Flaghand posts through X's official API, and you connect with X's own sign-in: no password, no cookies, and it never asks for DM access. Your agent can't approve or post; only your passkey can. Disconnect it any time.

### Can it read X, like posts or send DMs?

No. It posts for you and reads back only its own posts, to check them. No search, no likes or follows, no DMs. For reading X, X's own MCP server is the tool.

### What does it cost?

$19 a month or $190 a year, with everything in it, including 300 X posts a month, 30 with a link. 7 days free to draft. No card to start. Add one when you approve your first post, or by day 7 to keep drafting. Cancel anytime.

### Which apps work with it?

Any app that adds a remote MCP server and signs in: Claude, ChatGPT Business, Enterprise and Edu, Claude Code, Codex, Cursor, Gemini CLI, VS Code and more. Agents can use Flaghand's API or CLI too.

## Guides

- [Posting to X from an AI agent: the APIs and MCP servers, compared](https://flaghand.com/docs/guides/x-api-and-mcp-servers-for-ai-agents)
- [How to let an AI agent post on social media safely](https://flaghand.com/docs/guides/let-an-ai-agent-post-safely)
- [X API pricing, explained for people who post](https://flaghand.com/docs/guides/x-api-pricing)
- [Social media schedulers, side by side](https://flaghand.com/compare)
- [All guides](https://flaghand.com/docs/guides.md)

Page: https://flaghand.com/x-mcp-server
