X-Scraper-MCP
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
X-Scraper-MCP
An MCP (Model Context Protocol) server that reads X/Twitter posts, threads, and user profiles — directly inside Claude Code, Cursor, or any MCP-compatible client.
No Twitter API key required. No third-party services. No ads.
Built as a replacement for services like Unrollnow — paste an X link, get clean readable content.
Tools
Tool | Description |
| Fetch a single tweet. Returns text, media, polls, quotes, engagement stats, community notes. |
| Unroll a full thread into readable markdown. Walks up to the root and discovers children via syndication. Supports multi-URL input. |
| Fetch a user profile — bio, follower counts, join date, verification status. |
| Download images/videos from a tweet to local filesystem. Returns file paths, dimensions, and sizes. |
| Extract text from images using OCR (Tesseract.js). Accepts local files or URLs. |
URL Formats
All tools accept any X/Twitter URL format:
https://x.com/user/status/123https://twitter.com/user/status/123https://fxtwitter.com/user/status/123https://vxtwitter.com/user/status/123@usernameor bareusername(forread_user)Bare tweet ID:
123456789
Related MCP server: TwitGhost
Setup
Prerequisites
Node.js 18+
npm
Install
git clone https://github.com/wcfcarolina13/X-Scraper-MCP.git
cd X-Scraper-MCP
npm installConfigure in Claude Code
Add to your project's .mcp.json (or ~/.claude/settings.json for global access):
{
"mcpServers": {
"fxtwitter": {
"command": "npx",
"args": ["tsx", "/path/to/X-Scraper-MCP/src/index.ts"]
}
}
}Replace /path/to/X-Scraper-MCP with the actual path where you cloned the repo.
Configure in Claude Desktop
Add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"fxtwitter": {
"command": "npx",
"args": ["tsx", "/path/to/X-Scraper-MCP/src/index.ts"]
}
}
}Usage
Once configured, the tools are available in any Claude conversation:
Read a single tweet:
"Read this tweet: https://x.com/jack/status/20"
Unroll a thread:
"Unroll this thread: https://x.com/user/status/123456"
Read a profile:
"Who is @elonmusk on X?"
Download media from a tweet:
"Download the images from this tweet to /tmp/media: https://x.com/user/status/123"
OCR an image:
"Analyze the text in /tmp/media/123_0.jpg"
Thread Unrolling
read_thread uses three strategies to assemble a complete thread:
Walk up — From the given tweet, follows
replying_to_statuslinks to find the thread root.Syndication discovery — Scrapes Twitter's embed timeline to find child tweets by the same author.
Multi-URL input — Accepts multiple URLs (comma or newline separated) and stitches them together.
Best practice: If you have the last tweet in a thread, provide that URL — walking up is 100% reliable. If you only have the first tweet, syndication discovery handles it for recent threads.
# Single URL
read_thread("https://x.com/user/status/111")
# Multiple URLs for guaranteed coverage
read_thread("https://x.com/user/status/111, https://x.com/user/status/222, https://x.com/user/status/333")How It Works
Uses the free FxTwitter API — the same backend that powers fxtwitter.com embed links. No authentication needed, no rate limits enforced (just don't abuse it).
For thread child discovery, falls back to Twitter's syndication timeline which serves embedded tweet widgets and exposes recent tweet IDs for public accounts.
Output Format
All output is clean markdown:
### Tweet by @user (Display Name)
The tweet text here...
**Photos:** 2 image(s)
- https://pbs.twimg.com/media/xxx.jpg (1024x768)
- https://pbs.twimg.com/media/yyy.jpg (1024x768)
*1.2K likes · 340 retweets · 56 replies · 45.2K views*
*Wed Feb 19 04:17:27 +0000 2026*
*Source: Twitter for iPhone*
*URL: https://x.com/user/status/123*Optional: ScrapeBadger MCP
For richer Twitter data (search, trending, advanced thread traversal), you can add ScrapeBadger MCP alongside this server:
{
"mcpServers": {
"fxtwitter": {
"command": "npx",
"args": ["tsx", "/path/to/X-Scraper-MCP/src/index.ts"]
},
"scrapebadger": {
"command": "uvx",
"args": ["scrapebadger-mcp"],
"env": {
"SCRAPEBADGER_API_KEY": "your_key_here"
}
}
}
}Get a free API key (1,000 credits) at scrapebadger.com.
Limitations
Protected accounts — Cannot access tweets from private/protected accounts (same as any logged-out view).
Thread discovery — Syndication timeline only contains recent tweets. For old threads, provide the last tweet URL or multiple URLs.
No search — FxTwitter API doesn't support tweet search. Use ScrapeBadger for that.
Rate limits — FxTwitter asks for respectful usage. No hard limits, but hammering the API may get you blocked.
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted MCP server from TwitterAPI.io that gives AI agents read-only access to Twitter/X data. 12 tools: tweet search with X operators, user profiles, a user's latest tweets, followers and followings, replies, quotes, retweeters, mentions and trends. Connect at https://mcp.twitterapi.io/mcp with a TwitterAPI.io API key or account sign-in; usage is paid per result returned. Separately, TwitterAPI.io also offers x402 pay-per-call HTTP endpoints (tweet search, user info, a user's latest tweets) paid in USDC on Base or Solana with no account or API key; see https://docs.twitterapi.io/x402-pay-per-call. The MCP server itself uses an API key or sign-in.
Read public X (Twitter) posts, threads and X Articles as clean Markdown. Read-only, no auth.
X/Twitter search, posts, comments, user profiles, user posts/replies and video transcripts.
Read public X posts with no account or key: Articles as Markdown, video transcripts, posts.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables seamless interaction with Twitter/X platform through Claude AI, allowing users to post tweets with images, search for tweets, and engage in conversations using natural language commands.1055 npm27MIT
- AlicenseBqualityDmaintenanceEnables interacting with Twitter/X through natural language, including searching tweets, posting, sending DMs, and managing timelines via any MCP client.8MIT
- AlicenseNot gradedqualityDmaintenanceEnables MCP clients to access FxTwitter/FxEmbed read-only APIs, exposing tools for retrieving posts, threads, conversations, user profiles, media, followers, search results, and trends.2MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to search live public X/Twitter posts and fetch recent posts from user profiles without API keys, using zero-configuration local MCP tools for Claude, Cursor, and Pi.7 npm1MIT