headless-oracle

headless-oracle

Cryptographically signed market state verification for autonomous financial agents. Ed25519 receipts, fail-closed safety, 28 global exchanges (equities, derivatives, 24/7 crypto). MCP-native, x402-payable, SMA Protocol conformant.

Category
访问服务器

README

Headless Oracle

MCP-native x402-payable Ed25519-signed 28 exchanges

Headless Oracle provides cryptographically signed market status receipts for 28 global exchanges — equities, derivatives (CME, NYMEX, Cboe), and 24/7 crypto (Coinbase, Binance). Every response is Ed25519-signed with a 60-second TTL so autonomous agents can verify market state without trusting the operator. The architecture is fail-closed: UNKNOWN always means CLOSED. Handles DST transitions, exchange holidays, half-days, lunch breaks, and real-time circuit breaker overrides automatically.


MCP Endpoint

https://headlessoracle.com/mcp

Protocol: MCP 2024-11-05 over Streamable HTTP (POST). No auth required for MCP tools.

Configure in Claude Desktop / Cursor / Windsurf

{
  "mcpServers": {
    "headless-oracle": {
      "url": "https://headlessoracle.com/mcp"
    }
  }
}

MCP Tools

Tool Description
list_exchanges List all 28 supported exchanges with MIC codes, names, timezones, and mic_type
get_market_status Returns a signed receipt: OPEN, CLOSED, HALTED, or UNKNOWN for a given MIC
get_market_schedule Next open/close times in UTC, holiday flags, half-day details, lunch break windows
verify_receipt Verify an Ed25519-signed receipt in-worker — returns { valid, reason, expired }

Batch execution gate: GET /v5/batch?mics=XNYS,XLON,XJPX returns per-exchange signed receipts plus a summary.safe_to_execute boolean — true only when all exchanges are OPEN and none are HALTED or UNKNOWN.


Quick Start

MCP (ask your AI):

Is NYSE open right now?

curl (public demo — no key):

curl "https://headlessoracle.com/v5/demo?mic=XNYS"

curl (schedule):

curl "https://headlessoracle.com/v5/schedule?mic=XLON"

JavaScript (verify a receipt):

npm install @headlessoracle/verify
import { verify } from '@headlessoracle/verify';

const res = await fetch('https://headlessoracle.com/v5/demo?mic=XNYS');
const receipt = await res.json();

const result = await verify(receipt);
if (!result.valid || receipt.status !== 'OPEN') {
  throw new Error('Market not open or receipt invalid — halting');
}

Python:

pip install headless-oracle
from headless_oracle import OracleClient, verify

client = OracleClient()
receipt = client.get_status('XNYS')

if not verify(receipt) or receipt['status'] != 'OPEN':
    raise RuntimeError('Market not open — halting execution')

Fail-Closed Contract

Status Agent action
OPEN Safe to proceed
CLOSED Halt — normal schedule
HALTED Halt — circuit breaker active
UNKNOWN Halt — treat as CLOSED, do not proceed

Every receipt expires after 60 seconds (expires_at). Re-fetch before acting on a cached receipt.


Supported Exchanges (28)

Region MICs
Americas XNYS XNAS XBSP
Europe XLON XPAR XSWX XMIL XHEL XSTO XIST
Middle East / Africa XSAU XDFM XJSE
Asia XSHG XSHE XHKG XJPX XKRX XBOM XNSE XSES XASX XNZE
Derivatives (CME/Cboe) XCBT XNYM XCBO
Crypto (24/7) XCOI XBIN

MIC codes follow ISO 10383. XCOI (Coinbase) and XBIN (Binance) are community convention identifiers.


All Endpoints

Endpoint Auth Description
GET /v5/demo?mic= None Signed receipt (demo mode)
GET /v5/status?mic= API key Signed receipt (live mode)
GET /v5/batch?mics= API key Parallel signed receipts + safe_to_execute summary
GET /v5/schedule?mic= None Next open/close, holidays, lunch breaks
GET /v5/exchanges None Full exchange directory
GET /v5/sandbox None Instant sandbox key (24h, 100 calls)
GET /v5/health None Signed liveness probe
POST /mcp None MCP Streamable HTTP
GET /openapi.json None OpenAPI 3.1 spec
GET /.well-known/oracle-keys.json None Ed25519 public key + lifecycle
GET /.well-known/agent.json None A2A Agent Card

Full API reference: headlessoracle.com/docs


x402 Autonomous Payments

Agents can pay for API access autonomously using USDC on Base mainnet — no human in the loop.

POST /v5/x402/mint

Send a Base mainnet USDC transaction hash to mint a persistent API key. Pricing: $99 USDC → builder plan (50K calls/day), $299 USDC → pro plan (200K calls/day).

Discovery document: /.well-known/x402.json


Verification SDKs

Language Package Source
JavaScript / TypeScript npm install @headlessoracle/verify github.com/LembaGang/headless-oracle-verify
Python pip install headless-oracle github.com/LembaGang/headless-oracle-python
Go go get github.com/LembaGang/headless-oracle-go github.com/LembaGang/headless-oracle-go

All SDKs use the public key from /.well-known/oracle-keys.json and verify Ed25519 signatures locally — no trust in the operator required.


Standards

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选