Skip to main content
Glama
X(Twitter) MCP Server

X(Twitter) MCP Server

by vidhupv

X(Twitter) MCP サーバー

鍛冶屋のバッジ

Claude チャットを通じて X/Twitter 投稿を直接作成、管理、公開するための MCP サーバー。

クイックセットアップ

Smithery経由でインストール

Smithery経由で Claude Desktop に X(Twitter) MCP サーバーを自動的にインストールするには:

npx -y @smithery/cli install x-mcp --client claude

手動インストール

  1. リポジトリをクローンします。

git clone https://github.com/yourusername/x-mcp.git
  1. ターミナルで Homebrew を使用して UV をグローバルにインストールします。

brew install uv
  1. claude_desktop_config.json を作成します。

    • MacOSの場合: ~/Library/Application Support/Claude/ディレクトリを開き、その中にファイルを作成します。

    • Windowsの場合: %APPDATA%/Claude/ディレクトリを開き、その中にファイルを作成します。

  2. この構成を claude_desktop_config.json に追加します。

{
  "mcpServers": {
    "x_mcp": {
      "command": "uv",
      "args": [
        "--directory",
        "/path/to/x-mcp",
        "run",
        "x-mcp"
      ],
      "env": {
        "TWITTER_API_KEY": "your_api_key",
        "TWITTER_API_SECRET": "your_api_secret",
        "TWITTER_ACCESS_TOKEN": "your_access_token",
        "TWITTER_ACCESS_TOKEN_SECRET": "your_access_token_secret"
      }
    }
  }
}
  1. X/Twitter API 資格情報を取得します。

    • X API開発者ポータルへ移動

    • プロジェクトを作成する

    • ユーザー認証設定:読み取りと書き込みの権限を設定し、Webアプリの種類

    • コールバック URL をhttp://localhost/に設定し、ウェブサイト URL をhttp://example.com/に設定します。

    • キーとトークンのセクションからすべてのキーとトークンを生成してコピーします

  2. 設定ファイルを更新します。

    • /path/to/x-mcp実際のリポジトリパスに置き換えます。

    • X/Twitter API 認証情報を追加する

  3. クロードを完全に終了して再度開く

Related MCP server: thread-storm

使用例

  • 「『AI でツイートする方法を学んだ - 驚き!🤖✨』とツイート」

  • 「ピザの歴史についてのスレッドを作成」

  • 「下書きツイートを見せて」

  • 「この下書きを公開してください!」

  • 「その下書きを削除」

トラブルシューティング

動作しない場合:

  • UV がグローバルにインストールされていることを確認します (インストールされていない場合は、 pip uninstall uvでアンインストールし、 brew install uvで再インストールします)

  • またはUVパスを見つけてwhich uv``"command": "uv"フルパスに置き換えます

  • すべてのX/Twitter認証情報が正しいことを確認する

  • config の x-mcp パスが実際のリポジトリの場所と一致しているかどうかを確認します。

Available Tools

5 tools
create_draft_threadC

Create a draft tweet thread

Inputs: contents (required).

create_draft_tweetC

Create a draft tweet

Inputs: content (required).

delete_draftC

Delete a draft tweet or thread

Inputs: draft_id (required).

list_draftsB

List all draft tweets and threads

Inputs: no named parameters.

publish_draftC

Publish a draft tweet or thread

Inputs: draft_id (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 5 tools

    Disambiguation5/5

    Every tool has a clearly distinct purpose with no ambiguity. Tools are clearly separated by action (create, delete, list, publish) and target (draft tweet vs. draft thread where specified), making misselection unlikely.

    Naming Consistency5/5

    All tools follow a consistent verb_noun pattern (e.g., create_draft_thread, list_drafts). The naming is predictable and readable throughout the set, with no deviations in style.

    Tool Count5/5

    With 5 tools, the count is well-scoped for managing draft tweets and threads. Each tool earns its place, covering essential operations without bloat or thinness for this focused domain.

    Completeness4/5

    The toolset provides complete CRUD/lifecycle coverage for drafts (create, list, delete, publish), with minor gaps such as the inability to edit or update existing drafts, but agents can work around this by recreating drafts.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      B
      maintenance
      An MCP server that enables Claude to interact with Twitter, allowing for posting tweets and searching Twitter content.
      3
      503 npm
      411
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      MCP server for publishing threads to Threads and Twitter/X simultaneously from Claude Code. Journal your thoughts, convert them to viral threads, and post everywhere at once.
      13
      MIT