X MCP AI
Policy-gated MCP access to X API v2 for reading, searching, posting, engagement, lists, media, social graphs, and DMs.
Install X MCP AI
Pick your client, then add it in one click or paste the config.
~/Library/Application Support/Claude/claude_desktop_config.json{
"mcpServers": {
"x-mcp-ai": {
"command": "npx",
"args": [
"-y",
"x-mcp-ai@0.8.0"
],
"env": {
"X_MCP_AUTH_MODE": "YOUR_VALUE_HERE",
"X_MCP_CLIENT_ID": "YOUR_VALUE_HERE",
"X_MCP_CLIENT_SECRET": "YOUR_VALUE_HERE",
"X_MCP_BEARER_TOKEN": "YOUR_VALUE_HERE",
"X_MCP_TOKEN_FILE": "YOUR_VALUE_HERE",
"X_MCP_POLICY": "YOUR_VALUE_HERE",
"X_MCP_CREDIT_BUDGET": "YOUR_VALUE_HERE",
"X_MCP_BUDGET_MODE": "YOUR_VALUE_HERE"
}
}
}
}
Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.
Values are written into the snippet above so you can paste it as is. They never leave your browser.
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
Use cases
- Search recent X posts from an MCP client
- Read X timelines and user information
- Publish posts under an explicit policy
- Set likes and manage supported engagement actions
- Enforce a session spending limit for X API calls
Key features
- 41 typed tools across 12 packages
- Policy presets with explicit allow and deny cells
- OAuth 2.0 PKCE and app-only bearer authentication
- Per-call costs and configurable credit budgets
- Structured JSON-Schema tool outputs
- Cursor pagination and rate-limit tracking
Security & health
What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.
Recent health check succeeded.
Supply-chain signal
No high-severity advisories surfaced by our automated scan.
Scanned 16d ago via OSV.dev · x-mcp-ai@0.8.0 (npm)
Adoption & maintenance
Factual signals from GitHub, npm, and our automated checks — not a rating.
How X MCP AI works
Reviews
No reviews yet — be the first to share how it worked for you.
Frequently Asked Questions about X MCP AI
Related MCP servers
Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.
AllMCPs Directory Badge
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/x-mcp-ai)<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>