# treasury-fiscaldata-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.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · 947 installs · ★ 3 repo stars
- Author: cyanheads
- License: Apache-2.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/cyanheads/treasury-fiscaldata-mcp-server
- Updated: 2026-10-04
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/treasury-fiscaldata-mcp-server

## What it 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`.

## Requirements
- Remote server: `https://treasury-fiscaldata-mcp-server--cyanheads.run.tools`

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http treasury-fiscaldata-mcp-server https://treasury-fiscaldata-mcp-server--cyanheads.run.tools
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add treasury-fiscaldata-mcp-server --url https://treasury-fiscaldata-mcp-server--cyanheads.run.tools
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "treasury-fiscaldata-mcp-server": {
            "url": "https://treasury-fiscaldata-mcp-server--cyanheads.run.tools"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "treasury-fiscaldata-mcp-server": {
            "type": "http",
            "url": "https://treasury-fiscaldata-mcp-server--cyanheads.run.tools"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http treasury-fiscaldata-mcp-server https://treasury-fiscaldata-mcp-server--cyanheads.run.tools
```

## When to use it
- 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
- 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

## Similar
- [usfiscaldata](https://affpapa.org/en/nevibecode/skills/usfiscaldata.md) — skill · 2100 installs
- [stripe-treasury](https://affpapa.org/en/nevibecode/skills/stripe-treasury.md) — skill · 218 installs
- [imf-mcp-server](https://affpapa.org/en/nevibecode/mcp/imf-mcp-server.md) — MCP server · 1492 installs
- [data-analysis](https://affpapa.org/en/nevibecode/skills/bytedance-data-analysis.md) — skill · 3700 installs
- [query](https://affpapa.org/en/nevibecode/skills/query.md) — skill · 1600 installs
- [attach-db](https://affpapa.org/en/nevibecode/skills/attach-db.md) — skill · 1200 installs

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
