使用说明
美国支出MCP服务器
Elixir中的MCP(模型上下文协议)服务器,提供对 USASpending.gov API --美国政府联邦支出数据的来源。
工具
| 工具 | 说明 |
|---|---|
search_spending_by_award |
使用过滤器(关键字、日期、机构、奖励类型)搜索联邦支出奖励 |
search_spending_by_award_count |
获取按类型(合同、赠款、贷款等)分组的奖励计数 |
get_spending_explorer |
按预算职能、机构、对象类或联邦账户探索总支出 |
list_agencies |
列出拥有预算和支出数据的顶级联邦机构 |
get_award_details |
获取特定奖项的详细信息 |
get_recipient_profile |
获取支出接收人的个人资料(地点、业务类型、支出明细) |
list_federal_accounts |
列出并搜索有预算资源的联邦账户 |
设置
需要 布置 用于工具和任务管理。
mise install # install Elixir, Erlang, mdbook
mise run setup # fetch deps + apply patches
可用任务
mise run setup # Fetch dependencies and apply patches
mise run server # Start the MCP server
mise run compile # Compile the project
mise run test # Run the test suite
mise run docs # Build the mdbook documentation
mise run docs:serve # Serve docs locally with live reload
mise run docs:test # Verify the server responds to MCP requests
使用Claude代码
增添 ~/.claude/mcp_servers.json:
{
"mcpServers": {
"usaspending": {
"command": "mise",
"args": ["run", "server"],
"cwd": "/path/to/usaspending-mcp"
}
}
}
建筑
Hermes.Server--MCP协议处理 hermes_mcp- 标准输入输出传输 --标准输入/标准输出上的JSON-RPC
Req-USASpending API调用的HTTP客户端- 无需认证 -USASpending API是公开的