Fiscal Data 连接器添加福利群:解决AI开发者的「MCP实战痛点」Fiscal Data MCP 服务器 展示了一个连接到美国财政部 Fiscal Data API 的MCP服务器的实际实现。它展示了以下功能:
将此配置添加到您的 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"]
}
}
}

配置完成后,您可以通过 Claude 与服务器进行交互:
Human: Can you get the treasury statement for the 20th of September 2023?
使用 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.

通过资源系统访问30天的历史财政数据:
使用 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...
