The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the Scrapebadger MCP listing page.
Give your AI agents access to Twitter/X data via the Model Context Protocol
ScrapeBadger MCP Server is a Model Context Protocol (MCP) server that enables AI assistants like Claude, ChatGPT, Cursor, Windsurf, and other MCP-compatible clients to access Twitter/X data through the ScrapeBadger API.
With this MCP server, your AI can:
Sign up at scrapebadger.com and get your API key.
Add to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
Add to your Cursor MCP settings (.cursor/mcp.json):
Add to your Windsurf MCP configuration:
Add to your VS Code settings (.vscode/mcp.json):
Once configured, simply ask your AI to fetch Twitter data:
"Get the profile of @elonmusk"
"Search for tweets about AI agents"
"What's trending on Twitter right now?"
"Find the top 10 Python developers on Twitter"
The MCP server provides 17 tools organized into categories:
| Tool | Description |
|---|---|
get_twitter_user_profile | Get a user's profile by username (bio, followers, following, etc.) |
get_twitter_user_about | Get extended "About" info (account location, username history) |
search_twitter_users | Search for users by query |
get_twitter_followers | Get a user's followers |
get_twitter_following | Get accounts a user follows |
| Tool | Description |
|---|---|
get_twitter_tweet | Get a single tweet by ID |
get_twitter_user_tweets | Get recent tweets from a user |
search_twitter_tweets | Search for tweets (supports Twitter search operators) |
| Tool | Description |
|---|---|
get_twitter_trends | Get global trending topics (optionally by category) |
get_twitter_place_trends | Get trends for a specific location (by WOEID) |
| Tool | Description |
|---|---|
search_twitter_places | Search for Twitter places by name |
| Tool | Description |
|---|---|
get_twitter_list_detail | Get details about a Twitter list |
search_twitter_lists | Search for Twitter lists |
get_twitter_list_tweets | Get tweets from a list |
| Tool | Description |
|---|---|
get_twitter_community_detail | Get details about a Twitter community |
search_twitter_communities | Search for communities |
You: Get the profile and recent tweets from @sama
Claude: I'll fetch Sam Altman's Twitter profile and recent tweets.
Uses get_twitter_user_profile and get_twitter_user_tweets
You: What's trending in tech on Twitter today?
Claude: I'll check the current trending topics.
Uses get_twitter_trends with category="news"
You: Compare the Twitter engagement of Stripe, Square, and PayPal
Claude: I'll gather data on all three companies' Twitter profiles.
Uses get_twitter_user_profile for each company
| Variable | Required | Description |
|---|---|---|
SCRAPEBADGER_API_KEY | Yes | Your ScrapeBadger API key |
The MCP server handles common errors gracefully:
| Error | Description | Solution |
|---|---|---|
AuthenticationError | Invalid API key | Check your SCRAPEBADGER_API_KEY |
RateLimitError | Too many requests | Wait and retry, or upgrade your plan |
InsufficientCreditsError | Out of credits | Purchase more at scrapebadger.com |
NotFoundError | User/tweet not found | Verify the username or tweet ID |
Make sure you've set the API key in your MCP configuration:
Install uv first:
ScrapeBadger has usage limits based on your plan. If you're hitting limits:
max_resultsMIT License - see LICENSE for details.
Made with love by ScrapeBadger