Census Trade
liveTradeGovernmentEconomicsUS Census Bureau International Trade data — import/export values, trade balances, and monthly trends by commodity and country.
Tools
census_importsSearch US import data by HS commodity code and/or country. Returns import values, quantities, and commodity details. Pass `country` as a plain English name (e.g. "China"). Omit hs_code for total impor
No parameters required.
Try it
census_exportsSearch US export data by HS commodity code and/or country. Returns export values, quantities, and commodity details. Pass `country` as a plain English name (e.g. "Mexico"). Omit hs_code for total expo
No parameters required.
Try it
census_trade_balanceCheck US trade balance with a specific country for a given year. Returns net trade value and breakdown by end-use commodity category.
No parameters required.
Try it
census_trade_trendsMonthly 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 u
No parameters required.
Try it
Test with curl
The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.
curl -X POST https://gateway.pipeworx.io/census-trade/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'curl -X POST https://gateway.pipeworx.io/census-trade/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"census_imports","arguments":{}}}'Use with the SDK
Install @pipeworx/sdk to call tools from any TypeScript/Node project.
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("census_imports", {});// Or ask in plain English:
const answer = await px.ask("us census bureau international trade data — import/export values, trade balances, and monthly trends by commodity and country");Related compound tools
These combine Census Trade with other data sources in a single call:
Compound trade-intelligence tools chaining Comtrade, Census, and Treasury — bilateral analysis, country profiles, and US macro trade dashboard in one call.
3 tools — trade_bilateral_analysis, trade_country_profile, trade_macro_dashboard