treasury-fiscaldata-mcp-server — Claude Code MCP server
treasury-fiscaldata-mcp-server queries US Treasury debt records since 1993, quarterly exchange rates, and interest rates, with SQL analysis over large tables.
Apache-2.0 947 installs ★ 3 updated 2026-10-04
claude mcp add --transport http treasury-fiscaldata-mcp-server https://treasury-fiscaldata-mcp-server--cyanheads.run.toolsWhat treasury-fiscaldata-mcp-server does
This server grants AI assistants direct access to US Treasury Fiscal Data APIs. Its bundled catalog covers 17 distinct endpoints, offering figures on the national debt since April 1993, interest rates across debt securities, and quarterly exchange rates across roughly 165 countries.
Heavy responses spill into DataCanvas in-memory tables. When debt or exchange rate pulls surpass 500 records, the tool stages the dataset so you can filter and aggregate it via read-only DuckDB SQL queries. Paging hard-stops at 50,000 rows.
Dataframe deletion stays disabled unless the environment variable TREASURY_DATAFRAME_DROP_ENABLED is explicitly set to true.
What it helps with
- Retrieve official quarterly US Treasury statutory exchange rates for cross-currency accounting
- Fetch the US national debt history starting from 1993 for macroeconomic research
- Pull average interest rates paid on marketable and non-marketable Treasury securities
- Execute read-only SQL queries via embedded DuckDB on large staged fiscal datasets
Example prompts for the agent
- Get the latest US national debt figures using treasury_get_debt
- Pull the quarterly statutory exchange rates for Japan and the Eurozone for the last four quarters
- Query active Treasury datasets related to interest rates and describe their schema
How to install treasury-fiscaldata-mcp-server
Platform CLI: remote server
claude mcp add --transport http treasury-fiscaldata-mcp-server https://treasury-fiscaldata-mcp-server--cyanheads.run.toolsPlatform CLI: remote server
codex mcp add treasury-fiscaldata-mcp-server --url https://treasury-fiscaldata-mcp-server--cyanheads.run.toolsConfig file
{
"mcpServers": {
"treasury-fiscaldata-mcp-server": {
"url": "https://treasury-fiscaldata-mcp-server--cyanheads.run.tools"
}
}
}Config file
{
"servers": {
"treasury-fiscaldata-mcp-server": {
"type": "http",
"url": "https://treasury-fiscaldata-mcp-server--cyanheads.run.tools"
}
}
}Platform CLI: remote server
gemini mcp add -t http treasury-fiscaldata-mcp-server https://treasury-fiscaldata-mcp-server--cyanheads.run.toolsStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about treasury-fiscaldata-mcp-server
How to install treasury-fiscaldata-mcp-server in Claude Code?
Run the command claude mcp add --transport http treasury-fiscaldata-mcp-server https://treasury-fiscaldata-mcp-server--cyanheads.run.tools. The integration uses the remote HTTP transport without requiring local Node.js packages.
What data does this MCP server provide?
It queries US Treasury Fiscal Data endpoints covering the national debt, average interest rates on securities, and statutory foreign exchange rates for around 165 nations. It also includes a local catalog of 17 curated endpoints.
How does the server handle large query results?
Results exceeding row limits can spill into DataCanvas staging tables. You can inspect schemas and run read-only DuckDB SQL statements against staged data before the 24-hour retention expires.