Programmatic access to X: v2 REST endpoints for posts, users, Spaces, lists, DMs and trends, with pay-per-usage pricing
SaaSMCP
The X API is X's developer API (formerly the Twitter API): v2 REST endpoints to search, read and publish posts, look up and manage users, follows, blocks and mutes, and work with Spaces, lists, direct messages, trends, news and community notes. It has full-archive search of public posts back to 2006, a filtered stream with up to 1,000 rules and webhooks through the X Activity API. Pricing is pay-per-usage from prepaid credits, with no subscription. X publishes official SDKs for Python, TypeScript, Java and C#, the xurl CLI, the chat-xdk library for end-to-end encrypted X Chat messages, and a hosted MCP server at api.x.com/mcp for AI agents.
Problems it solves
- pull recent posts that mention my product into a dashboard
- post to my company's X account automatically when we publish a release
- search every public tweet about a topic going back years for research
- get a live feed of posts matching some keywords without scraping
- let my AI agent read and post on X through an official connection rather than a scraper
- build a bot that answers direct messages on X
- export my own bookmarks, likes and followers through an official API
- get notified by webhook when someone follows or DMs my account
Features
- Search, read and publish posts, with timelines, threads, quote posts, likes and reposts
- Full-archive search of public posts back to 2006, and post counts
- Filtered stream of posts in near real time, with up to 1,000 filtering rules
- Webhook events (posts, follows, DMs, X Chat messages, Spaces, news) through the X Activity API
- Users, follows, blocks, mutes, lists, bookmarks, Spaces, direct messages, trends, news and community notes
- Official SDKs for Python (xdk), TypeScript (@xdevplatform/xdk), Java and C#, generated from the OpenAPI spec
- xurl, an official curl-like CLI with OAuth 1.0a and OAuth 2.0 PKCE sign-in, several apps and accounts, and an encrypted X Chat client
- chat-xdk: encryption SDK for end-to-end encrypted X Chat messages, with Rust, Python, JavaScript/WASM, Go, .NET and JVM bindings
- Hosted MCP server at api.x.com/mcp (Streamable HTTP, MCP OAuth discovery) for posts, search, users, bookmarks, news, trends and Articles
- MCP read-only mode with ?read_only=true, and app-only bearer tokens for read-only agent access
View 3 more
- xurl mcp: a local stdio bridge to the hosted MCP server that handles OAuth 2.0 PKCE sign-in and token refresh
- A hosted MCP server for searching X's developer docs at docs.x.com/mcp
- Owned Reads of your own app owner's data at $0.001 per resource, and daily deduplication of charges
Limitations
- Pay-per-usage plans are capped at 3 million Post reads per monthly billing cycle; higher volume needs an Enterprise plan.1
- The hosted MCP server has no dynamic client registration: you create your own X app and give its OAuth 2.0 Client ID to the MCP client.2
Capabilities
| Has an API | plan not known |
|---|---|
| Has a command line tool | plan not known |
| Has an MCP server | plan not known |
| Has official SDKs | plan not known |
| Sends webhooks | plan not known |
