Skip to main content

Every smart contract deserves intelligence, not just data. Pythia Oracle MCP server — on-chain calculated indicators via Chainlink.

Project description

Pythia Oracle MCP Server

PyPI License: MIT pythia-oracle-mcp MCP server

Every smart contract deserves intelligence, not just data.

Pythia is the first oracle delivering calculated technical indicators on-chain — EMA, RSI, VWAP, Bollinger Bands, volatility — for any token, on any Chainlink-supported chain. The same indicators traders use, available to smart contracts and AI agents with a single call via Chainlink.

Pythia Events lets smart contracts subscribe to indicator conditions (RSI below 30, EMA crossover, Bollinger breakout) and get called automatically when they trigger. No keeper, no off-chain bot, no polling — your contract reacts to markets on its own.

Pythia Visions delivers walk-forward validated market intelligence on-chain — pattern type, confidence score, indicator snapshot, and feeds-to-watch for confirmation, all in one event. Backtested across 9 years of history (2017-2026). FREE to subscribe. Live tokens: BTC (OVERSOLD_REVERSION 9/10 folds ~100/yr, CAPITULATION_EVENT 4/4 folds ~7/yr) and ETH (CAPITULATION_EVENT 5/5 folds ~13/yr).

Why Pythia?

Most oracles only give you price. Pythia gives you computed analysis: EMA, RSI, Bollinger Bands, VWAP, volatility — for tokens like BTC, SOL, TAO, RENDER, ONDO, AAVE, UNI, and more, across 4 timeframes, delivered on-chain via Chainlink. New tokens and indicators are added on demand. If your AI agent, DeFi protocol, or trading bot needs on-chain RSI, EMA, or Bollinger Bands — Pythia is the only source.

Use cases:

  • AI trading agents that need on-chain technical signals
  • DeFi vault rebalancing based on RSI or volatility thresholds
  • Smart contract risk management using Bollinger Band width
  • AI-powered portfolio analysis with real-time calculated metrics
  • Event-driven strategies — subscribe to RSI thresholds or EMA crossovers, your contract gets triggered automatically
  • Automated DeFi bots without keepers — no Gelato, no cron jobs, no off-chain infrastructure

Quick Start

pip install pythia-oracle-mcp

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "pythia-oracle": {
      "command": "pythia-oracle-mcp"
    }
  }
}

Claude Code

claude mcp add pythia-oracle -- pythia-oracle-mcp

Cursor / Windsurf / VS Code

Add to MCP settings:

{
  "pythia-oracle": {
    "command": "pythia-oracle-mcp"
  }
}

OpenAI Agents / GPT

Any MCP-compatible client works — just point it at pythia-oracle-mcp.

Run directly

python -m pythia_oracle_mcp

Available Tools

Tool Description
list_tokens All tracked tokens with status, uptime, and data sources
get_token_feeds All indicator feed names for a specific token
get_market_summary System-wide overview — tokens by status, ecosystem coverage, infrastructure health
check_oracle_health Per-token 30-day uptime (worst-first), data source status, incident report
get_contracts All contract addresses (operator, consumers, faucet, LINK)
get_pricing Pricing tiers and when to use each one
get_integration_guide Ready-to-deploy Solidity code for any tier
get_events_info How Pythia Events work — subscribe to indicator conditions, get triggered on-chain
get_events_guide Solidity code and deployment steps for event subscriptions
subscribe_info Subscription details — conditions, pricing, refund mechanics
get_visions_info Pythia Visions overview — walk-forward validated patterns, fire-frequency disclosure, contract address
get_visions_guide Solidity code to subscribe to Visions and listen for VisionFired events
get_vision_history Recent Visions fired for a token with pattern breakdown and confidence stats
get_vision_payload Full enriched object for a fired Vision — failure profile, cooldown context, concurrent fires
lookup_event_feed Reverse-lookup an Event feedId (bytes32) to its human-readable feed name
list_subscriptions Enumerate active Pythia Event subscriptions for an owner address
get_feed_value Latest computed value for any Pythia indicator feed (off-chain cache)

Example Prompts

Ask your AI agent:

"What indicators does Pythia have for Bitcoin?"

Calls get_token_feeds("bitcoin") — returns all indicator feeds for Bitcoin, grouped by type.

"Is Pythia reliable enough to integrate?"

Calls check_oracle_health() — returns per-token uptime, data source health, and active incidents.

"Give me a Solidity contract to consume Pythia's speed bundle"

Calls get_integration_guide("speed") — returns a complete, deployable contract with correct addresses and job IDs.

"What tokens does Pythia cover and are they all working?"

Calls get_market_summary() — returns ecosystem coverage, status breakdown, and infrastructure health.

"How do Pythia Events work? I want my contract to react when BTC RSI drops below 30."

Calls get_events_info() — returns how subscriptions work, supported conditions, and pricing.

"Give me the Solidity code to subscribe to an EMA crossover event."

Calls get_events_guide() — returns a deployable EventSubscriber contract with subscribe/receive pattern.

"What are Pythia Visions? What patterns does it detect?"

Calls get_visions_info() — returns walk-forward validated patterns with accuracy range, fire frequency, contract address, and how it works.

"Show me recent BTC Visions that fired"

Calls get_vision_history("BTC") — returns recent pattern detections with confidence and price.

"Give me Solidity code to subscribe to Pythia Visions"

Calls get_visions_guide() — returns a contract that subscribes to VisionFired events.

What Pythia Provides

  • Any token, any Chainlink-supported chain — currently serving BTC, SOL, TAO, RENDER, ONDO, AAVE, UNI, MORPHO, and more, with new tokens added on demand
  • 6 indicator types: EMA, RSI, Bollinger Bands (upper/lower), VWAP, Volatility, USD Price
  • 4 timeframes: 5-minute, 1-hour, 1-day, 1-week
  • 4 pricing tiers: Discovery (0.01 LINK), Analysis (0.02), Speed (0.05), Complete (0.10)
  • Free trial: PythiaFaucet contract — no LINK needed, 5 requests/day
  • Pythia Events: Subscribe to indicator conditions (ABOVE/BELOW thresholds) — your contract gets called when they trigger. Prepaid in LINK, unused time refunded on cancel or fire. No keeper infrastructure needed.
  • Pythia Visions: Walk-forward validated market intelligence on-chain — pattern type + confidence + indicator snapshot + feeds-to-watch, delivered via Chainlink. FREE to subscribe. Live: BTC (OVERSOLD_REVERSION, CAPITULATION_EVENT) and ETH (CAPITULATION_EVENT).

Integration Examples

See pythia-oracle-examples for Solidity contracts with Hardhat setup — ready to deploy on any Chainlink-supported network.

Links

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pythia_oracle_mcp-0.8.0.tar.gz (22.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pythia_oracle_mcp-0.8.0-py3-none-any.whl (22.4 kB view details)

Uploaded Python 3

File details

Details for the file pythia_oracle_mcp-0.8.0.tar.gz.

File metadata

  • Download URL: pythia_oracle_mcp-0.8.0.tar.gz
  • Upload date:
  • Size: 22.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for pythia_oracle_mcp-0.8.0.tar.gz
Algorithm Hash digest
SHA256 0f0286a34b4e2487fc297445693bb212112bb1b2bd896a4b1770431ef17a539c
MD5 65511682ca648b0e968035229a4ae0bf
BLAKE2b-256 d62e4383dfa70f8a581762cb64a7d2a9b58a6442416119538101c6346c471ff8

See more details on using hashes here.

File details

Details for the file pythia_oracle_mcp-0.8.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pythia_oracle_mcp-0.8.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dc90ac1fd77175a17f10f560af8648d66aade99dcab41c9d7878d927878056af
MD5 aaabc01c0ad80eb8abe3d6781d3d35bf
BLAKE2b-256 793fb57eaf41194f354dbf6a59c5748bead4d9ab07b7258088a4029cbabc8f83

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page