treasury-fiscaldata-mcp-server
io.github.cyanheads/treasury-fiscaldata-mcp-server
Serveur MCP OK 7 outils
Query US Treasury national debt, interest rates, exchange rates, and fiscal datasets via MCP.
Fiche technique
- Auteur
- cyanheads (espace de noms du registre)
- Dépôt
- github.com/cyanheads/treasury-fiscaldata-mcp-server
- Site
- —
- Version
- 0.5.0
- Transport
- Streamable HTTP stdio
- Authentification
- Aucune (constatée par notre test)
- Adresse du serveur
- https://treasury-fiscaldata.caseyjhand.com/mcp Streamable HTTP
- Paquets
- @cyanheads/treasury-fiscaldata-mcp-server 0.5.0 npm stdio
@cyanheads/treasury-fiscaldata-mcp-server 0.5.0 npm Streamable HTTP - Outils
- 7
- Catégories
- —
- Dernière mise à jour
- 16 nov. 2026
- Publication
- 16 nov. 2026
Auteur vérifié et popularité
Fiche pas encore revendiquée. C’est votre projet ? Revendiquez-la
Pas « Populaire » pour l’instant Retiré tout seul dès que les critères ne sont plus remplis.
- Visiteurs distincts de la fiche sur 30 jours : 0 (il en faut 30) pas encore
- ou configurations d’installation copiées sur 30 jours : 0 (il en faut 5) pas encore
- et un test réussi de moins de 14 jours : testé le 28 nov. 2026 rempli
Badge à jour tout seul. Toujours « testé le … », jamais « certifié ». Comment ça marche
[](https://latlas.dev/mcp/io.github.cyanheads/treasury-fiscaldata-mcp-server)<a href="https://latlas.dev/mcp/io.github.cyanheads/treasury-fiscaldata-mcp-server"><img src="https://latlas.dev/badge/statut/mcp/io.github.cyanheads/treasury-fiscaldata-mcp-server.svg" alt="Statut sur L’Atlas" height="20"></a>Badge pour votre README
Gratuit, pour toute fiche. Il renvoie vers cette fiche et affiche « testé OK » tant que notre dernier test est réussi.
[](https://latlas.dev/mcp/io.github.cyanheads/treasury-fiscaldata-mcp-server)<a href="https://latlas.dev/mcp/io.github.cyanheads/treasury-fiscaldata-mcp-server"><img src="https://latlas.dev/badge/fiche/io.github.cyanheads/treasury-fiscaldata-mcp-server.svg" alt="Référencé sur L’Atlas" height="20"></a>Nos tests
Chaque semaine : initialize puis tools/list, sans identifiant, sans jamais appeler d’outil. Méthode
- Adresse
- https://treasury-fiscaldata.caseyjhand.com/mcp
- Dernier résultat
- OK 28 nov. 2026, 11:21
- Temps de réponse
- 1 261 ms (initialize + tools/list)
- Version du protocole
- 2025-11-25
- Nom annoncé
- treasury-fiscaldata-mcp-server 0.5.0
- Outils
- 7
Historique
| Date | Résultat | Réponse | Outils |
|---|---|---|---|
| 28 nov. 2026, 11:21 | OK | 1 261 ms | 7 |
Outils exposés (7, réponse à 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| category | enum: "debt" | "interest_rates" | "exchange_rates" | "revenue_spending" | "savings_bonds" | "securities" | "other" | non | Filter by category. Omit to list all datasets. Options: debt, interest_rates, exchange_rates, revenue_spending, savings_bonds, securities, other. |
| search | string | non | Keyword 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).
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| endpoint | string | oui | Endpoint path returned by treasury_list_datasets (e.g., "/v2/accounting/od/debt_to_penny"). The leading slash is optional. |
| fields | array<string> | non | Fields 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… |
| filters | array<object> | non | Filter conditions (ANDed together). Multiple filters on different fields are combined in one filter= parameter. |
| sort | string | non | Sort 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_size | integer | non | Rows 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_number | integer | non | Page to fetch (1-indexed). Check total_pages in the response to know if more pages exist. |
| canvas_id | string | non | Set 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| mode | enum: "latest" | "date" | "series" | non | "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. |
| date | string | non | ISO 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_date | string | non | ISO 8601 start date for mode=series (inclusive). Fiscal Data has daily debt records back to 1993-04-01. |
| end_date | string | non | ISO 8601 end date for mode=series (inclusive). Defaults to today. |
| canvas_id | string | non | Set 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| mode | enum: "latest" | "series" | non | "latest" returns the most recent month's rates. "series" returns a time range. |
| security_type | string | non | Filter 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_date | string | non | ISO 8601 start date for mode=series (YYYY-MM-DD, must be end-of-month for meaningful results). |
| end_date | string | non | ISO 8601 end date for mode=series. Defaults to today. |
| canvas_id | string | non | Set 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| mode | enum: "latest" | "series" | non | "latest" returns the most recently published quarter's rates. "series" returns a date range of quarterly reports. |
| countries | array<string> | non | Filter 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_date | string | non | ISO 8601 start date for mode=series. Rates are published end-of-quarter (March 31, June 30, Sep 30, Dec 31). |
| end_date | string | non | ISO 8601 end date for mode=series. |
| canvas_id | string | non | Set 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| name | string | non | Optional 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.
| Paramètre | Type | Requis | Description |
|---|---|---|---|
| sql | string | oui | Single-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_as | string | non | Persist 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… |
| preview | integer | non | Rows in the immediate response. Defaults to row_limit and may not exceed it. Set lower when using register_as. |
| row_limit | integer | non | Hard 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. |
Compatibilité clients
Selon les transports que chaque client déclare accepter dans sa documentation officielle ; ce n’est pas un essai réel dans le client.
| Client | Transports documentés | Ce serveur | Source |
|---|---|---|---|
| Claude Code | stdio Streamable HTTP SSE | transport accepté | doc |
| Claude (claude.ai, Claude Desktop, Cowork) | stdio Streamable HTTP SSE | transport accepté | doc |
| ChatGPT (serveurs MCP personnalisés / plugins) | Streamable HTTP SSE | transport accepté | doc |
| Cursor | stdio Streamable HTTP SSE | transport accepté | doc |
| VS Code (GitHub Copilot) | stdio Streamable HTTP SSE | transport accepté | doc |
| Windsurf (documentation redirigée vers Devin Local / Devin CLI) | stdio Streamable HTTP SSE | transport accepté | doc |
| Gemini CLI | stdio Streamable HTTP SSE | transport accepté | doc |
| OpenAI Codex (CLI, extension IDE, app) | stdio Streamable HTTP | transport accepté | doc |
Configs prêtes à copier
Adresse distante utilisée : https://treasury-fiscaldata.caseyjhand.com/mcp. Formats repris de la documentation de chaque client.
claude mcp add --transport http treasury-fiscaldata-mcp-server https://treasury-fiscaldata.caseyjhand.com/mcpCustomize > Connectors > + Add > Add custom connector ; Name : treasury-fiscaldata-mcp-server ; URL : https://treasury-fiscaldata.caseyjhand.com/mcpchatgpt.com/plugins > + > Add custom MCP server ; Name : treasury-fiscaldata-mcp-server ; Server URL : https://treasury-fiscaldata.caseyjhand.com/mcp ; Create as a plugin{
"mcpServers": {
"treasury-fiscaldata-mcp-server": {
"url": "https://treasury-fiscaldata.caseyjhand.com/mcp"
}
}
}{
"mcpServers": {
"treasury-fiscaldata-mcp-server": {
"type": "http",
"url": "https://treasury-fiscaldata.caseyjhand.com/mcp",
"tools": ["*"]
}
}
}{
"mcpServers": {
"treasury-fiscaldata-mcp-server": {
"url": "https://treasury-fiscaldata.caseyjhand.com/mcp"
}
}
}{
"mcpServers": {
"treasury-fiscaldata-mcp-server": {
"httpUrl": "https://treasury-fiscaldata.caseyjhand.com/mcp"
}
}
}[mcp_servers.treasury-fiscaldata-mcp-server]
url = "https://treasury-fiscaldata.caseyjhand.com/mcp"Citer cette source
Vous rédigez un article ou un comparatif ? Cette fiche distingue les informations du registre et nos mesures. Citez le lien permanent et la date du test ; un résultat OK ne constitue pas un audit de sécurité ni une garantie de disponibilité.
treasury-fiscaldata-mcp-server · L’Atlas · Test du
[treasury-fiscaldata-mcp-server — L’Atlas](https://latlas.dev/mcp/io.github.cyanheads/treasury-fiscaldata-mcp-server)Source : Registre officiel MCP · relevé le 3 déc. 2026. L’Atlas n’ajoute aucune donnée qui ne vienne de cette source ou de ses propres tests.