agent-twitter-client-mcp
by ryanmac·★ 28·Score 44
A comprehensive MCP server for interacting with Twitter, supporting various operations including tweet management, user interactions, and Grok AI integration.
Overview
This MCP server provides extensive Twitter functionality through three authentication methods: cookie-based, username/password, and Twitter API v2. It enables operations like fetching tweets, posting content, creating polls, following users, and interacting with Grok AI. The server includes a testing interface, demo scripts, and comprehensive documentation. Its active maintenance with recent commits indicates a well-supported project with clear implementation guidelines.
Try asking AI
After installing, here are 6 things you can ask your AI assistant:
When to choose this
Choose this server when you need AI agents to interact with Twitter/Grok for social media monitoring, content creation, or conversation analysis.
When NOT to choose this
Don't choose this if you need direct Twitter API access or require support for non-X Twitter-like platforms.
Tools this server exposes
12 tools extracted from the READMEget_user_tweetsFetch tweets from a specific user
get_tweet_by_idFetch a specific tweet by ID
search_tweetsSearch for tweets
send_tweetPost a new tweet
send_tweet_with_pollPost a tweet with a poll
like_tweetLike a tweet
retweetRetweet a tweet
quote_tweetQuote a tweet
get_user_profileGet a user's profile
follow_userFollow a user
get_followersGet a user's followers
get_followingGet users a user is following
Comparable tools
Installation
Installation
# Install globally
npm install -g agent-twitter-client-mcp
# Or install locally
npm install agent-twitter-client-mcpClaude Desktop Configuration
{
"mcpServers": {
"agent-twitter-client-mcp": {
"command": "npx",
"args": ["-y", "agent-twitter-client-mcp"],
"env": {
"AUTH_METHOD": "cookies",
"TWITTER_COOKIES": "[\"auth_token=YOUR_AUTH_TOKEN; Domain=.twitter.com\", \"ct0=YOUR_CT0_VALUE; Domain=.twitter.com\", \"twid=u%3DYOUR_USER_ID; Domain=.twitter.com\"]"
}
}
}
}FAQ
- What authentication methods are supported?
- The server supports three authentication methods: cookie-based authentication (recommended), username/password authentication, and Twitter API v2 credentials.
- How do I use Grok integration?
- Grok functionality requires agent-twitter-client v0.0.19 or higher and proper authentication. Use the 'grok_chat' tool to chat with Grok via Twitter, or continue conversations with conversation IDs.
- Can this MCP server handle media in tweets?
- Yes, the server supports posting tweets with images and videos. You can specify media content when posting tweets.
Compare agent-twitter-client-mcp with
Last updated · Auto-generated from public README + GitHub signals.