プロトタイプ · プレビュー版:公式レジストリのすべてのサーバーを掲載し、30分ごとに同期しています。レビューとアカウント機能は今後のステップで始まります。
PopNx MCPAIを使う人のためのMCPサーバー · やさしい言葉で解説

Twitter/X MCP

作者:granitebpsバージョン 1.1.0i★ –iパソコンで動く
レジストリ名io.github.granitebps/twitter-mcp

インストール

概要

作者による説明(英語の原文)

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

PopNx MCPの3つの柱

この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。

できること

このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。

  • 接続方法: パソコンで動く
  • トランスポート: stdio
  • カテゴリ: マーケティング・SNS
  • 入力が必要なもの:RETTIWT_API_KEY

インストール

使っているAIアプリを選んで、設定をコピーしてください。

インストールの前に

  • 基本チェック:1項目中1項目に合格
  • あなたのパソコンで、あなたのユーザーと同じ権限(ファイル、ネットワーク、アプリ)で動きます。
  • 自分で入力するもの: RETTIWT_API_KEY

「秘密」と表示された値は、あなたのアカウントの鍵です。絶対に人に教えたり、チャットに貼り付けたりしないでください。

必要なもの

  • npmNode.jsのインストール(npxコマンドに必要)

どのアプリを使っていますか?

上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。

Claude Desktop → Settings → Developer → Edit Config を開き、claude_desktop_config.json にこれを貼り付けます

{
  "mcpServers": {
    "twitter": {
      "command": "npx",
      "args": [
        "-y",
        "@granitebps/twitter-mcp"
      ],
      "env": {
        "RETTIWT_API_KEY": "your-value"
      }
    }
  }
}

ターミナルでこれを実行します

claude mcp add twitter --env RETTIWT_API_KEY=your-value -- npx -y @granitebps/twitter-mcp

動かす前に、空欄の値を入力してください。

Cursorで開く

または、設定を自分でコピーする

プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます

{
  "mcpServers": {
    "twitter": {
      "command": "npx",
      "args": [
        "-y",
        "@granitebps/twitter-mcp"
      ],
      "env": {
        "RETTIWT_API_KEY": "your-value"
      }
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

VS Codeで開く

または、設定を自分でコピーする

プロジェクトの .vscode/mcp.json に貼り付けます

{
  "servers": {
    "twitter": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@granitebps/twitter-mcp"
      ],
      "env": {
        "RETTIWT_API_KEY": "your-value"
      }
    }
  }
}

ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。

これはパソコンで動くサーバーですが、ChatGPTがつなげるのはインターネット上のサーバーだけです。ほかのアプリを選んでください。

選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。

自分で入力する値

  • RETTIWT_API_KEY 秘密 必須 env
    Rettiwt key containing an authenticated X browser session

この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。

できること

パソコンで動くサーバーです。インストールすると、ツール一覧がAIアプリに表示されます。

基本チェックi

誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月7日にチェック

  • ✓ 合格

    作者とリポジトリが一致

    レジストリ名は、リポジトリを所有するGitHubアカウント granitebps で確認済みです

  • … 未チェック

    今もメンテナンスされている

    このリポジトリはまだGitHubから読み取っていません

  • … 未チェック

    ライセンスがある

    このリポジトリはまだGitHubから読み取っていません

  • – 対象外

    エンドポイントが応答する

    これはパソコンで動くため、インターネット上のエンドポイントはありません

  • – 対象外

    OAuthでサインイン

    パソコンで動き、代わりにローカルの設定を使います

  • … 未チェック

    ツールの説明に隠れた指示がない

    パソコンで動くサーバーです。ツール一覧を読み取れるのは、インターネット上のエンドポイントがある場合だけです

マーケティング・SNSのほかのサーバーとの比較i

  • このカテゴリのほかの2972件のうち0%よりスターが多い
  • このカテゴリのほかの2972件のうち51%より最近レジストリに公開
  • 基本チェックの結果が、このカテゴリのほかの2972件のうち100%と同じかそれ以上

レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。

よくある質問

Twitter/X MCPは安全ですか?

当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。

どんなキーやコードが必要ですか?

入力が必要なもの:RETTIWT_API_KEY

パソコンで動きますか、それともクラウドですか?

あなたのパソコンで動きます。必要なときにAIアプリが起動し、データは作者のサーバーを通りません(サーバー自体がオンラインサービスを呼び出す場合を除きます)。

今もメンテナンスされていますか?

GitHubリポジトリの最終更新は–、最新バージョン(1.1.0)がレジストリに届いたのは29 日前です。

どのアプリで使えますか?

Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。パソコンにNode.jsも必要です。

代わりに使えるものは?

同じカテゴリには:MCP YouTube Transcript, Google Analytics MCP, BibiGPT YouTube Video Summarizer

代わりの候補

同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。

カードの見方:★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i

Google Analytics MCP

作者:surendranb

GA4 MCP server for AI agents: schema discovery, server-side aggregation, analysis-ready defaults.

パソコンで動く★ 244MIT9 日前更新
インストール

作者のREADME

READMEを開く

作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。

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 is the declared supported runtime. Node 24 testing and installation limitations are described below.
  • A RETTIWT_API_KEY. Official X API credentials work when you select API mode.
Node 24 compatibility

The full project check and all five live MCP tool calls passed on Node.js 24.19.0. CI also runs the full project check on Node 24.

The published package and Rettiwt 7.1.4 still declare engines.node: "^22.21.0". Installing on Node 24 can therefore produce EBADENGINE warnings, and npm rejects the installation when engine-strict is enabled. Use Node 22.21.0 or a newer Node 22 release for installation within the declared supported range. Official Node 24 support remains pending a Rettiwt release that declares Node 24 compatibility and a corresponding update to this package's engine range.

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 TWITTER_MODE. Pass RETTIWT_API_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 your_key_here 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 claude_desktop_config.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" } } } }

For a local build, replace the command array with:

{

"command": ["node", "/absolute/path/to/twitter-mcp/dist/cli.js"] }

Cursor

Add the npm package to .cursor/mcp.json in a project, or to ~/.cursor/mcp.json for global use:

{

"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"] }

Providers

ModeSelectionCredentialsNotes
RettiwtDefault, or TWITTER_MODE=rettiwtRETTIWT_API_KEYFree of X API charges. Uses unofficial internal endpoints and may break or put the account at risk.
Official APITWITTER_MODE=apiBearer token or complete OAuth credentialsUses the supported X API. X controls access tiers and pricing.
Rettiwt setup

Rettiwt requires authenticated user mode in this server. Guest mode is not supported.

  1. Generate an API key using the Rettiwt authentication instructions.
  2. Store it as RETTIWT_API_KEY in the MCP client's environment.
  3. Start the server without TWITTER_MODE, or set TWITTER_MODE=rettiwt explicitly.

A Rettiwt key contains X session cookies and has the same access as the account. Treat it like a password. Do not commit it, paste it into an issue, log it, or pass it as a command-line argument. Use a key only for an account you own or have permission to access.

Rettiwt is unofficial. X's automation rules prohibit non-API website automation and warn that violations may lead to account suspension. Read the X Rules before using this mode. You accept the compliance and account risk.

Official X API setup

Use a bearer token:

TWITTER_MODE=api

TWITTER_BEARER_TOKEN=your_bearer_token

Or provide the complete OAuth set:

TWITTER_MODE=api

TWITTER_API_KEY=your_api_key TWITTER_API_SECRET=your_api_secret TWITTER_ACCESS_TOKEN=your_access_token TWITTER_ACCESS_SECRET=your_access_secret

Create credentials in the X Developer Portal. X controls API access and pricing, so check the current terms before choosing this mode.

Configuration

VariableRequiredMeaning
TWITTER_MODENorettiwt by default, or api. Other values fail startup.
RETTIWT_API_KEYRettiwt modeAuthenticated Rettiwt session key.
TWITTER_BEARER_TOKENAPI mode optionOfficial API bearer token.
TWITTER_API_KEYOAuth optionOAuth application key.
TWITTER_API_SECRETOAuth optionOAuth application secret.
TWITTER_ACCESS_TOKENOAuth optionOAuth access token.
TWITTER_ACCESS_SECRETOAuth optionOAuth access secret.
TWITTER_REQUEST_TIMEOUT_MSNoRequest deadline from 1,000 to 120,000 ms. Default: 30,000.

The server rejects an incomplete OAuth configuration at startup. It reads credentials from the process environment and never returns them through get_server_info.

Tools

ToolInputResult
get_tweettweet_idOne post. Accepts a numeric ID or an x.com or twitter.com status URL.
get_tweet_repliestweet_id, optional max_resultsReplies and available page metadata.
get_user_profileusernameOne public profile. A leading @ is accepted.
search_tweetsquery, optional max_resultsMatching posts and available page metadata. Search operators depend on the provider.
get_server_infoNoneVersion, active provider, tools, limits, and capabilities.

max_results defaults to 10 and accepts 1 through 100. Successful calls return structured MCP content plus JSON text for older clients. Collection tools return the items as JSON text and put cursors and warnings in structured content.

In Rettiwt mode, posts returned by get_tweet, get_tweet_replies, and search_tweets also include an optional media array when the provider supplies it. Each item contains id, type (PHOTO, VIDEO, or GIF), a direct url, and an optional thumbnail_url for video previews. The server returns media links; it does not download the files. Official API mode does not currently return attached media.

The v1 compatibility contract records the stable tool, input, output, and error behavior for the 1.x release line.

Errors

Tool failures use stable codes:

  • INVALID_INPUT
  • AUTH_REQUIRED
  • AUTH_FAILED
  • NOT_FOUND
  • RATE_LIMITED
  • UPSTREAM_UNAVAILABLE
  • TIMEOUT
  • UNSUPPORTED_OPERATION
  • INTERNAL_ERROR

Errors name the provider and tell the client whether a retry may work. They do not include credentials or raw upstream response bodies.

Architecture

stdio CLI

-> validated environment configuration -> MCP server and tool handlers -> TwitterProvider contract -> Rettiwt adapter -> official X API adapter

The domain schemas do not depend on either provider. Each provider adapter maps upstream data, enforces limits and deadlines, and translates errors. Importing src/index.ts does not start the server.

Development

npm ci

npm run check

npm run check checks formatting, lint, types, coverage, the production build, npm package contents, and a clean tarball installation. The default test suite uses fakes and does not need X credentials.

Useful focused commands:

npm test

npm run typecheck npm run lint npm run build npm run check:package npm run check:install npx @modelcontextprotocol/inspector node dist/cli.js

Live Rettiwt smoke test

The live smo

冒頭だけを表示しています。続きはリポジトリで読めます

PopNxに聞く