SuperAPI AI Directory

macrocosmos-mcp

🎖️ 🐍 ☁️ - Real-time X, Reddit and YouTube data with filtering by search phrase, user and date.

Open website

About this tool

Macrocosmos MCP is the official Model Context Protocol (MCP) server provided by Macrocosmos for interacting with X (Twitter) and Reddit, with data powered by the Data Universe (SN13) subnet on Bittensor. This server enables MCP clients such as Claude Desktop, Cursor, Windsurf, and OpenAI Agents to obtain real-time social media data.

Purpose

This tool is designed for scenarios that require real-time or large-scale social media data, such as sentiment analysis, trend tracking, and user behavior research. Through the MCP protocol, AI clients can directly call the tools it provides to query and collect data.

Main Capabilities

The server provides the following tools:

  1. query_on_demand_data: Real-time social media queries that can obtain real-time data from X and Reddit, suitable for quick queries of up to 1000 results.
  2. create_gravity_task: Large-scale data collection, creating a 7-day Gravity task to collect large datasets, suitable for scenarios requiring more than 1000 results. Note: For X (Twitter), topics must start with # or $ (e.g., #ai, $BTC); plain keywords will be rejected.
  3. get_gravity_task_status: Check collection progress, returning task status, crawler ID, number of records collected, and bytes collected.
  4. build_dataset: Build a dataset from collected data before the 7 days are complete. Warning: This operation stops the crawler and deregisters it from the network.
  5. get_dataset_status: Check dataset build progress and obtain a download link when ready. Returns build status (10 steps) and, upon completion, provides a download URL for the Parquet file.
  6. cancel_gravity_task: Stop a running Gravity task.
  7. cancel_dataset: Cancel dataset building or clear a completed dataset.

Usage

Quick start (using Claude Desktop as an example):

  1. Obtain an API key from Macrocosmos. A free tier with $5 in credits is officially provided.
  2. Install uv (Python package manager), installation command: curl -LsSf https://astral.sh/uv/install.sh | sh, or refer to the uv repository for other installation methods.
  3. In Claude, go to Settings > Developer > Edit Config > claude_desktop_config.json and add the corresponding configuration.

Applicable Scenarios

  • On-demand queries: for example, "What did @elonmusk post today?" "Get the latest posts from r/bittensor about dTAO" "Get 50 tweets about #AI from the past week."
  • Large-scale collection: for example, "Create a Gravity task to collect #Bittensor tweets for the next 7 days" "Start collecting data from r/MachineLearning about neural networks."
  • Dataset building and download: for example, "Build a dataset with 5000 rows from my Bittensor crawler" "Is my dataset ready for download?"

Limitations

  • On-demand queries return at most about 1000 results; beyond that, a Gravity task must be used.
  • The Gravity task collection period is 7 days.
  • For X (Twitter), topics must start with # or $; plain keywords will be rejected.
  • Building a dataset stops the crawler and deregisters it from the network.
  • An API key is required; the free tier includes $5 in credits.
  • The project uses the MIT license.