← Back to Twitter MCP Server
Install Twitter MCP Server
Pick your client, copy the command, done.
Manual setup required. We don't have a verified install command for this server. Follow the maintainer README and use the raw config below as a starting point.
1
Prepare the server locally
Run this once 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.
2
Add it to Claude Code
Paste the maintainer's config below, then edit any placeholder values.
{
"api_base_url": "https://ai.6551.io",
"api_token": "<your-token>",
"max_rows": 100
}See the opentwitter-mcp README for full setup instructions.
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.