Skip to main content
AllMCPs
BrowseBestCategoriesStackCompareToolsGuidesBlog
Log in Submit MCP

Stay in the loop

Get new MCP servers and top picks in your inbox.

AllMCPs

The open directory for discovering and installing Model Context Protocol servers.

Follow AllMCPs on X (opens in a new tab)AllMCPs on GitHub (opens in a new tab)
Launched onTiny Startupstinystartups.com
Explore
  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Random discovery New
  • Submit a server
  • Pricing & Boost Boost
Learn
  • Guides hub
  • What is MCP?
  • Install guide
  • Build an MCP server
  • Deploy an MCP server
  • Security guide
  • Troubleshooting
  • MCP for SEO & AEO
  • Protocol versioning
  • Blog & updates
Tools
  • All developer tools
  • Config generator
  • Config validator
  • Config auditor
  • MCP playground
  • Token calculator
  • OpenAPI β†’ MCP
  • Badge generator
For agents
  • REST API docs
  • Trust & traffic Live
  • Remote MCP server SSE β†— (opens in a new tab)
  • llms.txt β†— (opens in a new tab)
  • Catalog JSON β†— (opens in a new tab)
Company
  • About
  • Advertise Sponsor
  • Contact
  • X (@AllMCPs) β†— (opens in a new tab)
  • GitHub β†— (opens in a new tab)
  • Terms
  • Privacy
AllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZoneAllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZone
Β© 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. 🌐 Social Media
  3. X MCP AI
X
Health: Not checked yetWe have not completed a health check for this listing yet.No health check has run yet.

X MCP AI

User RatingsBe the first to rate and review this MCP server! Enrichment pendingWe haven’t run our AI enrichment pass on this listing yet, so the overview, use cases, and FAQ below may be sparse or missing. We work through the catalog over time β€” check back soon.
View Repository

Safety-first X (Twitter) API v2 MCP server: 41 typed tools across 12 packages, policy-gated.

Quick Install

Automated & IDE Setup

Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β€” or use 1-click editor setup below.

Add to CursorAdd to VS Code
Manual Client & Custom JSON ConfigExpand JSON β–Ύ

Client Config & Setup

Choose your client or environment
Target File:~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "x-mcp-ai": {
      "command": "npx",
      "args": [
        "-y",
        "x-mcp-ai"
      ]
    }
  }
}

πŸ’‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.

Install Directory Badge Claim listing Alternatives🌐 More in Social Media

Documentation Overview

x-mcp-ai β€” X (Twitter) MCP Server

npmCItoolsnodeMCPlicense

An MCP server that exposes the X (Twitter) API v2 to MCP clients β€” Claude Code, Claude Desktop, VS Code, Cursor, or any MCP-compatible agent β€” as a curated set of typed tools, gated by a two-axis policy model and aware of the 2026 pay-per-use pricing so an agent can never quietly overspend.

Status: pre-1.0, under active development, published on npm as x-mcp-ai (currently 0.8.0, published from CI with npm provenance). Pin an exact version while the project is on 0.x (Setup). 41 tools across 12 packages are registered today; the full designed surface lives in docs/03-tool-catalog.md and has landed in full. The public API is unstable until 1.0.0.

Contents: Quick demo Β· Features Β· Requirements Β· Setup Β· Configure credentials Β· Cost Β· Run / debug Β· Develop Β· Tools Β· Resources Β· Prompts Β· Project structure Β· Security notes Β· Data handling Β· Documentation Β· Support Β· Trademark

Quick demo

Once the server is wired into your MCP client, you drive it in natural language and the model picks the tool. Three representative asks:

jsonc
// 1. Read (default read-only preset β€” no writes possible)
// "What are people saying about the Model Context Protocol this week?"
{
  "tool": "x_search_recent",
  "arguments": { "query": "\"model context protocol\" -is:retweet lang:en", "max_results": 25 }
}
jsonc
// 2. Engage (requires the `engage` preset or an explicit write:engagement allow)
// "Like that launch post for me."
{
  "tool": "x_like_set",
  "arguments": { "post_id": "1899…", "action": "like" }
}
jsonc
// 3. Publish (requires the `publish` preset or write:content)
// "Post: 'Shipping x-mcp-ai today.' β€” mind the cost."
// Every result carries cost_usd + session_total_usd; a URL in the text raises the price 13Γ—.
{
  "tool": "x_post_create",
  "arguments": { "text": "Shipping x-mcp-ai today." }
}

Features

  • 41 tools across 12 packages over the X API v2 β€” read posts, users and timelines, search (recent and full-archive), engage, publish, manage lists, upload media, walk the social graph, and read/send DMs behind an explicit opt-in.
  • Two-axis policy model (operation:domain) with five presets β€” read-only (default), engage, publish, manage, full. Writes are opt-in; deny beats allow beats preset, per cell. Direct-message cells are double-locked: read:dm/write:dm are in no preset, not even full.
  • Cost awareness built in. Since 2026-02-06 the X API v2 is pay-per-use. Every result reports its own cost_usd and the running session_total_usd; an operator-set X_MCP_CREDIT_BUDGET with X_MCP_BUDGET_MODE=hard refuses calls that would exceed it, and the model cannot raise the cap.
  • Two auth modes β€” OAuth 2.0 PKCE user context (primary, rotating refresh tokens, single-flight refresh) and app-only bearer for read-only deployments.
  • Security-first defaults β€” host-scoped Authorization header, redirects never followed on token-bearing requests, 0600 token file written with O_NOFOLLOW/O_EXCL, untrusted-content marking on returned text, and media upload default-deny outside a realpath-contained X_MCP_MEDIA_DIR.
  • Typed failures. Eleven error classes, each carrying retryable and fix: "agent" | "operator", so the model retries what is retryable and escalates what is not.
  • Structured output. Every tool advertises a JSON-Schema outputSchema and returns structuredContent alongside the text block.
  • Availability class-gating, live per-endpoint rate-limit tracking (including the 24-hour app cap on post creation), cursor pagination, and compact result rendering.

Requirements

  • Node.js >= 22 (see .nvmrc).
  • An X developer account and app with an OAuth 2.0 client (Client ID; Client Secret only for confidential clients). App-only mode needs a bearer token instead.
  • Prepaid X API credits β€” the API bills per read and per write (see Cost).

Setup

The recommended install is the published package, pinned to an exact version while the project is on 0.x β€” nothing to clone or build:

Terminal
npx -y x-mcp-ai@0.8.0 doctor   # sanity check; makes no billable calls

Then point your MCP client at it:

jsonc
// claude_desktop_config.json (Claude Desktop) / .mcp.json (Claude Code) / .cursor/mcp.json
{
  "mcpServers": {
    "x": {
      "command": "npx",
      "args": ["-y", "x-mcp-ai@0.8.0"],
      "env": {
        "X_MCP_AUTH_MODE": "oauth2",
        "X_MCP_CLIENT_ID": "your-oauth2-client-id",
        "X_MCP_POLICY": "read-only",
        "X_MCP_CREDIT_BUDGET": "5.00",
        "X_MCP_BUDGET_MODE": "hard"
      }
    }
  }
}

Running from a local checkout instead? Use "command": "node" with "args": ["/abs/path/to/x-mcp/build/src/index.js"] and the same env map.

Claude Code from the CLI:

Terminal
claude mcp add x --env X_MCP_POLICY=read-only -- npx -y x-mcp-ai@0.8.0

Per-client instructions β€” Claude Desktop, Claude Code, VS Code (.vscode/mcp.json), Cursor and MCP Inspector β€” are in docs/10-operator-guide.md Β§4, together with the authorize flow and ready-made env recipes.

From source (development)

Still fully supported β€” build the entry point and spawn it with node instead of npx:

bash
git clone https://github.com/IvanBBaev/x-mcp.git
cd x-mcp
npm ci
npm run build          # tsc β†’ build/src/index.js
node build/src/index.js doctor   # sanity check; makes no billable calls

Configure credentials

The server never prompts interactively; all configuration comes from environment variables (canonical table: docs/02-architecture.md Β§4; a starting point: .env.example).

Auth modes (X_MCP_AUTH_MODE):

  • oauth2 (default) β€” OAuth 2.0 with PKCE. Run the one-time authorization flow with the authorize subcommand; tokens land in X_MCP_TOKEN_FILE and are refreshed automatically.
  • app-only β€” application-only bearer token (X_MCP_BEARER_TOKEN); read endpoints only, no user context.
bash
X_MCP_AUTH_MODE=oauth2 X_MCP_CLIENT_ID=… node build/src/index.js authorize

Environment variables

VariableDefaultSecretPurpose
X_MCP_AUTH_MODEoauth2oauth2 | app-only.
X_MCP_CLIENT_IDOAuth 2.0 client ID (required for authorize and refresh).
X_MCP_CLIENT_SECRETβœ…OAuth 2.0 client secret (confidential clients only).
X_MCP_BEARER_TOKENβœ…App-only bearer token; valid only with app-only.
X_MCP_TOKEN_FILEOS-resolvedPath to the rotating OAuth 2.0 token store (~ expanded).
X_MCP_TOKEN_KEYCHAIN01 β†’ store tokens in the OS keychain (macOS security, Linux secret-tool). Mutually exclusive with X_MCP_TOKEN_FILE.
X_MCP_POLICYread-onlyPreset: read-only | engage | publish | manage | full.
X_MCP_POLICY_ALLOWComma-separated operation:domain cells to add.
X_MCP_POLICY_DENYComma-separated cells to remove (wins over allow and preset).
X_MCP_HIDE_DENIED01 β†’ drop denied tools from registration entirely.
X_MCP_CREDIT_BUDGETSession spend cap, USD (e.g. 5.00). Unset = no cap.
X_MCP_BUDGET_MODEwarnwarn | hard.
X_MCP_AVAILABILITYComma-separated availability classes to enable (pilot, premium-user, enterprise).
X_MCP_MEDIA_DIRDirectory uploads must realpath inside (media default-deny).
X_MCP_PROFILES_FILEMulti-account profiles file.
X_MCP_PROFILEActive profile name (required with a profiles file).
X_MCP_BASE_URLhttps://api.x.comAPI base URL; must be https:// and *.x.com.
X_MCP_ALLOW_INSECURE_BASE_URL01 β†’ permit a non-x.com base URL (testing only).
X_MCP_TIMEOUT_MS30000Per-request timeout, milliseconds.
X_MCP_LOG_LEVELinfosilent | error | info | debug.

Any other X_MCP_* variable is ignored with a startup warning β€” that is the typo detector. Every fatal configuration error names the variable at fault.

Two-axis access policy

Every tool maps to one policy cell β€” an operation:domain pair. Operations escalate read β†’ write β†’ destructive; domains are content, user, account, engagement, social-graph, moderation, dm. A preset unlocks a set of the 12 valid cells; X_MCP_POLICY_ALLOW adds cells, X_MCP_POLICY_DENY removes them, and deny > allow > preset.

Read the full README β†’View source on GitHub β†’

Related MCP Servers

View all in Social Media View all alternatives
  • Sorsa MCP logoSorsa MCP

    MCP server for the Sorsa.io X/Twitter data API

    🌐 Social Media0 views
    Compare vs Sorsa MCP β†’
  • GTM API: LinkedIn MCP Server logoGTM API: LinkedIn MCP Server

    Managed LinkedIn MCP server for AI agents: search, connect, message and enrich on accounts you own.

    🌐 Social Media1 views
    Compare vs GTM API: LinkedIn MCP Server β†’
  • Social Media Search API β€” Twitter, Instagram, Reddit, TikTok (XPOZ) logoSocial Media Search API β€” Twitter, Instagram, Reddit, TikTok (XPOZ)

    Twitter/X, Instagram, Reddit & TikTok data for AI agents. 1.5B+ posts. No API keys.

    🌐 Social Media0 views
    Compare vs Social Media Search API β€” Twitter, Instagram, Reddit, TikTok (XPOZ) β†’
  • Captapi logoCaptapi

    Social media data from YouTube, TikTok, Instagram & Facebook. 62 tools, one API key.

    🌐 Social Media1 views
    Compare vs Captapi β†’

Reviews

No reviews yet β€” be the first to share how this listing worked for you.

Frequently Asked Questions about X MCP AI

Add the following block to your claude_desktop_config.json under mcpServers: "mcpServers": { "x-mcp-ai": { "command": "npx", "args": ["-y", "x-mcp-ai"] } }

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 PreviewX MCP AI AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/x-mcp-ai?style=directory)](https://allmcps.com/mcp/x-mcp-ai)
HTML Embed
<a href="https://allmcps.com/mcp/x-mcp-ai"><img src="https://allmcps.com/api/badge/x-mcp-ai?style=directory" alt="X MCP AI on AllMCPs" /></a>

Technical Specs & Signals

Category🌐Social Media
More technical detailsExpand β–Ύ
TransportSTDIO
RuntimeNode.js
Last updatedSep 7, 2026
Views0
Unique ViewsTotal visits recorded for this listing page on AllMCPs.
Installs0
Installs & Copy ActionsTotal times users copied install commands or configuration snippets for this server.
27Quality signal: Emerging Β· 27/100How this signal is calculated β–Ύ
Server availabilityNot measured

Not scored for repo-hosted servers β€” we can't reach the running server, only its GitHub page. Hosted MCP endpoints are health-checked live.

Verified ownership8/20
Documentation & tools11/30
Adoption & activity1/15
Community engagement0/10

A guidance signal from public completeness & health data β€” not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

β˜… FeaturedMoxie Docs MCP logo

Moxie Docs MCP

MCP & Agent Skills for Automated Documentation, and codebase conventions + context

Explore Server β†’

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to unlock edit access and the Official badge and attach your website β€” proof is checked automatically, then reviewed by our team.

Free dofollow backlink: add your website and place the AllMCPs badge on it β€” no claim needed. We detect it automatically and keep it verified as long as the badge stays live.

Claim & get free dofollow

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.

Explore more

More in 🌐 Social Media β†’Best MCP servers for Social Media β†’Alternatives to X MCP AI β†’Install in Claude DesktopInstall in CursorInstall in VS Code