Treasury Fiscal

liveGovernmentFinanceEconomics

US Treasury Fiscal Data API — customs duty revenue, government receipts by source, national debt, and official exchange rates.

8tools
0msauth
free tier50 calls/day

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 used for government currency conversions. Pass a country name for one country's rate; omit it for the most recent rates across all countries.

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
treasury_outlays

US federal outlays by budget function (Net Interest, National Defense, Social Security, Medicare, Health, ...) plus total net outlays, total receipts and the deficit, from the U.S. Treasury Monthly Tr

No parameters required.

▶Try it
treasury_auction_results

US Treasury auction results: high yield/rate, bid-to-cover ratio, and offering/accepted amounts for recently settled bills, notes, bonds, TIPS, and floating-rate notes (FRNs), with CUSIP, from the Tre

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.

List available tools
bash
curl -X POST https://gateway.pipeworx.io/treasury-fiscal/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
Call a tool
bash
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.

TypeScript
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("treasury_customs_revenue", {});
ask_pipeworx
// 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