Back to MCP directory
publicPublicdnsLocal runtime

US Fiscal Data

一个连接美国财政部财政数据API的MCP服务器实现

article

README

🚀 财政数据 MCP 服务器

Fiscal Data MCP 服务器展示了 MCP 服务器连接美国财政部财政数据 API 的实际应用,提供获取特定声明、访问历史数据及生成格式化报告的功能。

🚀 快速开始

1. 安装和使用 Claude 桌面版

将以下配置添加到您的 Claude 桌面版配置文件中:

  • 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 进行交互:

用户:你能获取 2023 年 9 月 20 日的财政部声明吗?

✨ 主要特性

1. 每日财政部声明

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

// 示例通过 Claude 使用方法
用户:获取 202431 日的财政部声明
助手:我将使用财政部声明工具为您查找该信息。

2. 历史数据资源

通过资源系统访问 30 天的历史财政部数据,具备以下特点:

  • 自动缓存 1 小时
  • 需要时更新
  • 提供格式化 JSON 数据

3. 报告生成

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

// 示例通过 Claude 使用方法
用户:为 202431 日生成财政部报告
助手:我将使用每日财政部报告提示为您创建一个格式化报告...
help

Runtime guide

cloud

Hosted runtime

Hosted servers run from a provider-managed environment. You usually connect the MCP client to the hosted endpoint or follow the provider's authorization flow, without keeping a local process alive

  1. Open provider connection page
  2. Authorize or copy endpoint
  3. Connect from your MCP client
terminal

Local runtime / other methods

Local servers run on your own machine or infrastructure. You normally copy the server_config into your MCP client, install the required package, and provide env variables from env_schema when needed

  1. Copy server_config
  2. Install required package
  3. Fill env variables and restart client