Fiscal Data 连接器
连接到美国财政部的财政数据API,使用户能够获取特定的财政部报表、访问历史数据并生成格式化的报告。
MCP 服务配置
复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用
{
"mcpServers": {
"fiscal-data": {
"args": [
"fiscal-data-mcp"
],
"command": "npx"
}
}
}
服务介绍
概述
Fiscal Data MCP 服务器 展示了一个连接到美国财政部 Fiscal Data API 的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...