Mercury402: Treasury/FRED financial data over x402

v0.1.4
io.github.dudman1/mercury402-mcp Checked 1 day ago Published 1 month ago

Treasury/FRED financial data over x402: pay-per-call US yields, macro and forex in USDC on Base

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

list_endpoints List Mercury402 endpoints

List Mercury402 financial data endpoints (78 total) with path, method, category, description, price in USD (paid per call in USDC on Base via x402) and accepted parameters. Free; makes no network calls.

ParameterTypeDescription
categorystringOnly return this category
searchstringCase-insensitive substring match on path or description

get_endpoint_data Call a Mercury402 endpoint

Call a Mercury402 endpoint on the live API. Without paid mode, endpoints return HTTP 402 and this tool returns the price and x402 payment instructions instead of data. With paid mode enabled (MERCURY402_PAYER_PRIVATE_KEY), it pays in USDC on Base (capped by MERCURY402_MAX_PRICE_USD) and returns the data. Use list_endpoints first to find paths and parameters. Path params can be inline ("/v1/fred/UNRATE") or passed in params ("/v1/fred/{series_id}" + {"series_id":"UNRATE"}). Other params go to the query string (GET) or JSON body (POST).

ParameterTypeDescription
path *stringEndpoint path, e.g. "/v1/treasury/yield-curve/daily-snapshot" or "/v1/fred/UNRATE"
paramsobjectPath, query (GET) or body (POST) parameters
paybooleanPaid mode only: set false to just get the price quote without paying. Default true.