xAutoDM LogoxAutoDM
    Twitter APIComparisonsTwitter Guide

    Twitter MCP Servers: Connect Claude, ChatGPT and Agents to X

    Twitter MCP servers compared, checked on GitHub in October 2026: X's official hosted MCP, the community servers, which ones read vs write, which use the official API vs session cookies, and the account risk that comes with each.

    11 min read
    Twitter MCP Servers: Connect Claude, ChatGPT and Agents to X
    Contents

    A Twitter MCP server is a small program that lets an AI assistant such as Claude, Cursor or an OpenClaw agent call X as a set of tools. It can search posts and look up users, and some servers can also post, like or DM. X now runs an official one, hosted at

    api.x.com/mcp
    and reached through its
    xurl
    bridge. It uses your own developer app and bills at normal pay-per-use rates. Community servers come in two kinds. Some use the official API with your keys. Others log in with your cookies, which is cheaper but breaks X's terms.

    Below: what the official X MCP server can and cannot do, nine community options we checked on GitHub in October 2026, how to connect one to Claude, and the account risk each one carries.

    What a Twitter MCP server actually does

    MCP (Model Context Protocol) is a standard way to give an AI model a list of tools. An X MCP server takes a request like "search for posts about our launch", makes the matching API call and hands the result back to the model.

    Three questions decide which server you want:

    1. Does it read, write, or both? Many servers only read. A smaller group can post, like, follow and send DMs.
    2. Does it use the official API or a session? Official means your own X developer app, billed pay-per-use. Session means the server logs in as you with cookies, a password or a real browser.
    3. Who pays per call? On the official API every read is billed, and an agent left running unattended reads a lot. One developer on r/openclaw, u/NHI10, gave an agent a pay-per-use key and reported: "After ~10 minutes and ~1000 tweets from one user, $5 was gone".

    The official option: X's hosted MCP and xmcp

    X launched an MCP server for AI models on February 6, 2026, at the same time as pay-per-use pricing (X changelog). There are now three official pieces (X MCP docs):

    • X MCP (hosted) at
      https://api.x.com/mcp
      . Tools cover fetching posts and their likers, reposters and quoters, full-archive and user search, news search, user lookups and timelines, bookmarks, trends, and drafting and publishing Articles. You connect through
      xurl mcp
      , a local bridge that handles the OAuth 2.0 login once and refreshes tokens for you. A simpler app-only route takes a Bearer token in a header, but it is read-only and can't act as you.
    • xmcp (xdevplatform/xmcp), an open-source server you run locally. It turns X API endpoints from the OpenAPI spec into tools, and an allowlist lets you expose only the ones you need. X's docs say it covers 200+ endpoints. It has 862 stars, and the last commit was April 9, 2026.
    • Docs MCP at
      https://docs.x.com/mcp
      , which lets an assistant search X's developer documentation.

    All three still run on the official API. Calls are billed at pay-per-use rates ($0.005 per post read, $0.015 per post created), and self-serve rules apply. Since April 2026, self-serve tiers can't follow, like or quote-post. Since February 2026, programmatic replies are allowed only when the original author mentioned or quoted your account. The hosted server's documented write tools cover bookmarks and Articles, which makes it a research tool, not an outreach tool.

    Community Twitter MCP servers, checked October 2026

    Stars and last-commit dates were checked on GitHub on October 13, 2026.

    ServerStarsLast commitRead / writeHow it reaches X
    xdevplatform/xurl (official bridge)1,358Sep 29, 2026Read, bookmarks, ArticlesOfficial API, OAuth 2.0
    6551Team/opentwitter-mcp1,445Sep 22, 2026Read onlyIts own data service, needs their token
    rohunvora/x-research-skill1,243Feb 19, 2026Read only (a skill, not MCP)Official API, Bearer token
    nirholas/XActions590Oct 11, 2026Read and writeNo API key; scrapers and login session
    EnesCinr/twitter-mcp408Jul 17, 2025Post, searchOfficial API keys
    adhikasp/mcp-twikit235Mar 14, 2025Readtwikit, logs in with username and password
    ihuzaifashoukat/x-use176Oct 13, 2026Read and write, approval draftsYour browser session cookies
    rafaljanicki/x-twitter-mcp-server35May 24, 2026Read and writeOfficial API v2 keys

    Some things don't fit in the table:

    • EnesCinr/twitter-mcp is the simplest server built on the official API. It has two tools,
      post_tweet
      and
      search_tweets
      , and hasn't been updated since July 2025. Test it against the current API before you rely on it.
    • rafaljanicki/x-twitter-mcp-server says it uses official API keys "to minimize the risk of account suspensions". It also lists favoriting and follower management, which X no longer offers on self-serve tiers, so expect those tools to fail on a pay-per-use app.
    • x-use is the most careful of the session-based servers. It stages messages, follows and new threads as drafts that wait for your approval, and it tracks a budget for each account. It still runs on your logged-in browser session, not the API.
    • XActions advertises "No API keys. No monthly fees." and about 150 MCP tools, and says logging in adds search, followers and DMs. It's the most complete version of the session approach.
    • mcp-twikit depends on twikit, which developers describe as stale. u/Icy-Care-353 on r/webdev found it "not maintained anymore and full of bugs".

    Official API vs session cookies: the trade you are making

    The split in that table is the decision you have to make.

    The official API servers (X MCP, xmcp, EnesCinr, rafaljanicki, x-research-skill) stay inside X's rules. You pay per call and live with the self-serve limits, which rule out follows, likes and unsolicited replies.

    The session servers (XActions, x-use, mcp-twikit) cost nothing per call and can do anything the X website can. They also sit outside X's Terms of Service, which say you may not access X "other than through our currently available, published interfaces" and that "crawling or scraping the Services in any form, for any purpose without our prior written consent is expressly prohibited" (X Terms, effective October 9, 2026).

    X enforces this at the account level. When someone asked on r/openclaw whether OpenClaw can post on X, u/bodobeers2 said they ran an agent that posted once a day with no trouble: "The second I tried an at mention, it suspended the accounts." In the same thread, u/redeaglemuffin answered: "I don't recommend you to use automation to post. Only to read." And in another r/openclaw thread, u/anthonyg45157 summed up the community view: "Skirting X API can definitely get you banned but using browser automation is the way".

    Key insight: Reading through an MCP server is low risk on either route. Writing, especially replies and mentions, is where accounts get suspended.

    How to connect an X MCP server to Claude

    This is the official route, from X's own setup guide. Create an app in the console with OAuth 2.0 enabled, then register

    http://localhost:8080/callback
    as a redirect URI. Then, for Claude Desktop, add this to
    claude_desktop_config.json
    :

    { "mcpServers": { "xapi": { "command": "npx", "args": ["-y", "@xdevplatform/xurl", "mcp", "https://api.x.com/mcp"], "env": { "CLIENT_ID": "YOUR_X_APP_CLIENT_ID", "CLIENT_SECRET": "YOUR_X_APP_CLIENT_SECRET" } } } }

    In Claude Code, the same server needs one command:

    claude mcp add xapi -e CLIENT_ID=YOUR_X_APP_CLIENT_ID -e CLIENT_SECRET=YOUR_X_APP_CLIENT_SECRET \ -- npx -y @xdevplatform/xurl mcp https://api.x.com/mcp

    On first use, your browser opens for a one-time X login. X's docs warn that the login authorizes "whichever X account is logged in when the browser opens", so switch to the right account first. If you see

    client-not-enrolled
    , move the app to the Pay-per-use package and the Production environment.

    X's guide also covers Cursor, VS Code and Grok Build. ChatGPT isn't in it. To get X inside ChatGPT, check whether your ChatGPT plan lets you add a remote MCP server with a custom header, since X's hosted server accepts an app-only Bearer token that way.

    Set a spending limit in the X console before you let an agent run, because agents page through results eagerly.

    OpenClaw and Twitter

    Most people searching "OpenClaw twitter" want to wire X into an OpenClaw agent. OpenClaw can load MCP servers and skills, so every option above applies. A third one is to give the agent browser control over a logged-in Chrome. One builder explained in a detailed write-up on r/openclaw that Cloudflare blocked twscrape "almost immediately, even with rotating sessions" before they got a browser session working.

    The most useful answer in the posting thread came from u/Nanesses: "most people you're seeing are not fully automated, it's usually hybrid: AI drafts + human oversight + scheduled posting". Copy that pattern.

    The case against letting an agent touch X at all

    The strongest objection is that an LLM running a social account will eventually do something you would not have done. X is already watching for that. X's February 2026 changelog entry restricting programmatic replies is titled "Addressing LLM-generated spam". There is even an r/openclaw thread titled "use Openclaw but twitter account was quickly banned".

    For open-ended engagement, the objection is mostly right. Auto-replying, auto-mentioning and auto-following strangers are jobs you should not hand an agent on an account you care about. The objection is weaker against narrow, paced work that a human approves: research, drafting, and sending messages you have reviewed, at a rate a person could plausibly keep up. That looks like a workflow you supervise. A spam bot does none of those things.

    Acting on X from an agent without an MCP server

    XAutoDM has no MCP server. It has a REST API and a public Claude skill, and for outreach that is often the simpler setup.

    The skill, cold-dm-claude-skill, installs with one command and is invoked as

    x-outreach
    :

    npx skills add whatsuppiyush/cold-dm-claude-skill export XAUTODM_API_KEY="xdm_live_..." # or an xdm_test_ key to dry-run with no sends

    With the skill loaded, Claude Code (or any agent that loads Anthropic-style skills) finds followers and engagers who can receive DMs, drafts a first message from each person's real profile, and runs a paced campaign through the API. It estimates the credit cost and asks before every spend. It refuses mass blasts and never touches X directly, because every action goes through the API with your own key.

    The skill runs on the XAutoDM API, which is built for writes across many connected X accounts. A DM costs 1,200 credits. Follows, likes and retweets cost 300, posts 600, and a profile read 60. One-time credits cost $1 per 100,000. Plans start at $19 a month for 3 connected accounts and 2,850,000 credits, and new signups get 50,000 one-time credits. If your agent only needs to read tweets, or Reddit threads as well, you can connect ChatterAPI's hosted MCP server for reading X and Reddit instead. The same endpoints also work from automation tools, and our n8n, Zapier and Make guide walks through the setup.

    There is a caveat. The API acts through connected X account sessions rather than X's official API, so under X's terms it falls in the same category as the session servers above. The difference is the guardrails an agent doesn't have on its own: per-account pacing within safe daily limits, idempotent sends so a retry never messages someone twice, and a person approving the campaign. For what the official route costs, see our X API pricing breakdown.

    Choose your next step by the job. For research, connect X's official MCP server to Claude and set a spending limit. For outreach, install the x-outreach skill with a test key, run one dry campaign, and read every draft before anything goes live.

    Frequently asked questions

    Is there an official X MCP server?

    Yes. X hosts one at api.x.com/mcp, and you reach it through X's open-source xurl bridge. There is also xmcp, an open-source local server that exposes X API endpoints as MCP tools. Both run on your own X developer app and bill calls at the normal pay-per-use rates, for example $0.005 per post read.

    Can Claude post to Twitter through MCP?

    Yes, as long as the server has write tools and you give it a user token. X's hosted MCP mostly covers reading, bookmarks and Articles. Community servers such as EnesCinr/twitter-mcp add a post_tweet tool that runs on official API keys. On pay-per-use each post costs $0.015, or $0.20 if it contains a link.

    Will an X MCP server get my account banned?

    A server that calls the official API with your own keys stays inside X's terms, though automated replies and mentions are restricted. A server that logs in with your cookies or a browser session breaks X's terms of service. Practitioners report suspensions from these, especially once an agent starts replying to or mentioning people.

    Does XAutoDM have an MCP server?

    No. XAutoDM offers a REST API and a public Claude skill, x-outreach, installed with npx skills add whatsuppiyush/cold-dm-claude-skill. The skill lets an agent find leads, draft DMs and run paced campaigns through the API on your own key, and it asks before spending credits.

    XAutoDM
    110,000+ leads scraped so far

    Your next customer is already on X.

    Find the people talking about what you sell, message them on a safe schedule, and turn the replies into booked calls.

    • Scrape leads from any tweet, keyword or X List
    • Auto-DM new followers and people who engage
    • Follow-ups that stop the moment someone replies
    • Safe daily limits and warm-up, built in
    • Every reply tracked through to a booked call
    Start your 7-day free trial

    7 days free, then plans from $19/mo. Card required.

    Free tool

    Twitter ID Finder

    Convert any X (Twitter) @handle to its numeric user ID.

    Related posts

    Ready to automate your Twitter DMs?

    Start sending personalized DM campaigns to your target audience today. Get higher response rates and more leads than cold emails.

    Cancel anytime Safe daily sending limits Setup in 5 minutes