
Fiscal Data Mcp
mcp server connected to us treasury data, built with mcp-framework
what is Fiscal Data MCP?
Fiscal Data MCP is a server implementation that connects to the US Treasury's Fiscal Data API, allowing users to access and interact with treasury data.
how to use Fiscal Data MCP?
To use Fiscal Data MCP, configure it with your Claude Desktop by adding the required settings to your config file and interact with it through commands.
key features of Fiscal Data MCP?
- Fetch daily treasury statements for specific dates.
- Access a resource for 30 days of historical treasury data, automatically cached for efficiency.
- Generate formatted reports for treasury statements.
use cases of Fiscal Data MCP?
- Retrieving daily treasury statements for financial analysis.
- Accessing historical data for research on fiscal trends.
- Generating formatted reports for presentations and decision-making.
FAQ from Fiscal Data MCP?
- What type of data can I fetch using Fiscal Data MCP?
You can fetch daily treasury statements as well as access historical treasury data.
- Do I need to install anything to use Fiscal Data MCP?
Yes, you need to configure it with Claude Desktop. Instructions are provided in the quick start guide.
- Can I customize the report generation?
Yes, you can generate customized reports based on the treasury data using specific prompts.
Overview
The Fiscal Data MCP Server demonstrates a practical implementation of an MCP server that connects to the US Treasury's Fiscal Data API. It showcases:
- Tools for fetching specific treasury statements
- Resources for historical data access
- Prompts for generating formatted reports
Quick Start
1. Install and Use with Claude Desktop
Add this configuration to your Claude Desktop config file:
MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"fiscal-data": {
"command": "npx",
"args": ["fiscal-data-mcp"]
}
}
}
2. Example Interactions
Once configured, you can interact with the server through Claude:
Human: Can you get the treasury statement for the 20th of September 2023?
Features
1. Daily Treasury Statements
Fetch treasury data for specific dates using the get_daily_treasury_statement
tool:
// Example usage through Claude
Human: Get the treasury statement for 2024-03-01
Assistant: I'll fetch that information for you using the treasury statement tool.
2. Historical Data Resource
Access 30 days of historical treasury data through the resource system:
- Automatically cached for 1 hour
- Updates on demand
- Provides formatted JSON data
3. Report Generation
Generate formatted treasury reports using the daily_treasury_report
prompt:
// Example usage through Claude
Human: Generate a treasury report for 2024-03-01
Assistant: I'll use the daily treasury report prompt to create a formatted report...