OnChain Watch

v1.10.4
org.digital-asset-mart/onchain-watch Checked 2 days ago Published 19 hours ago

Crypto prices, gas, and same-key stablecoin watch status, evaluation, and event replay.

Crypto market & DeFi monitoring API: prices, TVL, ETH gas, threshold watches + DepegGuard stablecoin peg alerts. Request a free product key using the Quick start command above. Set the environment variable ONCHAIN_WATCH_MCP_API_KEY to the returned data.api_key value. For Claude Code, merge this entry into your project's .mcp.json and launch the client from that environment.

Summary extracted from the README.

onchain-watch

Crypto market & DeFi monitoring API: prices, TVL, ETH gas, threshold watches + DepegGuard stablecoin peg alerts.

Live instance: https://digital-asset-mart.org (free tier: POST /keys/self-serve with an email → bearer key, no card)

Quick start

# free key
curl -X POST https://digital-asset-mart.org/keys/self-serve -H 'Content-Type: application/json' -d '{"email":"you@example.com"}'

# MCP endpoint (streamable-HTTP JSON-RPC: initialize / tools/list / tools/call)
curl -X POST https://digital-asset-mart.org/mcp -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'

Install an MCP client connection

Request a free product key using the Quick start command above. Set the environment variable ONCHAIN_WATCH_MCP_API_KEY to the returned data.api_key value.

For Claude Code, merge this entry into your project's .mcp.json and launch the client from that environment.

{
  "mcpServers": {
    "onchain-watch": {
      "type": "http",
      "url": "https://digital-asset-mart.org/mcp",
      "headers": {
        "Authorization": "Bearer ${ONCHAIN_WATCH_MCP_API_KEY}"
      }
    }
  }
}

Other MCP clients can use the same URL with Streamable HTTP and the Authorization: Bearer YOUR_API_KEY header. Supply the key through your client's secret input when available. initialize and tools/list are public. Tool calls require a product key.

Deployment shape

  • FastAPI gateway (systemd user service) on the VPS, fronted by a Cloudflare Tunnel
  • SQLite (WAL) for keys, metering, watches, invoices; Stripe (LIVE) subscriptions for paid tiers
  • Port 8805; per-product data dir /home/hermes/apps/onchainwatch/data/
  • Shared MCP transport: gateway/../_shared/mcp_transport.py (mirrored here)

Operations

  • GET /health — liveness
  • GET /.well-known/mcp-manifest.json — tool discovery document
  • POST /mcp — MCP streamable-HTTP transport (protocol 2025-03-26)
  • GET /docs — OpenAPI docs; GET /openapi.json — raw schema

Stablecoin watch workflow

Use the same bearer key to register with ocw_depeg_watch, evaluate once with ocw_depeg_evaluate, and replay with ocw_depeg_events. Evaluation uses the existing watch feed and can record breach and quote-coverage transitions. Its assessed_at identifies the quote sample used. Save the replay's next_cursor after processing and supply it on your next call. Watch workflow

Status

Live in production since 2026-11-30. All endpoints verified with real upstream data (FRED, CoinGecko, DefiLlama, crt.sh, RDAP, Internet Archive, public RPCs).

Operated by Open Agents · contact: 6neonedge9@gmail.com