0T

0xgval/twitter-x-mcp-server

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

23 stars 7 forks 品質 55 トレンド 0

Claude MCP用のXツール:Claudeが自然言語で検索し、ユーザーの意図に基づいて結果を表示するための軽量ツールキット。 生のツイートデータやAI分析から選択できます.

概要

Claudeが自然言語でTwitterを効率的に検索し、ユーザーの意図に基づいて結果を表示することを可能にする軽量でオープンソースのツールキット。 生データ閲覧とオプション解析の両方に設計されています。 - : 普通の英語でTwitterを検索するためにClaudeを尋ねる - : 自然言語または高度なを使用してツイートを検索する Twitterの構文 - : クリーンで、マークダウン形式のツイート表示 - : 要求するものに基づいて、生のツイートを表示したり、分析を追加 - : キーワード、ユーザー、日付、エンゲージメントメトリックでツイートを見つけます。 - : 必要に応じて、検索ごとにデフォルトの20ツイート以上を取得します - Node.js v16 + - デスクトップ用のClaude - "古いバードAPI"(Twitter154)エンドポイントにアクセスできる無料のRapidAPIキー 1。 RapidAPI 2で古いバードAPIにアクセスします。 1つを持っていない場合は、RapidAPIアカウントにサインアップしてください。 API を購読する(利用可能な無料のティアです) 4。 サブスクリプションが完了したら、ダッシュボードから RapidAPI キーをコピーします。 3. : - claudeデスクトップディレクトリのmcp.json.exampleをmcp.jsonにコピー - mcp.jsonを編集します.

概要(AI 翻訳)

Claudeが自然言語でTwitterを効率的に検索し、ユーザーの意図に基づいて結果を表示することを可能にする軽量でオープンソースのツールキット。 生データ閲覧とオプション解析の両方に設計されています。

##特徴

-Natural Language Search:Claudeに申し込む -Twitter検索: 自然言語または高度なTwitterの構文を使用してツイートを検索する -プロフェッショナルフォーマット:クリーンでマークダウンフォーマットされたツイート表示

  • 適用範囲が広い出力: 生ツイートを表示したり、要求する内容に基づいて分析を追加したりする -高度なフィルタリング:キーワード、ユーザー、日付、エンゲージメントメトリックなどのツイートを検索 -Pagination Support:必要に応じて、検索ごとにデフォルトの20ツイート以上を取得します

インストール

前提条件

  • Node.js v16+
  • デスクトップ用クロード
  • “旧鳥API”(Twitter154)エンドポイントにアクセスできる無料のRapidAPIキー

RapidAPI キー設定

1。 RapidAPIで古いバードAPIにアクセス 2。 1つを持っていない場合は、RapidAPIアカウントにサインアップ 3。 APIを購読します(利用可能な無料のティアです) 4。 購読したら、ダッシュボードからRapidAPIキーをコピーします

セットアップ手順

1.このリポジトリのクローン:

2.依存関係のインストール:

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

X Tools for Claude MCP

A lightweight, open-source toolkit that enables Claude to search Twitter efficiently with natural language and display results based on user intent. Designed for both raw data viewing and optional analysis.

Features

  • Natural Language Search: Ask Claude to search Twitter in plain English
  • Twitter Search: Search tweets using natural language or advanced Twitter syntax
  • Professional Formatting: Clean, markdown-formatted tweet display
  • Flexible Output: Display raw tweets or add analysis based on what you ask for
  • Advanced Filtering: Find tweets by keywords, users, dates, engagement metrics, and more
  • Pagination Support: Retrieve more than the default 20 tweets per search when needed

Installation

Prerequisites

  • Node.js v16+
  • Claude for Desktop
  • Free RapidAPI key with access to the “The Old Bird API” (Twitter154) endpoint

RapidAPI Key Setup

  1. Visit The Old Bird API on RapidAPI
  2. Sign up for a RapidAPI account if you don’t have one
  3. Subscribe to the API (there is a free tier available)
  4. Once subscribed, copy your RapidAPI key from your dashboard

Setup Steps

  1. Clone this repository:

    git clone https://github.com/0xGval/twitter-X-mcp-server
    cd twitter-X-mcp-tools
    
  2. Install dependencies:

    npm install
    
  3. Create your configuration:

    • Copy mcp.json.example to mcp.json in your Claude Desktop directory
    • Edit mcp.json to include your RapidAPI key and correct file paths
    {
      "mcpServers": {
        "x-tools": {
          "command": "node",
          "args": ["YOUR_ABSOLUTE_PATH_TO/main.js"],
          "env": {
            "RAPIDAPI_KEY": "your_rapidapi_key"
          }
        }
      }
    }
    
  4. Configure Claude for Desktop:

    • On Windows: Place your mcp.json file in %APPDATA%\Claude\
    • On macOS: Place your mcp.json file in ~/Library/Application Support/Claude/
    • Copy claude-rules.md and knowledge/TwitterSearchSyntaxGuide.txt to your Claude knowledge base directory
    • Restart Claude Desktop for the changes to take effect

Available Tools

The tool is primarily designed to be used with natural language. Simply ask Claude to search for something on Twitter, and it will interpret your request.

searchTwitter(query: "keyword", section: "latest", limit: 20)

Search Twitter using natural language or advanced syntax:

  • query: Search query (supports Twitter’s advanced search operators)
  • section: “latest” or “top” results (default: “latest”)
  • limit: Number of tweets to return (default: 20)

Natural Language Examples

Simple Query

Ask Claude:

Show me recent tweets about artificial intelligence

User-Focused Query

Ask Claude:

Find the latest tweets from Elon Musk that mention SpaceX

Complex Natural Query

Ask Claude:

GitHub で README 全文を見る

インストール

This server does not publish a one-line install command.

Open the repository installation guide MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "x-tools": { "command": "node", "args": ["YOUR_ABSOLUTE_PATH_TO/main.js"], "env": { "RAPIDAPI_KEY": "your_rapidapi_key" } } } }