x402 Oracle MCP (Base USDC)
Integrates with Coinbase's CDP x402 facilitator API for payment validation and settlement, enabling paid oracle consult transactions on Base USDC and settlement-triggered Bazaar cataloging.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@x402 Oracle MCP (Base USDC) ask the oracle how to handle 402 payments in my MCP server"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
x402 Oracle (x402orcle)
402 is the answer. The Oracle is how you ask.
Paid MCP + HTTP 402 wisdom market for x402 / MCP / A2A / Bazaar. Seller-only public host. Base USDC (eip155:8453).
Discover
Surface | Path |
Landing |
|
Catalog |
|
MCP |
|
A2A |
|
Fund |
|
LLMs |
|
Agents |
|
OpenAPI |
|
Related MCP server: x402-bazaar-mcp
Tools
Free: oracle_health, oracle_pricing
Paid: oracle_ask $0.10 · oracle_diagnose_402 $0.50 · oracle_review_mcp $3 · oracle_bazaar_rewrite $1.50 · complete_oracle_task $10 (clamped to MAX_PRICE_USD=25)
Paid replies are a wisdom envelope: verdict, wisdom, implementation_prompt, risk, citations, receipt.
Env (never a spend key)
X402_PAY_TO=0x… # 42-char address only
X402_NETWORK=eip155:8453
X402_FACILITATOR_URL=https://api.cdp.coinbase.com/platform/v2/x402
CDP_API_KEY_ID= # Secret API key id (JWT). Not a wallet key.
CDP_API_KEY_SECRET=
MAX_PRICE_USD=25
DEMO_MODE=true # local DemoFacilitatorDo not set EVM_PRIVATE_KEY on Vercel/Render. Buyer keys stay on the operator laptop.
x402.org/facilitator is not the default production path for mainnet EVM.
Run
cp .env.example .env
pnpm install
pnpm --filter @x402orcle/oracle-brain test
pnpm --filter @x402orcle/mcp test
pnpm --filter @x402orcle/mcp dev # :4021
pnpm --filter @x402orcle/web dev # :3000 landingUnpaid consult → HTTP 402 + PAYMENT-REQUIRED (base64 JSON, extensions.bazaar).
Demo: POST /v1/demo/mint-payment then retry with PAYMENT-SIGNATURE.
Bazaar
Cataloging is settlement-triggered. Validate first (no pay):
curl -sS -X POST https://api.cdp.coinbase.com/platform/v2/x402/validate \
-H 'content-type: application/json' \
-d '{"resource":"https://YOUR_HOST/api/consult/oracle_ask","method":"POST"}'Then one mainnet seed settle from a local burner. No settlement = no rank.
Monorepo
apps/web Next.js App Router landing + discovery + 402
apps/mcp streamable-HTTP paid MCP + HTTP twins
packages/oracle-brainFOSS: @x402/mcp createPaymentWrapper + x402ResourceServer, @x402/extensions/bazaar declareDiscoveryExtension (see apps/mcp/src/x402-foss.ts).
Legal
Payment for delivered consult artifacts or a voluntary tip. Not a token, not equity, not a raise.
Available Tools
7 toolscomplete_oracle_taskAInspect
Execute a high-depth outcome planning task delivering typed diffs, security constraints, operator handoff checklists, and ship verification steps for an x402 production launch goal ($10.00 USDC on Base). Unpaid calls return 402 terms. Use for end-to-end delivery plans; use oracle_ask ($0.10) for shorter Q&A.
Inputs: goal (required), constraints. Returns: risk, wisdom, verdict, citations, +1 more
oracle_askAInspect
Ask a general architectural or ranking question about x402 micropayments, MCP monetization, A2A agent cards, or CDP Bazaar discovery ($0.10 USDC on Base). Unpaid calls return an HTTP 402 challenge envelope (isError: true); retry with _meta['x402/payment']. Use oracle_diagnose_402 instead to inspect a raw PAYMENT-REQUIRED header.
Inputs: question (required), audience. Returns: risk, wisdom, receipt, verdict, +2 more
oracle_bazaar_rewriteAInspect
Generate SEO-optimized CDP Bazaar metadata (serviceName <=32 chars, description <=500 chars, <=5 tags) front-loaded with buyer search phrases and first-index freeze warnings ($1.50 USDC on Base). Unpaid calls return 402 terms. Use this before settling a new SKU; for broader launch diffs use complete_oracle_task.
Inputs: buyer_phrases, current_description. Returns: risk, agent, wisdom, verdict, +1 more
oracle_diagnose_402AInspect
Decode and audit an HTTP 402 PAYMENT-REQUIRED header (base64 or JSON) for accepts[], Base USDC terms, extensions.bazaar schema validity, and resource.url alignment ($0.50 USDC on Base). Unpaid calls return 402 terms. Use this instead of oracle_review_mcp when debugging a single 402 payload before facilitator settlement.
Inputs: challenge_b64_or_json (required), resource_url. Returns: risk, wisdom, verdict, citations, +1 more
oracle_healthARead-onlyIdempotentInspect
Check x402 Oracle server health, configured Base payTo posture, facilitator mode (demo or live), and seller-key safety flags. Free and read-only; requires no arguments or payment header. Use this before calling paid consult tools to verify availability; use oracle_pricing to inspect USD fees.
Inputs: no named parameters. Returns: ok, slug, thesis, network, +7 more
oracle_pricingARead-onlyIdempotentInspect
List all free and paid x402 Oracle endpoints, current clamped USDC prices on Base, max price ceiling, and connection instructions. Free and read-only; takes no parameters. Call this instead of oracle_health when selecting a paid consult tool and budgeting payment amount.
Inputs: no named parameters. Returns: free, paid, payTo, connect, +2 more
oracle_review_mcpAInspect
Audit a paid MCP server architecture for x402 payment wrapping, declareDiscoveryExtension metadata, free health tooling, Streamable HTTP compliance, and seller-key isolation ($3.00 USDC on Base). Unpaid calls return 402 terms. Use oracle_bazaar_rewrite for listing copy or oracle_diagnose_402 for single header checks.
Inputs: mcp_url (required), notes. Returns: risk, wisdom, verdict, citations, +1 more
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool has a distinct target: server health, pricing discovery, general Q&A, 402 header decoding, MCP architecture audit, Bazaar metadata generation, and full launch planning. Descriptions explicitly say "use X instead of Y," which resolves most overlap. The only mild ambiguity is between oracle_ask (general architecture Q&A) and oracle_review_mcp / complete_oracle_task, separated mainly by depth and price rather than topic.
All names are snake_case with a shared 'oracle_' prefix family, which makes the set readable and predictable. Ordering varies slightly — mostly prefix+verb+noun (oracle_diagnose_402, oracle_review_mcp) but oracle_bazaar_rewrite reverses to noun+verb and complete_oracle_task moves the prefix to the suffix, so the pattern is not perfectly uniform.
Seven tools is well within the ideal range and each has a clear role: two free discovery/read tools plus five paid consult tools at distinct price points. No redundant or filler tools appear.
The surface covers the full consult lifecycle: free health/pricing checks, then paid tiers from $0.10 Q&A up to $10 end-to-end planning, including 402 debugging and Bazaar metadata. Minor gaps exist — no tool to check settlement/payment status after a paid call or retrieve past task results, but agents can work around these via retries and the pricing endpoint.
Maintenance
Related MCP Connectors
Production-grade MCP gateway delivering 8 real-time AI tools with instant x402 micropayments settled in USDC on Base Mainnet or SPL-USDC on Solana. Features Basescan contract auditing, wallet analytics, headless browser scraping, and pre-scraped oracle data feeds.
Production-grade MCP gateway delivering 8 real-time AI tools with instant x402 micropayments settled in USDC on Base Mainnet or SPL-USDC on Solana. Features Basescan contract auditing, wallet analytics, headless browser scraping, and pre-scraped oracle data feeds.
Paid MCP tools behind one endpoint. Agents pay per call in USDC on Base via x402.
Pay-per-action access to APIs and MCP tools over Lightning L402 and Base USDC x402.
Related MCP Servers
- AlicenseAqualityBmaintenanceAn MCP server that enables AI agents to access paid AI inference and web tools via HTTP 402 micropayments in USDC on Base, using the agent's wallet as identity.36179 npmMIT
- AlicenseBqualityBmaintenanceMCP server exposing x402 Bazaar's paid Base APIs (token risk/honeypot, prices, gas, wallet intel, tx decode + AI utilities) as agent tools. Your agent pays per call in USDC over x402 — no API keys, no signup.17124 npmMIT
- FlicenseAqualityCmaintenanceMCP server for a live x402 payment gateway on Base (USDC). Lets AI agents discover, preview for free, then pay per call — with prepaid gasless payments, signed receipts, and delta delivery.7-
- AlicenseNot gradedqualityDmaintenanceMCP server that provides AI agents with pay-per-call access to a suite of tools (honeypot check, token market, DeFi yields, etc.) via USDC on Base using the x402 protocol.MIT