X MCP
by Twitter
Reads public X posts, replies, profiles, and search results through Rettiwt or the official X API over stdio.
Install X MCP
Pick your client, then add it in one click or paste the config.
~/Library/Application Support/Claude/claude_desktop_config.json{
"mcpServers": {
"twitter-x-mcp": {
"command": "npx",
"args": [
"-y",
"@granitebps/twitter-mcp"
],
"env": {
"TWITTER_MODE": "YOUR_VALUE_HERE",
"RETTIWT_API_KEY": "YOUR_VALUE_HERE",
"TWITTER_BEARER_TOKEN": "YOUR_VALUE_HERE",
"TWITTER_API_KEY": "YOUR_VALUE_HERE",
"TWITTER_API_SECRET": "YOUR_VALUE_HERE",
"TWITTER_ACCESS_TOKEN": "YOUR_VALUE_HERE",
"TWITTER_ACCESS_SECRET": "YOUR_VALUE_HERE",
"TWITTER_REQUEST_TIMEOUT_MS": "YOUR_VALUE_HERE"
}
}
}
}
Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.
Values are written into the snippet above so you can paste it as is. They never leave your browser.
We couldn’t confirm it starts correctly
We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.
npx -y @granitebps/twitter-mcpNo response to initialize.
This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked 5d ago.
Overview
Use cases
- Inspect a public post from an agent workflow
- Search X for posts matching a query
- Read replies and available pagination metadata
- Look up a public X profile
- Compare Rettiwt and official API access
Key features
- Retrieve public posts by ID or URL
- Read replies and page metadata
- Fetch public profiles
- Search public X posts
- Report provider and server capabilities
Tools5
What X MCP lets your agent do. Expand a tool for its parameters.
Security & health
What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.
Recent health check succeeded.
Supply-chain signal
No high-severity advisories surfaced by our automated scan.
Scanned 2h ago via OSV.dev · @granitebps/twitter-mcp (npm)
Adoption & maintenance
Factual signals from GitHub, npm, and our automated checks — not a rating.
How X MCP works
Reviews
No reviews yet — be the first to share how it worked for you.
Frequently Asked Questions about X MCP
Related MCP servers
Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.
AllMCPs Directory Badge
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/twitter-x-mcp)<a href="https://allmcps.com/mcp/twitter-x-mcp"><img src="https://allmcps.com/api/badge/twitter-x-mcp?style=directory" alt="X MCP on AllMCPs" /></a>