About usaspending-mcp
usaspending-mcp is an MCP server that gives AI agents access to U.S. government spending data through the USAspending.gov API. Its tools retrieve agency and award information and support keyword searches.
Key features
- 01Search awards by agency and year
- 02Retrieve details for an award
- 03Search spending data by keyword
- 04List agencies and related identifiers
Use cases
- 01Finding awards for an agency in a given year
- 02Inspecting details of a known award
- 03Searching spending records by topic
- 04Retrieving agency IDs for follow-up queries
MCP support
Exposes tools for retrieving and searching USAspending.gov agency and award data to MCP clients.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
We haven’t collected a package or remote endpoint for this server. Follow the instructions in the project README.
Tools
Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.
Details
From the project READMEusaspending-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
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.