MCP server exposing 4 tools for census-trade.
This URL is a JSON-RPC 2.0 endpoint over HTTP. Issue POST requests with a JSON-RPC body. Browsers and search crawlers land here on GET.
POST https://gateway.pipeworx.io/census-trade/mcp
Content-Type: application/json
{"jsonrpc":"2.0","id":1,"method":"tools/list"}
census_imports — US import data from the US Census Bureau foreign-trade statistics, by HS commodity code and/or country. With a `country` and `year` but no hs_code or month it returns the country's total imports for the year as import_value_usd (year-to-date through period_through, with partial_year true, while the year is still being published) plus, when it arrives within 8s, the top HS2 commodity chapters summed over the published months; when the rows do not arrive in time, sources_failed names the breakdown and records is empty. With hs_code or month it returns that slice's records. Pass `country` as a plain English name (e.g. "China"). Omit country for all countries combined.census_exports — US export data from the US Census Bureau foreign-trade statistics, by HS commodity code and/or country. With a `country` and `year` but no hs_code or month it returns the country's total exports for the year as export_value_usd (year-to-date through period_through, with partial_year true, while the year is still being published) plus, when it arrives within 8s, the top HS2 commodity chapters summed over the published months; when the rows do not arrive in time, sources_failed names the breakdown and records is empty. With hs_code or month it returns that slice's records. Pass `country` as a plain English name (e.g. "Mexico"). Omit country for all countries combined.census_trade_balance — Check US trade balance with a specific country for a given year. Returns net trade value (trade_balance_usd). For a year still being published it returns year-to-date through the latest published month (period_through) and, when available, the same months of the prior year with deficit_trend_vs_prior_year (widening or narrowing).census_trade_trends — Monthly US trade trends with ONE trading partner, month-by-month imports and exports for a country, optionally narrowed to an HS commodity, to show seasonality and shifts. A country is required: an unfiltered monthly query spans every partner and the Census API cannot return it in time. For all-countries totals use census_imports / census_exports instead.Code samples (curl / TypeScript / one-click client install), schemas, and the live playground are on the pack page:
https://pipeworx.io/packs/census-trade/
Pipeworx is an open MCP gateway connecting AI agents to live data. pipeworx.io