Twitter MCPツール
このリポジトリには、Pythonを使ってソーシャルメディアのタスクを効率化するために設計されたTwitter MCPツールが含まれています。ツイート、ユーザー名の変更履歴、最近のツイートの取得、ユーザーへのダイレクトメッセージの送信などの機能が含まれています。
特徴
1.ツイート投稿
画像付きまたは画像なしのツイートを Twitter に直接投稿します。
2.ユーザー名の変更を照会する
任意の Twitter アカウントのユーザー名の変更履歴を追跡します。
3.最近のツイートを取得する
公開されている Twitter ユーザーのタイムラインから最新のツイートを取得します。
4.ダイレクトメッセージ(DM)を送信する
Twitter ユーザーに直接プライベート メッセージを送信します。
依存関係のインストールと実行
リポジトリをクローンする
git clone https://github.com/jalaj-pandey/twitter-mcp-tool.git依存関係をインストールします:
uv venv .venv\Scripts\activate pip install -r requirements.txt mcp dev script.pyクロードデスクトップにインストールしたい場合は、
pip install script.py次のキーを含む
.env
ファイルを作成します。X_api_key=<your_twitter_api_key> X_api_key_sec=<your_twitter_api_secret> X_access_token=<your_twitter_access_token> X_access_token_sec=<your_twitter_access_token_secret> X_bearer_token=<your_twitter_bearer_token> GEMINI_API_KEY=<your_gemini_api_key>
使用法
claude デスクトップを開くと、Twitter MCP ツールが使用できる状態になっていることがわかります。
そうでない場合は、 config.json
をclaude_desktop_config.jsonにコピー&ペーストしてください。
フォルダ構造
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
ユーザーがツイートを投稿したり、ユーザー名の変更を追跡したり、最近のツイートを取得したり、Twitter でダイレクト メッセージを送信したりできるようにすることで、ソーシャル メディア タスクを効率化する Python ベースのツールです。
Related MCP Servers
- 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 -53020MIT License
- -securityFlicense-qualityProvides AI agents with comprehensive Twitter functionality through the Model Context Protocol standard, enabling reading tweets, posting content, managing interactions, and accessing timeline data with robust error handling.Last updated -215
- -securityFlicense-qualityProvides tools for interacting with Twitter to retrieve tweets by ID and post new tweets using the agent-twitter-client library.Last updated -23
- -securityAlicense-qualityEnables interaction with X (formerly Twitter), allowing for posting tweets, searching content, managing accounts, and organizing lists.Last updated -33MIT License