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.

Run in terminal
git clone https://github.com/6551Team/opentwitter-mcp
cd opentwitter-mcp

Then 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.

Run in terminal
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 optional

Environment Variables

Set these before running Twitter MCP Server.

VariableDescriptionRequired
TWITTER_TOKEN6551 API Bearer TokenYes
TWITTER_API_BASEOverride REST API URLNo
TWITTER_MAX_ROWSMax results per queryNo

Available Tools (15)

Once configured, Twitter MCP Server gives your AI agent access to:

get_twitter_userGet user profile by username
username
get_twitter_user_by_idGet user profile by numeric ID
user_id
get_twitter_user_tweetsGet recent tweets from a user
username
search_twitterSearch tweets with basic filters
query
search_twitter_advancedAdvanced search with multiple filters
queryfilters
get_twitter_follower_eventsGet follower/unfollower events
username
get_twitter_deleted_tweetsGet deleted tweets from a user
username
get_twitter_kol_followersGet KOL (Key Opinion Leader) followers
username
get_twitter_article_by_idGet Twitter article by ID
article_id
get_twitter_tweet_by_idGet tweet by ID with nested reply/quote tweets
tweet_id
get_twitter_quote_tweets_by_idGet tweets that quote a specific tweet
tweet_id
get_twitter_retweet_users_by_idGet users who retweeted a specific tweet
tweet_id
get_twitter_watchGet all Twitter monitoring users
add_twitter_watchAdd a Twitter user to monitoring list
username
delete_twitter_watchDelete a Twitter user from monitoring list
username

Try 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.
Remember this setup