Repository avatar
AI Tools
v2.1.1
active

rdx-data-mcp

io.github.dautonb/rdx-data-mcp

Pay-per-call crypto, macro FX, security and web data for AI agents via Skyfire or Base USDC.

Documentation

rdx-data-mcp

An MCP server that gives autonomous AI agents (Claude Code, Claude Desktop, Cursor, Windsurf, OpenAI Agents) one tool gateway to the RDX Data Network at rdxdata.xyz: live crypto and macro data, Web3 security, web utilities, commodities and travel.

Agents discover the tools for free, then pay per call (from $0.001 to $0.10 USDC) with no human in the loop. Payment is settled under the hood through either rail:

  • Skyfire: set SKYFIRE_API_KEY. Supports kya (free preview), pay and kya-pay tokens.
  • Coinbase x402 v2 / AgentCash: set BUYER_PRIVATE_KEY. Pays in USDC on Base mainnet.

25 paid tools across 23 *.rdxdata.xyz services, plus 1 free discovery tool (list_rdx_catalog). Two services expose two tools each: sandbox (math + quant) and macro-fx (FX rates + conversion).

What's new

2.1.1: adds the MCP Registry ownership marker and server.json (no code changes).

2.1.0:

  • macro-fx.rdxdata.xyz: get_global_fx_and_macro_rates and convert_fiat_currency_pair (the RDX Global FX & Macro Oracle).
  • doc-parse.rdxdata.xyz: parse_remote_pdf_document.
  • domain-trust.rdxdata.xyz: audit_domain_trust_and_ssl.
  • Request timeout raised from 20 s to 25 s.

Services and tools

Market & Trading Alpha

ToolServiceCost (USDC)What it returns
get_crypto_market_pulsepulse$0.001 (free with Skyfire KYA)BTC/ETH/SOL prices, Fear & Greed Index, dominance
get_global_fx_and_macro_ratesmacro-fx$0.005ECB and central-bank FX rates plus World Bank CPI inflation and GDP growth
convert_fiat_currency_pairmacro-fx$0.005Exact cross-rate conversion between two fiat currencies
get_expired_domains_alphadomains$0.02AI-scored high-value pending-delete domains
get_social_sentiment_velocitysentiment$0.03Hacker News, GitHub and crypto narrative velocity
get_web3_grants_and_airdrop_alphaalpha$0.03Tokenless high-TVL protocols and open dev bounties
get_prediction_market_arbitragepredict$0.05Polymarket vs Kalshi matched-event spreads
get_rwa_premium_analyticsrwa$0.05Ondo / PAXG NAV premium or discount and liquidity
get_dex_stablecoin_arbitragedex$0.05Cross-chain USDC/USDT de-pegs and DEX routes
get_funding_rate_arbitragefunding$0.10BTC/ETH/SOL perp funding spreads (Binance, Hyperliquid, dYdX)

Web3 Security & Infrastructure

ToolServiceCost (USDC)What it returns
score_web3_wallet_intelligencewallet-intel$0.01Base/ETH balance, tx history, Sybil and persona trust score
get_cross_chain_gas_and_mev_oraclegas$0.01Base, Arbitrum, Optimism, Solana, ETH gas and MEV risk
audit_smart_contract_securitysecurity$0.02Base/Solana honeypot and rug-pull scanner
get_depin_gpu_compute_pricescompute$0.02H100, A100, RTX 4090 prices across io.net, Akash, Render

AI & Web Utilities

ToolServiceCost (USDC)What it returns
evaluate_math_or_quant_expressionsandbox$0.002Deterministic SymPy/NumPy math results
calculate_quant_finance_modelsandbox$0.002Kelly Criterion, AMM slippage, compound APY, Black-Scholes
extract_clean_web_markdownreader$0.005Any webpage as clean, LLM-ready Markdown
audit_package_dependencydeps$0.005CVEs via OSV.dev plus latest registry version
audit_domain_trust_and_ssldomain-trust$0.005RDAP domain age, TLS/SSL validity, SPF/DMARC, URLhaus phishing status
parse_remote_pdf_documentdoc-parse$0.01Page-by-page text and metadata from any public PDF URL
verify_citation_or_urlverify$0.01URL liveness and Crossref/Wikipedia grounding
check_product_price_and_stockprice-watch$0.01Real-time Schema.org/OpenGraph price and inventory
get_llm_cost_routing_recommendationsllm-router$0.01Cheapest high-performing LLM per task

Commodities & Travel

ToolServiceCost (USDC)What it returns
get_global_coffee_commoditiescoffee$0.01Arabica, Robusta, Vietnam farmgate (VND/kg)
get_travel_flash_dealstravel$0.05Flight error fares and hotel discounts

Every service lives at https://<service>.rdxdata.xyz. Call list_rdx_catalog first (free): it returns every endpoint, price and data-freshness note, and reports whether a payment method is configured.

Install

# no install needed with uv
uvx rdx-data-mcp

# or with pip
pip install rdx-data-mcp
rdx-data-mcp

Python 3.10+. Set SKYFIRE_API_KEY, BUYER_PRIVATE_KEY, or both (Skyfire is tried first). Blank values are treated as unset.

Claude Desktop

Edit claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\):

{
  "mcpServers": {
    "rdx-data": {
      "command": "uvx",
      "args": ["rdx-data-mcp"],
      "env": {
        "SKYFIRE_API_KEY": "your_skyfire_buyer_agent_api_key",
        "BUYER_PRIVATE_KEY": "",
        "BASE_RPC_URL": "https://rpc.ankr.com/base"
      }
    }
  }
}

Claude Code

claude mcp add rdx-data -e SKYFIRE_API_KEY=your_skyfire_buyer_agent_api_key -- uvx rdx-data-mcp

Cursor

Add to ~/.cursor/mcp.json (or .cursor/mcp.json in a project):

{
  "mcpServers": {
    "rdx-data": {
      "command": "uvx",
      "args": ["rdx-data-mcp"],
      "env": {
        "BUYER_PRIVATE_KEY": "0xyour_dedicated_wallet_private_key"
      }
    }
  }
}

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

{
  "mcpServers": {
    "rdx-data": {
      "command": "uvx",
      "args": ["rdx-data-mcp"],
      "env": {
        "SKYFIRE_API_KEY": "your_skyfire_buyer_agent_api_key"
      }
    }
  }
}

pip install (any client)

{
  "mcpServers": {
    "rdx-data": {
      "command": "rdx-data-mcp",
      "env": {
        "SKYFIRE_API_KEY": "your_skyfire_buyer_agent_api_key"
      }
    }
  }
}

OpenAI Agents SDK

from agents import Agent
from agents.mcp import MCPServerStdio

async with MCPServerStdio(
    params={"command": "uvx", "args": ["rdx-data-mcp"], "env": {"SKYFIRE_API_KEY": "..."}}
) as rdx:
    agent = Agent(name="Analyst", instructions="Use RDX tools for live data.", mcp_servers=[rdx])

Pricing

Every call is priced in USDC. There is no subscription.

Price per callTools
Freelist_rdx_catalog
$0.001 (free with Skyfire KYA)get_crypto_market_pulse
$0.002evaluate_math_or_quant_expression, calculate_quant_finance_model
$0.005extract_clean_web_markdown, audit_package_dependency, audit_domain_trust_and_ssl, get_global_fx_and_macro_rates, convert_fiat_currency_pair
$0.01parse_remote_pdf_document, verify_citation_or_url, check_product_price_and_stock, score_web3_wallet_intelligence, get_cross_chain_gas_and_mev_oracle, get_llm_cost_routing_recommendations, get_global_coffee_commodities
$0.02audit_smart_contract_security, get_depin_gpu_compute_prices, get_expired_domains_alpha
$0.03get_social_sentiment_velocity, get_web3_grants_and_airdrop_alpha
$0.05get_prediction_market_arbitrage, get_rwa_premium_analytics, get_dex_stablecoin_arbitrage, get_travel_flash_deals
$0.10get_funding_rate_arbitrage

Free kya preview tier

A Skyfire kya (identity-only) token costs nothing. get_crypto_market_pulse always uses one. Several other services also return a free preview or sample to kya tokens (for example FX majors on macro-fx, a PDF preview on doc-parse, a two-chain sample on gas). By default the server requests full paid results with a kya-pay token; set RDX_SKYFIRE_TOKEN_TYPE=kya to request previews on every call instead.

Funding a payment method

Option A: Skyfire (recommended)

  1. Create an account at skyfire.xyz and a Buyer agent (docs: docs.skyfire.xyz).
  2. Fund the Buyer agent's wallet with USDC.
  3. Copy the Buyer agent API key into SKYFIRE_API_KEY.

The server asks Skyfire for a token sized to the call price and sends it to the RDX service in the kyapay-token header.

Skyfire tokens for services listed in the Skyfire Directory need the seller's service ID unless your Skyfire account belongs to an organization. Provide IDs with RDX_SKYFIRE_SERVICE_IDS, a JSON map keyed by sub-domain, for example {"pulse": "<service-id>", "macro-fx": "<service-id>", "doc-parse": "<service-id>"}. If Skyfire fails for any reason, the server falls back to x402 when BUYER_PRIVATE_KEY is set.

Option B: Base USDC wallet (x402 / AgentCash)

  1. Create a dedicated wallet for the agent. Never reuse a main wallet.
  2. Send it USDC on Base mainnet (contract 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913) plus a few cents of ETH on Base for gas. Most exchanges that support Base withdrawals work.
  3. Put the wallet's private key in BUYER_PRIVATE_KEY.

How payment works

  1. Skyfire first: if SKYFIRE_API_KEY is set, a token is created and the request is sent with kyapay-token.
  2. If Skyfire is not configured, or the service answers 401/402, the request is sent unauthenticated.
  3. On HTTP 402 the invoice (asset, payTo, amount) is decoded from the Base64 Payment-Required header, or from the JSON body.
  4. No BUYER_PRIVATE_KEY: the tool returns a structured payment_required result with the decoded invoice and exact setup steps.
  5. With BUYER_PRIVATE_KEY: an ERC-20 USDC transfer is sent on Base (chain id 8453), the server waits 6 seconds, then retries the identical request with X-402-Payment-Receipt: <tx hash>.

Every request times out after 25 seconds. Successful results include an _rdx_payment field showing the protocol used and, for x402, the transaction hash. If a payment is sent but the service has not accepted the receipt yet, the tool says so and an identical retry re-submits the saved receipt instead of paying again.

Safety

An autonomous wallet needs guard rails, so these are built in:

  • Only https://*.rdxdata.xyz is ever called or paid.
  • Only USDC on Base mainnet is ever sent. Testnet or other-asset invoices are refused.
  • Each payment is capped at 0.25 USDC by default (RDX_MAX_PAYMENT_USDC). Larger invoices are refused and nothing is paid.
  • On-chain sends are serialized so concurrent calls cannot collide on the wallet nonce.
  • Private keys and Skyfire keys are never logged or returned in results. Logs go to stderr.
  • Tool inputs are validated before any request is made.

Use a wallet that holds only what you are willing to spend.

Configuration

VariableDefaultPurpose
SKYFIRE_API_KEYunsetSkyfire Buyer agent API key (payment rail 1)
BUYER_PRIVATE_KEYunsetHex private key of a Base wallet holding USDC (payment rail 2)
BASE_RPC_URLhttps://rpc.ankr.com/baseBase mainnet RPC. https://mainnet.base.org is used as a fallback
RDX_MAX_PAYMENT_USDC0.25Per-call payment cap
RDX_SKYFIRE_TOKEN_TYPEautoForce kya, pay or kya-pay for every call
RDX_SKYFIRE_SERVICE_IDSunsetJSON map of sub-domain to Skyfire seller service ID
SKYFIRE_API_BASEhttps://api.skyfire.xyzSkyfire API base URL
RDX_ALLOW_CUSTOM_HOSTSunsetSet to 1 to allow non-rdxdata.xyz hosts (self-hosting, testing)
RDX_LOG_LEVELWARNINGLog level (stderr)

Development

python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
pytest -q

# try it interactively
npx @modelcontextprotocol/inspector rdx-data-mcp

Layout:

src/rdx_data_mcp/
  catalog.py   endpoints, prices, categories (single source of truth)
  payment.py   Skyfire + x402 payment client
  server.py    MCP server and the 26 tools
tests/         payment-flow and tool-mapping tests (no network needed)

Publishing

python -m build && twine check dist/* && twine upload dist/*

The official MCP Registry name is io.github.dautonb/rdx-data-mcp (metadata in server.json). After the matching version is live on PyPI:

mcp-publisher validate
mcp-publisher login github
mcp-publisher publish

The Dockerfile also lets container-based directories such as Glama.ai build and start the server over stdio.

License

MIT

PYPI
rdx-data-mcp
Install Command
pip install rdx-data-mcp