Skip to main content
Glama
QuantGeekDev

Fiscal Data MCP Server

by QuantGeekDev

概述

财政数据 MCP 服务器演示了连接到美国财政部财政数据 API 的 MCP 服务器的实际实现。它展示了:

  • 获取特定财务报表的工具

  • 历史数据访问资源

  • 生成格式化报告的提示

Related MCP server: treasury-fiscaldata-mcp

快速入门

1. 安装并使用 Claude Desktop

将此配置添加到您的 Claude Desktop 配置文件:

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. 交互示例

配置完成后,您可以通过Claude与服务器进行交互:

Human: Can you get the treasury statement for the 20th of September 2023?

特征

1. 每日财务报表

使用get_daily_treasury_statement工具获取特定日期的财务数据:

// 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.历史数据资源

通过资源系统访问30天的历史财务数据:

  • 自动缓存1小时

  • 按需更新

  • 提供格式化的 JSON 数据

3. 报告生成

使用daily_treasury_report提示生成格式化的财务报告:

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

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    Enables AI agents to access SEC EDGAR filings, US Treasury rates, BLS labor statistics, and economic indicators without API keys.
    6
    29 npm
    MIT
  • A
    license
    Not graded
    quality
    F
    maintenance
    Provides access to US Treasury Fiscal Data via a free, no-auth public API. Enables querying government financial data through natural language.
    1 npm
    MIT