mcp-twitter

by LuniaKunal

Twitter MCP サーバー

Twitter MCP (マルチチャンネル プラットフォーム) サーバーにようこそ! このアプリケーションは、さまざまな強力な機能を使用して、Twitter アカウントをプログラムで管理するのに役立ちます。

特徴

  • タイムラインを取得: Twitter のホーム タイムラインを取得します。
  • **任意のユーザーのツイートを取得:**公開されている Twitter ユーザーからのツイートを取得します。
  • **ハッシュタグ検索:**任意のハッシュタグ (例: #AI ) を含むツイートを検索します。
  • **返信と要約を取得:**ツイートへの返信を取得し、要約された洞察を取得します。
  • ユーザーダイレクトメッセージ: Twitter DM を送受信します。
  • **投稿を作成:**プログラムで新しいツイートを作成します。
  • 投稿を削除: API 経由でツイートを削除します。
  • その他にもいろいろあります...

はじめる

前提条件

  • Python 3.8以上
  • uvicorn (サーバー実行用)
  • Twitter API 認証情報 ( .envファイルで設定)

インストール

  1. このリポジトリをクローンします。
  2. 依存関係をインストールします:
    pip install -r requirements.txt
  3. Twitter API 資格情報を使用して.envファイルを設定します ( .env.exampleを参照)。

アプリケーションの実行

サーバーを起動するには、次のコマンドを実行します。

uv run --with twikit --with mcp Path\\src\\tweet_service.py
{ "mcpServers": { "twitter-mcp": { "command": "uv", "args": [ "--directory", "Path\\src\\", "run", "--with", "twikit", "--with", "mcp", "tweet_service.py" ], "env": { "COOKIES_PATH": "Path\\cookies.json", "ENV_FILE": ".env" } } } }

ぜひお気軽に貢献したり、新しい機能を提案してください。

-
security - not tested
-
license - not tested
-
quality - not tested

mcp-twitter

  1. Features
    1. Getting Started
      1. Prerequisites
      2. Installation
      3. Running the Application

    Related MCP Servers

    • -
      security
      F
      license
      -
      quality
      An MCP server that enables communication with users through Telegram. This server provides a tool to ask questions to users and receive their responses via a Telegram bot.
      Last updated -
      1
      16
      JavaScript
    • A
      security
      A
      license
      A
      quality
      A Model Context Protocol (MCP) server for managing social media posts, currently supporting X (formerly Twitter).
      Last updated -
      3
      7
      JavaScript
      MIT License
    • A
      security
      A
      license
      A
      quality
      An MCP server that allows Claude to create, manage and publish X/Twitter posts directly through the chat interface.
      Last updated -
      5
      35
      Python
      MIT License
      • Apple
    • A
      security
      A
      license
      A
      quality
      An MCP server that enables Claude to interact with Twitter, allowing for posting tweets and searching Twitter content.
      Last updated -
      2
      90
      151
      TypeScript
      MIT License
      • Apple

    View all related MCP servers

    ID: gmfu9bkmjl