{
  "markdown": "# US Treasury Fiscal Data\n\nThe U.S. Department of Treasury's Fiscal Data API. Daily Treasury cash, public debt outstanding, federal receipts and outlays, customs revenue, exchange rates, and savings bonds redemption data. The actual numbers behind \"the federal deficit\" and \"the national debt.\" Free, no auth.\n\nPart of [Pipeworx](https://pipeworx.io) — an MCP gateway connecting AI agents to 1476+ live data sources.\n\n## Why this matters for AI agents\n\nFor macro questions about the US fiscal stance — debt level, daily cash position, monthly receipts, customs revenue — Treasury Fiscal Data is the authoritative live source. Where FRED publishes monthly aggregates, Treasury publishes the underlying daily ledger.\n\nCommon flows:\n\n- **National debt.** \"What's the public debt right now?\" → `treasury_debt` → outstanding total broken into intragovernmental vs. public-held.\n- **Customs revenue.** \"How much tariff revenue did Treasury collect in 2024?\" → `treasury_customs_revenue({year: 2024})`.\n- **Receipts / outlays.** Daily Treasury cash position (deposits vs. withdrawals) by source.\n- **Exchange rates.** Treasury reporting rate for foreign-currency transactions (used by federal contractors and grant recipients).\n\nUsed by the `trade_bilateral_analysis` compound for tariff context.\n\n## Auth\n\nNone. Treasury Fiscal Data is fully public, free, no key.\n\n## Datasets worth knowing\n\n| Dataset | Cadence | Use |\n|---|---|---|\n| Daily Treasury Statement | Daily | Cash position, deposits, withdrawals |\n| Monthly Treasury Statement | Monthly | Receipts, outlays, deficit |\n| Public Debt Outstanding | Daily | Total debt, intragovernmental vs. public-held |\n| Customs Revenue | Monthly | Tariff collections |\n| Treasury Reporting Rates of Exchange | Quarterly | Official rates for federal accounting |\n| Savings Bond Securities | Monthly | Issuance, redemption |\n\n## Update cadence\n\n- Daily Treasury Statement: ~3 PM Eastern, T+1 (next business day)\n- Monthly statements: ~mid-month, for prior month\n- Public debt: daily\n- Exchange rates: quarterly (recalibrated; not real-time market rates — use FX/forex packs for live rates)\n\nPipeworx caches with TTLs matching these.\n\n## Common pitfalls\n\n- **Public debt vs. gross debt.** \"Public-held debt\" excludes intragovernmental holdings (Social Security trust fund, etc.). Headlines usually quote the gross debt; analysts care about public-held. Both are in the data.\n- **Customs revenue ≠ tariffs only.** Includes anti-dumping, countervailing duties, fees. For pure tariff revenue, filter by item code in the call response.\n- **Treasury exchange rates aren't market rates.** They're quarterly-recalibrated rates used for federal accounting. For real-time FX, use the dedicated `exchange-rate` or `frankfurter` packs.\n- **Daily cash position is not GDP.** The Treasury's cash position is a stock measure; GDP is a flow. Don't confuse.\n- **Fiscal year vs. calendar year.** Federal fiscal year is October 1 – September 30. Receipts and outlays default to fiscal-year reporting. Filter explicitly if you need calendar-year numbers.\n\n## Quick Start\n\nAdd to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):\n\n```json\n{\n  \"mcpServers\": {\n    \"treasury-fiscal\": {\n      \"url\": \"https://gateway.pipeworx.io/treasury-fiscal/mcp\"\n    }\n  }\n}\n```\n\n### What this endpoint actually serves\n\n`tools/list` at `https://gateway.pipeworx.io/treasury-fiscal/mcp` returns the tools in the table\nabove **plus the shared Pipeworx meta-tools** — `ask_pipeworx`,\n`discover_tools`, `search_within`, `remember`/`recall` and the rest of the\ngateway-wide set. So the tool count you see is larger than this table: a\nsingle-pack endpoint currently lists roughly 30 shared tools alongside the\npack's own. The connection's `initialize` response states its exact scope, and\nis the authoritative answer for a given day.\n\nThis is deliberate, not multiplexing by accident. The meta-tools are what let a\nscoped connection answer a question this pack does not cover — via\n`ask_pipeworx`, which routes across the whole catalog — without you adding a\nsecond MCP server. There is currently no way to mount a pack endpoint without\nthem; if the extra schemas cost you more context than the routing is worth,\nconnect to the full gateway once rather than to several pack endpoints.\n\nOr connect to the full Pipeworx gateway to get every pack's tools listed\ndirectly, instead of just this one's:\n\n```json\n{\n  \"mcpServers\": {\n    \"pipeworx\": {\n      \"url\": \"https://gateway.pipeworx.io/mcp\"\n    }\n  }\n}\n```\n\nBoth URLs reach the same gateway and the same 1476+ data sources. The\nonly difference is which pack's tools are listed **directly**; `ask_pipeworx`\nreaches all of them from either one.\n\n## Using with ask_pipeworx\n\nInstead of calling tools directly, you can ask questions in plain English —\nthis works on the pack endpoint above as well as on the full gateway:\n\n```\nask_pipeworx({ question: \"your question about Treasury Fiscal data\" })\n```\n\nThe gateway picks the right tool and fills the arguments automatically.\n\n## More\n\n- [Docs and guides](https://pipeworx.io/docs)\n- [pipeworx.io](https://pipeworx.io)\n\n## License\n\nMIT\n",
  "bytes": 5134,
  "sha": "a4a8d8d097ba37c370fdb1f8ed5806685da0e40571a5260b716ca6a83b6d04ad",
  "repo_slug": "pipeworx-io/mcp-treasury-fiscal",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_pipeworx_io_treasury_fiscal_06f75400/readme"
}