Read one peg state
@peganahq/sdk-ts, npm install @peganahq/sdk-ts) and Python (pegana-sdk, pip install pegana-sdk) clients are generated from the OpenAPI spec if you want them. The published releases still include a few removed endpoints; see SDKs.
Stream live readings
If you want pushed updates instead of polling, open a WebSocket:{op:"update", asset, payload} for each asset every time the engine
recomputes it (not only when the state changes), plus a heartbeat every 5 seconds. See WebSocket guide for
filtering by asset.
Add Pegana to Claude / Cursor (MCP)
If you’re using an MCP-capable client, ask the model directly:Paste into Claude / Cursor
https://mcp.pegana.xyz —
no install, no clone:
claude_desktop_config.json
mcp-remote is an official bridge that proxies the HTTP MCP transport into stdio
for hosts that don’t yet support HTTP natively (most as of 2026-05). It auto-installs
via npx the first time it runs. Restart your MCP host and the Pegana tools appear.
All 10 tools are free: ping, ping_paid, get_assets, get_asset_state,
get_methodology, get_loop_exposure, simulate_depeg_impact, verify_alert,
get_asset_history, subscribe_peg_events. See MCP tools.
Next
Pick your channel
Full reference for REST, WebSocket, MCP and Embed.
How peg state is computed
The formula, sources and FSM thresholds.
Case studies
Five real depegs in detail — USDC-SVB, UST, mSOL, DAI, GHO.
API reference
Live OpenAPI reference for annotated HTTP endpoints.