fxtwitter-mcp
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@fxtwitter-mcpget the post at https://x.com/elonmusk/status/987654321"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
fxtwitter-mcp
FxTwitter / FxEmbed API を Model Context Protocol(MCP)から利用する、Cloudflare Workers + Hono製のリモートMCPサーバーです。
FxTwitter API v2の読み取り系GET APIを16個のMCPツールとして公開します。MCPエンドポイントはステートレスなStreamable HTTPで、認証はありません。
このプロジェクトはFxTwitter / FxEmbedの非公式クライアントです。公開デプロイすると、URLを知っている第三者も上流APIを呼び出せます。必要に応じてCloudflare Accessや独自認証を追加してください。
構成
Cloudflare Workers
Hono
Cloudflare Agents SDK
createMcpHandlerMCP TypeScript SDK v2
TypeScript
Vitest + Cloudflare Workers runtime
Related MCP server: Twitter MCP Server
エンドポイント
パス | メソッド | 用途 |
| GET | サービス情報 |
| GET | ヘルスチェック |
| GET / POST / DELETE | MCP Streamable HTTP |
MCPツール
すべて読み取り専用・非破壊・冪等なツールです。
ツール | FxTwitter API |
| 投稿を取得 |
| 投稿をリポストしたユーザーを取得 |
| 引用投稿を取得 |
| スレッドを展開して取得 |
| スレッドと返信を取得 |
| ユーザーの投稿を取得 |
| ユーザーの記事を取得 |
| About Account統計を取得 |
| ユーザーのメディア投稿を取得 |
| フォロワーを取得 |
| フォロー中ユーザーを取得 |
| プロフィールを取得 |
| 投稿を検索 |
| ユーザーを検索 |
| 検索候補を取得 |
| トレンドを取得 |
カーソルが返るAPIは自動で全ページを取得しません。レスポンスの cursor.bottom を次の呼び出しの cursor に指定してください。
ローカル実行
Node.js 20以降が必要です。PowerShellでプロジェクトのルートから実行します。
npm install
npm run dev起動後のMCP URLは http://localhost:8787/mcp です。
MCP Inspectorで接続確認する場合:
npx @modelcontextprotocol/inspector@latestInspectorでTransportにStreamable HTTP、URLに http://localhost:8787/mcp を指定します。
検証
npm test
npm run typecheck
npm run types:check
npm run deploy:dry-runすべてを順番に実行する場合:
npm run checkテストではURLエンコード、タイムアウト、JSON不正、5 MiB上限、APIエラー、全16ツールのルーティング、MCPツール一覧、Origin検証をCloudflare Workersランタイム上で確認します。外部API通信はモックされます。
制限と安全対策
上流は
https://api.fxtwitter.comに固定しています。FxTwitterが要求する識別用User-Agentを送信します。
パス要素とクエリはURL APIでエンコードし、任意URLへのアクセスは受け付けません。
上流リクエストは10秒でタイムアウトします。
上流レスポンスは5 MiBまで読み込みます。
FxTwitter APIのレート制限や利用条件に従ってください。
検索結果などはMCPへ整形せず、上流JSONをそのまま返します。
ライセンス
MIT License © 2026 Tomoya Ogawa
This server cannot be deployed
Maintenance
Related MCP Connectors
Twitter/X read-only MCP server — 12 tools: search, users, tweets, followers, timelines, trends.
X / Twitter public post, comment, reply, user, and search tools.
X (Twitter) profiles, tweets and single-tweet lookup by handle or URL. No login. Pay per result.
Twitter: Access real-time Twitter/X data as soon as it's posted! With the Twitter/X AIO API, you.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA read-only X/Twitter MCP server that enables data retrieval for user profiles, tweets, and social graphs using OAuth 2.0 Bearer Token authentication. It supports searching recent tweets, viewing timelines, and tracking engagement metrics like followers, likes, and retweets.3MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to access Twitter/X data including user profiles, tweets, search, and follower events via a set of MCP tools.1MIT
- AlicenseBqualityDmaintenanceEnables interacting with Twitter/X through natural language, including searching tweets, posting, sending DMs, and managing timelines via any MCP client.8MIT
- AlicenseAqualityBmaintenanceMCP server for the Twitter/X read API, enabling search, user profiles, tweets, followers, and more via natural language.94508MIT