Fiscal Data Treasury
STDIOMCP server implementation connecting to US Treasury's Fiscal Data API for data retrieval.
MCP server implementation connecting to US Treasury's Fiscal Data API for data retrieval.
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:
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"] } } }
Once configured, you can interact with the server through Claude:
Human: Can you get the treasury statement for the 20th of September 2023?
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.
Access 30 days of historical treasury data through the resource system:
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...