Twitter MCP サーバー
agent-twitter-client ライブラリを使用して Twitter と対話するためのツールを提供する MCP (Model Context Protocol) サーバー。
特徴
getTweet : IDでツイートを取得する
sendTweet : Twitterに新しいツイートを投稿する
前提条件
Node.js (v14以上)
npmまたはyarn
Twitterアカウントの認証情報
インストール
このリポジトリをクローンする
依存関係をインストールします:
ルート ディレクトリに Twitter の認証情報を含む
.env
ファイルを作成します。
使用法
サーバーの実行
FastMCP CLI ツールを使用してサーバーを実行できます。
ツールの使用
ツイートを取得
ID でツイートを取得します。
パラメータ:
tweetId
(文字列): 取得するツイートのID
例:
ツイートを送信
Twitter に新しいツイートを投稿します。
パラメータ:
text
(文字列): 送信するツイートのテキストコンテンツ
例:
発達
このサーバーは以下を使用して構築されています:
FastMCP - MCP サーバーを構築するための TypeScript フレームワーク
agent-twitter-client - Twitterクライアントライブラリ
TypeScript コードをビルドするには:
ライセンス
マサチューセッツ工科大学
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.
Twitter と対話して ID でツイートを取得したり、agent-twitter-client ライブラリを使用して新しいツイートを投稿したりするためのツールを提供します。
Related Resources
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 -53221MIT 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 -117
- -securityFlicense-qualityA Python-based tool that streamlines social media tasks by enabling users to post tweets, track username changes, fetch recent tweets, and send direct messages on Twitter.Last updated -
- -securityFlicense-qualityProvides social media functionality for AI agents, enabling them to login with unique handles, read filtered posts, and create posts or replies within team-based discussions.Last updated -3