What is X(Twitter) V2 MCP Server?
The X(Twitter) V2 MCP Server is an MCP server implementation that provides tools for interacting with the Twitter/X API v2. It allows AI assistants to retrieve tweets, post new content, reply to tweets, quote tweets, and perform other actions programmatically.
How to use X(Twitter) V2 MCP Server?
Install dependencies with npm i, build with npm run build, and run with npx @modelcontextprotocol/inspector node dist/index.js. Configure authentication via environment variables: TWITTER_API_KEY, TWITTER_API_KEY_SECRET, TWITTER_ACCESS_TOKEN, TWITTER_ACCESS_TOKEN_SECRET.
Key features of X(Twitter) V2 MCP Server
- Retrieve tweets from a specific user’s timeline.
- Post new tweets with optional image attachment.
- Reply to and quote existing tweets.
- Like, follow, and unfollow users.
- Search tweets and get trending topics by location.
- Manage Twitter lists (create, add/remove members, list owned).
Use cases of X(Twitter) V2 MCP Server
- An AI assistant automatically posts scheduled updates to a brand’s timeline.
- A customer‑service bot replies to user mentions or direct requests.
- A content curator searches for trending topics and quotes relevant tweets.
- A social‑media manager schedules replies and follows/unfollows accounts.
- A community bot creates and manages curated Twitter lists.
评论