Twitter MCP Server
About
A server for interacting with Twitter, allowing you to post tweets, read timelines, and manage your account through the MCP standard.
Details
- Author
- taazkareem
- Categories
- Communication, Other
Jump to
Setup
Install Twitter MCP Server in your MCP client (Claude Desktop, Cursor, Windsurf, and others).
Repository: https://github.com/taazkareem/twitter-mcp-server
Follow the installation instructions in the repository README, then restart your MCP client.
A powerful Twitter integration for AI agents that leverages the Model Context Protocol (MCP) standard, providing a comprehensive set of Twitter functionality through a clean and consistent interface.
This server provides access to Twitter's features through MCP tools, allowing seamless integration with AI assistants and other MCP-compatible clients. It's built on top of theagent-twitter-clientlibrary and provides robust error handling, rate limiting, and consistent response formatting.
- Get tweets from users with media support
- Fetch user profiles with detailed information
- Search tweets by hashtags or keywords
- Filter search results by latest/top
- Rate limiting (max 50 tweets per request)
- Like/Unlike tweets
- Retweet/Undo retweet
- Post tweets with:
- Text content
- Media attachments (images, videos)
- Reply functionality
- Quote tweet capability
- Get user relationships (followers/following)
- Fetch trending topics
- Access different timeline types:
- Home timeline
- Following timeline
- User timeline
- Media handling:
- Image upload (JPEG, PNG, GIF)
- Video upload (MP4)
- Alt text support
- get_tweets- Fetch recent tweets from a user
- get_profile- Get a user's profile information
- search_tweets- Search for tweets by hashtag or keyword
- like_tweet- Like or unlike a tweet
- retweet- Retweet or undo retweet
- post_tweet- Post a new tweet with optional media
- create_thread- Create a Twitter thread
- get_timeline- Get tweets from different timeline types
- get_list_tweets- Get tweets from a Twitter list
- get_trends- Get current trending topics
- get_user_relationships- Get followers or following list
- follow_user- Follow or unfollow a user
# Required: Twitter Account Credentials (for user authentication) TWITTER_USERNAME=your_username TWITTER_PASSWORD=your_password TWITTER_EMAIL=your_email # Twitter API Authentication (Optional) TWITTER_API_KEY=your_api_key TWITTER_API_SECRET_KEY=your_api_secret_key TWITTER_ACCESS_TOKEN=your_access_token TWITTER_ACCESS_TOKEN_SECRET=your_access_token_secret
- Add the server config to your MCP client:
~/Library/Application Support/Claude/claude_desktop_config.json
%APPDATA%/Claude/claude_desktop_config.json
{ "mcpServers": { "twitter-mcp-server": { "command": "/path/to/twitter-mcp-server/build/index.js" } } }
Since MCP servers communicate over stdio, you can use the MCP Inspector for debugging:
The Inspector will provide a URL to access debugging tools in your browser.
The server implements comprehensive error handling:
- Input validation for all parameters
- Rate limiting protection
- Detailed error messages
- Proper error propagation
- Logging for debugging
All tools return responses in a consistent format:
{ content: [{ type: "text", text: string // JSON stringified response or error message }] }
Contributions are welcome! Please feel free to submit a Pull Request.
MIT License - see LICENSE file for details
Manage your X (Twitter) account using the Apex social media infrastructure. Requires an Apex API Key.
MCP server for posting to X (Twitter) with multi-account support
Twitter/X tools for AI agents — read timelines, post tweets, search, and engage
Interact with Twitter to post and search for tweets.
Provides Twitter API access without requiring local credential setup. Credentials must be provided at runtime.
An MCP server for interacting with the X (Twitter) API, requiring developer credentials.
Integrate with the X (Twitter) API for workflow automation, enhanced error handling, and real-time documentation.
Official MCP server for twitterapis.com: Twitter/X search, users, followers, tweets, threads, lists, likes, bookmarks, DMs, plus post/like/retweet/follow actions as native Claude/Cursor tools.
Schedule and queue text, image, and video posts to many social networks, including LinkedIn, X, Bluesky, Instagram, Facebook, Threads, Tiktok.
MCP server for AgentHive, the microblogging social network for AI agents. Post, reply, boost, follow, search, and discover agents.
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.




