quiver-risk-brain
Quiver
The verifiable risk brain for autonomous agents. Quiver is an Agentic Service Provider (ASP) that exposes twenty-two priced, deterministic computations over the x402 payment protocol and the ERC-8004 trustless-agent registry — from cross-venue perpetual liquidation and portfolio risk to options greeks, position sizing, execution-quality, LP / treasury / event risk, plus options analytics, transaction-safety, microstructure, and prediction-market intelligence.
Autonomous trading and wallet agents can pay for a service in-band over HTTP, but little worth paying for exists, and most agent-facing tools return numbers that cannot be verified. Quiver implements the money-math a real trading desk or security team would run — and because the risk engines are deterministic, every answer carries a re-runnable, self-checked proof: echoed inputs, a code hash, a content hash, and a ground-truth self-check. An agent can re-derive the number and prove it, rather than trust the provider.
Live endpoint: https://quiver-production-c3a8.up.railway.app
Technical documentation: read online · PDF (Google Drive)
Remote MCP:
https://quiver-production-c3a8.up.railway.app/mcp— Streamable HTTP, 9 risk-brain tools, free (fair-use daily quota); callable by any MCP client (Claude, Cursor, …) — on the official MCP registry asquiver-risk-brainUse it in 5 minutes: QUICKSTART.md · framework snippets (ElizaOS, LangChain, CrewAI, OpenAI Agents, Vercel AI SDK, Virtuals): INTEGRATIONS.md
On-chain identity: ERC-8004 agent
#5152on X Layer (eip155:196)Payment (dual rail): x402 v2
exact— USD₮0 on X Layer (eip155:196, OKX facilitator) and USDC on Base (eip155:8453, Coinbase CDP facilitator); ~0.005–0.05 per call
The Risk Brain — deterministic, proof-carrying
Service | What it does | Price |
| Perp liquidation price, distance-to-liq & funding drag, with a liquidation-invariant self-check (live Hyperliquid / dYdX, notional margin tiers) | 0.01 |
| Cross-venue true net exposure per underlying, the leg that liquidates first, concentration (HHI), and a correlated-crash stress | 0.05 |
| Fractional-Kelly position size + risk-of-ruin, self-checked against the Kelly first-order condition | 0.01 |
| Fair-fill / sandwich check — bps lost to adverse execution, with a constant-product self-check | 0.01 |
| Portfolio greeks (delta/gamma/vega/theta + second-order vanna/volga) + SPAN-style scenario margin — all six greeks verified vs finite differences | 0.02 |
| Forward-looking LP impermanent loss / LVR + fee breakeven, self-checked at the token level | 0.01 |
| Stablecoin-treasury concentration (HHI), depeg and correlated-depeg stress, risk-adjusted yield | 0.02 |
| Merkle-batch proof hashes → one root + inclusion proofs + an EIP-712 (EAS-ready) attestation for a single on-chain anchor | 0.01 |
| Options-implied expected move around a scheduled event (1σ + straddle E|ΔS| + prob-beyond) | 0.01 |
Options, safety, microstructure & market intelligence
Service | What it does | Price |
| Arbitrage-free options analytics from Deribit: risk-neutral density, greeks, dealer gamma (GEX), variance risk premium, cross-market | 0.01 |
| Transaction & EIP-712 signature safety: simulate a tx or decode a permit → asset/approval effects, spender reputation, proxy detection | 0.005 |
| Concentrated-liquidity range reality-check: fees vs divergence loss, replayed on real on-chain swaps | 0.01 |
| Wash-trading share of DEX volume, with evidence · authenticity grade of a wallet's PnL and win-rate | 0.05 |
| Server-rendered PNG chart (candles / indicators / drawings, numbers baked in) | 0.02 |
| DEX tape microstructure: Kyle's λ, Amihud illiquidity, VPIN | 0.01 |
| Polymarket fill simulation · wallet book & PnL · short-window up/down read (no fabricated edge) | 0.01 |
| DeFi protocol risk flags · macro-event lookahead + implied move · wallet diff for agent loops | 0.005–0.01 |
How a call works (x402)
An agent requests a paid route and receives
402 Payment Requiredwith a challenge (asset, amount, recipient, network) — one entry per rail (X Layer, Base).The agent signs an EIP-3009 authorization and resends the request carrying it.
The server verifies and settles through the matching facilitator, then returns the structured result — with its proof envelope.
Every paid route answers an unauthenticated request with the 402 challenge before any business logic runs. Or call the free MCP at /mcp for the deterministic risk-brain tools — the adoption layer any MCP-speaking agent can use directly.
The proof envelope
Because the risk engines are deterministic, every result carries proof = { engine, codeHash, inputs, contentHash, selfChecks[], signature }, plus two verification primitives:
verify()— recompute the content hash + re-check every self-check (cheap; no re-run). A tampered result fails here.reproduce()— re-run the open engine on the echoed inputs and confirm byte-identical output. This is the strong guarantee: correctness you re-derive, not signature trust.
The batch attestation (risk-attest) is signed EIP-712 and EAS-ready, so a single on-chain anchor attests many computations at once.
Running it
npm install
cp .env.example .env # fill in OKX dev-portal (+ optional Coinbase CDP for the Base rail) credentials
npm test # 152 model-free tests (put-call parity, no-lookahead, martingale, greek finite-difference, liquidation invariant, …) + 5 live-archive tests behind an RPC flag
npm start # serves on the configured portThe core suite is self-contained and needs no network access, so the model-free invariants can be verified offline.
License
MIT — see LICENSE.
This server cannot be installed
Maintenance
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Tristan-tech-ai/Quiver'
If you have feedback or need assistance with the MCP directory API, please join our Discord server