L'Atlas / MCP servers / treasury-fiscaldata-mcp-server
MCP server

treasury-fiscaldata-mcp-server

io.github.cyanheads/treasury-fiscaldata-mcp-server

MCP server OK 7 tools

Get a review See pricing

Query US Treasury national debt, interest rates, exchange rates, and fiscal datasets via MCP.

Technical sheet

Author
cyanheads (registry namespace)
Repository
github.com/cyanheads/treasury-fiscaldata-mcp-server
Site
—
Version
0.5.0
Transport
Streamable HTTP stdio
Authentication
None (observed by our test)
Server address
https://treasury-fiscaldata.caseyjhand.com/mcp Streamable HTTP
Packages
@cyanheads/treasury-fiscaldata-mcp-server 0.5.0 npm stdio
@cyanheads/treasury-fiscaldata-mcp-server 0.5.0 npm Streamable HTTP
Tools
7
Categories
—
Last updated
16 Nov 2026
Published
16 Nov 2026

Verified author and popularity

Entry not claimed yet. Is it your project? Claim it

Not “Popular” for now Removed automatically as soon as the criteria are no longer met.

  • Distinct visitors of this entry over 30 days: 0 (30 needed) not yet
  • or install configs copied over 30 days: 0 (5 needed) not yet
  • and a successful test less than 14 days old: tested 28 Nov 2026 met

Badge updates by itself. Always “tested on …”, never “certified”. How it works

MarkdownREADME.md
[![Status on L’Atlas](https://latlas.dev/badge/statut/mcp/io.github.cyanheads/treasury-fiscaldata-mcp-server.svg?lang=en)](https://latlas.dev/en/mcp/io.github.cyanheads/treasury-fiscaldata-mcp-server)
HTML
<a href="https://latlas.dev/en/mcp/io.github.cyanheads/treasury-fiscaldata-mcp-server"><img src="https://latlas.dev/badge/statut/mcp/io.github.cyanheads/treasury-fiscaldata-mcp-server.svg?lang=en" alt="Status on L’Atlas" height="20"></a>

Badge for your README

Listed on L’Atlas

Free, for every entry. It links back to this entry and shows “tested OK” as long as our latest test succeeded.

MarkdownREADME.md
[![Listed on L’Atlas](https://latlas.dev/badge/fiche/io.github.cyanheads/treasury-fiscaldata-mcp-server.svg?lang=en)](https://latlas.dev/en/mcp/io.github.cyanheads/treasury-fiscaldata-mcp-server)
HTML
<a href="https://latlas.dev/en/mcp/io.github.cyanheads/treasury-fiscaldata-mcp-server"><img src="https://latlas.dev/badge/fiche/io.github.cyanheads/treasury-fiscaldata-mcp-server.svg?lang=en" alt="Listed on L’Atlas" height="20"></a>

Our tests

Every week: initialize then tools/list, without credentials, never calling a tool. Method

Address
https://treasury-fiscaldata.caseyjhand.com/mcp
Last result
OK 28 Nov 2026, 11:21
Response time
1,261 ms (initialize + tools/list)
Protocol version
2025-11-25
Announced name
treasury-fiscaldata-mcp-server 0.5.0
Tools
7

History

DateResultResponseTools
28 Nov 2026, 11:21OK1,261 ms7

Exposed tools (7, from tools/list, 28 Nov 2026)

treasury_list_datasets

List Treasury Fiscal Data Datasets

Browse the curated catalog of US Treasury Fiscal Data API endpoints. Returns endpoint paths, field names, descriptions, and update cadence for each dataset. Use this tool before treasury_query_dataset to discover the correct endpoint path and field names. The catalog is a curated subset of the full API — pass any endpoint path directly to treasury_query_dataset to query datasets not listed here; a field name the endpoint lacks fails with an error that lists every field it has. The catalog covers debt, interest rates, exchange rates, revenue/spending, savings bonds, and securities datasets.

ParameterTypeRequiredDescription
categoryenum: "debt" | "interest_rates" | "exchange_rates" | "revenue_spending" | "savings_bonds" | "securities" | "other"noFilter by category. Omit to list all datasets. Options: debt, interest_rates, exchange_rates, revenue_spending, savings_bonds, securities, other.
searchstringnoKeyword filter against dataset name and description (case-insensitive substring match). Useful for narrowing results when the category is uncertain.

treasury_query_dataset

Query Treasury Fiscal Data Dataset

Query any Treasury Fiscal Data endpoint by path, field list, filters, sort, and page. Call treasury_list_datasets first to get the correct endpoint path and exact field names; a field name the endpoint lacks fails with an error listing every field it has. Filter syntax: each condition is { field, operator, value } where operator is eq/gt/gte/lt/lte/in (e.g., record_date:gte:2024-01-01). Multiple conditions are ANDed together. All response values are strings per the API contract, including numbers and dates; "null" (string) means no value. Supply canvas_id to stage the page result as a DataCanvas table — read its column schema with treasury_dataframe_describe, then run SQL over it with treasury_dataframe_query (requires CANVAS_PROVIDER_TYPE=duckdb on the server).

ParameterTypeRequiredDescription
endpointstringyesEndpoint path returned by treasury_list_datasets (e.g., "/v2/accounting/od/debt_to_penny"). The leading slash is optional.
fieldsarray<string>noFields to return. Omit to return all fields. Specify field names exactly as listed by treasury_list_datasets; an unknown name fails with an error listing every field the endpoint has. A selection returns the distinct combinations of its fields, so total_count and total_pages count those combination…
filtersarray<object>noFilter conditions (ANDed together). Multiple filters on different fields are combined in one filter= parameter.
sortstringnoSort expression: field name optionally prefixed with "-" for descending (e.g., "-record_date" for newest-first). When fields is set, include each sort field in it — the API sorts only by fields it returns.
page_sizeintegernoRows per page. Default 100. Raise to 10000 to minimize round trips for small datasets. For large time-series pulls, use canvas_id with treasury_dataframe_query instead.
page_numberintegernoPage to fetch (1-indexed). Check total_pages in the response to know if more pages exist.
canvas_idstringnoSet any non-empty value to stage this page as a DataCanvas table for SQL analysis — the value only requests staging; the server picks the table name. The assigned name (df_XXXXX_XXXXX) comes back in the output canvas_id; pass it to treasury_dataframe_describe, then treasury_dataframe_query. Omit to…

treasury_get_debt

Get National Debt

Fetch national debt (Debt to the Penny) — total public debt outstanding broken into publicly-held debt and intragovernmental holdings. Three modes: "latest" returns the most recent business day's record; "date" returns the record for a specific date (must be a business day — the API only records debt on days markets are open); "series" returns a date range, staging the full result as a DataCanvas table when canvas_id is set or the range matches more than 500 rows — read the table's column schema with treasury_dataframe_describe, then run SQL over it with treasury_dataframe_query. Records go back to 1993-04-01.

ParameterTypeRequiredDescription
modeenum: "latest" | "date" | "series"no"latest" returns the most recent day's record. "date" returns the record for a specific date. "series" returns a date range — use with start_date and end_date.
datestringnoISO 8601 date (YYYY-MM-DD) for mode=date. Must be a business day; the API only records debt on days the market is open.
start_datestringnoISO 8601 start date for mode=series (inclusive). Fiscal Data has daily debt records back to 1993-04-01.
end_datestringnoISO 8601 end date for mode=series (inclusive). Defaults to today.
canvas_idstringnoSet any non-empty value to stage mode=series results as a DataCanvas table for SQL analysis — the value only requests staging; the server picks the table name. Staging also happens on its own when the range matches more than 500 rows. The assigned name (df_XXXXX_XXXXX) comes back in the output canv…

treasury_get_interest_rates

Get Treasury Interest Rates

Average interest rates Treasury pays on its outstanding securities by security type. Answers "what is the government's cost of borrowing?" Covers every type Treasury reports — marketable issues, non-marketable series, and the aggregate totals — and which types it reports changes over the years, so omit security_type to see the ones a given period carries. Rates are percentages, not basis points. Updated monthly (end-of-month records). Mode "latest" returns the most recent month's rates for all or one security type; "series" returns a time history, staging the result as a DataCanvas table when canvas_id is set or the range matches more than 200 rows — read the table's column schema with treasury_dataframe_describe, then run SQL over it with treasury_dataframe_query.

ParameterTypeRequiredDescription
modeenum: "latest" | "series"no"latest" returns the most recent month's rates. "series" returns a time range.
security_typestringnoFilter to one security type, matched exactly against the security_desc field — full case and punctuation, as in "Treasury Inflation-Protected Securities (TIPS)". Omit for every type in the period, which is how to read the set of types on offer; the response names them when a filter matches nothing.
start_datestringnoISO 8601 start date for mode=series (YYYY-MM-DD, must be end-of-month for meaningful results).
end_datestringnoISO 8601 end date for mode=series. Defaults to today.
canvas_idstringnoSet any non-empty value to stage mode=series results as a DataCanvas table for SQL analysis — the value only requests staging; the server picks the table name. Staging also happens on its own when a series matches more than 200 rows. The assigned name (df_XXXXX_XXXXX) comes back in the output canva…

treasury_get_exchange_rates

Get Treasury Exchange Rates

Official Treasury reporting exchange rates for ~165 countries — the rates US federal agencies are required to use when converting foreign currency to USD for official reporting. Published quarterly (March 31, June 30, Sep 30, Dec 31); mode "latest" returns the most recently published quarter. Rate is expressed as foreign currency units per 1 USD (e.g., a Japan-Yen rate of 159.41 means 1 USD = 159.41 JPY). These are NOT market exchange rates and are not suitable for financial transaction pricing. Mode "series" stages the result as a DataCanvas table when canvas_id is set or the range matches more than 500 rows — read the table's column schema with treasury_dataframe_describe, then run SQL over it with treasury_dataframe_query.

ParameterTypeRequiredDescription
modeenum: "latest" | "series"no"latest" returns the most recently published quarter's rates. "series" returns a date range of quarterly reports.
countriesarray<string>noFilter to specific countries by exact country name (e.g., ["Japan", "Germany", "France"]). Case-sensitive, matches the "country" field. Omit for every country in the quarter (~165).
start_datestringnoISO 8601 start date for mode=series. Rates are published end-of-quarter (March 31, June 30, Sep 30, Dec 31).
end_datestringnoISO 8601 end date for mode=series.
canvas_idstringnoSet any non-empty value to stage mode=series results as a DataCanvas table for SQL analysis — the value only requests staging; the server picks the table name. Staging also happens on its own when a series matches more than 500 rows, which multi-year multi-country pulls do (~19,000 rows for the ful…

treasury_dataframe_describe

Describe Treasury Dataframes

List DataCanvas dataframes materialized by treasury_query_dataset, treasury_get_debt, treasury_get_interest_rates, and treasury_get_exchange_rates. Each entry surfaces source tool, query parameters, creation/expiry timestamps, row count, and column schema. Use this tool before treasury_dataframe_query to discover table names and column types. Requires CANVAS_PROVIDER_TYPE=duckdb.

ParameterTypeRequiredDescription
namestringnoOptional dataframe table name (df_XXXXX_XXXXX) to describe a single dataframe. Omit to list all active dataframes.

treasury_dataframe_query

Query Treasury Dataframes

Run a single-statement SELECT against DataCanvas dataframes registered by treasury_query_dataset, treasury_get_debt, treasury_get_interest_rates, and treasury_get_exchange_rates. Read-only: writes, DDL, DROP, COPY, PRAGMA, ATTACH, and external-file table functions are rejected. System catalogs (information_schema, pg_catalog, sqlite_master, duckdb_*) are denied at the bridge layer. Tables staged from Treasury API rows hold every column as VARCHAR — CAST to DECIMAL or DATE for arithmetic and date comparisons; a register_as table keeps the column types its SELECT produced. Use treasury_dataframe_describe to list available table names and column schemas before querying.

ParameterTypeRequiredDescription
sqlstringyesSingle-statement SELECT against df_ tables. Tables staged from Treasury API rows hold every value as VARCHAR (strings), per the API contract — CAST to DECIMAL or DATE for arithmetic and date comparisons; a register_as table keeps the column types its SELECT produced. Example: SELECT record_date, CA…
register_asstringnoPersist the result as a new dataframe under this exact name, to chain analyses. Use a plain identifier (letters, digits, underscores, starting with a letter or underscore); a df_ prefix keeps it consistent with the tables the data tools mint, and a DuckDB system-catalog or metadata-view name (duckd…
previewintegernoRows in the immediate response. Defaults to row_limit and may not exceed it. Set lower when using register_as.
row_limitintegernoHard cap on rows the query may produce. Default 1000, max 10000. A query matching more rows than this stops at the cap and row_count_capped comes back true — raise it, or use register_as to materialize the whole result.

Client compatibility

Based on the transports each client documents as supported; this is not a live test inside the client.

ClientDocumented transportsThis serverSource
Claude Codestdio Streamable HTTP SSEtransport accepteddoc
Claude (claude.ai, Claude Desktop, Cowork)stdio Streamable HTTP SSEtransport accepteddoc
ChatGPT (serveurs MCP personnalisés / plugins)Streamable HTTP SSEtransport accepteddoc
Cursorstdio Streamable HTTP SSEtransport accepteddoc
VS Code (GitHub Copilot)stdio Streamable HTTP SSEtransport accepteddoc
Windsurf (documentation redirigée vers Devin Local / Devin CLI)stdio Streamable HTTP SSEtransport accepteddoc
Gemini CLIstdio Streamable HTTP SSEtransport accepteddoc
OpenAI Codex (CLI, extension IDE, app)stdio Streamable HTTPtransport accepteddoc

Ready-to-copy configs

Remote address used: https://treasury-fiscaldata.caseyjhand.com/mcp. Formats taken from each client’s documentation.

Claude Code
claude mcp add --transport http treasury-fiscaldata-mcp-server https://treasury-fiscaldata.caseyjhand.com/mcp
Claude (claude.ai, Claude Desktop, Cowork)
Customize > Connectors > + Add > Add custom connector ; Name : treasury-fiscaldata-mcp-server ; URL : https://treasury-fiscaldata.caseyjhand.com/mcp
ChatGPT (serveurs MCP personnalisés / plugins)
chatgpt.com/plugins > + > Add custom MCP server ; Name : treasury-fiscaldata-mcp-server ; Server URL : https://treasury-fiscaldata.caseyjhand.com/mcp ; Create as a plugin
Cursor.cursor/mcp.json (projet) ou ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "treasury-fiscaldata-mcp-server": {
      "url": "https://treasury-fiscaldata.caseyjhand.com/mcp"
    }
  }
}
VS Code (GitHub Copilot).mcp.json à la racine du workspace, ou ~/.copilot/mcp-config.json ($COPILOT_HOME/mcp-config.json)
{
  "mcpServers": {
    "treasury-fiscaldata-mcp-server": {
      "type": "http",
      "url": "https://treasury-fiscaldata.caseyjhand.com/mcp",
      "tools": ["*"]
    }
  }
}
Windsurf (documentation redirigée vers Devin Local / Devin CLI).devin/mcp_config.json (projet), .devin/mcp_config.local.json (local), ~/.config/devin/mcp_config.json (utilisateur)
{
  "mcpServers": {
    "treasury-fiscaldata-mcp-server": {
      "url": "https://treasury-fiscaldata.caseyjhand.com/mcp"
    }
  }
}
Gemini CLI~/.gemini/settings.json (utilisateur) ou .gemini/settings.json (projet)
{
  "mcpServers": {
    "treasury-fiscaldata-mcp-server": {
      "httpUrl": "https://treasury-fiscaldata.caseyjhand.com/mcp"
    }
  }
}
OpenAI Codex (CLI, extension IDE, app)~/.codex/config.toml (ou .codex/config.toml pour un projet de confiance)
[mcp_servers.treasury-fiscaldata-mcp-server]
url = "https://treasury-fiscaldata.caseyjhand.com/mcp"

Cite this source

Writing an article or comparison? This entry distinguishes registry information from our measurements. Cite the permanent link and the test date; an OK result is not a security audit or an availability guarantee.

treasury-fiscaldata-mcp-server · L’Atlas · Tested on

Markdown
[treasury-fiscaldata-mcp-server — L’Atlas](https://latlas.dev/en/mcp/io.github.cyanheads/treasury-fiscaldata-mcp-server)
Test methodology and limitations

Source : Registre officiel MCP · retrieved 3 Dec 2026. L’Atlas adds no data beyond this source and its own tests.