mapper-mcp

v0.5.0
@tomsmart-ai/mapper-mcp Checked 2 days ago Published 6 months ago

MCP server for the SmartFlow x402 endpoint catalogue.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_catalog_stats

Aggregate counts over the full SmartFlow x402 endpoint catalogue: total endpoints, spec-valid (payment_required_valid=1) count, and breakdown by registry source (402index, well-known-discovery, Coinbase Bazaar, x402scan, apiosk-catalog, and others).

list_endpoints

Paginated browse over the catalogue with optional filters. Returns endpoint records with URL, registry source, declared chain/network, HTTP probe status, first/last seen timestamps, the strict x402 v2 spec-validity flag (payment_required_valid), and on-chain payment metadata where available. Common patterns: filter by status=402 to narrow to paid endpoints; combine with spec_valid=1 to get only endpoints that emit a strict v2 schema body (11.5k of 13k as of the 2026-05-19 sweep). Use search_endpoints instead when you have a text query.

ParameterTypeDescription
chainstringFilter by declared chain or network — accepts both formats. Examples: 'eip155:8453' or 'Base' (Base mainnet), 'solana', 'Lightning', 'Tempo', 'Base Sepolia'.
limitintegerItems per page (1-100, default 25).
pageinteger1-indexed page number (default 1).
sourcestringFilter by registry source substring (LIKE-match). Examples: 'bazaar' (Coinbase Bazaar), '402index', 'x402scan', 'apiosk-catalog', 'well-known-discovery'.
spec_validintegerFilter by strict x402 v2 schema validity flag. 1 = body validates (accepts[] array with scheme + network + payTo + maxAmountRequired); 0 = HTTP 402 returned but body is non-compliant.
statusintegerFilter by last HTTP probe status code. Common: 402 (paid), 200 (alive landing), 404 (dead), 0 (probe timeout/error).
volume_gtnumberFilter by on_chain_volume_usdc > X (USDC float). Returns only endpoints whose observed on-chain USDC payment volume strictly exceeds the threshold. Useful for surfacing high-traffic endpoints.

search_endpoints

Text search over the catalogue across URL, declared chain, and registry source. Use when an agent is looking for endpoints that mention a specific provider, domain fragment, or chain identifier. Search is substring-matched (case-insensitive).

ParameterTypeDescription
q *stringSearch string (e.g. 'cdp', 'lightning', 'asterpay').
limitintegerMaximum items to return (1-100, default 25).

get_endpoint_details

Fetch the full record for a single endpoint by URL: registry source, declared chain/network, HTTP probe history, response shape, asset address, payment-required amount/token, on-chain payment counts and wallet, TLS issuer, and discovery provenance.

ParameterTypeDescription
url *stringFull endpoint URL as it appears in the catalogue (e.g. 'https://x402.quickintel.io/v1/scan/full').

get_active_endpoints

Return the cohort of endpoints seen within the last N days, ordered by last_seen DESC. Useful for tracking which endpoints in the catalogue are currently alive vs. stale. The catalogue is re-probed regularly; last_seen is the timestamp of the most recent successful probe. Window is 1-90 days (default 7).

ParameterTypeDescription
limitintegerMaximum endpoints to return (1-500, default 100).
window_daysintegerLook-back window in days (1-90, default 7). Endpoints with last_seen >= now - window_days are returned.

get_chain_breakdown

Aggregate segmentation of the catalogue by declared chain/network. Returns one row per chain with: total endpoint count, count of endpoints currently returning HTTP 402 (paid + alive), and total observed on-chain USDC payment volume. Useful for buyer agents that need to size each chain's slice of the x402 economy before picking where to deploy. Sorted by count DESC.

get_facilitator_breakdown

v0.5.0+: returns actual facilitator address aggregation joined from payments.db. Each row is one facilitator wallet (tx_sender on USDC x402 transfers) with: facilitator_address, facilitator_label (from the on-chain labelled facilitators table when known, else 'unknown'), tx_count (distinct tx hashes), distinct_recipients (distinct mapper- catalogued endpoint wallets paid through this facilitator), and total_volume_usdc. Joins payments.payments → mapper.endpoints on to_wallet = on_chain_wallet (paid → catalogued endpoint), then left-joins payments.facilitators on tx_sender = address for lab…

get_facilitator_source_breakdown

Legacy v0.4.0 behaviour preserved as backwards-compatible alias: aggregate segmentation by registry_source (discovery channel proxy — 402index, well-known-discovery, Coinbase Bazaar, x402scan, apiosk- catalog, CDP Discord, direct crawl). This is NOT a facilitator wallet breakdown; it segments the catalogue by where each endpoint was discovered. Use get_facilitator_breakdown instead when you need the actual on-chain facilitator address aggregation. Returns count + total on-chain USDC volume per discovery source, sorted by count DESC, capped at top 100. May be deprecated in a future major rele…