MCP.so
登录
服务器

usaspending-mcp

@flothjl

mcp server to interact with usaspending.gov api

概览

What is usaspending-mcp?

usaspending-mcp is an MCP server that provides tools, endpoints, and data processing utilities for AI agents to access and interact with the USAspending.gov API, enabling retrieval and analysis of U.S. government spending data.

How to use usaspending-mcp?

Configure usaspending-mcp as a stdio extension in Goose using the provided YAML block, specifying the command uvx with --from git+https://github.com/flothjl/usaspending-mcp@main usaspending-mcp and setting the model to gpt-4o-mini with OpenAI as the provider.

Key features of usaspending-mcp

  • Provides four tools to query USAspending.gov data
  • GetSpendingAwardsByAgencyId searches awards by agency and year
  • GetAwardInfoByAwardId retrieves details for a specific award
  • SearchByKeywords performs broad keyword searches for a year
  • GetAgencies lists all agencies and their IDs for other calls
  • Runs as a stdio MCP server via uvx

Use cases of usaspending-mcp

  • A government analyst queries spending awards for a specific agency and year
  • A researcher retrieves detailed information about a known award
  • A journalist searches for spending related to keywords like “infrastructure” in a given year
  • An application dynamically fetches the list of agencies to populate a dropdown
  • An AI assistant answers questions about U.S. federal spending using real API data

FAQ from usaspending-mcp

What tools does usaspending-mcp provide?

The server offers four tools: GetSpendingAwardsByAgencyId, GetAwardInfoByAwardId, SearchByKeywords, and GetAgencies.

How do I configure usaspending-mcp with Goose?

Use the provided YAML extension configuration, setting cmd to uvx, args to ["--from", "git+https://github.com/flothjl/usaspending-mcp@main", "usaspending-mcp"], and specifying GOOSE_MODEL: gpt-4o-mini and GOOSE_PROVIDER: openai.

What data source does usaspending-mcp connect to?

It connects to the USAspending.gov API to retrieve U.S. government spending data.

What transport does usaspending-mcp use?

usaspending-mcp uses the stdio transport protocol, as indicated by the Goose configuration’s type: stdio.

标签

来自「其他」的更多内容