# Fiscal Data (U.S. Treasury) MCP

> Fiscal Data (U.S. Treasury) MCP gives you direct access to authoritative U.S. federal financial data. Pull over 170 endpoints covering everything from current debt and interest rates to monthly government receipts. You can fetch official exchange rates or summarize detailed budget statements for immediate analysis, making it essential for economic modeling and policy research.

## Overview
- **Category:** data-analytics
- **Price:** Free
- **Tags:** us-treasury, fiscal-data, exchange-rates, federal-budget, economic-indicators

## Description

Need reliable numbers for finance or economics? This MCP connects your agent directly to the U.S. Department of the Treasury's data sources. Instead of hunting through PDFs or manually downloading spreadsheets, you ask your AI client a question—say, 'What were total federal outlays in 2023?'—and it gets the clean, structured answer immediately. You can query massive datasets using specific filters for dates or metrics. Need to compare currencies? Just ask for the latest official exchange rates. For policy work, you'll pull detailed monthly summaries of receipts and spending directly into your chat window. Vinkius makes this data available across all compatible clients, so whether you're working in Cursor or Claude, the numbers are always authoritative. You get clean, structured financial facts without leaving your conversational workspace.

## Tools

### get_mts_table_1
Retrieves the summary data for Monthly Treasury Statement Table 1, covering receipts and outlays.

### get_mts_table_9
Retrieves detailed monthly financial summaries from Treasury Statement Table 9.

### get_rates_of_exchange
Gets the official, current U.S. Treasury Reporting Rates of Exchange for various international currencies.

### query_dataset
Allows you to query any specific federal data endpoint by providing a path and optional filters.

## Prompt Examples

**Prompt:** 
```
Get the Treasury exchange rates for the Euro for the last recorded date.
```

**Response:** 
```
I'll fetch the latest exchange rates using `get_rates_of_exchange`. For the Eurozone-Euro, the rate was 0.921 per USD as of the most recent record date.
```

**Prompt:** 
```
Show me the summary of federal receipts and outlays from MTS Table 1 for 2023.
```

**Response:** 
```
I'm querying `get_mts_table_1` with a filter for the year 2023. I've found the summary data showing total receipts and outlays for each month of the fiscal year.
```

**Prompt:** 
```
Use query_dataset to find data on the 'daily_treasury_statement' for the past week.
```

**Response:** 
```
Accessing the `query_dataset` tool for the endpoint 'v1/accounting/od/daily_treasury_statement'. I've retrieved the daily cash balances and operating totals for the requested period.
```

## Capabilities

### Fetch official currency exchange rates
Retrieve the current Treasury Reporting Rates of Exchange for international comparisons.

### Summarize federal spending reports
Pull detailed monthly summaries of government receipts and outlays from core Treasury statements.

### Query specific fiscal datasets
Access over 170 endpoints to find any needed economic metric, like debt figures or interest rates.

### Filter and sort large data sets
Apply precise filters and pagination rules directly in conversation to manage huge amounts of financial records.

## Use Cases

### Comparing inflation year-over-year
A policy researcher needs to compare total federal outlays from 2021 vs. 2023. They ask the agent, and it uses `query_dataset` to pull comparative data points across multiple years for a side-by-side analysis.

### Building a currency risk report
A financial analyst needs the current exchange rate between USD and CAD. They ask, and the agent uses `get_rates_of_exchange` to provide the official, real-time rate for their client presentation.

### Auditing annual budget changes
A data scientist wants a summary of receipts from 2023. They prompt the agent with 'MTS Table 1 for 2023,' and it executes `get_mts_table_1` to deliver the precise, structured results needed for modeling.

### Tracking specific economic indicators
A researcher needs a rarely accessed dataset, like 'daily treasury statements'. Instead of knowing the endpoint path, they use `query_dataset`, and the agent fetches the data using the correct v1/accounting/od/... endpoint.

## Benefits

- Stop downloading CSVs. You get clean, structured federal data—like total receipts or outlays from `get_mts_table_1`—returned directly into your chat window for immediate use.
- Never guess an exchange rate again. Use `get_rates_of_exchange` to fetch the official Treasury rates instantly, ensuring accuracy in cross-currency reports.
- Need a specific metric like debt figures? You don't need to know the exact API path; just ask your agent and let it use `query_dataset` to pull the right endpoint for you.
- Save time on historical reporting. Pull comprehensive monthly summaries using `get_mts_table_9`, covering years of spending data with a single query.
- Handle massive datasets easily. The MCP lets you apply filters, sort, and paginate large amounts of financial records without running into data overload.

## How It Works

The bottom line is that you get authoritative federal financial data returned instantly without ever touching a spreadsheet or navigating an external website.

1. Subscribe to the MCP. You might optionally enter your Fiscal Data API Key here for increased usage limits.
2. Instruct your AI client to retrieve a specific piece of data, like 'the Euro exchange rate' or 'federal receipts for Q1 2023'.
3. The agent uses the necessary internal tool to talk to the Treasury API and returns the clean, structured financial figures right in your conversation.

## Frequently Asked Questions

**Can I use query_dataset to find data that isn't listed?**
Yes. `query_dataset` is designed to handle a vast library of endpoints. If you know the general area, providing an endpoint path will allow your agent to retrieve specific datasets across the Treasury API.

**What if I need rates for last week's date?**
Use `get_rates_of_exchange`. While it fetches current reporting rates, you can query historical data by specifying the required date parameters within your prompt.

**Which tool is best for yearly budget summaries?**
For detailed annual reports, using `get_mts_table_1` or `get_mts_table_9` with appropriate year filters will give you the most reliable summary of receipts and outlays.

**Does this MCP include non-Treasury economic data?**
No. This MCP connects exclusively to the U.S. Department of the Treasury's specific Fiscal Data API, ensuring all numbers are authoritative federal records.