https://mcp.pegana.xyz (see setup). Calls are
rate-limited to 100 tool calls per minute per client IP, and to 300 JSON-RPC messages
per minute per client IP counting every message (each batch entry, initialize,
tools/list, calls that fail validation); over the limit the reply is HTTP 429 with
Retry-After: 60. A JSON-RPC batch holds at most 10 entries: a larger batch is refused
whole with one -32600 “batch too large” error. Example values below were captured
from the live service on 2026-10-20 and are shown in the server’s current output format;
values change continuously.
Every tool declares an outputSchema, and structuredContent always matches it exactly
(no undeclared keys), so strict clients such as the official MCP SDK can validate it.
Decimals and timestamps use the same formats as the REST API: trailing zeros are
stripped, discount has at most 6 decimal places, and ISO timestamps are UTC with
milliseconds.
ping
Liveness check. Returns pong (Ns) where N is the server uptime in seconds.
ping_paid
Legacy alias of ping, kept under its old name so existing agents keep working. It is free, and returns
paid pong in structuredContent.message. It is only a smoke test of the MCP call path;
use ping for plain liveness.
get_assets
Lists every active tracked asset, the same set and count as GET /v1/assets. Live values come from the MCP server’s snapshot cache; an asset with no live snapshot (for example a source is down) is still listed, with state: "UNKNOWN", null discount, intrinsic_usd, market_usd, ts and updated_at, and stale: true, as REST lists it. The leveraged synth xSOL is left out, as in REST (every /v1/assets route answers 404 for it), and the per-symbol tools report it as not tracked.
stale is true when the snapshot is older than 15 minutes (900 s; the engine has not
recomputed that asset recently) or is stamped more than 60 s in the future. A stale
entry reports state: "UNKNOWN"; treat its discount and prices as last-known.
The live list is also GET /v1/assets; the
asset registry is
assets.toml. No
filtering parameter — filter client-side or in the model’s reasoning.
get_asset_state
Current state for one asset.
isError: true).
The text says which case applies: the snapshot is older than 15 minutes, 900 s (the last-known
snapshot is included, with _meta.lastFreshSec), the asset is tracked but has no live
snapshot yet (for example EURC before its first recompute), the asset is listed but
inactive, or the symbol is not tracked at all.
get_methodology
Returns how the asset’s intrinsic value and market price are sourced and how the
discount and state are computed. The text is built from the asset’s own entry in
assets.toml, compiled into
the server at build time, so it names the real sources for that asset rather than a
generic per-class summary.
get_loop_exposure
Returns anonymous, aggregate cross-protocol leverage exposure for Kamino and
Jupiter Lend positions collateralized by the given asset. No per-wallet
information is exposed. The output has the same shape as
GET /v1/assets/{symbol}/loop-exposure,
which includes a live example.
The MCP result also carries stale and data_age_sec, computed from updated_at
(stale is true past 15 minutes; the rollup refreshes every 5 minutes). stale
covers the exposure rollup only: updated_at is the newest of the rollup and the
health-factor bands, so a fresh rollup can hide bands that stopped updating.
Cascade freshness is reported separately. When cascade is present, the result also
carries cascade_stale and cascade_data_age_sec, read from the band-only
updated_at of simulate_depeg_impact (cascade_stale is true past 2 hours; the
bands refresh hourly). Both fields are absent when band freshness could not be read.
Use this when an agent needs to assess whether a peg break on this asset would
cascade into liquidations across lending protocols.
simulate_depeg_impact
Estimates the cross-protocol liquidation cascade caused by a hypothetical depeg
shock. shock_bps must be one of 100, 250, 500, 1000, or 2000.
coverage is unknown there are no fresh health-factor bands and the
liquidatable amount is not known: the output schema accepts null for
liquidatable_usd and positions (top level and per protocol) so the API can say
“not known” rather than "0" (nothing liquidates).
The MCP result also carries stale and data_age_sec, computed from updated_at.
The liquidation bands refresh hourly, so stale: true (older than 2 hours) means the
estimate is last-known, not current.
Use this when a user asks how much leveraged collateral may become liquidatable
under a specific depeg shock.
verify_alert
Fetch the audit receipt for an alert, exactly as Pegana’s API serves it. This is a
proxy of GET /v1/audit/:alert_id (the underlying data is already public), not a
verification: the tool recomputes no hash and does not check the on-chain anchor, so
its answer is only as trustworthy as the server that served it. When has_replay_artifact is true, the MCP result adds
evidence.replay_bundle_url, the public download link
(https://api.pegana.xyz/v1/audit/{id}/replay-bundle).
result envelope. evidence_status discriminates
ready (full receipt, shown above), pending, or failed_permanent. The
pending / failed_permanent shapes mirror the /v1/audit/:id four-state
contract and omit the evidence object.
Use this when a user pastes an alert ID and the model needs the receipt’s contents
(inputs, verdict, receipt_sha256, commit_status). To verify the receipt
independently, run the Fair Source pegana-replay CLI on your own machine:
receipt_sha256,
and checks that the on-chain memo anchor carries that hash and was signed by Pegana’s
pinned ops wallet (--offline skips the on-chain check; --bundle <file> verifies a
downloaded replay bundle).
get_asset_history
Bucketed time-series of the intrinsic-vs-market discount for one asset. Inputs:
symbol, bucket (1m, 5m, 15m or 1h, default 1m) and limit (1 to 5,000,
default 1000). Rows are most-recent first; the lookback window is at most 7 days and at
most limit buckets. ts is the bucket start (ISO-8601 UTC) and discount is the mean
of the 1-minute average discounts in the bucket, rounded to 6 decimal places. The USD
legs (intrinsic_usd, market_usd) are the LAST observation in the bucket, not an
average, and are null for a bucket that has no raw observation. An unknown symbol
returns an isError result instead of an empty series; a database timeout returns an
isError asking you to retry.
subscribe_peg_events
Pull-based batch of peg state-transition events. Inputs: symbols (1 to 20),
since_ts (cursor, unix seconds, pass 0 on the first call), since_id (the cursor’s
tie breaker, optional) and optional threshold_bps. Symbols are case-sensitive; an
unknown or mistyped symbol returns an isError result naming it (asset 'X' not tracked), not an empty batch. Returns up to 1000 events ascending by (ts, id).
The cursor is the PAIR next_cursor + next_cursor_id: pass them back as since_ts
and since_id so events that share a timestamp are neither skipped nor repeated.
next_cursor_id is null while there is no id yet (an empty first page): send
since_id: null or omit it. A client that only tracks since_ts still works: without a
since_id the boundary event is not delivered again.
The result is { count, next_cursor, next_cursor_id, events }. Each event carries id, asset,
from_state, to_state, discount, ts (unix seconds with a fractional part, so the
cursor is lossless) and an evidence_url pointing at its audit receipt. For example, a
real USDC transition from the audit ledger:
ts is shown here at millisecond precision (2026-05-29T19:16:24.517Z); the live value
carries microseconds. Pass next_cursor and next_cursor_id back verbatim; an empty
batch returns your since_ts and since_id unchanged.
Typical agent flow
Next
Set up your MCP host
Per-host configuration for Claude, Cursor, Cline and Continue.