X (Twitter) MCP サーバー
この MCP サーバーにより、クライアントは X (旧 Twitter) と対話できるようになり、ツイートの投稿、コンテンツの検索、アカウントの管理、リストの整理などの包括的なプラットフォーム操作が可能になります。
クイックスタート
X 開発者アカウントを作成し、 X 開発者ポータルから API キーを取得します。
必要なAPIキーをすべて環境変数に設定する
このリポジトリをクローンします:
git clone https://github.com/Dishant27/twitter-mcp.git
依存関係をインストール:
npm install
サーバーを実行します。
環境変数を使用する場合:
.env
ファイルの使用:
Claude などの MCP クライアントで使用します。
クロード・コンフィグレーション
このサーバーをClaudeで使用するには、MCP設定を行う必要があります。設定例を以下に示します。
この構成を、通常次の場所にある Claude MCP 構成ディレクトリに保存します。
Windows:
%APPDATA%\AnthropicClaude\mcp-servers
macOS:
~/Library/Application Support/AnthropicClaude/mcp-servers
Linux:
~/.config/AnthropicClaude/mcp-servers
特徴
ポストオペレーション
投稿内容(最大280文字)
カスタマイズ可能な結果件数でクエリによる投稿を検索
アカウント管理
任意のユーザーまたは認証されたアカウントのプロフィール情報を取得する
プロフィールの詳細(名前、経歴、所在地、ウェブサイトの URL)を更新します
ユーザーのフォローとフォロー解除
任意のユーザーまたは認証されたアカウントのフォロワーを一覧表示します
ユーザーがフォローしているアカウントを一覧表示する
リスト管理
新しいリストを作成する(公開または非公開)
特定のリストに関する情報を取得する
認証されたユーザーが所有するすべてのリストを取得する
利用可能なMCPツール
ツール名 | 説明 |
| Xに新しいコンテンツを投稿する |
| Xでコンテンツを検索 |
| ユーザーまたは認証されたアカウントのプロフィール情報を取得する |
| 認証されたユーザーのプロフィールを更新する |
| ユーザーをフォローする |
| ユーザーのフォローを解除する |
| ユーザーまたは認証されたアカウントのフォロワーを一覧表示する |
| ユーザーまたは認証されたアカウントがフォローしているアカウントを一覧表示する |
| 新しいリストを作成する |
| リストに関する情報を取得する |
| 認証されたユーザーが所有するすべてのリストを取得する |
要件
Node.js 18.x 以上
X APIキー付き開発者アカウント
API v1およびv2アクセス
環境変数
変数 | 説明 |
| APIキー |
| APIシークレット |
| アクセストークン |
| アクセストークンシークレット |
リポジトリ構造
ライセンス
マサチューセッツ工科大学
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
X (旧 Twitter) とのやり取りを可能にし、ツイートの投稿、コンテンツの検索、アカウントの管理、リストの整理が可能になります。
Related MCP Servers
- AsecurityAlicenseAqualityServer for X (Twitter) integration that provides tools for reading your timeline and engaging with tweets. Designed for use with Claude desktop.Last updated -338MIT License
- AsecurityAlicenseAqualityEnables interaction with Twitter through a Model Context Protocol, allowing large language models to post tweets, search for tweets, and reply to tweets.Last updated -53221MIT License
- -securityAlicense-qualityA Model Context Protocol server that enables AI models and applications to interact directly with Twitter/X, providing capabilities to create posts, reply to tweets, retrieve user data, and manage account actions.Last updated -210MIT License
- -securityFlicense-qualityEnables complete management of X (Twitter) accounts through a single API key, supporting functions like getting tweets, searching, generating and posting replies.Last updated -2
Appeared in Searches
- Search for posts related to X
- A search for strategies to promote a directory website and generate ideas for solopreneur SAAS businesses
- Managing Social Media Content Creation Using Monday
- A guide to researching LinkedIn profiles and personalizing outreach based on customer persona and company signals
- How to access and manage bookmarks on X / Twitter