Skip to content
verify mcp Beta VerifyMCP is currently in beta. If you notice any issues, email [email protected] and we’ll put it right.

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

REMOTE · TREASURY-FISCALDATA.CASEYJHAND.COM · 2 COMPONENTS · SCANNED AUG 3

MCP server for US Treasury Fiscal Data — debt, interest rates, exchange rates, and spending.

+5 this week 68 Trust /100
Trust breakdown (6 categories)

How this component scores in each security and reliability category. Every signal is checked automatically against the live server, and we only credit what we can confirm. How we score →

Endpoint Security66
  • The endpoint's TLS certificate is valid, in date, and uses a strong key. View diagnostics → Pass
  • Authorisation not fully verified: no authorisation is required to call this server, and 7 tool(s) never declared a destructiveHint. The MCP spec treats an absent hint as destructive by default, so we cannot call this surface safe. See how to fix → View diagnostics → Unverified
  • HTTPS is enforced; there's no plaintext access path. View diagnostics → Pass
  • The HSTS (Strict-Transport-Security) header is present. View diagnostics → Pass
  • DNSSEC is configured correctly; the domain's records validate against the full chain to the root. View diagnostics → Pass
Transport & Reachability100
Schema Quality & AI Usability63
  • AI-judged instruction clarity (excellent).Pass
  • Context-footprint check failed: tool/resource definitions use about 2204 tokens (~314/item across 7 items; 7 tools + 0 resources), over budget; trim descriptions and params. See how to fix → Fail
  • Usage-examples check failed: none of the tools include examples. See how to fix → Fail
Stability & Change Management27
  • Stability observed for 8 of 30 days with no destabilising changes; credit accrues until the full window elapses.Partial
Tool Coverage100
  • 100% of tools have a non-trivial description (not blank, and not just the tool's name).Pass
  • 100% of tool parameters carry a description.Pass
  • Structured output schemas are declared (100% of tools); any adoption earns full credit.Pass
Capabilities100
  • Implements a supported MCP spec version (2025-11-25); the latest is 2026-07-28.Pass
Install

Add this component to your MCP client. Where a client-specific snippet is available, pick your client below and copy it straight into your config; otherwise use the connection detail shown.

remote · treasury-fiscaldata.caseyjhand.com

# add to Claude Code
claude mcp add --transport http cyanheads-treasury-fiscaldata-mcp-server https://treasury-fiscaldata.caseyjhand.com/mcp
# ~/.codex/config.toml
[mcp_servers.cyanheads-treasury-fiscaldata-mcp-server]
url = "https://treasury-fiscaldata.caseyjhand.com/mcp"
// opencode.json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "cyanheads-treasury-fiscaldata-mcp-server": {
      "type": "remote",
      "url": "https://treasury-fiscaldata.caseyjhand.com/mcp",
      "enabled": true
    }
  }
}
# add to OpenClaw
openclaw mcp add cyanheads-treasury-fiscaldata-mcp-server --url https://treasury-fiscaldata.caseyjhand.com/mcp --transport streamable-http
# ~/.hermes/config.yaml
mcp_servers:
  cyanheads-treasury-fiscaldata-mcp-server:
    url: "https://treasury-fiscaldata.caseyjhand.com/mcp"
// mcp.json
{
  "mcpServers": {
    "cyanheads-treasury-fiscaldata-mcp-server": {
      "type": "http",
      "url": "https://treasury-fiscaldata.caseyjhand.com/mcp"
    }
  }
}

The mcpServers block is a cross-client convention. Remote transports vary, so check your client's docs.

Changelog

Every change we have recorded for this component, newest first. Security-relevant changes are always shown. ▲ marks a change for the better, ▼ a change for the worse; unmarked changes are neutral.

  • 3 Aug 26 +1

    No change was recorded against any check on this day. Stability & Change Management went from 23 to 27. That category is still filling its 30-day observation window: 7 days of observed history at the previous scan, 8 at this one. The score rises as the window fills, whether or not the server changes.

  • 31 Jul 26 +2
    • We updated how we score, so this day's move reflects our rubric, not a change to the server See what changed → functional
  • 30 Jul 26 +1
    • We updated how we score, so this day's move reflects our rubric, not a change to the server See what changed → functional
  • 28 Jul 26 +1

    No change was recorded against any check on this day. Stability & Change Management went from 3 to 7. That category is still filling its 30-day observation window: 1 days of observed history at the previous scan, 2 at this one. The score rises as the window fills, whether or not the server changes.

  • 27 Jul 26 +1
    • We updated how we score, so this day's move reflects our rubric, not a change to the server See what changed → functional
  • 26 Jul 26 62

    First indexed and scored.

Diagnostics

Diagnostic detail from the automated scan of this channel: what the scanner observed at each step, so you can see exactly where a check passed or failed. It is informational only and never changes the trust score.

Captured 3 Aug 2026 · Probed https://treasury-fiscaldata.caseyjhand.com/mcp

TLS valid

Negotiated TLS 1.3 with TLS_AES_128_GCM_SHA256 .

Subject Issuer Valid from Valid until Key Signature Serial
CN=caseyjhand.com CN=WE1,O=Google Trust Services,C=US 7 Jul 2026 5 Oct 2026 ECDSA 256 ECDSA-SHA256 5aad900eb2055a0b0ea55912ec19680c
SANs: caseyjhand.com, *.caseyjhand.com
CN=WE1,O=Google Trust Services,C=US (CA) CN=GTS Root R4,O=Google Trust Services LLC,C=US 13 Dec 2023 20 Feb 2029 ECDSA 256 ECDSA-SHA384 7ff31977972c224a76155d13b6d685e3
CN=GTS Root R4,O=Google Trust Services LLC,C=US (CA) CN=GlobalSign Root CA,OU=Root CA,O=GlobalSign nv-sa,C=BE 15 Nov 2023 28 Jan 2028 ECDSA 384 SHA256-RSA 7fe530bf331343bedd821610493d8a1b
DNSSEC secure

Validation of treasury-fiscaldata.caseyjhand.com. Secure

Zone DS Keys Algorithms Outcome
. trust_anchor 20326, 38696 8, 8 Verified
com. present 19718 13 Verified
caseyjhand.com. present 2371 13 Verified
treasury-fiscaldata.caseyjhand.com. Verified address RRset verified with the apex keys
Authentication No authorisation required

The endpoint answered without asking for a token. Anyone who knows the URL can reach it.

Result No authorisation required
HTTP status 200
Header Value
strict-transport-security max-age=63072000; includeSubDomains; preload
x-content-type-options nosniff
Transports 2 probes
Transport URL Outcome Status Location
streamable-http https://treasury-fiscaldata.caseyjhand.com/mcp Verified 200
http (plaintext) http://treasury-fiscaldata.caseyjhand.com/mcp HTTPS enforced 301 https://treasury-fiscaldata.caseyjhand.com/mcp
MCP tools — 7 exposed · ~2,028 tokens

The tools this component advertises to a client, with an estimated token cost for each. Expand a tool to see its parameters and schema. The per-tool counts are indicative and are not scored directly; the schema's total context footprint is one signal in Schema Quality & AI Usability.

Tool Tokens
treasury_dataframe_describe ~115

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.

NameTypeReqDescription
namestringOptional dataframe table name (df_XXXXX_XXXXX) to describe a single dataframe. Omit to list all active dataframes.
NameTypeReqDescription
dataframesarrayyesActive dataframes for this tenant, newest first. Empty when none are registered.

No examples provided.

treasury_dataframe_query ~290

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. All Treasury dataframe columns are VARCHAR — CAST to DECIMAL or DATE for arithmetic and date comparisons. Use treasury_dataframe_describe to list available table names and column schemas before querying.

NameTypeReqDescription
previewintegerRows in the immediate response. Defaults to row_limit. Set lower when using register_as.
register_asstringPersist result as a new dataframe. Use to chain analyses. The name must match df_XXXXX_XXXXX format or be a fresh df_<id>.
row_limitintegerHard cap on rows in the response. Default 1000, max 10000.
sqlstringyesSingle-statement SELECT against df_<id> tables. All values in Treasury dataframes are VARCHAR (strings) per the API contract — CAST to DECIMAL or DATE for arithmetic and date comparisons. Example: SE…
NameTypeReqDescription
columnsarrayyesColumn names in projection order.
expires_atstringISO 8601 expiry timestamp for the newly registered dataframe, when applicable.
noticestringGuidance when the query returned no rows, or when results were capped by row_limit.
registered_asstringSet when register_as was supplied and the new dataframe was materialized.
row_countnumberyesTotal rows the query produced (may exceed rows.length when capped).
rowsarrayyesMaterialized rows, bounded by preview / row_limit.

No examples provided.

treasury_get_debt ~345

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 and optionally spills results to DataCanvas for SQL analysis via treasury_dataframe_query. Records go back to 1993-01-04. As of 2026-05-28 the total debt is approximately $39.18T.

NameTypeReqDescription
canvas_idstringDataCanvas table name (df_XXXXX_XXXXX) to register series results into for SQL analysis. When provided, or when the series exceeds 500 rows, the full result is registered and the name is returned in…
datestringISO 8601 date (YYYY-MM-DD) for mode=date. Must be a business day; the API only records debt on days the market is open.
end_datestringISO 8601 end date for mode=series (inclusive). Defaults to today.
modestring"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.
start_datestringISO 8601 start date for mode=series (inclusive). Fiscal Data has daily debt records back to 1993-01-04.
NameTypeReqDescription
canvas_expires_atstringISO 8601 expiry for the canvas dataframe.
canvas_idstringDataCanvas table name when series was spilled. Use treasury_dataframe_query to run SQL.
debt_held_publicstringyesDebt held by the public (external creditors, Fed, foreign governments) in USD.
intragovernmental_holdingsstringyesIntragovernmental holdings (debt owed to federal trust funds, Social Security, etc.) in USD.
record_datestringyesDate of this debt record (YYYY-MM-DD). For series mode, the most recent date.
seriesarrayAll records for mode=series (may be truncated when spilled to canvas).
total_debtstringyesTotal public debt outstanding in USD (string — convert as needed). Example: "39176301795549.40".
total_recordsnumberTotal matching records for mode=series.

No examples provided.

treasury_get_exchange_rates ~348

Official Treasury reporting exchange rates for ~130 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). Rate is expressed as foreign currency units per 1 USD (e.g., Japan-Yen: 159.41 means 1 USD = 159.41 JPY). These are NOT market exchange rates and are not suitable for financial transaction pricing. The latest quarter available is 2026-03-31 (Q1 2026).

NameTypeReqDescription
canvas_idstringDataCanvas table name (df_XXXXX_XXXXX) to register series results into for SQL analysis. Useful when pulling multi-year history for many countries (~18,800 rows total). When provided, or when mode=se…
countriesarrayFilter to specific countries by exact country name (e.g., ["Japan", "Germany", "France"]). Case-sensitive, matches the "country" field. Omit for all ~130 countries in the quarter.
end_datestringISO 8601 end date for mode=series.
modestring"latest" returns the most recently published quarter's rates. "series" returns a date range of quarterly reports.
start_datestringISO 8601 start date for mode=series. Rates are published end-of-quarter (March 31, June 30, Sep 30, Dec 31).
NameTypeReqDescription
as_of_datestringyesQuarter-end date of the most recent rates (YYYY-MM-DD).
canvas_expires_atstringISO 8601 expiry for the canvas dataframe.
canvas_idstringDataCanvas table name for series results. Use treasury_dataframe_query to run SQL.
effective_datestringyesEffective date of the rates (same as record_date).
notestringyesContextual note reminding that these are official reporting rates, not market rates.
noticestringGuidance when a requested country was not found or returned no records.
ratesarrayyesExchange rates for the requested countries/quarter.
total_recordsnumberyesTotal records returned.

No examples provided.

treasury_get_interest_rates ~320

Average interest rates Treasury pays on its outstanding securities by security type. Answers "what is the government's cost of borrowing?" Covers Bills, Notes, Bonds, TIPS, Floating Rate Notes, and aggregate marketable/non-marketable totals. 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. As of 2026-04-30: Bills 3.696%, Notes 3.230%, Bonds 3.403%, TIPS 1.068%, FRN 3.764%, Total Interest-bearing Debt 3.340%.

NameTypeReqDescription
canvas_idstringDataCanvas table name (df_XXXXX_XXXXX) to register series results into for SQL analysis. When provided, or when mode=series and results exceed 200 rows, the result is registered and canvas_id is retu…
end_datestringISO 8601 end date for mode=series. Defaults to today.
modestring"latest" returns the most recent month's rates. "series" returns a time range.
security_typestringFilter to one security type. Omit for all types. Use the exact string — the API does exact-match filtering on security_desc.
start_datestringISO 8601 start date for mode=series (YYYY-MM-DD, must be end-of-month for meaningful results).
NameTypeReqDescription
as_of_datestringyesMost recent record date returned (YYYY-MM-DD).
canvas_expires_atstringISO 8601 expiry for the canvas dataframe.
canvas_idstringDataCanvas table name for series results. Use treasury_dataframe_query to run SQL.
noticestringGuidance when no records match — lists valid security types or notes the empty date range.
ratesarrayyesInterest rate records.
total_recordsnumberyesTotal matching records.

No examples provided.

treasury_list_datasets ~186

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 — a typo in either causes a 400 error from the API. 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. The catalog covers debt, interest rates, exchange rates, revenue/spending, savings bonds, and securities datasets.

NameTypeReqDescription
categorystringFilter by category. Omit to list all datasets. Options: debt, interest_rates, exchange_rates, revenue_spending, savings_bonds, securities, other.
searchstringKeyword filter against dataset name and description (case-insensitive substring match). Useful for narrowing results when the category is uncertain.
NameTypeReqDescription
datasetsarrayyesMatching datasets.
totalnumberyesTotal matching datasets.

No examples provided.

treasury_query_dataset ~424

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 typo in either causes a 400. 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 register the page result into a named DataCanvas dataframe and query it later with treasury_dataframe_query (requires CANVAS_PROVIDER_TYPE=duckdb on the server).

NameTypeReqDescription
canvas_idstringDataCanvas ID to spill results into for SQL analysis. Omit to receive results inline. Requires CANVAS_PROVIDER_TYPE=duckdb on the server. When provided, the full page result is registered as a datafr…
endpointstringyesEndpoint path returned by treasury_list_datasets (e.g., "/v2/accounting/od/debt_to_penny"). Include the leading slash.
fieldsarrayFields to return. Omit to return all fields. Specify field names exactly as listed by treasury_list_datasets — a typo causes a 400.
filtersarrayFilter conditions (ANDed together). Multiple filters on different fields are combined in one filter= parameter.
page_numberintegerPage to fetch (1-indexed). Check total_pages in the response to know if more pages exist.
page_sizeintegerRows 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.
sortstringSort expression: field name optionally prefixed with "-" for descending (e.g., "-record_date" for newest-first).
NameTypeReqDescription
applied_filtersstringFilter expression sent to the API, for verification.
canvas_expires_atstringISO 8601 expiry for the canvas dataframe.
canvas_idstringDataCanvas ID where this page is registered. Use with treasury_dataframe_query to run SQL.
dataarrayyesRows returned. All values are strings per API contract — including numeric and date fields. Convert in the calling context. Null values appear as the string "null".
endpointstringyesEndpoint that was queried.
field_labelsobjectyesHuman-readable label for each returned field.
noticestringGuidance when results are empty, a field typo is suspected, or the endpoint was not found in the catalog.
page_numbernumberyesCurrent page (1-indexed).
page_sizenumberyesRows per page.
totalCountnumberTotal rows matching the query across all pages — discloses that this page is a subset.
total_countnumberyesTotal rows matching the query (across all pages).
total_pagesnumberyesTotal pages at the current page_size.

No examples provided.