MCP.Market

Twitter/X MCP server

by granitebps·io.github.granitebps/twitter-mcp·v1.1.0·1 stars

Read public X posts, replies, profiles, and search results through Rettiwt or the official API.

B83/100grade B
What users say
No reviews yet
Be the first
Safety scan
B83/100

full report

Adoption
Growing

1 stars245 downloads/wk

Reviews

Write one

Nobody 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 posts

Read from the package source without running it. The installed server may list more.

  • get_server_info

    Show the server version, selected provider, limits, and supported operations.

  • get_tweet

    Fetch a public X post from its numeric ID or status URL.

  • get_tweet_replies

    Fetch replies to a public X post.

  • get_user_profile

    Fetch a public X profile by username.

  • search_tweets

    Search 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

no findings
  • 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
Overall 83/100. Components that don't apply are left out of the denominator. Any critical finding is an F.RubricAppeal a findingJSON

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
Add to Cursor

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-mcp

The 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 build

Point your MCP client at the compiled entry point:

node /absolute/path/to/twitter-mcp/dist/cli.js

Run 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-mcp

For a local build:

claude mcp add twitter --env RETTIWT_API_KEY=your_key_here -- node /absolute/path/to/twitter-mcp/dist/cli.js

Claude 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 Search
    Brave Search MCP Server: web results, images, videos, rich results, AI summaries, and more.
    A
  • GitHits
    Search public open-source code, documentation, metadata, vulnerabilities, changelogs, and examples.
    A
  • Clinicaltrialsgov
    Search ClinicalTrials.gov: find studies, retrieve results, match patients to candidate trials.
    A
  • Reddit
    Reddit MCP server with full read/write - posts, comments, search, and content creation.
    B
  • Ref Tools
    Token-efficient search for coding agents over public and private documentation.
    A