Pythia Oracle Mcp

io.github.pythia-the-oracle由 GitHub 账号 pythia-the-oracle 发布v0.12.3更新于 Oct 27, 2026

Every smart contract deserves intelligence, not just data. On-chain indicators via Chainlink.

已验证STDIO仅桌面数据库金融开发者工具

概览

AI 生成的概览

本地 MCP 服务器,提供 Pythia 基于 Chainlink 的链上技术指标、事件订阅与 Visions 数据,让助手查询 feed、健康状态和 Solidity 集成代码。

可以做什么
  • 列出已跟踪代币、其指标 feed、合约地址及系统级市场概览
  • 检查各代币预言机 30 天可用率、数据源状态与故障记录
  • 读取定价档位、Events 与 Visions 说明、订阅详情,并反查事件 feedId
  • 获取指标最新值与免费的公开指标历史(按日期范围)
  • 返回可直接部署的 Solidity 代码,用于消费 feed、订阅 Events 或 Visions
  • 查看近期触发的 Visions、其完整载荷以及某地址的活跃订阅
适用场景
适合在助手协助设计或审查使用 Pythia 链上指标的智能合约、交易代理时使用,也适合需要在不离开对话的情况下获取 Pythia 的 feed 名称、地址、可用率、定价与集成代码的场景。
运行要求
以本地 Python 包运行(pythia-oracle-mcp,也可用 python -m pythia_oracle_mcp),在 MCP 客户端中配置为 stdio 命令。需要能访问 Pythia 状态 feed 的网络;未声明账号、API 密钥或环境变量。
安装前请注意
工具会从第三方 Pythia 端点读取实时数据,查询内容会发送到该服务;若该服务不可达,工具会直接报错而不会返回缓存数据。服务器本身只返回信息与代码,但返回的 Solidity 示例涉及以 LINK 付费的订阅和链上合约,部署或花费 LINK 前应自行审查并测试代码。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Pythia Oracle Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

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. FREE to subscribe. For the current live token + pattern catalog with accuracy stats and fire frequency, call get_visions_info from the MCP tools below.

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

bash
pip install pythia-oracle-mcp

Claude Desktop

Add to claude_desktop_config.json:

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

Claude Code

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

Cursor / Windsurf / VS Code

Add to MCP settings:

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

OpenAI Agents / GPT

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

Run directly

bash
python -m pythia_oracle_mcp

Available Tools

ToolDescription
list_tokensAll tracked tokens with status, uptime, and data sources
get_token_feedsAll indicator feed names for a specific token
get_market_summarySystem-wide overview — tokens by status, ecosystem coverage, infrastructure health
check_oracle_healthPer-token 30-day uptime (worst-first), data source status, incident report
get_contractsAll contract addresses (operator, consumers, faucet, LINK)
get_pricingPricing tiers and when to use each one
get_integration_guideReady-to-deploy Solidity code for any tier
get_events_infoHow Pythia Events work — subscribe to indicator conditions, get triggered on-chain
get_events_guideSolidity code and deployment steps for event subscriptions
subscribe_infoSubscription details — conditions, pricing, refund mechanics
get_visions_infoPythia Visions overview — walk-forward validated patterns, fire-frequency disclosure, contract address
get_visions_guideSolidity code to subscribe to Visions and listen for VisionFired events
get_vision_historyRecent Visions fired for a token with pattern breakdown and confidence stats
get_vision_payloadFull enriched object for a fired Vision — failure profile, cooldown context, concurrent fires
lookup_event_feedReverse-lookup an Event feedId (bytes32) to its human-readable feed name
list_subscriptionsEnumerate active Pythia Event subscriptions for an owner address
get_feed_valueLatest computed value for any Pythia indicator feed (off-chain cache)
get_indicator_historyRead the free, immutable public history for a feed over a date range (≤31 days/call) — per-day coverage + optional ABOVE/BELOW verdict (TRUE / FALSE / INSUFFICIENT_DATA) with the exact day-file URLs so anyone can re-verify

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 / Analysis / Speed / Complete — for current LINK fees call get_pricing
  • Free trial: PythiaFaucet contract — no LINK needed
  • 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. For the live list of patterns + tokens, call get_visions_info.
  • Public indicator history: free, immutable JSON archive of every published indicator value — one file per feed per closed UTC day at https://pythia.c3x-solutions.com/history/{chain}/{feed_name}/{YYYY-MM-DD}.json (start from history/manifest.json). Re-derive or audit any indicator condition over a date range without an oracle call; files never change once published.

Data Freshness

This MCP server is a thin client over https://pythia.c3x-solutions.com/feed-status.json, the live status feed updated every 15 minutes by the data engine. New tokens, new patterns, contract addresses, and pricing changes appear in MCP tools within seconds of the next data-engine cycle — no package update required.

If the live feed is unreachable, MCP tools raise a clear error rather than serve stale baked-in data. Retry shortly or check status. (As of v0.9.0, fail-loud — earlier versions had baked-in fallbacks that drifted from production state and have been removed.)

Integration Examples

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

Links

License

MIT

来源:README.md,提交 e34cea7

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.12.3最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分