X MCP
An MCP server that provides AI agents with full access to the X (Twitter) API, supporting operations such as posting, searching, interacting, and media uploading, which can be controlled through natural language instructions.
2.5 points
5.3K

What is x-mcp?

x-mcp is a Model Context Protocol (MCP) server that encapsulates the full API functionality of X (Twitter) into natural language tools that AI assistants can understand. You no longer need to remember complex API commands or use specialized clients. Simply tell the AI assistant what you want to do on X as if you were talking to a person.

How to use x-mcp?

First, obtain X developer API credentials, then configure the MCP client (such as Claude Desktop, Cursor, etc.) to connect to the x-mcp server. After the configuration is complete, you can directly let the AI assistant manage your X account through conversations.

Applicable scenarios

Suitable for content creators, social media managers, developers, and any users who want to simplify X account operations through AI assistants. Whether it's posting daily tweets, monitoring topics, analyzing data, or managing content in batches, x-mcp can make these tasks easier.

Main features

Post tweets
Post new tweets, reply to existing tweets, quote tweets, or delete tweets. Supports plain text and content with media.
Read content
Get details of a single tweet, search for tweets, view user timelines, and get mention messages. Supports advanced search syntax.
User management
Find user information, view the follower list, and view the following list. Supports paginated retrieval of the full list.
Interaction features
Like tweets and retweet content. Supports direct operations through tweet URLs or IDs.
Media upload
Upload media files such as pictures and attach them when posting tweets.
Data analysis
Get performance data of tweets, such as analysis indicators like the number of views and interactions.
Advantages
Natural language interaction: No need to learn API syntax, describe requirements in daily language
Multi-client support: Compatible with mainstream AI development tools such as Claude, Cursor, and Windsurf
Full function coverage: Supports most core functions of the X API
Intelligent parsing: Automatically identifies tweet URLs or IDs without manual extraction
Real-time feedback: Displays the API rate limit status for each operation
Limitations
Requires an X developer account: Must apply for API credentials, and free accounts have rate limits
Reply limitations: Due to X API policies, the programmatic reply function is restricted (must be mentioned or quoted)
Multiple configuration steps: Need to configure both the server and the client
Depends on network connection: All operations need to be performed through the X API

How to use

Get the project and install
Clone the GitHub repository and install the dependency packages
Apply for X API credentials
Go to the X developer portal to create an application and obtain 5 necessary API keys and tokens
Configure environment variables
Copy the example configuration file and fill in your API credentials
Connect to the MCP client
Add the x-mcp server configuration according to the client you are using (Claude, Cursor, etc.)

Usage examples

Publish a technical sharing
As a developer, you want to share your learning experience about MCP technology
Monitor industry trends
Marketing personnel need to track the latest trends of competitors
Content interaction management
Social media managers need to handle user interactions
Data analysis report
Content creators want to know the performance of their tweets

Frequently Asked Questions

Why do I get a 403 permission error when posting a tweet?
Which MCP clients are supported?
Is there a limit to the tweet reply function?
How do I get the tweet ID?
What should I do if I encounter a rate limit?
What advanced syntax does the search support?

Related resources

GitHub repository
Source code and latest version of x-mcp
X developer portal
Official platform for applying for API credentials
MCP official documentation
Official instructions and specifications of the Model Context Protocol
Claude Desktop configuration guide
How to configure Claude Desktop to use the MCP server

Installation

Copy the following command to your Client for configuration
{
  "mcpServers": {
    "x-twitter": {
      "command": "node",
      "args": ["/ABSOLUTE/PATH/TO/x-mcp/dist/index.js"],
      "env": {
        "X_API_KEY": "your_consumer_key",
        "X_API_SECRET": "your_secret_key",
        "X_ACCESS_TOKEN": "your_access_token",
        "X_ACCESS_TOKEN_SECRET": "your_access_token_secret",
        "X_BEARER_TOKEN": "your_bearer_token"
      }
    }
  }
}

{
  "mcpServers": {
    "x-twitter": {
      "command": "node",
      "args": ["/ABSOLUTE/PATH/TO/x-mcp/dist/index.js"],
      "env": {
        "X_API_KEY": "your_consumer_key",
        "X_API_SECRET": "your_secret_key",
        "X_ACCESS_TOKEN": "your_access_token",
        "X_ACCESS_TOKEN_SECRET": "your_access_token_secret",
        "X_BEARER_TOKEN": "your_bearer_token"
      },
      "alwaysAllow": [],
      "disabled": false
    }
  }
}
Note: Your key is sensitive information, do not share it with anyone.

Alternatives

V
Vestige
Vestige is an AI memory engine based on cognitive science. By implementing 29 neuroscience modules such as prediction error gating, FSRS - 6 spaced repetition, and memory dreaming, it provides long - term memory capabilities for AI. It includes a 3D visualization dashboard and 21 MCP tools, runs completely locally, and does not require the cloud.
Rust
10.5K
4.5 points
M
Moltbrain
MoltBrain is a long-term memory layer plugin designed for OpenClaw, MoltBook, and Claude Code, capable of automatically learning and recalling project context, providing intelligent search, observation recording, analysis statistics, and persistent storage functions.
TypeScript
10.1K
4.5 points
B
Bm.md
A feature-rich Markdown typesetting tool that supports multiple style themes and platform adaptation, providing real-time editing preview, image export, and API integration capabilities
TypeScript
15.9K
5 points
S
Security Detections MCP
Security Detections MCP is a server based on the Model Context Protocol that allows LLMs to query a unified security detection rule database covering Sigma, Splunk ESCU, Elastic, and KQL formats. The latest version 3.0 is upgraded to an autonomous detection engineering platform that can automatically extract TTPs from threat intelligence, analyze coverage gaps, generate SIEM-native format detection rules, run tests, and verify. The project includes over 71 tools, 11 pre-built workflow prompts, and a knowledge graph system, supporting multiple SIEM platforms.
TypeScript
6.7K
4 points
P
Paperbanana
Python
8.9K
5 points
B
Better Icons
An MCP server and CLI tool that provides search and retrieval of over 200,000 icons, supports more than 150 icon libraries, and helps AI assistants and developers quickly obtain and use icons.
TypeScript
8.7K
4.5 points
A
Assistant Ui
assistant - ui is an open - source TypeScript/React library for quickly building production - grade AI chat interfaces, providing composable UI components, streaming responses, accessibility, etc., and supporting multiple AI backends and models.
TypeScript
10.0K
5 points
A
Apify MCP Server
The Apify MCP Server is a tool based on the Model Context Protocol (MCP) that allows AI assistants to extract data from websites such as social media, search engines, and e-commerce through thousands of ready-to-use crawlers, scrapers, and automation tools (Apify Actors). It supports OAuth and Skyfire proxy payment and can be integrated into MCP clients such as Claude and VS Code through HTTPS endpoints or local stdio.
TypeScript
8.9K
5 points
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
38.1K
5 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
80.3K
4.3 points
G
Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
28.5K
4.3 points
N
Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
23.8K
4.5 points
F
Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
69.6K
4.5 points
U
Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
37.4K
5 points
G
Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
24.0K
4.5 points
M
Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
56.4K
4.8 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2026AIBase