Twitter MCP Server
Twitter MCP サーバー
モデル コンテキスト プロトコル (MCP) 標準を活用した AI エージェント向けの強力な Twitter 統合で、クリーンかつ一貫性のあるインターフェースを通じて包括的な Twitter 機能セットを提供します。
概要
このサーバーは、MCPツールを介してTwitterの機能へのアクセスを提供し、AIアシスタントやその他のMCP対応クライアントとのシームレスな統合を可能にします。agent agent-twitter-clientライブラリをベースに構築されており、堅牢なエラー処理、レート制限、一貫したレスポンスフォーマットを提供します。
Related MCP server: MCP Twitter
特徴
基本的な読み方
メディアサポートのあるユーザーからのツイートを取得する
詳細情報を含むユーザープロファイルを取得する
ハッシュタグやキーワードでツイートを検索する
検索結果を最新/上位でフィルタリング
レート制限(リクエストあたり最大50ツイート)
ユーザーインタラクション
ツイートにいいね/いいねを取り消す
リツイート/リツイート取り消し
次の内容でツイートを投稿します:
テキストコンテンツ
メディア添付ファイル(画像、動画)
返信機能
引用ツイート機能
高度な機能
ユーザー関係(フォロワー/フォロー中)を取得する
トレンドトピックを取得する
さまざまなタイムライン タイプにアクセスします。
ホームタイムライン
次のタイムライン
ユーザータイムライン
リスト管理(リストツイートの取得)
メディアと高度なインタラクション
メディア対応:
画像アップロード(JPEG、PNG、GIF)
動画アップロード(MP4)
代替テキストのサポート
スレッド作成
ユーザーのフォロー/フォロー解除
ツール
読書ツール
get_tweets- ユーザーの最近のツイートを取得するget_profile- ユーザーのプロフィール情報を取得するsearch_tweets- ハッシュタグまたはキーワードでツイートを検索
インタラクションツール
like_tweet- ツイートに「いいね」または「いいねを取り消す」retweet- リツイートまたはリツイートの取り消しpost_tweet- オプションのメディアを含む新しいツイートを投稿するcreate_thread- Twitter スレッドを作成する
タイムラインツール
get_timeline- さまざまなタイムラインタイプからツイートを取得するget_list_tweets- Twitterリストからツイートを取得するget_trends- 現在のトレンドトピックを取得する
ユーザー管理ツール
get_user_relationships- フォロワーまたはフォロー中のリストを取得するfollow_user- ユーザーをフォローまたはフォロー解除する
インストール
依存関係をインストールします:
npm installサーバーを構築します。
npm run build環境変数を設定します。
# Required: Twitter Account Credentials (for user authentication)
TWITTER_USERNAME=your_username
TWITTER_PASSWORD=your_password
TWITTER_EMAIL=your_email
# Twitter API Authentication (Optional)
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_secretMCP クライアントにサーバー設定を追加します。
MacOSの場合:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindowsの場合:
%APPDATA%/Claude/claude_desktop_config.json構成:
{
"mcpServers": {
"twitter-mcp-server": {
"command": "/path/to/twitter-mcp-server/build/index.js"
}
}
}発達
自動リビルドを使用した開発の場合:
npm run watchデバッグ
MCP サーバーは stdio 経由で通信するため、デバッグには MCP Inspector を使用できます。
npm run inspectorインスペクターは、ブラウザでデバッグ ツールにアクセスするための URL を提供します。
エラー処理
サーバーは包括的なエラー処理を実装します。
すべてのパラメータの入力検証
レート制限保護
詳細なエラーメッセージ
適切なエラー伝播
デバッグのためのログ記録
応答フォーマット
すべてのツールは一貫した形式で応答を返します。
{
content: [{
type: "text",
text: string // JSON stringified response or error message
}]
}貢献
貢献を歓迎します!お気軽にプルリクエストを送信してください。
ライセンス
MITライセンス - 詳細はLICENSEファイルを参照
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 Servers
- AlicenseBqualityDmaintenanceEnables interaction with Twitter through a Model Context Protocol, allowing large language models to post tweets, search for tweets, and reply to tweets.532425MIT
- AlicenseNot gradedqualityDmaintenanceA 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.1411MIT
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables AI agents to interact with Twitter without direct API access, supporting tweet operations, user interactions, and Grok AI integration.141,63632MIT
- FlicenseNot gradedqualityCmaintenanceA Model Context Protocol server that enables AI assistants to interact with Twitter functionality using cookie-based authentication, allowing for timeline access, tweet management, user information retrieval, and search capabilities.16
Related MCP Connectors
X (formerly Twitter) posts, profiles, and search for AI agents. Free key, self-minted, no signup.
Give your agent live data from Twitter, Reddit, the web and GitHub. No API keys, no scraping stack.
Connect any AI agent to 11+ social platforms: schedule, publish & track posts via hosted MCP.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/taazkareem/twitter-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server