Twitter MCP Server
Twitter MCP サーバー
agent-twitter-client ライブラリを使用して Twitter と対話するためのツールを提供する MCP (Model Context Protocol) サーバー。
特徴
getTweet : IDでツイートを取得する
sendTweet : Twitterに新しいツイートを投稿する
Related MCP server: Twitter MCP Server
前提条件
Node.js (v14以上)
npmまたはyarn
Twitterアカウントの認証情報
インストール
このリポジトリをクローンする
依存関係をインストールします:
npm install
# or
yarn installルート ディレクトリに Twitter の認証情報を含む
.envファイルを作成します。
TWITTER_USERNAME=your_twitter_username
TWITTER_PASSWORD=your_twitter_password
TWITTER_EMAIL=your_email@example.com (optional)
TWITTER_2FA_SECRET=your_2fa_secret (optional)
# Optional API credentials (used as fallback)
TWITTER_API_KEY=your_api_key
TWITTER_API_SECRET_KEY=your_api_secret_key
TWITTER_ACCESS_TOKEN=your_access_token
TWITTER_ACCESS_TOKEN_SECRET=your_access_token_secret使用法
サーバーの実行
FastMCP CLI ツールを使用してサーバーを実行できます。
# For development and testing in the terminal
npx fastmcp dev
# For visual inspection with the MCP Inspector
npx fastmcp inspectツールの使用
ツイートを取得
ID でツイートを取得します。
パラメータ:
tweetId(文字列): 取得するツイートのID
例:
getTweet({"tweetId": "1734609533274853865"})ツイートを送信
Twitter に新しいツイートを投稿します。
パラメータ:
text(文字列): 送信するツイートのテキストコンテンツ
例:
sendTweet({"text": "Hello World from MCP!"})発達
このサーバーは以下を使用して構築されています:
FastMCP - MCP サーバーを構築するための TypeScript フレームワーク
agent-twitter-client - Twitterクライアントライブラリ
TypeScript コードをビルドするには:
npx tscライセンス
マサチューセッツ工科大学
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
X (formerly Twitter) posts, profiles, and search for AI agents. Free key, self-minted, no signup.
X / Twitter public post, comment, reply, user, and search tools.
X/Twitter reads, search, monitors and posting. Pay-per-call in USDC — no signup, no API keys.
Read-only public Twitter data and TweetAPI docs for AI agents. Not affiliated with X Corp.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceProvides 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.920MIT
- FlicenseNot gradedqualityDmaintenanceEnables LLM agents to interact with Twitter (X) for searching tweets, posting content with images, analyzing engagement, and extracting topics using the Twitter API.-
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to interact with Twitter/X through Playwright browser automation without requiring an official API key. It provides tools for posting content, searching tweets, reading feeds, and managing social interactions like follows and likes.3MIT
- AlicenseNot gradedqualityDmaintenanceProvides AI agents and coding assistants with Twitter data access including tweets, user profiles, followers, and search functionality.MIT