
taazkareem/twitter-mcp-server
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
Twitter MCPサーバーのリポジトリ
概要
モデルコンテクストプロトコル(MCP)規格を活用するAIエージェントの強力なTwitter統合により、クリーンで一貫性のあるインターフェイスにより、Twitter機能の包括的なセットを提供します。 このサーバーは、MCP ツールを使用して Twitter の機能にアクセスし、AI アシスタントやその他の MCP 互換クライアントとのシームレスな統合を可能にします。 エージェントのtwitter-clientライブラリの上に構築され、堅牢なエラー処理、レート制限、一貫性のある応答フォーマットを提供します。 - メディアサポートでユーザーからツイートを取得する - 詳細な情報でユーザープロファイルをフェッチ - ハッシュタグまたはキーワードでツイートを検索 - 最新の/トップによるフィルタ検索結果 - レート制限(リクエストごとに最大50ツイート) - いいね/Unlike ツイート - リツイート/Undo リツイート - 投稿ツイート: - テキストコンテンツ - メディア添付ファイル(画像、ビデオ) - 応答機能 - 引用ツイート機能 - ユーザー関係(フォロワー/フォロー)を取得する - トレンドトピック - 異なるタイムラインの種類にアクセス - ホームタイムライン -...
概要(AI 翻訳)
モデルコンテクストプロトコル(MCP)規格を活用するAIエージェントの強力なTwitter統合により、クリーンで一貫性のあるインターフェイスにより、Twitter機能の包括的なセットを提供します。
概要
このサーバーは、MCP ツールを使用して Twitter の機能にアクセスし、AI アシスタントやその他の MCP 互換クライアントとのシームレスな統合を可能にします。 agent-twitter-clientライブラリの上に構築され、堅牢なエラー処理、レート制限、一貫性のある応答フォーマットを提供します。
##特徴
基本的な読書
- メディアサポートでユーザーからツイートを取得する
- 詳細な情報でユーザープロファイルをフェッチ -ハッシュタグやキーワードでツイートを検索する
- 最新/トップのフィルター検索結果
- レート制限(リクエストごとに最大50ツイート)
ユーザーインタラクション
- いいね/Unlike ツイート
- リツイート/リツイート解除
- ツイートを投稿する:
- テキストコンテンツ
- メディア添付ファイル(画像、動画)
- 応答機能
- 引用ツイート機能
高度な機能
- ユーザー関係の取得(フォロワー/フォロー)
- トレンドトピックをフェッチ
- 別のタイムライン タイプにアクセスして下さい:
- ホームタイムライン
- フォロータイムライン
- ユーザータイムライン
- リスト管理(フェッチリストツイート)
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
Twitter MCP Server
A powerful Twitter integration for AI agents that leverages the Model Context Protocol (MCP) standard, providing a comprehensive set of Twitter functionality through a clean and consistent interface.
Overview
This server provides access to Twitter’s features through MCP tools, allowing seamless integration with AI assistants and other MCP-compatible clients. It’s built on top of the agent-twitter-client library and provides robust error handling, rate limiting, and consistent response formatting.
Features
Basic Reading
- Get tweets from users with media support
- Fetch user profiles with detailed information
- Search tweets by hashtags or keywords
- Filter search results by latest/top
- Rate limiting (max 50 tweets per request)
User Interactions
- Like/Unlike tweets
- Retweet/Undo retweet
- Post tweets with:
- Text content
- Media attachments (images, videos)
- Reply functionality
- Quote tweet capability
Advanced Features
- Get user relationships (followers/following)
- Fetch trending topics
- Access different timeline types:
- Home timeline
- Following timeline
- User timeline
- List management (fetch list tweets)
Media & Advanced Interactions
- Media handling:
- Image upload (JPEG, PNG, GIF)
- Video upload (MP4)
- Alt text support
- Thread creation
- Follow/Unfollow users
Tools
Reading Tools
get_tweets- Fetch recent tweets from a userget_profile- Get a user’s profile informationsearch_tweets- Search for tweets by hashtag or keyword
Interaction Tools
like_tweet- Like or unlike a tweetretweet- Retweet or undo retweetpost_tweet- Post a new tweet with optional mediacreate_thread- Create a Twitter thread
Timeline Tools
get_timeline- Get tweets from different timeline typesget_list_tweets- Get tweets from a Twitter listget_trends- Get current trending topics
User Management Tools
get_user_relationships- Get followers or following listfollow_user- Follow or unfollow a user
Installation
- Install dependencies:
npm install
- Build the server:
npm run build
- Configure environment variables:
# 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_secret
- Add the server config to your MCP client:
On MacOS:
~/Library/Application Support/Claude/claude_desktop_config.json
On Windows:
%APPDATA%/Claude/claude_desktop_config.json
Configuration:
{
"mcpServers": {
"twitter-mcp-server": {
"command": "/path/to/twitter-mcp-server/build/index.js"
}
}
}
Development
For development with auto-rebuild:
インストール
This server does not publish a one-line install command.
Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →設定
{
"mcpServers": {
"twitter-mcp-server": {
"command": "/path/to/twitter-mcp-server/build/index.js"
}
}
}