What is X (Twitter) MCP Server?
This MCP server allows AI clients to interact with X (formerly Twitter), enabling comprehensive platform operations including posting tweets, searching content, managing accounts, and organizing lists. It is designed for developers using MCP-compatible clients such as Claude.
How to use X (Twitter) MCP Server?
Set up an X Developer account, obtain your API keys, and set the required environment variables (TWITTER_API_KEY, TWITTER_API_SECRET, TWITTER_ACCESS_TOKEN, TWITTER_ACCESS_TOKEN_SECRET). Clone the repository, run npm install, and start the server with the environment variables or a .env file. Then configure your MCP client (e.g., Claude) with a JSON pointing to dist/index.js and the environment variables. Requires Node.js 18+.
Key features of X (Twitter) MCP Server
- Post tweets up to 280 characters
- Search for tweets by query with adjustable result count
- Get and update authenticated user profile information
- Follow and unfollow users
- List followers and accounts a user is following
- Create, retrieve, and list lists (public or private)
Use cases of X (Twitter) MCP Server
- Posting tweets directly from an AI assistant
- Searching for recent content on X programmatically
- Managing followers and following lists automatically
- Updating profile details like name, bio, or location
- Organizing users into lists for monitoring or curation
コメント