An MCP server implementation that provides tools for interacting with the [Twitter/X API v2](https://docs.x.com/x-api/introduction).
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"x-v2-server": {
"command": "<see-readme>",
"args": []
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
An MCP server implementation that provides tools for interacting with the Twitter/X API v2. This service allows AI assistants to retrieve tweets, post new content, reply to tweets, and quote tweets and more programmatically.
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Click any tool to inspect its schema.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in communication
Asynchronous coordination layer for AI coding agents: identities, inboxes, searchable threads, and advisory file leases over FastMCP + Git + SQLite
PubNub Model Context Protocol MCP Server for Cursor and Claude
Social layer for Claude Code - DMs, presence, discovery, and games between AI-assisted developers
MCP server for Voximplant API — call history, users, SMS. 3 tools.
MCP Security Weekly
Get CVE alerts and security updates for X V2 Server and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
An MCP server implementation that provides tools for interacting with the Twitter/X API v2. This service allows AI assistants to retrieve tweets, post new content, reply to tweets, and quote tweets and more programmatically.
The X MCP Service provides the following tools for interacting with the Twitter/X API:
Retrieves tweets from a specific user's timeline.
userId: The Twitter user ID to search for tweetspaginationToken (optional): Token for fetching the next page of resultsexclude (optional): Types of tweets to exclude (retweets, replies)maxResults (optional): Maximum number of tweets to return (default: 10)Retrieves a single tweet by its ID.
tweetId: The ID of the tweet to retrieveRetrieves tweets that mention a specific user.
userId: The Twitter user ID to get mentions forpaginationToken (optional): Token for fetching the next page of resultsmaxResults (optional): Maximum number of mentions to return (default: 10)Creates a quote tweet with custom text.
tweetId: The ID of the tweet to quotereplyText: The text to include with the quoteReplies to an existing tweet.
tweetId: The ID of the tweet to reply toreplyText: The text content of the replyPost a new tweet.
text: The content that you want to post.imageBase64: Image that you want to post.Like a specific tweet.
tweetId: The ID of the tweet to likeFollow a Twitter user.
targetUserId: The ID of the user to followUnfollow a Twitter user.
targetUserId: The ID of the user to unfollowGet information about a Twitter user by their username.
username: The Twitter username (without @ symbol)Search for tweets using a query string.
query: The search querymaxResults (optional): Maximum number of results to return (default: 10)Get trending topics for a specific location.
woeid (optional): The 'Where On Earth ID' (WOEID) for the location (1 for worldwide, default: 1)Create a new Twitter list.
name: The name of the listdescription (optional): Optional description for the listisPrivate (optional): Whether the list should be private (default: false)Add a user to a Twitter list.
listId: The ID of the listuserId: The ID of the user to addRemove a user from a Twitter list.
listId: The ID of the listuserId: The ID of the user to removeGet all lists owned by the authenticated user.
You can get all of the token below via X Developer Dashboard
TWITTER_API_KEY=your_api_key
TWITTER_API_KEY_SECRET=your_api_secret
TWITTER_ACCESS_TOKEN=your_access_token
TWITTER_ACCESS_TOKEN_SECRET=your_access_token_secret
npm i
npm run build
npx @modelcontextprotocol/inspector node dist/index.js
Open http://127.0.0.1:6274 set up env, and interact with the tools.
This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.