美国财政部数据查询工具

这是一个MCP服务,提供美国财政部数据访问,包括国债利率、国家债务、拍卖结果、汇率和联邦支出,适用于金融数据分析和应用开发。

  • by PetrefiedThunder
  • TypeScript
  • 本地部署
  • 更新于
在 GitHub 查看 PetrefiedThunder/mcp-treasury

使用说明

mcp-treasury

Access US Treasury data — debt, interest rates, spending, and auction results.

Free API — No API key required.

Tools

Tool Description
get_treasury_rates Get daily Treasury yield curve rates (bill, note, bond rates).
get_national_debt Get the US national debt (total public debt outstanding).
get_auction_results Get Treasury securities auction results (bills, notes, bonds, TIPS, FRN).
get_exchange_rates Get Treasury-reported foreign exchange rates.
get_federal_spending Get monthly Treasury statement data on federal revenue and spending.

Installation

git clone https://github.com/PetrefiedThunder/mcp-treasury.git
cd mcp-treasury
npm install
npm run build

Usage with Claude Desktop

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "treasury": {
      "command": "node",
      "args": ["/path/to/mcp-treasury/dist/index.js"]
    }
  }
}

Usage with npx

npx mcp-treasury

License

Apache-2.0