mcpField
F
Fiscal Data Mcp

Fiscal Data Mcp

Local
github.com/QuantGeekDevData & Analytics20Updated 98w ago

About Fiscal Data Mcp

Fiscal Data Mcp is an MCP server connected to the US Treasury Fiscal Data API, built with mcp-framework. It serves as a practical example of tools, resources and prompts, and suits developers learning MCP server development.

Key features

  1. 01Fetches daily treasury statements for specific dates
  2. 02Provides 30 days of historical data as a resource
  3. 03Generates formatted treasury reports via a prompt

Use cases

  1. 01Looking up the US treasury statement for a given date
  2. 02Producing formatted reports from treasury data
  3. 03Studying how to build an MCP server with mcp-framework

MCP support

This is an MCP server that exposes the get_daily_treasury_statement tool, a historical data resource and the daily_treasury_report prompt to MCP clients.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"fiscal-data": {
"command": "npx",
"args": [
"-y",
"fiscal-data-mcp"
]
}
}
}
Run commandnpx -y fiscal-data-mcp

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npmfiscal-data-mcp

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

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...

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.