Twitter X Automation logo

Twitter X Automation

Automates X/Twitter through 154 MCP tools for profiles, posts, search, engagement, analytics, and authenticated actions.

Install Twitter X Automation

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "twitter-x-automation": {
      "command": "npx",
      "args": [
        "-y",
        "xactions"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

Twitter X Automation MCP server exposes X/Twitter automation capabilities to AI agents through 154 MCP tools. It supports profile and post retrieval, search, engagement, analytics, and authenticated actions such as followers and direct messages. Public lookups can run without an API key, while login enables account-specific features and write operations. Reach for it when an agent needs X data collection or controlled social-media workflows.

Use cases

  • Retrieve public X/Twitter profiles and timelines
  • Search authenticated X/Twitter conversations
  • Collect tweets for analysis or spreadsheet export
  • Approve and control engagement actions
  • Resume large follower or content scrapes

Key features

  • 154 MCP tools for X/Twitter automation
  • Public profile and tweet retrieval without an API key
  • Authenticated search, follower, and direct-message access
  • Human approval gate for MCP writes
  • Persistent daily action caps and account rotation
  • Cursor checkpoints for resumable scrapes

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

14/14 checks healthy over the last 34d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 11d ago via OSV.dev · xactions (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars654Stargazers on the source repository.
npm downloads1.7kPackage downloads in the last 30 days.
Last commit1d agoMost recent push to the default branch.
Directory activity4 viewsConfig copies, upvotes, and views on AllMCPs.

How Twitter X Automation works

What Twitter X Automation does

Twitter X Automation connects MCP-compatible AI clients with X/Twitter automation features from the XActions toolkit. Its MCP interface contains 154 tools covering public data retrieval, account activity, search, engagement, and other automation tasks.

Public profile lookups and tweet retrieval can run without an X API key, an X account, or a browser. Authenticated access unlocks operations such as search, follower access, and direct messages. The broader XActions project also includes a command-line interface, browser scripts, scrapers, and a browser extension, but this listing focuses on its MCP server.

How it works

An MCP client invokes XActions tools on behalf of an AI agent. The server can read public X data directly, while account-specific operations use an authenticated session. Login can import cookies from an installed browser or from supported cookie exports, including Netscape cookies, Cookie-Editor or EditThisCookie JSON, and Playwright or Puppeteer storage state.

Write operations are held as drafts for human approval. MCP writes also count against a rolling 24-hour action budget for each account. Those budgets are stored on disk and remain in effect across restarts; a request that would exceed the limit is rejected before it reaches X.

For larger collection tasks, the toolkit stores cursor checkpoints after pages are processed. A failed long-running scrape can therefore resume from its saved cursor instead of starting over. Account pools use SQLite storage and can rotate sessions when rate limits are encountered.

Setup and configuration

The package can be run through the npm distribution, including with npx. The repository also provides Docker support and TypeScript types. A quick public-data check uses the CLI form npx xactions profile nasa; the MCP process is available through the project's MCP setup and npm package.

Authentication is optional for public lookups. Run the login flow when the agent needs protected features such as search, followers, direct messages, or actions on an account. Browser cookie import supports Chrome, Chromium, Brave, Edge, Arc, and Firefox profiles, along with common cookie-file and storage-state formats.

No X API key is required. Account credentials, session cookies, and any imported authentication data should be handled as sensitive configuration.

Tools and capabilities

  • Query public X/Twitter profiles and retrieve account details.
  • Retrieve tweets and timelines, with output suitable for collection workflows.
  • Search X content after authenticating an account.
  • Work with followers and direct messages through an authenticated session.
  • Perform engagement and other account actions with a human approval gate.
  • Continue long scrapes from cursor checkpoints.
  • Rotate accounts from a SQLite-backed pool and enforce per-account daily action caps.

The project advertises 154 MCP tools, 56 CLI commands, and 95 browser console scripts. The MCP server is part of the same open-source XActions toolkit, which also supports Docker deployment.

Limitations and notes

Authenticated features require an account session, and writes are subject to the server's approval workflow and daily caps. Public access does not provide the same feature set as a logged-in session. XActions interacts with X's web-facing behavior rather than requiring an official X API key, so account access, cookies, rate limits, and platform changes remain operational considerations.

The project is licensed under Apache 2.0.

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Twitter X Automation

Twitter X Automation is an MCP server that connects AI agents to X/Twitter for profile lookups, tweet and search retrieval, engagement, analytics, and other automation tasks. It exposes 154 MCP tools and works without an X API key, while authenticated access enables features such as search, followers, and direct messages.

Install or run the XActions npm package with npx, and use the project's MCP setup to configure the server for your client. The package also provides Docker support. Public CLI checks can run with commands such as `npx xactions profile nasa`.

No, public lookups do not require an X API key. Profile and tweet retrieval can run without an API key, account, or browser. Authenticated features such as search, followers, direct messages, and account actions require a logged-in session.

Write actions are held as drafts for human approval before execution. Each MCP write also counts against a rolling 24-hour per-account action budget stored on disk, and calls that exceed the budget are refused before reaching X.

Yes, long scrapes can resume from cursor checkpoints. A checkpoint is written after each page, allowing an interrupted collection to continue from its saved position rather than restarting at the beginning.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewTwitter X Automation AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/twitter-x-automation?style=directory)](https://allmcps.com/mcp/twitter-x-automation)
HTML Embed
<a href="https://allmcps.com/mcp/twitter-x-automation"><img src="https://allmcps.com/api/badge/twitter-x-automation?style=directory" alt="Twitter X Automation on AllMCPs" /></a>