usaspending-federal-contracts-grants-mcp
README.md
# usaspending-federal-contracts-grants-mcp
Query live U.S. federal contracts, grants, agency budgets, top GovCon contractors, and NAICS industry spending over Model Context Protocol (MCP). It talks directly to the official `api.usaspending.gov/api/v2/` public JSON API. You don't need an API key or an account.
## Hosted endpoint
Point any Streamable HTTP MCP client straight at the free Cloudflare Worker endpoint.
```text
https://usaspending-federal-contracts-grants-mcp.lipmichal.workers.dev/mcp
```
## Available tools
| Tool | Purpose |
| --- | --- |
| `usaspending_search_awards` | Search federal contracts, grants, IDVs, loans, and direct payments by keyword, recipient, awarding agency (DOD, HHS, VA, NASA, and more), NAICS code, state, dollar range, or date range |
| `usaspending_award_detail` | Pull full contract or grant records by generated award ID, including obligations, outlays, ceiling amounts, period of performance, recipient UEI, and competition metadata |
| `usaspending_agency_spending` | Compare top federal agency budgets or inspect one agency's budgetary resources, obligations, outlays, and award transaction counts by fiscal year |
| `usaspending_top_recipients` | Rank the largest federal prime contractors and grant recipients by obligated dollars, with filters for agency, award category, NAICS code, state, and date range |
| `usaspending_naics_spending` | Rank federal procurement spending by 6-digit NAICS industry code to size markets and track agency demand |
## Client configuration
Add this remote URL to Claude Desktop, Cursor, or VS Code MCP settings.
```json
{
"mcpServers": {
"usaspending-federal-contracts-grants": {
"url": "https://usaspending-federal-contracts-grants-mcp.lipmichal.workers.dev/mcp"
}
}
}
```
## Run locally over stdio
Build and start the local stdio server with Node 20 or newer.
```bash
npm install
npm run build
npm start
```
## Compliance and reliability
Every request to `api.usaspending.gov` sends an explicit `User-Agent` header (`McpStamp-USASpending/1.0 (support@zovo.one)`). Edge caching on Cloudflare Workers only applies to HTTP 2xx responses, so upstream errors never get cached. All five tools expose read-only, non-destructive, open-world annotations and negotiate protocol version `2026-07-28` down to `2025-11-25` cleanly.
## More MCP Servers and Readiness Check
This server belongs to the public MCP directory maintained by MCPStamp and Zovo.
- [Free live-data MCP servers](https://www.mcpstamp.com/free-servers/) with hosted endpoints and setup guides across public government and market APIs.
- [Free MCP readiness checker](https://www.mcpstamp.com/check/) to score any MCP server for Claude, ChatGPT, and registry submission.
- [MCP Readiness Audit ($490)](https://www.mcpstamp.com/services/#audit) for teams shipping a production server who want a hands-on security, schema, and store review.
- [Zovo Pro MCP Bundle ($39 one-time)](https://mcp.zovo.one/buy/bundle?src=gh.usaspending-federal-contracts-grants-mcp) with hosted commercial servers and priority endpoints.
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues