[Integrations](https://spiral.ai/integrations) › [Claude Code](https://spiral.ai/integrations/claude-code) › [Treasury Fiscal Data published reports](https://spiral.ai/integrations/claude-code/treasury-fiscal-data-published-reports)

# How to Use Treasury Fiscal Data published reports in Claude Code

Returns file references for official Treasury statements and reports. Use it to locate the published document for a reporting period and check its presentation alongside the table records.

|  |  |
| --- | --- |
| Model | Treasury Fiscal Data published reports |
| Available through | Alexandria |
| Category | Finance |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Treasury Fiscal Data published reports in Claude Code

- Use Treasury Fiscal Data published reports to locate the September 2025 Monthly Treasury Statement and add the returned file references to this project's source manifest.
- Use Treasury Fiscal Data published reports to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Treasury Fiscal Data published reports and tell me what changed since last week.
- Check Treasury Fiscal Data published reports and summarize what you find in three bullet points.
- Pull the newest data from Treasury Fiscal Data published reports and give me the result as a table.

## How to set up Treasury Fiscal Data published reports in Claude Code

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the hosted server**: This adds Spiral to the current project. Add `--scope user` to use it in every project.

```bash
claude mcp add --transport http spiral https://api.spiral.ai/mcp
```

2. **Sign in**: Start `claude`, type `/mcp`, choose spiral and Authenticate. Sign in to Spiral in the browser and click Authorize. No API key.

### Use the Spiral skill

1. **Send Claude Code this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Treasury Fiscal Data published reports**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "fiscaldata-treasury-gov/fiscal-data/published_reports",
    "input": {
      "dataset_id": "<dataset_id>"
    }
  }'
```

Then paste one of the prompts above: Claude Code finds Treasury Fiscal Data published reports on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/claude-code

## Treasury Fiscal Data published reports tools and prices

- [US Treasury Fiscal Data · Published reports](https://spiral.ai/tools/alexandria/fiscaldata-treasury-gov/fiscal-data/published_reports) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| to |  | — | Latest report_date to include (inclusive). Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$. |
| from |  | — | Earliest report_date to include (inclusive). Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$. |
| cursor |  | — | next_cursor from the previous page of the same query. |
| page_size | 1 to 1000 | 50 | page_size |
| path_contains |  | — | Case-sensitive substring the file path must contain, e.g. `/mts/`, `.xls` or `MonthlyTreasuryStatement_2025`. Applied to the dataset's full file list, so total_count reflects the filtered set. |

## What can you do with Treasury Fiscal Data published reports in Claude Code?

Build a federal finance dashboard with Treasury debt, cash, and budget figures tied to their reporting periods. A coding agent can use dataset descriptions, historical records, release estimates, and published statements to make the dashboard's calculations easier to inspect.

### Prepare a monthly federal budget briefing

Find the Monthly Treasury Statement tables, check the expected publication date, and retrieve the newest receipts and outlays. Compare them with earlier periods and locate the official statement for the briefing's source material.

### Explain changes in Treasury's cash balance

Identify the Daily Treasury Statement tables, plan checks around expected releases, and compare the newest cash balance with earlier observations. Locate the corresponding statement to examine deposits, withdrawals, and the report's notes.

### Review quarterly currency reporting rates

Find Treasury's exchange-rate dataset and expected releases, retrieve the newest Canadian dollar and Mexican peso observations, and compare earlier quarters. Locate the published report while checking raw records separately for amendments omitted from the PDF.

### Run an economic newsroom's release desk

Build a watchlist of Treasury datasets and expected publication times. For each release, compare the newest figures with the preceding period and locate any accompanying published statement before drafting the update.

### Check a budget chart against its published statement

Retrieve the Monthly Treasury Statement records behind a chart and locate the statement for the same period. Check the units and distinguish detail rows from subtotals before recalculating the chart.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Claude Code guides](https://spiral.ai/integrations/claude-code)

## Treasury Fiscal Data published reports in other agents

- [Amp](https://spiral.ai/integrations/amp/treasury-fiscal-data-published-reports)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/treasury-fiscal-data-published-reports)
- [Claude](https://spiral.ai/integrations/claude-desktop/treasury-fiscal-data-published-reports)
- [Cline](https://spiral.ai/integrations/cline/treasury-fiscal-data-published-reports)
- [Codex](https://spiral.ai/integrations/codex/treasury-fiscal-data-published-reports)
- [Cursor](https://spiral.ai/integrations/cursor/treasury-fiscal-data-published-reports)
- [Devin](https://spiral.ai/integrations/devin/treasury-fiscal-data-published-reports)
- [dots](https://spiral.ai/integrations/dots/treasury-fiscal-data-published-reports)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/treasury-fiscal-data-published-reports)
- [Gemini](https://spiral.ai/integrations/gemini/treasury-fiscal-data-published-reports)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/treasury-fiscal-data-published-reports)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/treasury-fiscal-data-published-reports)
- [goose](https://spiral.ai/integrations/goose/treasury-fiscal-data-published-reports)
- [Grok](https://spiral.ai/integrations/grok/treasury-fiscal-data-published-reports)
- [Grok Build](https://spiral.ai/integrations/grok-build/treasury-fiscal-data-published-reports)
- [Hermes](https://spiral.ai/integrations/hermes/treasury-fiscal-data-published-reports)
- [Instinct](https://spiral.ai/integrations/instinct/treasury-fiscal-data-published-reports)
- [Manus](https://spiral.ai/integrations/manus/treasury-fiscal-data-published-reports)
- [Muse](https://spiral.ai/integrations/muse/treasury-fiscal-data-published-reports)
- [Muse Code](https://spiral.ai/integrations/muse-code/treasury-fiscal-data-published-reports)
- [n8n](https://spiral.ai/integrations/n8n/treasury-fiscal-data-published-reports)
- [Notion](https://spiral.ai/integrations/notion/treasury-fiscal-data-published-reports)
- [OpenClaw](https://spiral.ai/integrations/openclaw/treasury-fiscal-data-published-reports)
- [opencode](https://spiral.ai/integrations/opencode/treasury-fiscal-data-published-reports)
- [Perplexity](https://spiral.ai/integrations/perplexity/treasury-fiscal-data-published-reports)
- [Raycast](https://spiral.ai/integrations/raycast/treasury-fiscal-data-published-reports)
- [VS Code](https://spiral.ai/integrations/vscode/treasury-fiscal-data-published-reports)
- [Windsurf](https://spiral.ai/integrations/windsurf/treasury-fiscal-data-published-reports)
- [Zapier](https://spiral.ai/integrations/zapier/treasury-fiscal-data-published-reports)

## More Claude Code guides

- [Treasury Fiscal Data latest figures](https://spiral.ai/integrations/claude-code/treasury-fiscal-data-latest-figures)
- [Treasury Fiscal Data release calendar](https://spiral.ai/integrations/claude-code/treasury-fiscal-data-release-calendar)
- [Treasury Fiscal Data dataset search](https://spiral.ai/integrations/claude-code/treasury-fiscal-data-dataset-search)
- [Treasury Fiscal Data table records](https://spiral.ai/integrations/claude-code/treasury-fiscal-data-table-records)
- [Tiingo ticker search](https://spiral.ai/integrations/claude-code/tiingo-ticker-search)
- [Treasury buyback operation results](https://spiral.ai/integrations/claude-code/treasury-buyback-operation-results)

## Questions about Treasury Fiscal Data published reports in Claude Code

**Can Claude Code use Treasury Fiscal Data published reports?**

Yes. Add Spiral to Claude Code as an MCP server, and Claude Code can find and run Treasury Fiscal Data published reports like any built-in tool.

**How much does Treasury Fiscal Data published reports cost in Claude Code?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Claude Code plan is separate.

**Do I need an Alexandria account to use Treasury Fiscal Data published reports in Claude Code?**

No. Spiral runs Treasury Fiscal Data published reports on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Treasury Fiscal Data published reports in Claude Code?**

About two minutes: add the hosted server, then sign in.

**Does Claude Code wait while Treasury Fiscal Data published reports runs?**

Treasury Fiscal Data published reports runs in the background. Claude Code starts the run, checks on it and gives you the json when it's ready.

**How current are Treasury's national debt figures?**

Debt to the Penny is updated at the end of each business day with the previous business day's data. Its latest observation is a daily accounting figure, not a continuously updated debt counter.

**Are Treasury's release dates guaranteed?**

Treasury describes its release calendar as estimated dates and times for upcoming releases. Use it to plan a refresh, then check whether the expected reporting period has actually appeared.

**Can I reuse Fiscal Data in a commercial report or application?**

Yes. Treasury explicitly permits copying, adapting, redistributing, and otherwise using the data for commercial and noncommercial purposes.

**Can Fiscal Data tell me someone's tax refund or payment status?**

No. Fiscal Data publishes government data and explicitly says it has no access to personal data or the ability to resolve personal inquiries.

**Why might a calculated spending total disagree with a Treasury statement?**

Monthly Treasury Statement tables include total and subtotal rows, so summing every row can double-count amounts. Daily Treasury Statement figures also have a specific precision limit: they are rounded to the nearest million.

