Skip to main content
Glama

🚀 x402 Data Hub — Model Context Protocol (MCP) Server

Base L2 License: MIT Open Beta

An official Model Context Protocol (MCP) server that gives your AI agents (Claude Desktop, Cursor, Cline, etc.) native, real-time access to high-value developer datasets.

Instead of expensive monthly API subscriptions, agents pay exactly $0.01 USDC per query on the Base L2 network (completely bypassed during the Free Open Beta).


📊 Available Datasets & Tools

The server exposes three primary tools to your AI agent:

  1. list_datasets: Displays the database index.

  2. get_free_dataset: Accesses daily-updated developer datasets:

    • saas/ai-api-pricing: Live price-per-1M-tokens and context windows from OpenRouter (GPT-4o, Claude 3.5 Sonnet, Gemini Pro, DeepSeek V3, etc.).

    • events/v2ex-hot-topics: Trending developer discussions and hot topics.

  3. buy_premium_dataset: Accesses premium feeds:

    • finance/gas-tracker: Live EVM gas prices (in Gwei) on Base and Arbitrum.


Related MCP server: MCP Pool

🛠️ Setup Guide (3-Step Installation)

Step 1: Install Dependencies

Ensure you have Python installed, then install the MCP library:

pip install mcp

Step 2: Download the Server

Clone the repository to your local machine:

git clone https://github.com/alexchai-dev/cloudflare-data-hub.git

Step 3: Add to your AI Client

A. Claude Desktop

Add the following configuration to your claude_desktop_config.json (usually located at %APPDATA%\Claude\claude_desktop_config.json on Windows or ~/Library/Application Support/Claude/claude_desktop_config.json on macOS):

{
  "mcpServers": {
    "x402-data-hub": {
      "command": "python",
      "args": [
        "/path/to/cloudflare-data-hub/mcp_server.py"
      ]
    }
  }
}

(Replace /path/to/cloudflare-data-hub/mcp_server.py with the absolute path to your cloned repository).

B. Cursor IDE

  1. Open Cursor and go to Settings -> Models -> MCP.

  2. Click + Add New MCP Server.

  3. Fill in the fields:

    • Name: x402-data-hub

    • Type: stdio

    • Command: python /path/to/cloudflare-data-hub/mcp_server.py

  4. Click Save.


🔵 Web3 Micro-payments & Open Beta

  • Free Open Beta: Currently, the server is running with BETA_MODE = True. You can query all datasets (including premium ones) using any dummy string as the transaction hash (tx_hash).

  • On-Chain Mode: When beta ends, agents unlock premium feeds by signing a transaction of 0.01 USDC to our treasury wallet (0xB23B0d7d25113E991D2931Ca147677A5b5Da40E4) on Base L2 and passing the tx_hash to the tool.


📄 License

This project is open-source and licensed under the MIT License.

F
license - not found
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Related MCP Servers

  • F
    license
    -
    quality
    D
    maintenance
    A Model Context Protocol server that provides AI models with structured access to external data and services, acting as a bridge between AI assistants and applications, databases, and APIs in a standardized, secure way.
    2
  • A
    license
    A
    quality
    A
    maintenance
    A curated collection of Model Context Protocol (MCP) servers for popular SaaS platforms — Stripe, Sentry, Notion, Linear, Datadog, Vercel, PagerDuty, HubSpot, Intercom, Shopify, Google Workspace
    28
    1
    MIT
  • A
    license
    A
    quality
    C
    maintenance
    Real-time AI industry intelligence MCP server. 6 free tools (news, status, pricing, today summary, agent activity, MCP registry snapshot) plus 13 paid tools (routing, news search, history series, cost projection, deep-dive, comparison, webhook watches). Pay-per-call in USDC on Base, no accounts.
    25
    39
    2
    MIT

View all related MCP servers

Related MCP Connectors

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/alexchai-dev/cloudflare-data-hub'

If you have feedback or need assistance with the MCP directory API, please join our Discord server