Skip to main content
Glama
pythia-oracle-mcp

pythia-oracle-mcp

Official

Pythia Oracle MCPサーバー

PyPI License: MIT pythia-oracle-mcp MCP server

すべてのスマートコントラクトは、単なるデータではなくインテリジェンスを享受すべきです。

Pythiaは、計算されたテクニカル指標(EMA、RSI、VWAP、ボリンジャーバンド、ボラティリティなど)を、Chainlinkがサポートするあらゆるチェーン上のあらゆるトークンに対してオンチェーンで提供する初のオラクルです。トレーダーが使用するのと同じ指標を、Chainlinkを介した単一の呼び出しでスマートコントラクトやAIエージェントが利用できます。

Pythia Eventsを使用すると、スマートコントラクトは指標の条件(RSIが30を下回る、EMAのクロスオーバー、ボリンジャーバンドのブレイクアウトなど)をサブスクライブし、条件がトリガーされた際に自動的に呼び出しを受けることができます。キーパーやオフチェーンボット、ポーリングは不要で、コントラクトが市場に自律的に反応します。

Pythia Visionsは、ウォークフォワード検証済みの市場インテリジェンス(パターンタイプ、信頼スコア、指標のスナップショット、確認のために監視すべきフィードなど)を、すべて1つのイベントでオンチェーンに提供します。9年間の履歴データでバックテスト済みです。サブスクリプションは無料です。精度統計と発生頻度を含む現在のライブトークンおよびパターンカタログについては、以下のMCPツールから get_visions_info を呼び出してください。

なぜPythiaなのか?

ほとんどのオラクルは価格のみを提供しますが、Pythiaは計算された分析を提供します。BTC、SOL、TAO、RENDER、ONDO、AAVE、UNIなどのトークンに対し、4つのタイムフレームでEMA、RSI、ボリンジャーバンド、VWAP、ボラティリティをChainlink経由でオンチェーン配信します。新しいトークンや指標はオンデマンドで追加されます。AIエージェント、DeFiプロトコル、またはトレーディングボットがオンチェーンのRSI、EMA、ボリンジャーバンドを必要とする場合、Pythiaが唯一のソースとなります。

ユースケース:

  • オンチェーンのテクニカルシグナルを必要とするAIトレーディングエージェント

  • RSIやボラティリティのしきい値に基づくDeFiボルトのリバランス

  • ボリンジャーバンドの幅を使用したスマートコントラクトのリスク管理

  • リアルタイムで計算された指標を用いたAI駆動のポートフォリオ分析

  • イベント駆動型戦略 — RSIのしきい値やEMAのクロスオーバーをサブスクライブし、コントラクトを自動的にトリガー

  • キーパー不要の自動化されたDeFiボット — Gelatoやcronジョブ、オフチェーンインフラは不要

Related MCP server: Crypto Indicators MCP Server

クイックスタート

pip install pythia-oracle-mcp

Claude Desktop

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

MCP設定に追加します:

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

OpenAI Agents / GPT

MCP互換クライアントであればどれでも動作します。pythia-oracle-mcp を指定するだけです。

直接実行

python -m pythia_oracle_mcp

利用可能なツール

ツール

説明

list_tokens

ステータス、稼働時間、データソースを含むすべての追跡トークン

get_token_feeds

特定のトークンのすべての指標フィード名

get_market_summary

システム全体の概要 — ステータス別のトークン、エコシステムのカバー範囲、インフラの健全性

check_oracle_health

トークンごとの30日間の稼働時間(ワースト順)、データソースのステータス、インシデントレポート

get_contracts

すべてのコントラクトアドレス(オペレーター、コンシューマー、ファセット、LINK)

get_pricing

料金プランとそれぞれの使用タイミング

get_integration_guide

あらゆるプランに対応したデプロイ可能なSolidityコード

get_events_info

Pythia Eventsの仕組み — 指標条件のサブスクライブとオンチェーンでのトリガー方法

get_events_guide

イベントサブスクリプションのためのSolidityコードとデプロイ手順

subscribe_info

サブスクリプションの詳細 — 条件、料金、返金メカニズム

get_visions_info

Pythia Visionsの概要 — ウォークフォワード検証済みパターン、発生頻度の開示、コントラクトアドレス

get_visions_guide

Visionsをサブスクライブし、VisionFiredイベントをリッスンするためのSolidityコード

get_vision_history

パターンの内訳と信頼統計を含む、トークンに対して発生した最近のVisions

get_vision_payload

発生したVisionの完全なエンリッチオブジェクト — 失敗プロファイル、クールダウンコンテキスト、同時発生

lookup_event_feed

イベントのfeedId (bytes32) から人間が読めるフィード名への逆引き

list_subscriptions

所有者アドレスに対するアクティブなPythia Eventサブスクリプションの列挙

get_feed_value

あらゆるPythia指標フィードの最新の計算値(オフチェーンキャッシュ)

プロンプト例

AIエージェントに尋ねてみてください:

"Pythiaはビットコインに対してどのような指標を持っていますか?"

get_token_feeds("bitcoin") を呼び出し、ビットコインのすべての指標フィードをタイプ別に返します。

"Pythiaは統合するのに十分信頼できますか?"

check_oracle_health() を呼び出し、トークンごとの稼働時間、データソースの健全性、アクティブなインシデントを返します。

"Pythiaのスピードバンドルを消費するためのSolidityコントラクトを教えて"

get_integration_guide("speed") を呼び出し、正しいアドレスとジョブIDを含む、デプロイ可能な完全なコントラクトを返します。

"Pythiaはどのトークンをカバーしており、それらはすべて正常に動作していますか?"

get_market_summary() を呼び出し、エコシステムのカバー範囲、ステータスの内訳、インフラの健全性を返します。

"Pythia Eventsはどのように機能しますか?BTCのRSIが30を下回ったときにコントラクトを反応させたいです。"

get_events_info() を呼び出し、サブスクリプションの仕組み、サポートされている条件、料金を返します。

"EMAクロスオーバーイベントをサブスクライブするためのSolidityコードを教えて"

get_events_guide() を呼び出し、サブスクライブ/受信パターンを備えたデプロイ可能なEventSubscriberコントラクトを返します。

"Pythia Visionsとは何ですか?どのようなパターンを検出しますか?"

get_visions_info() を呼び出し、精度範囲、発生頻度、コントラクトアドレス、仕組みを含むウォークフォワード検証済みパターンを返します。

"最近発生したBTCのVisionsを表示して"

get_vision_history("BTC") を呼び出し、信頼度と価格を含む最近のパターン検出結果を返します。

"Pythia VisionsをサブスクライブするためのSolidityコードを教えて"

get_visions_guide() を呼び出し、VisionFiredイベントをサブスクライブするコントラクトを返します。

Pythiaが提供するもの

  • あらゆるトークン、あらゆるChainlinkサポートチェーン — 現在、BTC、SOL、TAO、RENDER、ONDO、AAVE、UNI、MORPHOなどを提供しており、新しいトークンもオンデマンドで追加されます。

  • 6つの指標タイプ: EMA、RSI、ボリンジャーバンド(上限/下限)、VWAP、ボラティリティ、USD価格

  • 4つのタイムフレーム: 5分、1時間、1日、1週間

  • 4つの料金プラン: Discovery / Analysis / Speed / Complete — 現在のLINK料金については get_pricing を呼び出してください。

  • 無料トライアル: PythiaFaucetコントラクト — LINKは不要です。

  • Pythia Events: 指標条件(しきい値の上下)をサブスクライブ — 条件がトリガーされるとコントラクトが呼び出されます。LINKで前払いされ、キャンセルまたはトリガー時に未使用分は返金されます。キーパーインフラは不要です。

  • Pythia Visions: ウォークフォワード検証済みの市場インテリジェンスをオンチェーンで提供 — パターンタイプ + 信頼度 + 指標スナップショット + 監視すべきフィードをChainlink経由で配信。サブスクリプションは無料です。パターンのライブリストとトークンについては get_visions_info を呼び出してください。

データの鮮度

このMCPサーバーは、データエンジンによって15分ごとに更新されるライブステータスフィード https://pythia.c3x-solutions.com/feed-status.json のシンクライアントです。新しいトークン、新しいパターン、コントラクトアドレス、料金の変更は、次のデータエンジンサイクルから数秒以内にMCPツールに反映されます(パッケージの更新は不要です)。

ライブフィードに到達できない場合、MCPツールは古いデータを返すのではなく、明確なエラーを発生させます。しばらくしてから再試行するか、ステータスを確認してください。(v0.9.0以降、フェイルラウド方式を採用しています。以前のバージョンにあった、本番環境の状態から乖離する可能性のある組み込みのフォールバックは削除されました。)

統合例

Hardhatセットアップを備えたSolidityコントラクトについては、pythia-oracle-examples を参照してください。Chainlinkがサポートするあらゆるネットワークにデプロイ可能です。

リンク

ライセンス

MIT

Available Tools

18 tools
check_oracle_healthA

Check the reliability and uptime of Pythia's oracle system.

Returns per-token 30-day uptime (sorted worst-first so problems surface immediately), recent daily status history, data source health, and infrastructure status. Use this to verify Pythia's reliability before integrating or relying on its data.

Inputs: no named parameters. Returns: result

get_contractsA

Get Pythia contract addresses for on-chain integration. Shows all supported chains.

Inputs: no named parameters. Returns: result

get_events_guideA

Get Solidity code to subscribe to Pythia Events (indicator alerts).

Returns a complete contract that approves LINK, subscribes to an indicator alert, listens for PythiaEvent, and can cancel for a refund.

Inputs: no named parameters. Returns: result

get_events_infoA

Get overview of Pythia Events — on-chain indicator alert subscriptions.

Returns pricing, supported conditions, subscriber flow, registry addresses per chain, and current subscription stats. Events let you subscribe once and get notified when an indicator crosses a threshold.

Inputs: no named parameters. Returns: result

get_feed_valueA

Get the latest computed value of a Pythia indicator feed.

Reads from the live cache (feed_values table) populated by the indicator pipeline on every cycle. Off-chain AI agents use this when reasoning about a Vision context, choosing an Event threshold, or sanity-checking a feed's current level. On-chain consumers should request the value through oracle.request() to get a Chainlink-attested response — see get_integration_guide().

Args: feed_name: full feed name (e.g. 'bitcoin_RSI_1H_14', 'pol_EMA_5M_20').

Returns: Latest value + computed_at + chain, one block per chain if a feed exists on multiple chains. If the feed has no cached value, returns a diagnostic pointer (warm-up window, deactivated, or unknown name).

Inputs: feed_name (required). Returns: result

get_indicator_historyA

Read Pythia's public, immutable indicator history for a feed over a date range — and optionally settle a condition against it.

Backed by the free day-file archive at https://pythia.c3x-solutions.com/history/{chain}/{feed_name}/{YYYY-MM-DD}.json (one file per feed per closed UTC day, 5-minute points, never rewritten once published). Use it to audit or re-derive "was RSI below 30 at any point last week?", to reconstruct what a Vision or Event saw, to backtest a threshold before subscribing to an Event, or to settle a prediction-market style question from public inputs anyone can re-fetch and verify.

Args: feed_name: full feed name, same key as Feeds/Events (e.g. 'bitcoin_RSI_1D_14'). start_date: first UTC day, YYYY-MM-DD (inclusive). end_date: last UTC day, YYYY-MM-DD (inclusive). Defaults to start_date. At most 31 days per call — split longer ranges. chain: delivery chain the feed is archived for (e.g. 'polygon'). Only needed when the manifest lists the feed on more than one chain. condition: optional 'ABOVE' or 'BELOW' — with threshold, evaluates whether ANY point in the range satisfies it. threshold: numeric threshold for condition, in the feed's own units.

Returns: Per-day coverage (points, min, max, first, last), the range summary, the day-file URLs used (so a verifier can re-fetch the exact inputs), and — when condition+threshold are given — a verdict: TRUE (first matching timestamp + value), FALSE (full coverage, no match), or INSUFFICIENT_DATA (missing day-files or gaps large enough that FALSE cannot be asserted). Never interpolates across gaps.

Inputs: feed_name (required), start_date (required), chain, end_date, +2 more. Returns: result

get_integration_guideA

Get Solidity code to integrate Pythia into a smart contract.

Args: tier: 'discovery' (single value), 'analysis', 'speed', or 'complete'. chain: Optional chain key (e.g. 'mainnet', 'amoy', 'arbitrum'). When unset, the embedded Solidity uses the first available chain's addresses (Polygon mainnet by convention) and the prose lists every chain where this tier's consumer is deployed.

Inputs: tier, chain. Returns: result

get_market_summaryA

Get a summary of all tokens tracked by Pythia with operational overview.

Returns system-wide stats, tokens grouped by status, uptime distribution, data source health, and infrastructure status. Useful for quickly understanding what Pythia covers and whether the system is healthy.

Inputs: no named parameters. Returns: result

get_pricingA

Get Pythia pricing tiers and free trial info. Prices are live from the data feed.

Inputs: no named parameters. Returns: result

get_token_feedsA

Get all available indicator feeds for a specific token.

Shows every feed name (EMA, RSI, Bollinger, Volatility across all timeframes), the token's reliability stats, and data source count. Feed names are what you pass to the on-chain oracle to request data.

Args: engine_id: Token engine ID (e.g., 'bitcoin', 'solana', 'bittensor', 'aave', 'pol'). Use list_tokens() to see all available IDs.

Inputs: engine_id (required). Returns: result

get_vision_historyA

Get recent Pythia Visions fired for a token with pattern breakdown and stats.

Args: token: Token symbol to check (default: BTC). Case-insensitive. Currently live: BTC, ETH.

Inputs: token. Returns: result

get_vision_payloadA

Get the full enriched object for a fired Pythia Vision by id.

Returns the rich AI-facing companion to the on-chain VisionFired event: pattern metadata with numeric ranges, failure profile (avg return when correct, avg drawdown when wrong, worst drawdown), cooldown context (hours since last same-pattern fire on this token, confidence delta vs last fire), and concurrent fires from other tokens within the last 24h.

Lightweight on-chain consumers can decode the VisionFired payload bytes directly. AI agents reasoning about a specific Vision should use this tool — it contains the data needed to size positions and compare against historical failure modes, which the on-chain event payload does not.

Args: vision_id: integer id of the Vision (returned by get_vision_history)

Returns: Multi-section text report. If vision_id is not in the recent window (last 20 fires per token), returns a helpful pointer to history.

Inputs: vision_id (required). Returns: result

get_visions_guideA

Get Solidity code to subscribe to Pythia Visions and listen for VisionFired events.

Returns a complete contract that subscribes to the PythiaVisionRegistry, receives VisionFired events with pattern type, confidence, direction, price, and full analysis payload. Subscription is FREE (no LINK required).

Inputs: no named parameters. Returns: result

get_visions_infoA

Get overview of Pythia Visions — walk-forward validated market intelligence on-chain.

Returns the walk-forward validated patterns with accuracy stats, the Vision Registry contract address, subscription info (FREE), evaluation frequency, and supported tokens. Visions are pattern detections that passed walk-forward validation across multiple years of history. Live token + pattern set is returned in the response (canonical source: feed-status.json visions section).

Inputs: no named parameters. Returns: result

list_subscriptionsA

Enumerate active Pythia Event subscriptions owned by an address.

Returns every subscription where active=true (not yet fired, expired, or cancelled). Without this tool, dApps and dashboards have to replay every SubscriptionCreated log from the registry deploy block to discover what an owner is currently subscribed to.

Args: owner_address: subscriber wallet address ('0x...', case-insensitive).

Returns: Multi-section report listing each active subscription with feed name, condition + threshold, expiry, registry address, and creation tx.

Inputs: owner_address (required). Returns: result

list_tokensA

List all tokens tracked by Pythia with status and reliability info.

Returns token symbols, categories, data source count, 30-day uptime, and operational status. Covers cross-chain tokens (BTC, SOL, TAO, RENDER, ONDO, etc.) and DeFi tokens.

Inputs: no named parameters. Returns: result

lookup_event_feedA

Reverse-lookup a Pythia Event feedId (bytes32) to its human-readable feed name.

Subscribers receive bytes32 feedId in SubscriptionCreated and PythiaEvent events. This tool maps that hash back to the canonical feed name (e.g. 'pol_RSI_5M_14') so dApps don't need to maintain their own feedId → name table or query the registry contract on every event.

Args: feed_id_hex: bytes32 hash, with or without '0x' prefix, any case.

Returns: Single-section report with feed_name + matching token + indicator suffix. If the hash is not in the registered lookup table, returns a diagnostic pointer.

Inputs: feed_id_hex (required). Returns: result

subscribe_infoA

Plan a specific Pythia Events subscription with cost and exact calls.

Args: feed_name: Feed name to monitor (e.g. 'pol_RSI_5M_14', 'bitcoin_EMA_1H_20') condition: 0=ABOVE, 1=BELOW, 2=CROSSES_ABOVE, 3=CROSSES_BELOW days: Subscription duration in days (1-365)

Inputs: feed_name (required), days, condition. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.8/5.0

    Scored across 18 tools

    Disambiguation2/5

    Several tools have unclear boundaries: list_tokens, get_market_summary, and check_oracle_health all return uptime, status, and data-source health, with list_tokens already including 30-day uptime. Pricing/cost info also overlaps across get_pricing, get_events_info, and subscribe_info. Most other tools are distinct, but these multi-way overlaps make tool selection genuinely ambiguous.

    Naming Consistency4/5

    The vast majority of tools follow a clean lowercase snake_case verb_noun pattern, and the get_* family is dominant. Parallel names like get_events_info/get_events_guide and get_visions_info/get_visions_guide reinforce consistency, though a few outliers such as subscribe_info and check_oracle_health use different verbs.

    Tool Count3/5

    18 tools sits in the 16–25 range that feels heavy for a single-purpose server. The domain has multiple sub-areas, but the overlapping status/health tools suggest the surface could be consolidated. It is not excessive enough for a 2, but it is beyond the ideal 3–15 scope.

    Completeness4/5

    The tool set covers token discovery, feed data, historical verification, event subscription planning, vision analysis, contract addresses, integration guides, and pricing, which supports most real workflows. Minor gaps exist, such as no direct historical Event fire enumeration and no on-chain subscription actions, but agents can work around these via guides and get_indicator_history.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers