美国政府支出数据MCP服务器

usaspending-mcp 是一个 MCP 服务器,旨在帮助 AI 代理访问和交互 USAspending.gov API,提供按机构查询资助、获取资助详情、关键词搜索以及机构列表查询等功能,适用于美国政府支出数据的检索与分析。

  • by flothjl
  • Python
  • 本地部署
  • 7 星标
  • 更新于
在 GitHub 查看 flothjl/usaspending-mcp

使用说明

usaspending-mcp

usaspending-mcp is an MCP server designed to facilitate AI agents in accessing and interacting with the USAspending.gov API. This project provides tools, endpoints, and data processing utilities to streamline the retrieval and analysis of U.S. government spending data.

Tools

  • GetSpendingAwardsByAgencyId
    • Search for awards for a given agency id for a given year
  • GetAwardInfoByAwardId
    • Get information about a given award. Requires the generated unique award ID.
  • SearchByKeywords
    • Broad search for given keywords for a given year.
  • GetAgencies
    • Get a list of all agencies and associated data needed for other calls (i.e. agency id)

Configuration

Goose

extensions:
  usaspending-mcp:
    args:
    - --from
    - git+https://github.com/flothjl/usaspending-mcp@main
    - usaspending-mcp
    cmd: uvx
    enabled: true
    envs: {}
    name: usaspending
    type: stdio
GOOSE_MODEL: gpt-4o-mini
GOOSE_PROVIDER: openai