pythia-oracle-mcp
OfficialServidor MCP de Pythia Oracle
Todo contrato inteligente merece inteligencia, no solo datos.
Pythia es el primer oráculo que entrega indicadores técnicos calculados on-chain — EMA, RSI, VWAP, Bandas de Bollinger, volatilidad — para cualquier token, en cualquier cadena compatible con Chainlink. Los mismos indicadores que utilizan los traders, disponibles para contratos inteligentes y agentes de IA con una sola llamada a través de Chainlink.
Pythia Events permite que los contratos inteligentes se suscriban a condiciones de indicadores (RSI por debajo de 30, cruce de EMA, ruptura de Bollinger) y reciban llamadas automáticamente cuando se activan. Sin keepers, sin bots off-chain, sin sondeos: tu contrato reacciona a los mercados por sí mismo.
Pythia Visions entrega inteligencia de mercado validada mediante walk-forward on-chain: tipo de patrón, puntuación de confianza, instantánea del indicador y feeds a seguir para confirmación, todo en un solo evento. Backtesting realizado sobre 9 años de historial. Suscripción GRATUITA. Para obtener el catálogo actual de tokens + patrones en vivo con estadísticas de precisión y frecuencia de disparo, llama a get_visions_info desde las herramientas MCP a continuación.
¿Por qué Pythia?
La mayoría de los oráculos solo te dan el precio. Pythia te da análisis computado: EMA, RSI, Bandas de Bollinger, VWAP, volatilidad — para tokens como BTC, SOL, TAO, RENDER, ONDO, AAVE, UNI y más, en 4 marcos temporales, entregados on-chain vía Chainlink. Se añaden nuevos tokens e indicadores bajo demanda. Si tu agente de IA, protocolo DeFi o bot de trading necesita RSI, EMA o Bandas de Bollinger on-chain, Pythia es la única fuente.
Casos de uso:
Agentes de trading de IA que necesitan señales técnicas on-chain
Reequilibrio de bóvedas DeFi basado en umbrales de RSI o volatilidad
Gestión de riesgos de contratos inteligentes utilizando el ancho de las Bandas de Bollinger
Análisis de cartera impulsado por IA con métricas calculadas en tiempo real
Estrategias basadas en eventos: suscríbete a umbrales de RSI o cruces de EMA, tu contrato se activará automáticamente
Bots DeFi automatizados sin keepers: sin Gelato, sin trabajos cron, sin infraestructura off-chain
Related MCP server: Crypto Indicators MCP Server
Inicio rápido
pip install pythia-oracle-mcpClaude Desktop
Añadir a claude_desktop_config.json:
{
"mcpServers": {
"pythia-oracle": {
"command": "pythia-oracle-mcp"
}
}
}Claude Code
claude mcp add pythia-oracle -- pythia-oracle-mcpCursor / Windsurf / VS Code
Añadir a la configuración de MCP:
{
"pythia-oracle": {
"command": "pythia-oracle-mcp"
}
}Agentes de OpenAI / GPT
Cualquier cliente compatible con MCP funciona: solo apúntalo a pythia-oracle-mcp.
Ejecutar directamente
python -m pythia_oracle_mcpHerramientas disponibles
Herramienta | Descripción |
| Todos los tokens rastreados con estado, tiempo de actividad y fuentes de datos |
| Todos los nombres de feeds de indicadores para un token específico |
| Resumen general del sistema: tokens por estado, cobertura del ecosistema, salud de la infraestructura |
| Tiempo de actividad de 30 días por token (del peor al mejor), estado de la fuente de datos, informe de incidentes |
| Todas las direcciones de contratos (operador, consumidores, faucet, LINK) |
| Niveles de precios y cuándo usar cada uno |
| Código Solidity listo para implementar para cualquier nivel |
| Cómo funcionan los Pythia Events: suscríbete a condiciones de indicadores, recibe activación on-chain |
| Código Solidity y pasos de implementación para suscripciones a eventos |
| Detalles de suscripción: condiciones, precios, mecanismos de reembolso |
| Resumen de Pythia Visions: patrones validados por walk-forward, divulgación de frecuencia de disparo, dirección del contrato |
| Código Solidity para suscribirse a Visions y escuchar eventos VisionFired |
| Visions recientes disparadas para un token con desglose de patrones y estadísticas de confianza |
| Objeto enriquecido completo para una Vision disparada: perfil de fallo, contexto de enfriamiento, disparos concurrentes |
| Búsqueda inversa de un feedId de Evento (bytes32) a su nombre de feed legible por humanos |
| Enumerar suscripciones activas a Pythia Event para una dirección de propietario |
| Último valor computado para cualquier feed de indicador de Pythia (caché off-chain) |
Ejemplos de prompts
Pregunta a tu agente de IA:
"¿Qué indicadores tiene Pythia para Bitcoin?"
Llama a get_token_feeds("bitcoin"): devuelve todos los feeds de indicadores para Bitcoin, agrupados por tipo.
"¿Es Pythia lo suficientemente fiable para integrarlo?"
Llama a check_oracle_health(): devuelve el tiempo de actividad por token, la salud de la fuente de datos y los incidentes activos.
"Dame un contrato Solidity para consumir el paquete de velocidad de Pythia"
Llama a get_integration_guide("speed"): devuelve un contrato completo y desplegable con las direcciones e IDs de trabajo correctos.
"¿Qué tokens cubre Pythia y están todos funcionando?"
Llama a get_market_summary(): devuelve la cobertura del ecosistema, desglose de estados y salud de la infraestructura.
"¿Cómo funcionan los Pythia Events? Quiero que mi contrato reaccione cuando el RSI de BTC caiga por debajo de 30."
Llama a get_events_info(): devuelve cómo funcionan las suscripciones, condiciones soportadas y precios.
"Dame el código Solidity para suscribirme a un evento de cruce de EMA."
Llama a get_events_guide(): devuelve un contrato EventSubscriber desplegable con patrón de suscripción/recepción.
"¿Qué son las Pythia Visions? ¿Qué patrones detecta?"
Llama a get_visions_info(): devuelve patrones validados por walk-forward con rango de precisión, frecuencia de disparo, dirección del contrato y cómo funciona.
"Muéstrame las Visions de BTC recientes que se dispararon"
Llama a get_vision_history("BTC"): devuelve detecciones de patrones recientes con confianza y precio.
"Dame código Solidity para suscribirme a Pythia Visions"
Llama a get_visions_guide(): devuelve un contrato que se suscribe a eventos VisionFired.
Lo que proporciona Pythia
Cualquier token, cualquier cadena compatible con Chainlink: actualmente sirve BTC, SOL, TAO, RENDER, ONDO, AAVE, UNI, MORPHO y más, con nuevos tokens añadidos bajo demanda
6 tipos de indicadores: EMA, RSI, Bandas de Bollinger (superior/inferior), VWAP, Volatilidad, Precio en USD
4 marcos temporales: 5 minutos, 1 hora, 1 día, 1 semana
4 niveles de precios: Discovery / Analysis / Speed / Complete: para las tarifas actuales en LINK llama a
get_pricingPrueba gratuita: Contrato PythiaFaucet: no se necesita LINK
Pythia Events: Suscríbete a condiciones de indicadores (POR ENCIMA/POR DEBAJO de umbrales): tu contrato recibe una llamada cuando se activan. Prepago en LINK, el tiempo no utilizado se reembolsa al cancelar o disparar. No se necesita infraestructura de keeper.
Pythia Visions: Inteligencia de mercado validada por walk-forward on-chain: tipo de patrón + confianza + instantánea del indicador + feeds a seguir, entregado vía Chainlink. Suscripción GRATUITA. Para la lista en vivo de patrones + tokens, llama a
get_visions_info.
Frescura de los datos
Este servidor MCP es un cliente ligero sobre https://pythia.c3x-solutions.com/feed-status.json, el feed de estado en vivo actualizado cada 15 minutos por el motor de datos. Los nuevos tokens, nuevos patrones, direcciones de contratos y cambios de precios aparecen en las herramientas MCP segundos después del siguiente ciclo del motor de datos: no se requiere actualización de paquete.
Si el feed en vivo no es accesible, las herramientas MCP lanzan un error claro en lugar de servir datos obsoletos integrados. Vuelve a intentarlo en breve o comprueba el estado. (A partir de la v0.9.0, fallo ruidoso: las versiones anteriores tenían respaldos integrados que se desviaban del estado de producción y han sido eliminados.)
Ejemplos de integración
Consulta pythia-oracle-examples para contratos Solidity con configuración Hardhat: listos para implementar en cualquier red compatible con Chainlink.
Enlaces
Licencia
MIT
Available Tools
18 toolscheck_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
Scored across 18 tools
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.
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.
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.
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
Related MCP Connectors
Crypto market signals and portfolio telemetry. 6 tools pay-per-call in USDC, no API key.
Chainlink - 35 tools for price feeds and oracle data
Read-only crypto indicators, risk sizing and rule backtests. Not financial advice.
Market and on-chain crypto data for AI agents. Pay per call in USDC on Base (x402).
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables interaction with Chainlink's decentralized oracle network, providing access to real-time price feeds, serverless functions, smart contract automation, verifiable randomness, cross-chain messaging, and proof of reserve across multiple blockchain networks.MIT
- FlicenseNot gradedqualityDmaintenanceProvides real-time cryptocurrency market data and technical indicators (EMA, MACD, RSI, ATR, Bollinger Bands) from Aster DEX with multi-timeframe analysis support for trading pairs like BTC, ETH, and SOL.-
- AlicenseNot gradedqualityDmaintenancePrice feeds, TWAPs, and oracle service for autonomous agent settlement.MIT
- AlicenseNot gradedqualityCmaintenanceProvides real-time crypto market data for AI agents, including derivatives, liquidations, options, macro, and market regime detection, with pay-per-call via x402 micropayments on Base.79 npmMIT