Twitter/X MCP server
io.github.granitebps/twitter-mcp·v1.1.0·1 starsRead public X posts, replies, profiles, and search results through Rettiwt or the official API.
1 stars245 downloads/wk
Reviews
Write oneNobody has reviewed Twitter/X MCP yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Twitter/X MCP tools (5)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
get_server_infoShow the server version, selected provider, limits, and supported operations.
get_tweetFetch a public X post from its numeric ID or status URL.
get_tweet_repliesFetch replies to a public X post.
get_user_profileFetch a public X profile by username.
search_tweetsSearch public X posts. The selected provider determines which operators work.
Public scan report
scanner v0.1.10 · 2026-10-15 · same rubric, same numbers if you re-run it
- Code scan36 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitystatic API keys via environment variables6/15
- Maintenancelast push 6 days ago15/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How Twitter/X MCP compares
Against every graded Web search MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 83/100
- higher than 70% of 3,471 Web search servers
- Tools
- 5
- the typical Web search server has 5
- Tools that change things
- 0%
- typical: 0%. Fewer write tools means less an agent can break
- GitHub stars
- 1
- more than 55% of 1,788 Web search servers
- Downloads a week
- 245
- more than 73% of 837 Web search servers with a package
What its tools let an agent do: 5 read
Release history: 4 versions in the registry since 2026-09-07, latest 2026-10-08, typically one every 6 days.
Install Twitter/X MCP in Claude Code, Cursor or VS Code
Runs npx -y @granitebps/twitter-mcp on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add twitter-mcp -- npx -y @granitebps/twitter-mcp
What the publisher says
From the Twitter/X MCP repository's README, as published. We do not edit it. Read it on GitHub
Twitter/X MCP
Twitter/X MCP lets an MCP client read public X posts, replies, and profiles, or search X. It uses Rettiwt by default, so you do not need an X developer plan. You can switch to the official X API if you have access.
Requirements
- Node.js 22.21.0 or newer within the Node 22 release line. The current Rettiwt release does not support Node 23 or later.
- A RETTIWTAPIKEY. Official X API credentials work when you select API mode.
Quick start
Once the package is published, your MCP client can run it without a clone:
npx -y @granitebps/twitter-mcpThe server selects Rettiwt when you omit TWITTERMODE. Pass RETTIWTAPI_KEY in the client configuration.
The server uses stdio. Keep stdout reserved for MCP traffic.
Run from a cloned repository
To develop the server or use a clone directly:
git clone https://github.com/granitebps/twitter-mcp.git
cd twitter-mcp
npm ci
npm run buildPoint your MCP client at the compiled entry point:
node /absolute/path/to/twitter-mcp/dist/cli.jsRun npm run build after each source change. Do not use src or npm run dev as the client's stdio command. Build logs on stdout can corrupt MCP messages.
Client configuration
Each example starts with the npm package, followed by the local equivalent. Replace /absolute/path/to/twitter-mcp with your clone's path and yourkeyhere with your Rettiwt key. Do not commit a configuration file that contains the key.
Claude
Add the npm package to Claude Code:
claude mcp add twitter --env RETTIWT_API_KEY=your_key_here -- npx -y @granitebps/twitter-mcpFor a local build:
claude mcp add twitter --env RETTIWT_API_KEY=your_key_here -- node /absolute/path/to/twitter-mcp/dist/cli.jsClaude Code uses local scope by default. Add --scope user before twitter to make the server available across projects.
Claude Desktop reads the same server from claudedesktopconfig.json. Restart the app after editing the file.
{
"mcpServers": {
"twitter": {
"command": "npx",
"args": ["-y", "@granitebps/twitter-mcp"],
"env": {
"RETTIWT_API_KEY": "your_key_here"
}
}
}
}For a local build, replace command and args with:
{
"command": "node",
"args": ["/absolute/path/to/twitter-mcp/dist/cli.js"]
}Codex
Add the npm package to ~/.codex/config.toml, or to .codex/config.toml in a trusted project:
[mcp_servers.twitter]
command = "npx"
args = ["-y", "@granitebps/twitter-mcp"]
[mcp_servers.twitter.env]
RETTIWT_API_KEY = "your_key_here"For a local build:
[mcp_servers.twitter]
command = "node"
args = ["/absolute/path/to/twitter-mcp/dist/cli.js"]
[mcp_servers.twitter.env]
RETTIWT_API_KEY = "your_key_here"Restart Codex after editing the file. The CLI, IDE extension, and desktop app share this configuration on the same computer.
OpenCode
Add the npm package to opencode.json or opencode.jsonc:
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"twitter": {
"type": "local",
"command": ["npx", "-y", "@granitebps/twitter-mcp"],
"enabled": true,
"environment": {
"RETTIWT_API_KEY": "your_key_here"
}
}
}
}Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Twitter/X MCP: common questions
- Is Twitter/X MCP server safe?
- Mostly: it is graded B (83/100). Read the Twitter/X MCP safety report
- How do I install Twitter/X MCP?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Twitter/X MCP need an API key?
- Yes. The registry entry asks for
RETTIWT_API_KEY. - Is Twitter/X MCP maintained?
- The last commit was 26 days ago (2026-10-10). The latest release is v1.1.0.
- What can I use instead of Twitter/X MCP?
- Servers from other publishers that do the same job: Brave Search MCP server, GitHits MCP server and Clinicaltrialsgov MCP server.
- How does Twitter/X MCP compare with other Web search MCP servers?
- safety score 83/100 (higher than 70% of 3,471 Web search servers); tools 5 (the typical Web search server has 5); tools that change things 0% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.
Alternatives to Twitter/X MCP
Same job from other publishers: the closest match first, then the best rated.
- Brave SearchBrave Search MCP Server: web results, images, videos, rich results, AI summaries, and more.not reviewedEstablishedA
GitHitsSearch public open-source code, documentation, metadata, vulnerabilities, changelogs, and examples.not reviewedEstablishedA- ClinicaltrialsgovSearch ClinicalTrials.gov: find studies, retrieve results, match patients to candidate trials.not reviewedEstablishedA
- RedditReddit MCP server with full read/write - posts, comments, search, and content creation.not reviewedEstablishedB
- Ref ToolsToken-efficient search for coding agents over public and private documentation.not reviewedEstablishedA