MCP server for Twitter integration using agent-twitter-client
MCP server for Twitter integration using agent-twitter-client
A Model Context Protocol (MCP) server that integrates with Twitter using the agent-twitter-client package, allowing AI models to interact with Twitter without direct API access.
get_user_tweets — Fetch tweets from a specific userget_tweet_by_id — Fetch a specific tweet by IDsearch_tweets — Search for tweetssend_tweet — Post a new tweetsend_tweet_with_poll — Post a tweet with a polllike_tweet — Like a tweetretweet — Retweet a tweetquote_tweet — Quote a tweetget_user_profile — Get a user's profilefollow_user — Follow a userget_followers — Get a user's followersget_following — Get users a user is followinggrok_chat — Chat with Grok via Twitterhealth_check — Check the health of the Twitter MCP serverCompare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.
Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.
| Tool | What it does |
|---|---|
| get_user_tweets | Fetch tweets from a specific user |
| get_tweet_by_id | Fetch a specific tweet by ID |
| search_tweets | Search for tweets |
| send_tweet | Post a new tweet |
| send_tweet_with_poll | Post a tweet with a poll |
| like_tweet | Like a tweet |
| retweet | Retweet a tweet |
| quote_tweet | Quote a tweet |
| get_user_profile | Get a user's profile |
| follow_user | Follow a user |
| get_followers | Get a user's followers |
| get_following | Get users a user is following |
| grok_chat | Chat with Grok via Twitter |
| health_check | Check the health of the Twitter MCP server |
{
"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\"]"
}
}
}
}Configuration as documented by the project. Restart the client after saving.
| Variable | Description | Required |
|---|---|---|
| AUTH_METHOD | Configuration value read at startup. | Optional |
| TWITTER_COOKIES | Configuration value read at startup. | Optional |
| TWITTER_USERNAME | Configuration value read at startup. | Optional |
| TWITTER_PASSWORD | Configuration value read at startup. | Optional |
| TWITTER_EMAIL | Configuration value read at startup. | Optional |
| TWITTER_2FA_SECRET | Credential the server authenticates with. | Yes |
| TWITTER_API_KEY | Credential the server authenticates with. | Yes |
| TWITTER_API_SECRET_KEY | Credential the server authenticates with. | Yes |
Search built for AI, not humans — semantic web search that returns model-ready content, plus code context.
Put 6,000+ pre-built scrapers at your assistant's fingertips through one MCP endpoint.
Fetches and analyzes content from Reddit, providing access to hot threads and post details.
Enables interaction with X (formerly Twitter) for retrieving tweets, creating new posts, and replying to existing ones.
Automates LinkedIn interactions and extracts data through browser automation, respecting terms of service and rate limits.
Automates SEO tasks and provides AI-powered optimization by integrating with the Google Ads Keyword Planner API.