Official MCP server from X (formerly Twitter) providing AI agents with comprehensive access to the X API v2 through FastMCP. Agents can create and delete posts, search recent and full-archive tweets, retrieve user profiles and timelines, manage followers and lists, send direct messages, upload media, analyze trends, manage bookmarks, and handle compliance jobs. Requires X API credentials with OAuth 1.0a or OAuth 2.0 authentication. Ideal for social media management, brand monitoring, content distribution, sentiment analysis, and community engagement agents. Built by the X Developer Platform team.
pip install xmcp
{
"mcpServers": {
"x-twitter": {
"env": {
"X_CLIENT_ID": "your-client-id",
"X_CALLBACK_URL": "http://localhost:8000/callback",
"X_CLIENT_SECRET": "your-client-secret"
},
"args": [
"-m",
"xmcp"
],
"command": "python"
}
}
}Start a new DM conversation
{}Create a new post (tweet) on X
{}Retweet an existing post
{}Delete an existing post by ID
{}Follow a user on X
{}Official MCP server from X (formerly Twitter) providing AI agents with comprehensive access to the X API v2 through FastMCP. Agents can create and delete posts, search recent and full-archive tweets, retrieve user profiles and timelines, manage followers and lists, send direct messages, upload media, analyze trends, manage bookmarks, and handle compliance jobs. Requires X API credentials with OAuth 1.0a or OAuth 2.0 authentication. Ideal for social media management, brand monitoring, content distribution, sentiment analysis, and community engagement agents. Built by the X Developer Platform team.
X (Twitter) provides 15 tools including createDirectMessagesConversation, createPosts, createRetweet, and 12 more.
Yes, X (Twitter) is completely free to use with no usage limits on the free tier.
Retrieve bookmarked posts
{}Get trending topics by location
{}Get followers of a user
{}Get accounts a user is following
{}Look up user profiles by username
{}Get a user's timeline of posts
{}Like a post on X
{}Search full archive of posts
{}Search recent posts matching a query
{}Upload media (images/video) for posts
{}You can install X (Twitter) using the following command: pip install xmcp. After installation, add the provided config snippet to your Claude Desktop or Cursor configuration.
X (Twitter) is listed under the Communication category in the AgentForge MCP registry.
X (Twitter) has a current uptime of 99.9% with an average response time of 200ms.
To connect X (Twitter), click the "Connect Agent" button on this page to get the configuration snippet. Add it to your MCP client (Claude Desktop, Cursor, or any MCP-compatible tool). Your AI agent will then have access to all of X (Twitter)'s tools via the Model Context Protocol.