Treasury Fiscal
live GovernmentFinanceEconomicsUS Treasury Fiscal Data API — customs duty revenue, government receipts by source, national debt, and official exchange rates.
Tools
treasury_customs_revenue Track monthly US customs duty revenue. Returns monthly collection amounts to analyze tariff impact trends.
No parameters required.
Try it
treasury_receipts Get US government receipts by source: individual income tax, corporate tax, excise taxes, customs duties, and more.
No parameters required.
Try it
treasury_debt Check current US national debt with historical data points. Returns total public debt outstanding over time.
No parameters required.
Try it
treasury_exchange_rates Get official US Treasury exchange rates for any currency (e.g., 'EUR', 'GBP', 'JPY'). Returns rates used for government conversions.
No parameters required.
Try it
treasury_avg_interest_rates Average interest rates on US Treasury securities by security type (bills, notes, bonds, TIPS, total marketable / non-marketable) from the Treasury Fiscal Data avg_interest_rates dataset. Returns recen
No parameters required.
Try it
treasury_federal_net_cost US federal government net cost / spending by agency (gross cost, earned revenue, net cost) from the Treasury statement_net_cost dataset. Returns recent records; optionally filter by fiscal_year.
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/treasury-fiscal/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}' curl -X POST https://gateway.pipeworx.io/treasury-fiscal/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"treasury_customs_revenue","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("treasury_customs_revenue", {}); // Or ask in plain English:
const answer = await px.ask("us treasury fiscal data api — customs duty revenue, government receipts by source, national debt, and official exchange rates"); Related compound tools
These combine Treasury Fiscal 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