x402-gateway-mcp
This MCP server is a mixed free/paid gateway giving agents an x402 ecosystem market snapshot plus a broad set of paid, wallet-gated data and diligence tools.
Free, no-wallet
x402_market_pulsetool: ecosystem snapshot refreshed ~3x/day with service listings by category, week-over-week deltas, new listings, npm download trends, protocol releases, and reliability grades.Paid tools, each with a per-call USDC price, for market/ecosystem intelligence: x402 category breakdown, listing trends, endpoint scorecards, and resource preflight risk scoring.
Paid price/finance data: crypto prices, DeFi TVL, Uniswap v2/v3 DEX pool state, EVM gas fees, FX rates, and US Treasury yield curves.
Paid web/data tools: US weather forecasts, WHOIS/RDAP domain registration data, DNS resolution, email deliverability validation, web page-to-markdown extraction, Hacker News front page, and Wikipedia summaries.
Paid developer/supply-chain tools: npm and PyPI package health checks, and a deterministic ERC-20 token risk score.
Paid composed due-diligence report for domains combining WHOIS, DNS, email, homepage content, and risk flags.
Paid LLM inference via OpenRouter (Claude Haiku) with flat or metered pricing, token/daily caps, and no prompt storage.
Spend guardrails:
MAX_PER_CALL_USDandMAX_SESSION_USDcaps enforced before payment signing; paid tools clearly advertise their costs in descriptions.
Provides access to npm download trends for core x402 packages.
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-gateway-mcp what's the current USD price of Bitcoin?"
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.
Retired source — recovery reference
Active maintenance moved to the sole maintained private repository Marysbrain/aye-today, in packages/mcp/.
Do not install or deploy from this retired repository. The historical instructions below are retained for recovery and reference, not current operations.
Existing public deployments continue unchanged. Repository retirement does not delete or shut down services. Original source and Git history remain preserved; retired repository workflows are disabled.
Retirement notice: 2026-09-03.
x402-gateway-mcp
The live x402 market feed for agents. The x402_market_pulse tool is
FREE — no wallet, no payment, no signup: the x402 ecosystem in one snapshot,
refreshed ~3x/day — service listings by category with week-over-week deltas,
newly listed services, npm download trends for the core x402 packages,
protocol release tags, and per-source reliability grades. Every metric
carries a freshness stamp; a stale source says so instead of pretending.
Behind the feed, Aye Scout exposes two paid pre-payment diligence tools: x402 category coverage and a resource preflight that checks reachability, terms, catalog presence, and observed age before an agent spends. The tool list is fetched from the signed public manifest at startup; compatibility-only routes are deliberately absent (verify).
The manifest is verified over its exact response bytes before any paid tools are registered. Both the treasury address and gateway signing-key ID are pinned; an unsigned manifest or an unexpected key rotation stops startup.
⚠️ Funded-wallet warning:
WALLET_PRIVATE_KEYsigns real payments. Use a dedicated wallet holding only small balances (a few dollars of USDC). Never your main wallet. The key is read from env, never logged, and payment headers are never echoed into agent-visible output.
5-minute setup (Claude Desktop / Claude Code)
Create a fresh wallet and fund it with a small amount of USDC on Base (or Base Sepolia test USDC from https://faucet.circle.com while testing).
npm install -g x402-gateway-mcp(or usenpx).Add to your MCP config (Claude Desktop
claude_desktop_config.json, orclaude mcp addfor Claude Code):
{
"mcpServers": {
"x402-gateway": {
"command": "npx",
"args": ["-y", "x402-gateway-mcp"],
"env": {
"GATEWAY_URL": "https://<your-gateway-host>",
"WALLET_PRIVATE_KEY": "0x<small-balance-wallet-key>",
"MAX_PER_CALL_USD": "0.25",
"MAX_SESSION_USD": "2.00"
}
}
}
}Restart the client. The free
x402_market_pulsetool works immediately (no wallet needed); every paid tool description states its price, e.g.[costs $0.01 USDC per call] Score an x402 resource before paying it…
Related MCP server: halowerk-mcp
Spend guardrails
MAX_PER_CALL_USD(default 0.25): tools priced above this are refused.MAX_SESSION_USD(default 2.00): cumulative settled spend per server session; calls that would exceed it are refused with a clear message the agent can relay. Restart the server to reset.
Refusals happen before any payment is signed.
Env reference
Var | Default | Purpose |
|
| Gateway base URL (override for local/testnet) |
| — | Buyer key (small balance!). Without it, tools list but calls fail with a clear error |
|
| Per-call cap |
|
| Per-session cap |
| Aye treasury address | Pinned payment destination; override only for a controlled test deployment |
| Aye production key ID | Pinned manifest signing key; rotate only with an audited gateway release |
If a transport or body-read error occurs after payment authorization, the MCP reserves the full advertised amount as possibly spent. It will not silently restore that session capacity; reconcile the wallet before retrying.
Available Tools
23 toolscrypto_gasA
[costs $0.002 USDC per call] Get current gas prices and EIP-1559 fee estimates for an EVM chain. EVM gas price API: current gas fees for Ethereum, Base, and Polygon — node-reported gas price plus EIP-1559 estimates from the last 5 blocks: next base fee and 25th/50th/75th-percentile priority fees, in gwei. Read directly from public JSON-RPC nodes with automatic fallbacks. Use for transaction cost estimation, fee optimization, and timing on-chain actions. Cached up to 15 seconds.
Inputs: chain (required).
crypto_priceA
[costs $0.005 USDC per call] Get the current USD price of a cryptocurrency by ID. Live cryptocurrency price API: current USD price for any coin by CoinGecko id ('bitcoin', 'ethereum') or DefiLlama id ('coingecko:bitcoin', 'chain:address' for tokens by contract address). Sourced from DefiLlama's aggregated market feed with the source's own confidence score (0-1) and the unix timestamp of the observation. Ideal for agents needing spot prices, portfolio valuation, or price checks before on-chain actions. Cached up to 60 seconds; freshness in meta.fetchedAt.
Inputs: coinId (required).
defi_tvlA
[costs $0.005 USDC per call] Get the current total value locked (TVL) in USD for a DeFi protocol. DeFi TVL API: current total value locked in USD for any DeFi protocol by DefiLlama slug ('aave', 'uniswap', 'lido' — full list at defillama.com/protocols). Aggregates across every chain the protocol deploys on. Use for protocol health checks, DeFi rankings, risk screening, and market research by autonomous agents. Slugs are lowercase. Cached up to 5 minutes; freshness reported in meta.fetchedAt.
Inputs: protocol (required).
dev_npmA
[costs $0.003 USDC per call] Check an npm package's version freshness, deprecation, and popularity. npm package health API: dependency-hygiene facts straight from the npm registry — latest version, all dist-tags, last-modified timestamp, total published versions, deprecation status with message, runtime dependency count, and weekly downloads. For scoped packages, URL-encode the slash in the name. Use for dependency auditing, supply-chain security checks, version freshness, and update agents maintaining package.json. Cached up to 1 hour per package.
Inputs: packageName (required).
dev_pypiA
[costs $0.003 USDC per call] Check a PyPI package's version freshness, yank status, and popularity. PyPI package health API: dependency-hygiene facts from the official PyPI JSON API — latest version, upload time, total releases, yank status, declared dependency count, requires-python constraint, license, summary, and weekly downloads (pypistats). Names are PEP 503-normalized (dots/underscores/hyphens equivalent). Use for auditing requirements.txt and pyproject.toml, supply-chain security checks, and version freshness agents. Cached up to 1 hour per package.
Inputs: packageName (required).
dex_poolA
[costs $0.01 USDC per call] Read live on-chain state of a Uniswap v2/v3-compatible DEX pool. On-chain DEX pool data API: reads Uniswap v2/v3-compatible liquidity pools directly from Ethereum, Base, or Polygon via JSON-RPC — no third-party data vendor. Auto-detects pool type; returns token addresses, symbols, decimals, spot price both directions, v3 fee tier, sqrtPriceX96 and in-range liquidity, or v2 decimal-adjusted reserves. For price discovery, liquidity checks, and trading agents needing trustless pair state at the latest block. Cached up to 30 seconds.
Inputs: chain (required), poolAddress (required).
domains_whoisA
[costs $0.005 USDC per call] Get normalized WHOIS/RDAP registration data for a domain. Domain WHOIS/RDAP lookup API: registration data for any domain from the authoritative registry's RDAP server, normalized: registration/expiry/update dates, registrar, EPP status codes, nameservers, and DNSSEC. Works for all gTLDs and most ccTLDs. Unregistered or RDAP-less domains return an unpaid 404. Use for domain availability checks, ownership research, expiry monitoring, and security screening by agents. Cached up to 24 hours.
Inputs: domain (required).
email_validateA
[costs $0.005 USDC per call] Validate an email address: syntax check plus live MX-record lookup. Email validation API: RFC-style syntax check plus live MX-record lookup (with RFC 5321 A-record fallback) over DNS-over-HTTPS — no third-party service, nothing stored. Returns parsed domain, sorted MX hosts, and a 'deliverable' flag meaning DNS will accept mail for the domain — it does NOT verify the mailbox exists. Use for lead cleaning, signup validation, and contact verification by agents. Cached up to 1 hour per address.
Inputs: email (required).
fxA
[costs $0.002 USDC per call] Get the ECB reference exchange rate between two fiat currencies. Foreign exchange rate API: official ECB reference rate for any fiat currency pair (USD/EUR, GBP/JPY — ~30 major ISO 4217 currencies) via the open-source Frankfurter API. Published once per business day around 16:00 CET — a daily reference rate for settlement and normalization, not a live trading feed. Use for currency conversion, pricing normalization, and financial reporting by agents. Cached up to 1 hour.
Inputs: base (required), quote (required).
knowledge_wikiA
[costs $0.003 USDC per call] Get the English Wikipedia summary for a topic. Wikipedia summary API: the lead summary of any English Wikipedia article — title, one-line description, extract paragraph, thumbnail, canonical URL, and Wikidata item id; disambiguation pages labeled via 'kind'. Titles case-sensitive; spaces or underscores accepted. Content CC BY-SA 4.0 with attribution in meta.attribution of every response. Use for knowledge lookup, entity enrichment, and fact grounding by agents. Cached up to 24 hours.
Inputs: title (required).
network_dnsA
[costs $0.002 USDC per call] Resolve a DNS record via DNS-over-HTTPS with DNSSEC validation status. DNS lookup API: resolve any DNS record via Cloudflare's 1.1.1.1 DNS-over-HTTPS resolver with DNSSEC validation status. Types A, AAAA, CNAME, MX, NS, TXT, SOA, CAA, SRV, PTR; returns the full answer section (name, type code, TTL, data). NXDOMAIN returns an unpaid 404. Use for infrastructure checks, email deliverability, domain verification, and security tooling by agents. Cached up to 5 minutes.
Inputs: name (required), type (required).
news_tech_pulseA
[costs $0.005 USDC per call] Get the current Hacker News front page (30 stories), normalized. Tech news API: the current Hacker News front page — 30 ranked stories as normalized JSON: rank, story id, title, outbound article URL (or HN discussion link for self-posts), points, author, comment count, ISO 8601 time. Single upstream call via the official Algolia HN API. Use for tech trend detection, topic monitoring, news agents, and content-pipeline seeding. Cached up to 2 minutes.
Inputs: no named parameters.
rates_us_treasuryA
[costs $0.005 USDC per call] Get the latest US Treasury daily par yield curve (1M–30Y). US Treasury yield curve API: the latest Daily Treasury Par Yield Curve — yields in percent for 13 maturities from 1 month to 30 years, plus curve date, straight from the US Department of the Treasury. Public-domain government data, published each business day. Use for interest rate benchmarks, bond analysis, discount rates, and macro signals. Slow upstream (~10s) so served from a 6-hour cache; meta.fetchedAt shows when the curve was retrieved.
Inputs: no named parameters.
report_domainA
[costs $1.00 USDC per call] Get a composed due-diligence dossier for a domain: WHOIS, DNS, email, homepage, risk flags. Domain due-diligence report API: one call composes WHOIS/RDAP registration data, DNS records (A, MX, TXT), live email deliverability, and homepage title + excerpt into a single dossier with deterministic risk flags (new registration, expiring soon, no DNSSEC, no mail service, unreachable homepage). Partial-success per section — charged only when the core identity sections resolve. Use for vendor vetting, KYC screening, phishing triage, and onboarding agents. Cached up to 1 hour.
Inputs: domain (required).
risk_tokenA
[costs $0.15 USDC per call] Get a deterministic, auditable risk score (0-100) for an ERC-20 token. Token risk score API: deterministic, auditable 0-100 rug-check for any ERC-20 on Ethereum, Base, or Polygon. Fans out to on-chain reads (bytecode, symbol, decimals, supply), DefiLlama price + confidence, and Etherscan source verification and age. Returns score, flags[], and every rubric input. Published rubric, no AI: start 50; no bytecode=0; +15 price (+10 confidence>=0.9); +15 verified source (-10 unverified); -10 zero supply; -5 odd decimals; +10 age>=180d, -15 age<7d. NOT financial advice.
Inputs: chain (required), address (required).
v1_category_breakdownA
[costs $0.005 USDC per call] Get the current x402 service catalog broken down by category, with 7-day deltas. Current x402 ecosystem composition: services per category (Agentic.Market taxonomy: Data, Inference, Search, Infra, Media, Social, Trading, Travel...), each with catalog share and 7-day delta, from our collector's latest observation run (~3x/day since 2026-07-06). Shows where x402 supply is concentrating and which categories are growing. Deterministic read from archived observations; no upstream calls at request time. Free snapshot: /v1/market-pulse.
Inputs: no named parameters.
v1_endpoint_scorecardA
[costs $0.02 USDC per call] Get the public listing history and observed age of one x402 resource URL. Due-diligence scorecard for a single x402 resource before an agent pays it: when we first observed it in public catalogs (CDP Bazaar, Agentic.Market), how consistently it has stayed listed, when it appeared as a new listing, and its recent observation history — from our collector archive (~3x/day since 2026-07-06). Presence and persistence in public catalogs, not an endorsement. Deterministic; public-source data only; no internal transaction data. Pass resource=.
Inputs: resource (required).
v1_market_trendA
[costs $0.01 USDC per call] Get the x402 ecosystem listing trend: time series per category or catalog totals. x402 market intelligence time series: how many services/resources are listed per category (Agentic.Market taxonomy) or in total (CDP Bazaar ~23k resources, Agentic.Market ~1.5k services), sampled ~3x/day by our collector since 2026-07-06. Query category=Data|Inference|Search|... or category=all for catalog totals, days=1-30 window. Deterministic reads from our archived observation history; no upstream calls at request time. Free snapshot: /v1/market-pulse.
Inputs: days, category.
v1_preflightA
[costs $0.01 USDC per call] Score an x402 resource URL before paying it: reachability, terms, catalog presence, age. Spend-guard preflight: deterministic 0-100 score for any x402 resource URL before an agent pays it. One SSRF-guarded probe of the live 402 (terms decode, payTo, price sanity) plus origin /.well-known/x402.json plus our collector's Bazaar presence and observed age. Rubric: start 50; +15 valid 402; +10 terms decode; +5 payTo; +5 price<=$5 (-10 above); +10 catalog; +15 Bazaar-listed; +10 age>=7d (+5 >=1d); -20 unreachable. Raw signals in every response; auditable. Not an endorsement.
Inputs: resource (required).
v1_runA
[costs $0.05 USDC per call] Run an LLM prompt over x402: metered (pay actual usage) or flat per call. LLM inference over x402: POST a prompt (JSON body), get raw model output. Flat $0.05 per call (or metered pay-actual-usage when the upto scheme is on); every response prints tokens, upstream cost, margin, and the charge. Model: Anthropic Claude Haiku 4.5 via OpenRouter — no API key, bring a wallet. AI lane declared (aiUse: model-output): model output sold as model output, no system prompt injected. We never store prompts or completions; per-call and daily spend caps enforced.
Inputs: prompt (required), model, maxTokens.
weather_usA
[costs $0.003 USDC per call] Get the official US National Weather Service forecast for coordinates. US weather forecast API: official National Weather Service forecast for any US lat/lon — next four periods (~48 hours, day/night): temperature, wind, short and detailed forecast text, plus resolved place name. UNITED STATES COVERAGE ONLY; points outside NWS coverage return an unpaid 404. Public-domain government data. Use for logistics, travel, and event-planning agents. Cached up to 10 minutes; nearby coordinates (within ~0.1°/11km) may share a cached forecast.
Inputs: lat (required), lon (required).
web_extractA
[costs $0.03 USDC per call] Fetch a web page and extract its readable content as clean markdown. Web scraping API: fetch any public web page and get its readable content as clean markdown — title, author, canonical URL, boilerplate stripped. Honest User-Agent, robots.txt honored (explicit Disallow returns an unpaid 403), private/internal targets refused, at most 3 safety-revalidated redirects, 1MB input / 100k character output caps. HTML pages only. Use for research agents, content extraction, summarization pipelines, and RAG ingestion. Cached up to 5 minutes per URL.
Inputs: url (required).
x402_market_pulseA
[FREE — no payment, no wallet needed] The live x402 market feed for agents: ecosystem snapshot with service listings by category, week-over-week deltas, newly listed services, x402 npm download trends, and protocol releases. Refreshed ~3x/day by the Stride20k collector. Served from /v1/market-pulse.
Inputs: no named parameters.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 23 tools
Each tool targets a distinct domain or operation. For example, crypto_gas vs. crypto_price vs. defi_tvl are clearly different; dev_npm and dev_pypi differ by ecosystem; v1_preflight, v1_endpoint_scorecard, and v1_run serve unique purposes. No two tools have overlapping functionality.
Most tools follow a descriptive pattern (domain_verb or domain_noun) like crypto_price, defi_tvl, web_extract. The v1_* and x402_market_pulse tools use a different prefix but are consistent within their group. Overall, naming is mostly predictable with minor deviations.
23 tools is well-scoped for a multi-purpose gateway. The count covers a wide range of data and utility services without being overwhelming or insufficient. Each tool serves a clear purpose and earns its place.
The tool surface covers diverse domains (crypto, DeFi, packages, domains, weather, etc.) with good depth. Minor gaps exist, such as lack of historical price data for crypto or a token transfer tool, but these are not critical for the gateway's stated purpose. Overall, the set is reasonably complete.
Maintenance
Related MCP Connectors
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.
x402 pay-per-call APIs over MCP, settled in USDC on Base for autonomous agents and developers.
Pay-per-call APIs via x402 USDC on Base. Hosted MCP: original gateway; stdio: full catalog.
Related MCP Servers
AlicenseNot gradedqualityDmaintenanceEnables MCP clients to use paid tools for secret scanning, agent-config auditing, and OG image rendering, with payments handled over the x402 protocol on Base.MIT
halowerk-mcpofficial
AlicenseAqualityDmaintenanceProvides access to 70 paid APIs as MCP tools with per-call and session budgets, paying via x402/USDC on Base without requiring an account or login. Includes a built-in allowlist of hosts and safe defaults to prevent unintended payments.1459 npmMIT- FlicenseNot gradedqualityDmaintenanceEnables AI agents to access 11 paid x402 endpoints as standard MCP tools, paying per call in USDC on Base without API keys, covering chat, code, vision, embeddings, crypto prices, weather, geolocation, forex, and WHOIS data.-
- AlicenseNot gradedqualityCmaintenanceEnables MCP clients to call pay-per-use tools for search, PDF processing, web reading, extraction, summarization, fact-checking, translation, jobs, and discovery, with each call paid in USDC on Base via x402 and no API key or account required.AGPL 3.0