USAspending MCP
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
USAspending MCP
A free, key-less Model Context Protocol server for USAspending.gov — the U.S. government's official record of federal spending. Query contracts, grants, loans, recipients, agencies, and geographic breakdowns directly from the primary source. No API key, no account.
Built with FastMCP. Data covers FY2008-present.
Tools
Tool | What it does |
| Check API reachability and list supported award categories. |
| List/search federal toptier agencies; resolve an agency name to its code. |
| Search awards (contracts/grants/loans/...) by recipient, agency, keyword, date. |
| Count matching awards broken down by type (contracts, grants, loans, idvs, ...). |
| Full detail for one award (amounts, period of performance, recipient, agencies). |
| Top recipients by dollars for an agency + award category over a period. |
| Aggregate spending by recipient, agency, NAICS, PSC, CFDA, geography, etc. |
| Find recipients by name; returns UEI / DUNS and a recipient id. |
| Profile for one recipient: parent entity, business types, location, totals. |
| Spending by state / county / district, by recipient location or place of performance. |
Related MCP server: USA Spending MCP Server
Install
git clone https://github.com/jsconiers/usaspending-mcp.git
cd usaspending-mcp
python3 -m venv .venv
.venv/bin/pip install -r requirements.txt
.venv/bin/python test_usaspending.py # offline testsUse with Claude Desktop
Add to claude_desktop_config.json (macOS:
~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"usaspending": {
"command": "/absolute/path/to/usaspending-mcp/.venv/bin/python",
"args": ["/absolute/path/to/usaspending-mcp/usaspending_mcp.py"]
}
}
}Restart Claude Desktop, then ask things like "Who are the top DoD contractors this fiscal year?", "How much has Lockheed Martin been awarded?", or "Show federal contract spending by state."
Award categories
award_category accepts a friendly group that expands to USAspending award-type codes:
Category | Codes |
| A, B, C, D |
| IDV_A ... IDV_E |
| 02, 03, 04, 05 |
| 06, 10 |
| 07, 08 |
| 09, 11, -1 |
| union of the above |
Pass award_type_codes explicitly to override.
Examples
list_agencies(search="defense") -> Department of Defense (code 097)
search_awards(recipient="Lockheed Martin") -> largest contracts + award_internal_id
award_count(recipient="Lockheed Martin") -> {contracts: 6501, grants: 21, idvs: 233, ...}
top_recipients(agency="Department of Defense") -> Lockheed, Electric Boat, Raytheon, ...
spending_by_category(category="naics", agency="Department of Defense")
spending_by_geography(geo_layer="state", agency="Department of Defense")
recipient_search(name="Lockheed Martin") -> UEI / DUNS + recipient_idTypical flow: search_awards (or top_recipients) to find an award/recipient, then
award_details / recipient_details for the full record.
Data source
All data comes from the public USAspending.gov REST API (https://api.usaspending.gov/).
Please be considerate with request volume.
License
MIT — see LICENSE. Not affiliated with or endorsed by USAspending.gov or the U.S. government. For informational purposes only.
This server cannot be deployed
Maintenance
Related MCP Connectors
USAspending MCP — Federal spending data from USAspending.gov API
MCP access to the U.S. federal procurement graph: contracts, opportunities, entities, and more.
Free hosted MCP server: US healthcare procedure cost estimates and provider pricing. No API key.
Treasury MCP — US Treasury Fiscal Data public API (free, no auth)
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceMCP server for querying U.S. Federal Procurement Data System (FPDS-NG) to search federal contract actions by keyword, agency, NAICS, or vendor, with USDC micropayments via x402.-

USA Spending MCP Serverofficial
FlicenseBqualityDmaintenanceAn MCP server for interacting with the USAspending.gov API, supporting local use with Claude Desktop and cloud deployment with login.gov authentication.310-- AlicenseAqualityDmaintenanceRead-only MCP server for exploring US federal spending data via the USAspending.gov API, enabling natural language queries on awards, agencies, recipients, and spending trends.12MIT
- AlicenseNot gradedqualityAmaintenanceAccess US federal award, recipient, agency, and spending analytics data from USAspending.gov via MCP, with 18 tools for searching and retrieving detailed records.765 npm5Apache 2.0