Updated April 2026
Install Twitter MCP Server
Pick your client, copy the command, done.
Local setup required. This server has to be cloned and prepared on your machine before you register it in Claude Code.
1
Set the server up locally
Run this once to clone and prepare the server before adding it to Claude Code.
git clone https://github.com/6551Team/opentwitter-mcp
cd opentwitter-mcpThen follow the repository README for any remaining dependency or build steps before continuing.
2
Register it in Claude Code
After the local setup is done, run this command to point Claude Code at the built server.
claude mcp add -e "TWITTER_TOKEN=${TWITTER_TOKEN}" twitter-mcp -- node "<FULL_PATH_TO_OPENTWITTER_MCP>/dist/index.js"Replace <FULL_PATH_TO_OPENTWITTER_MCP>/dist/index.js with the actual folder you prepared in step 1.
Required:
TWITTER_TOKEN+ 2 optionalEnvironment Variables
Set these before running Twitter MCP Server.
VariableDescriptionRequired
TWITTER_TOKEN6551 API Bearer TokenYesTWITTER_API_BASEOverride REST API URLNoTWITTER_MAX_ROWSMax results per queryNoAvailable Tools (15)
Once configured, Twitter MCP Server gives your AI agent access to:
get_twitter_userGet user profile by usernameusernameget_twitter_user_by_idGet user profile by numeric IDuser_idget_twitter_user_tweetsGet recent tweets from a userusernamesearch_twitterSearch tweets with basic filtersquerysearch_twitter_advancedAdvanced search with multiple filtersqueryfiltersget_twitter_follower_eventsGet follower/unfollower eventsusernameget_twitter_deleted_tweetsGet deleted tweets from a userusernameget_twitter_kol_followersGet KOL (Key Opinion Leader) followersusernameget_twitter_article_by_idGet Twitter article by IDarticle_idget_twitter_tweet_by_idGet tweet by ID with nested reply/quote tweetstweet_idget_twitter_quote_tweets_by_idGet tweets that quote a specific tweettweet_idget_twitter_retweet_users_by_idGet users who retweeted a specific tweettweet_idget_twitter_watchGet all Twitter monitoring usersadd_twitter_watchAdd a Twitter user to monitoring listusernamedelete_twitter_watchDelete a Twitter user from monitoring listusernameTry It Out
After setup, try these prompts with your AI agent:
→Show me the recent tweets from @VitalikButerin.
→Search for popular tweets about ETH that have more than 1000 likes.
→Who are the KOLs that follow @elonmusk?
→Check if @elonmusk has deleted any tweets recently.
→Who recently unfollowed @elonmusk?
Alternative installation methods
OpenClaw
export TWITTER_TOKEN="<your-token>" && cp -r openclaw-skill/opentwitter ~/.openclaw/skills/Keep this setup from going cold
Save the docs, env vars, and workflow around Twitter MCP Server in Conare so Claude Code, Codex, and Cursor remember it next time.
Need the legacy visual installer? Open Conare IDE.