X402 Data Query API

X402 data API

by rezearcher · MIT license · updated Oct 28

X402 data API cover

Agent-native x402 pay-per-call data & security APIs on Base (crypto, DeFi, on-chain, Polymarket, MCP security scan)

# Grey Ridge Signals — Agent-Native x402 Data & Security APIs

**Pay-per-call crypto, DeFi, prediction-market, and on-chain data for AI agents — plus MCP
security scanning — over the [x402 payment protocol](https://x402.org) on Base mainnet.**

No account, no API key, no subscription. An agent pays inline in USDC (from $0.001/call) and
gets the data back in the same request. Every data endpoint has a **free preview** so an agent
can taste the payload before paying.

- **Base URL:** `https://x402-data-api.sigrunner.workers.dev`
- **MCP endpoint (streamable-http):** `https://x402-data-api.sigrunner.workers.dev/mcp`
- **Canonical domain:** `https://x402-data-api.sigrunner.workers.dev` (same API)
- **Discovery:** [`/.well-known/x402`](https://x402-data-api.sigrunner.workers.dev/.well-known/x402) · [`/openapi.json`](https://x402-data-api.sigrunner.workers.dev/openapi.json) · [`/llms.txt`](https://x402-data-api.sigrunner.workers.dev/llms.txt)
- **Network:** Base mainnet (`eip155:8453`), USDC. Settles via the non-custodial [xpay](https://facilitator.xpay.sh) facilitator — no Coinbase/CDP account needed. Also listed on the CDP x402 Bazaar.

---

## Two flagships — what agents actually pay for

Overview

Pay-per-call crypto, DeFi, prediction-market, and on-chain data for AI agents — plus MCP security scanning — over the x402 payment protocol on Base mainnet.

Connects with Agent Alley MCP · agentalley.io/mcp

Files included

  • README.md12.6 KB
Read README.md here
rezearcher/main1 file
README.md
Show the full text190 lines

Grey Ridge Signals — Agent-Native x402 Data & Security APIs

Pay-per-call crypto, DeFi, prediction-market, and on-chain data for AI agents — plus MCP security scanning — over the x402 payment protocol on Base mainnet.

No account, no API key, no subscription. An agent pays inline in USDC (from $0.001/call) and gets the data back in the same request. Every data endpoint has a free preview so an agent can taste the payload before paying.

  • Base URL: https://x402-data-api.sigrunner.workers.dev
  • MCP endpoint (streamable-http): https://x402-data-api.sigrunner.workers.dev/mcp
  • Canonical domain: https://x402-data-api.sigrunner.workers.dev (same API)
  • Discovery: /.well-known/x402 · /openapi.json · /llms.txt
  • Network: Base mainnet (eip155:8453), USDC. Settles via the non-custodial xpay facilitator — no Coinbase/CDP account needed. Also listed on the CDP x402 Bazaar.

Two flagships — what agents actually pay for

  1. MCP server security scan (/scan/mcp, $0.05) — a prompt-injection / tool-poisoning audit of an MCP server's tools (OWASP LLM01/LLM08). Zero-egress: for private/OAuth-gated servers you POST only the tools/list JSON — nothing else leaves your side. There is no free equivalent for this (unlike token-safety, where free multi-chain scanners exist). Free preview: POST /scan/mcp/preview. CI gate (on the GitHub Marketplace): uses: rezearcher/greyridge-x402-tools@v0.3.2.
  2. Pre-trade decision gate (/gate/swap, $0.008 · /chain/token-report, $0.01) — a decision (GO/HOLD/BLOCK, SAFE/CAUTION/AVOID) sized to your trade, not raw flags your agent has to interpret. Base-native; if you trade other chains, keep your multi-chain scanner and use this on Base.

Everything below is the full catalog (crypto/DeFi data, on-chain reads, LLM, enrichment). Measured reliability at /status (not an SLA).


Endpoints

Crypto & DeFi data
Endpoint Price Returns
GET /crypto/prices?coins=bitcoin,ethereum,solana $0.001 Spot token prices (DefiLlama), keyless. Up to 25 CoinGecko ids.
GET /crypto/funding?limit=20 $0.001 Cross-venue perp funding rates (Hyperliquid + OKX, graceful fallback) with the funding spread + best long/short venue — the arb signal, not just a single-venue list.
GET /defi/yields?limit=20&project=&chain=&stable= $0.001 Top DeFi lending/LP yields (DefiLlama) with APY breakdown, 7d/30d APY trend, IL risk, and DefiLlama's stability forecast — decision-grade, not a raw list.
GET /pm/markets?query=&limit=20 $0.005 Live Polymarket prediction markets: question, outcomes, prices, volume, liquidity, end date.
Base on-chain (JSON-RPC read primitives)

Base-native, multi-provider RPC with automatic failover (never fails a paid call on one provider's rate limit).

Endpoint Price Returns
GET /chain/block-number $0.001 Current Base block number
GET /chain/gas-price $0.001 Current gas price (wei + gwei)
GET /chain/balance?address= $0.001 Native ETH balance
GET /chain/token-balance?address=&token= $0.001 ERC-20 token balance
GET /chain/tx?hash= $0.001 Transaction details
GET /chain/receipt?hash= $0.001 Transaction receipt (status, gas used, logs)
GET /chain/code?address= $0.001 Contract-code check — is it a contract, and EIP-7702 delegated-EOA detection (is_eip7702_delegate / delegate_address)
GET /chain/wallet?address= $0.003 Bundle: ETH balance + tx count + contract flag in one call, EIP-7702 delegated-EOA aware (is_eip7702_delegate / delegate_address)
Agent trading gates (new)
Endpoint Price Returns
GET /gate/swap?token=0x…&side=buy|sell&notional_usd=N $0.008 Pre-trade go/hold/block decision for any Base ERC-20: safety verdict, risk score, pool liquidity and price-impact of your size, flags. One call before an agent swaps. Free live sample: /gate/swap/preview
GET /chain/token-report?token=0x… see /openapi.json Full token due-diligence report (security + liquidity + metadata) in one call
Security
Endpoint Price Returns
GET /scan/mcp?url= $0.05 Security audit of a target MCP server: tool-poisoning / prompt-injection / exfiltration / dangerous-capability / hidden-unicode (OWASP LLM01/LLM08) + risk score
POST /scan/mcp {"tools":[…]} $0.05 Zero-egress audit — paste your own tools/list array; same itemized findings, nothing leaves your side and we never fetch/call your server. For OAuth-gated or private MCP servers that won't expose a URL
GET /enrich/tech-risk?domain= $0.05 Tech-stack fingerprint → CVE (NVD) + EPSS + CISA-KEV attack-surface risk
GET /enrich/domain?domain= $0.01 Firmographic + tech-stack enrichment, incl. full subdomain enumeration (subdomains[]) via crt.sh certificate-transparency logs, RDAP, DoH, HTTP fingerprint

Free previews: GET /crypto/prices/preview, /crypto/funding/preview, /defi/yields/preview, /chain/block-number/preview, /chain/gas-price/preview (full live data, not truncated), /scan/mcp/preview?url=. Zero-egress MCP scan (for private/OAuth-gated servers): POST /scan/mcp/preview with {"tools":[…]} is the free counts-only preview; POST /scan/mcp with the same body is the paid itemized scan — nothing leaves your side. One-liner: examples/mcp-scan-preview.sh.


MCP server (the pull channel)

Add one remote MCP server and your agent gets the whole toolset. initialize and tools/list are free so agents can discover the tools; paid tools/call returns an x402 challenge.

tools/list advertises 22 tools: crypto_prices, crypto_funding, defi_yields, pm_markets, chain_block_number, chain_gas_price, chain_balance, chain_token_balance, chain_tx, chain_wallet, chain_token_security (paid Base RPC + data, EIP-7702 delegated-EOA aware), crypto_prices_preview, crypto_funding_preview, defi_yields_preview, pm_markets_preview, chain_block_number_preview, chain_gas_price_preview, chain_token_security_preview (free), and scan_mcp_server, scan_mcp_preview, enrich_tech_risk, enrich_domain (security).

// add to your MCP client config
{
  "mcpServers": {
    "grey-ridge-x402": {
      "type": "streamable-http",
      "url": "https://x402-data-api.sigrunner.workers.dev/mcp"
    }
  }
}

MCP client (mcp-client/ — the stdio companion)

For stdio-only MCP clients (Claude Desktop, Cursor, CLI agents), the repo ships a companion package, x402-data-api-mcp, in mcp-client/. It runs on the agent's own machine, speaks MCP over stdio, and proxies to the same Worker /mcp endpoint — it adds no data surface, just a transport + x402 payment shim so stdio-only clients can reach the same tools (22 tools, including paid ones when a wallet key is configured).

Install / run (local path). The package is not yet published to npm, so run it from the repo:

cd mcp-client
npm install
npm run build          # tsc → dist/server.js
node dist/server.js    # start (or: npm start)

Published path (one line, no clone): npx @grey-ridge/x402-data-api-mcp — the package is live on npm; its bin target is dist/server.js, so npx runs the same server.

Configuration. Copy mcp-client/.env.example to .env in mcp-client/: WORKER_BASE_URL defaults to the deployed Worker (set it only to point at your own mirror), and X402_WALLET_PRIVATE_KEY is optional — set it to auto-settle paid tools (HTTP 402) via x402; leave it empty to run only the free/preview tools. The client reads both straight from process.env at startup.

// stdio client config (local path)
{
  "mcpServers": {
    "grey-ridge-x402-local": {
      "command": "node",
      "args": ["/absolute/path/to/mcp-client/dist/server.js"]
    }
  }
}

Call it (HTTP)

BASE=https://x402-data-api.sigrunner.workers.dev

# free preview — real sample, no payment
curl -s "$BASE/crypto/funding/preview"

# paid — returns HTTP 402 with an x402 payment-required challenge until you attach payment
curl -i "$BASE/crypto/funding?limit=10"

Any x402-capable client (e.g. the x402 libraries) handles the 402 → sign → retry automatically.

Measured status

Uptime and latency per safety route are measured from a probe cron and published in docs/STATUS.md (regenerated hourly; window stated in the file, not an SLA).

How it runs

A single Cloudflare Worker implements every HTTP endpoint and the MCP server behind a method-aware x402 gate. All upstreams are free/keyless public APIs (DefiLlama, Hyperliquid, OKX, Polymarket Gamma, Base JSON-RPC, NVD/EPSS/CISA-KEV, crt.sh/RDAP/DoH); every address/hash/domain input is validated and SSRF-guarded (fixed upstream hosts, no user-supplied targets except the explicitly-scoped /scan/mcp and enrichment endpoints).

License

MIT — see LICENSE.

Agent-framework plugins (published)

Pre-trade token guard (/gate/swap, $0.008 USDC via x402 on Base) — drop-in, fails closed, pays inline per call (no API key, no account). Free sample: curl "https://x402-data-api.sigrunner.workers.dev/gate/swap/preview?token=degen"

Framework Install Source
ElizaOS npm i github:rezearcher/plugin-swap-gate integrations/elizaos-plugin-swap-gate
LangChain.js npm i github:rezearcher/langchain-swap-gate @langchain/core zod integrations/langchain-swap-gate
Vercel AI SDK npm i github:rezearcher/vercel-ai-swap-gate ai zod integrations/vercel-ai-sdk-swap-gate

Install from git — this always pulls the current build (keyless free preview + inline x402, fails closed only if both are unreachable) and compiles on install via prepare. Each also exposes a tokenReport tool wrapping /chain/token-report for standalone token screening. Minimal copy-paste examples live under docs/examples/{swap-gate,langchain,elizaos}/.

Market-data buyer (for agents that buy a price and must not present stale data as real-time — the Decision402 pattern): examples/market-data-decision-buyer.mjs. Runs the full agentic loop — reads the live 402 quote, enforces a per-call USDC budget, proves the feed via the free preview, pays /crypto/prices ($0.001 on Base), then rejects any row older than MAX_AGE_SECONDS. Steps 1-3 run with zero npm installs: node examples/market-data-decision-buyer.mjs bitcoin,ethereum.

Python / LangChain / CrewAI

pip install "git+https://github.com/rezearcher/greyridge-x402-tools" — token_report() and swap_gate() helpers (free preview by default, paid x402 mode optional) plus LangChain tools. Guides: https://rezearcher.github.io/greyridge-x402-tools/

Try it on YOUR token, free

curl "https://x402-data-api.sigrunner.workers.dev/chain/token-report/preview?token=0xYourBaseToken" returns the same full-depth report as the paid route ($0.01). /gate/swap/preview?token=0x… gives 3 free real-token GO/HOLD/BLOCK checks/day/IP.

Agent skill (drop-in SKILL.md for OpenClaw/Hermes-style agents): https://github.com/rezearcher/greyridge-token-safety-skill

CI gate for MCP servers

uses: rezearcher/greyridge-x402-tools@v0.3.3 with url: runs the free MCP tool-poisoning preview in CI and fails on a block verdict. Every run also emits a copy-paste README injection-security badge (badge-markdown output / step summary; commit-badge: true auto-commits it between <!-- grsg-badge:start --> markers, degrade-open) — the OWASP-MCP (LLM01/LLM08) dimension generic repo-quality badges omit, re-checked on every CI run and linked to the server's live security report. Listed on the GitHub Marketplace. See actions/mcp-scan/README.md.

Python note: the default Python-urllib User-Agent is rejected with 403 at the Cloudflare edge. Use requests/httpx, or set any custom User-Agent header.

1# Grey Ridge Signals — Agent-Native x402 Data & Security APIs
2 
3**Pay-per-call crypto, DeFi, prediction-market, and on-chain data for AI agents — plus MCP
4security scanning — over the [x402 payment protocol](https://x402.org) on Base mainnet.**
5 
6No account, no API key, no subscription. An agent pays inline in USDC (from $0.001/call) and
7gets the data back in the same request. Every data endpoint has a **free preview** so an agent
8can taste the payload before paying.
9 
10- **Base URL:** `https://x402-data-api.sigrunner.workers.dev`
11- **MCP endpoint (streamable-http):** `https://x402-data-api.sigrunner.workers.dev/mcp`
12- **Canonical domain:** `https://x402-data-api.sigrunner.workers.dev` (same API)
13- **Discovery:** [`/.well-known/x402`](https://x402-data-api.sigrunner.workers.dev/.well-known/x402) · [`/openapi.json`](https://x402-data-api.sigrunner.workers.dev/openapi.json) · [`/llms.txt`](https://x402-data-api.sigrunner.workers.dev/llms.txt)
14- **Network:** Base mainnet (`eip155:8453`), USDC. Settles via the non-custodial [xpay](https://facilitator.xpay.sh) facilitator — no Coinbase/CDP account needed. Also listed on the CDP x402 Bazaar.
15 
16---
17 
18## Two flagships — what agents actually pay for
19 
201. **MCP server security scan** (`/scan/mcp`, $0.05) — a prompt-injection / tool-poisoning audit of an MCP server's tools (OWASP LLM01/LLM08). **Zero-egress**: for private/OAuth-gated servers you POST only the `tools/list` JSON — nothing else leaves your side. *There is no free equivalent for this* (unlike token-safety, where free multi-chain scanners exist). Free preview: `POST /scan/mcp/preview`. CI gate (on the [GitHub Marketplace](https://github.com/marketplace/actions/mcp-server-tool-poisoning-scan)): `uses: rezearcher/greyridge-x402-tools@v0.3.2`.
212. **Pre-trade decision gate** (`/gate/swap`, $0.008 · `/chain/token-report`, $0.01) — a *decision* (GO/HOLD/BLOCK, SAFE/CAUTION/AVOID) sized to your trade, not raw flags your agent has to interpret. **Base-native**; if you trade other chains, keep your multi-chain scanner and use this on Base.
22 
23Everything below is the full catalog (crypto/DeFi data, on-chain reads, LLM, enrichment). Measured reliability at [`/status`](https://x402-data-api.sigrunner.workers.dev/status) (not an SLA).
24 
25---
26 
27## Endpoints
28 
29### Crypto & DeFi data
30| Endpoint | Price | Returns |
31|---|---|---|
32| `GET /crypto/prices?coins=bitcoin,ethereum,solana` | $0.001 | Spot token prices (DefiLlama), keyless. Up to 25 CoinGecko ids. |
33| `GET /crypto/funding?limit=20` | $0.001 | **Cross-venue** perp funding rates (Hyperliquid + OKX, graceful fallback) with the **funding spread** + best long/short venue — the arb signal, not just a single-venue list. |
34| `GET /defi/yields?limit=20&project=&chain=&stable=` | $0.001 | Top DeFi lending/LP yields (DefiLlama) with APY breakdown, **7d/30d APY trend, IL risk, and DefiLlama's stability forecast** — decision-grade, not a raw list. |
35| `GET /pm/markets?query=&limit=20` | $0.005 | Live Polymarket prediction markets: question, outcomes, prices, volume, liquidity, end date. |
36 
37### Base on-chain (JSON-RPC read primitives)
38Base-native, multi-provider RPC with automatic failover (never fails a paid call on one provider's rate limit).
39 
40| Endpoint | Price | Returns |
41|---|---|---|
42| `GET /chain/block-number` | $0.001 | Current Base block number |
43| `GET /chain/gas-price` | $0.001 | Current gas price (wei + gwei) |
44| `GET /chain/balance?address=` | $0.001 | Native ETH balance |
45| `GET /chain/token-balance?address=&token=` | $0.001 | ERC-20 token balance |
46| `GET /chain/tx?hash=` | $0.001 | Transaction details |
47| `GET /chain/receipt?hash=` | $0.001 | Transaction receipt (status, gas used, logs) |
48| `GET /chain/code?address=` | $0.001 | Contract-code check — is it a contract, and **EIP-7702 delegated-EOA detection** (`is_eip7702_delegate` / `delegate_address`) |
49| `GET /chain/wallet?address=` | $0.003 | **Bundle:** ETH balance + tx count + contract flag in one call, EIP-7702 delegated-EOA aware (`is_eip7702_delegate` / `delegate_address`) |
50 
51### Agent trading gates (new)
52| Endpoint | Price | Returns |
53|---|---|---|
54| `GET /gate/swap?token=0x…&side=buy\|sell&notional_usd=N` | $0.008 | **Pre-trade go/hold/block decision** for any Base ERC-20: safety verdict, risk score, pool liquidity and price-impact of your size, flags. One call before an agent swaps. Free live sample: [`/gate/swap/preview`](https://x402-data-api.sigrunner.workers.dev/gate/swap/preview) |
55| `GET /chain/token-report?token=0x…` | see `/openapi.json` | Full token due-diligence report (security + liquidity + metadata) in one call |
56 
57### Security
58| Endpoint | Price | Returns |
59|---|---|---|
60| `GET /scan/mcp?url=` | $0.05 | Security audit of a target MCP server: tool-poisoning / prompt-injection / exfiltration / dangerous-capability / hidden-unicode (OWASP LLM01/LLM08) + risk score |
61| `POST /scan/mcp` `{"tools":[…]}` | $0.05 | **Zero-egress** audit — paste your own `tools/list` array; same itemized findings, **nothing leaves your side** and we never fetch/call your server. For OAuth-gated or private MCP servers that won't expose a URL |
62| `GET /enrich/tech-risk?domain=` | $0.05 | Tech-stack fingerprint → CVE (NVD) + EPSS + CISA-KEV attack-surface risk |
63| `GET /enrich/domain?domain=` | $0.01 | Firmographic + tech-stack enrichment, incl. **full subdomain enumeration** (`subdomains[]`) via crt.sh certificate-transparency logs, RDAP, DoH, HTTP fingerprint |
64 
65Free previews: `GET /crypto/prices/preview`, `/crypto/funding/preview`, `/defi/yields/preview`, `/chain/block-number/preview`, `/chain/gas-price/preview` (full live data, not truncated), `/scan/mcp/preview?url=`. **Zero-egress MCP scan** (for private/OAuth-gated servers): `POST /scan/mcp/preview` with `{"tools":[…]}` is the free counts-only preview; `POST /scan/mcp` with the same body is the paid itemized scan — nothing leaves your side. One-liner: [`examples/mcp-scan-preview.sh`](examples/mcp-scan-preview.sh).
66 
67---
68 
69## MCP server (the pull channel)
70 
71Add one remote MCP server and your agent gets the whole toolset. `initialize` and `tools/list`
72are **free** so agents can discover the tools; paid `tools/call` returns an x402 challenge.
73 
74`tools/list` advertises 22 tools: `crypto_prices`, `crypto_funding`, `defi_yields`, `pm_markets`,
75`chain_block_number`, `chain_gas_price`, `chain_balance`, `chain_token_balance`, `chain_tx`,
76`chain_wallet`, `chain_token_security` (paid Base RPC + data, EIP-7702 delegated-EOA aware),
77`crypto_prices_preview`, `crypto_funding_preview`, `defi_yields_preview`, `pm_markets_preview`,
78`chain_block_number_preview`, `chain_gas_price_preview`, `chain_token_security_preview` (free),
79and `scan_mcp_server`, `scan_mcp_preview`, `enrich_tech_risk`, `enrich_domain` (security).
80 
81```jsonc
82// add to your MCP client config
83{
84 "mcpServers": {
85 "grey-ridge-x402": {
86 "type": "streamable-http",
87 "url": "https://x402-data-api.sigrunner.workers.dev/mcp"
88 }
89 }
90}
91```
92 
93## MCP client (`mcp-client/` — the stdio companion)
94 
95For stdio-only MCP clients (Claude Desktop, Cursor, CLI agents), the repo ships a
96companion package, `x402-data-api-mcp`, in [`mcp-client/`](./mcp-client/). It runs on
97the agent's own machine, speaks MCP over **stdio**, and proxies to the same Worker
98`/mcp` endpoint — it adds no data surface, just a transport + x402 payment shim so
99stdio-only clients can reach the same tools (22 tools, including paid ones when a
100wallet key is configured).
101 
102**Install / run (local path).** The package is **not yet published to npm**, so run it
103from the repo:
104 
105```bash
106cd mcp-client
107npm install
108npm run build # tsc → dist/server.js
109node dist/server.js # start (or: npm start)
110```
111 
112**Published path (one line, no clone):** `npx @grey-ridge/x402-data-api-mcp` — the package is
113[live on npm](https://www.npmjs.com/package/@grey-ridge/x402-data-api-mcp); its `bin` target is
114`dist/server.js`, so `npx` runs the same server.
115 
116**Configuration.** Copy [`mcp-client/.env.example`](./mcp-client/.env.example) to
117`.env` in `mcp-client/`: `WORKER_BASE_URL` defaults to the deployed Worker (set it
118only to point at your own mirror), and `X402_WALLET_PRIVATE_KEY` is optional — set it
119to auto-settle paid tools (HTTP 402) via x402; leave it empty to run only the
120free/preview tools. The client reads both straight from `process.env` at startup.
121 
122```jsonc
123// stdio client config (local path)
124{
125 "mcpServers": {
126 "grey-ridge-x402-local": {
127 "command": "node",
128 "args": ["/absolute/path/to/mcp-client/dist/server.js"]
129 }
130 }
131}
132```
133 
134## Call it (HTTP)
135 
136```bash
137BASE=https://x402-data-api.sigrunner.workers.dev
138 
139# free preview — real sample, no payment
140curl -s "$BASE/crypto/funding/preview"
141 
142# paid — returns HTTP 402 with an x402 payment-required challenge until you attach payment
143curl -i "$BASE/crypto/funding?limit=10"
144```
145 
146Any x402-capable client (e.g. the [`x402`](https://www.npmjs.com/package/x402) libraries)
147handles the 402 → sign → retry automatically.
148 
149## Measured status
150 
151Uptime and latency per safety route are measured from a probe cron and published in [docs/STATUS.md](docs/STATUS.md) (regenerated hourly; window stated in the file, not an SLA).
152 
153## How it runs
154 
155A single [Cloudflare Worker](./src/index.ts) implements every HTTP endpoint and the MCP server
156behind a method-aware x402 gate. All upstreams are **free/keyless** public APIs (DefiLlama,
157Hyperliquid, OKX, Polymarket Gamma, Base JSON-RPC, NVD/EPSS/CISA-KEV, crt.sh/RDAP/DoH); every
158address/hash/domain input is validated and SSRF-guarded (fixed upstream hosts, no user-supplied
159targets except the explicitly-scoped `/scan/mcp` and enrichment endpoints).
160 
161## License
162 
163MIT — see [LICENSE](./LICENSE).
164 
165## Agent-framework plugins (published)
166Pre-trade token guard (`/gate/swap`, $0.008 USDC via x402 on Base) — drop-in, fails closed, pays inline per call (no API key, no account). Free sample: `curl "https://x402-data-api.sigrunner.workers.dev/gate/swap/preview?token=degen"`
167 
168| Framework | Install | Source |
169|-----------|---------|--------|
170| ElizaOS | `npm i github:rezearcher/plugin-swap-gate` | [`integrations/elizaos-plugin-swap-gate`](./integrations/elizaos-plugin-swap-gate) |
171| LangChain.js | `npm i github:rezearcher/langchain-swap-gate @langchain/core zod` | [`integrations/langchain-swap-gate`](./integrations/langchain-swap-gate) |
172| Vercel AI SDK | `npm i github:rezearcher/vercel-ai-swap-gate ai zod` | [`integrations/vercel-ai-sdk-swap-gate`](./integrations/vercel-ai-sdk-swap-gate) |
173 
174Install from git — this always pulls the current build (keyless free preview + inline x402, fails closed only if both are unreachable) and compiles on install via `prepare`. Each also exposes a `tokenReport` tool wrapping `/chain/token-report` for standalone token screening. Minimal copy-paste examples live under `docs/examples/{swap-gate,langchain,elizaos}/`.
175 
176Market-data buyer (for agents that buy a price and must not present stale data as real-time — the Decision402 pattern): `examples/market-data-decision-buyer.mjs`. Runs the full agentic loop — reads the live 402 quote, enforces a per-call USDC budget, proves the feed via the free preview, pays `/crypto/prices` ($0.001 on Base), then **rejects any row older than `MAX_AGE_SECONDS`**. Steps 1-3 run with zero npm installs: `node examples/market-data-decision-buyer.mjs bitcoin,ethereum`.
177 
178## Python / LangChain / CrewAI
179`pip install "git+https://github.com/rezearcher/greyridge-x402-tools"` — `token_report()` and `swap_gate()` helpers (free preview by default, paid x402 mode optional) plus LangChain tools. Guides: https://rezearcher.github.io/greyridge-x402-tools/
180 
181## Try it on YOUR token, free
182`curl "https://x402-data-api.sigrunner.workers.dev/chain/token-report/preview?token=0xYourBaseToken"` returns the same full-depth report as the paid route ($0.01). `/gate/swap/preview?token=0x…` gives 3 free real-token GO/HOLD/BLOCK checks/day/IP.
183 
184Agent skill (drop-in SKILL.md for OpenClaw/Hermes-style agents): https://github.com/rezearcher/greyridge-token-safety-skill
185 
186## CI gate for MCP servers
187`uses: rezearcher/greyridge-x402-tools@v0.3.3` with `url:` runs the free MCP tool-poisoning preview in CI and fails on a `block` verdict. Every run also emits a copy-paste **README injection-security badge** (`badge-markdown` output / step summary; `commit-badge: true` auto-commits it between `<!-- grsg-badge:start -->` markers, degrade-open) — the OWASP-MCP (LLM01/LLM08) dimension generic repo-quality badges omit, re-checked on every CI run and linked to the server's live security report. Listed on the [GitHub Marketplace](https://github.com/marketplace/actions/mcp-server-tool-poisoning-scan). See `actions/mcp-scan/README.md`.
188 
189> Python note: the default `Python-urllib` User-Agent is rejected with 403 at the Cloudflare edge. Use `requests`/`httpx`, or set any custom `User-Agent` header.
190 
View all files on GitHub →

Details

Updated
Oct 28, 2026
License
MIT
Stars on the repo
★ 0
Checked
Source
rezearcher/x402-data-api ↗
Creator
rezearcher · 1 listing
View creator

Similar MCP servers

See all →
SkillDeFi Protocol Templateswshobson/agents · by wshobsonImplement DeFi protocols with production-ready templates for staking, AMMs, governance, and flash loans. Use when building decentralized finance applications or smart contract protocols.★ 39.9k GitHub starsSkillNFT Standards Implementationwshobson/agents · by wshobsonImplement NFT standards (ERC-721, ERC-1155) with proper metadata handling, minting strategies, and marketplace integration. Use when creating NFT contracts, building NFT marketplaces, or implementing digital asset systems.★ 39.9k GitHub starsSkillSmart Contract Security Guidewshobson/agents · by wshobsonMaster smart contract security best practices to prevent common vulnerabilities and implement secure Solidity patterns. Use when writing smart contracts, auditing existing contracts, or implementing security measures for blockchain applications.★ 39.9k GitHub starsSkillSmart Contract Testerwshobson/agents · by wshobsonTest smart contracts comprehensively using Hardhat and Foundry with unit tests, integration tests, and mainnet forking. Use when testing Solidity contracts, setting up blockchain test suites, or validating DeFi protocols.★ 39.9k GitHub starsAgentSmart Contract DeveloperVoltAgent/awesome-claude-code-subagents · by VoltAgentUse this agent when building smart contracts, DApps, and blockchain protocols that require expertise in Solidity, gas optimization, security auditing, and Web3 integration.★ 25.2k GitHub starsSkillCode Review Feedback Analyzerobra/superpowers · by obraUse when receiving code review feedback, before implementing suggestions, especially if feedback seems unclear or technically questionable - requires technical rigor and verification, not performative agreement or blind implementation★ 290k GitHub stars