Real-time crypto prices via verified x402 endpoints. No API key, no signup, ~$0.001 per call in USDC.
A tiny example that fetches live token prices without signing up for CoinGecko, Moralis, or any other paid API. EntRoute discovers the best-ranked, fulfillment-verified price endpoint; x402 handles payment.
Why this exists: CoinGecko Pro is $129/month. Moralis is $49/month. Most agents need crypto prices a few times a day, not 100k times a month — pay only when you call.
claude mcp add entroute -- npx @entroute/mcp-serverThen ask Claude: "What's the current price of ETH?" — it discovers a verified endpoint, pays in USDC on Base, and returns the answer. No API keys, no wallet setup, no env vars.
npm install @entroute/sdk-agent-tsInspect the top-ranked endpoint:
import { EntRouteClient } from '@entroute/sdk-agent-ts';
const client = new EntRouteClient({ baseUrl: 'https://api.entroute.com' });
const result = await client.discover({ capability_id: 'defi.token_price' });
console.log(result.ranked_endpoints[0]);To actually call it (and have the SDK handle the x402 402 → pay → retry dance), pass a Base wallet via client.discoverAndCall(). See the SDK docs.
Discovery only — prints the top 3 endpoints with score, latency, success rate, and price. No payment, no wallet needed.
git clone https://github.com/entroute/get-crypto-prices && cd get-crypto-prices
pnpm install
pnpm startSource: src/index.ts.
The only x402 directory that pays real USDC to verify each endpoint actually works. Probes run every 10 minutes; failed endpoints get demoted automatically.
- Site: https://entroute.com • Docs: https://entroute.com/docs/quickstart
- MCP server:
@entroute/mcp-server - TypeScript SDK:
@entroute/sdk-agent-ts
x402 is the open pay-per-request protocol behind it (Coinbase + Linux Foundation). Server returns 402, client pays in USDC on Base, retries with payment header.
fetch-tweets— Twitter data without the Twitter APIweb-search-agent— Web search for AI agentssummarize-url— Summarize any article URLdescribe-image— Image alt-text + understandingget-weather— Weather without sign-upplace-search— Find places nearby without Google Placesqr-generator— QR codes via x402
MIT