Everything
Reference server that exercises every MCP feature: tools, resources, prompts, sampling and more
MOmodelcontextprotocol/servers92k190 new stars in the last 7 days
USAspending.gov contracts, grants, loans, subawards, recipients, agencies, and federal accounts.
Free, open-source MCP server for the USAspending.gov API: contracts, grants, loans, subawards, recipients, agencies, and federal accounts.
Overview, demo video and hosted setup: https://1102tools.com/mcp/usaspending
No API key required, locally or hosted. See Local or hosted.
Regression tests, including live checks against the USAspending API. The October 2026 releases were also checked with realistic contracting questions across all 55 tools (award histories, fiscal-year totals, subcontract reports, federal accounts). See testing.md.
| Local (desktop) | Claude (hosted) | ChatGPT (hosted) |
|---|---|---|
| Local setup | Install | Install |
Compare local and hosted · Matching prompts
Exposes the USAspending.gov REST API as 55 MCP tools covering:
Search and aggregation
search_awards - Primary search for contracts, IDVs, grants, loans, direct paymentsprogram_numbers filter - Narrow grants, loans, and other assistance to an assistance listing (CFDA) number, such as 93.778 for Medicaid. Works on search_awards, get_award_count, spending_over_time, spending_by_category, spending_by_subaward_grouped, spending_by_transaction, and spending_by_geography. Find numbers by program name with autocomplete_cfda.get_award_count - Dimensional counts across award categoriesspending_over_time - Time series aggregation (fiscal year, quarter, month)spending_by_category - Top N breakdowns by agency, vendor, NAICS, PSC, state, etc.spending_by_transaction - Modification-level transaction searchspending_by_geography - State, county, or congressional district breakdownnew_awards_over_time - Pipeline trend for a recipientAward detail
get_award_detail - Full record for a single awardget_transactions - Full modification history for an awardget_award_funding - File C funding data (Treasury account, object class, program activity)get_award_funding_rollup - Single-line funding summaryget_award_subaward_count, get_award_federal_account_count, get_award_transaction_countget_idv_children - Task/delivery orders under an IDVawards_last_updated - Data freshness checkSubawards (FFATA)
search_subawards - Subawards under a single primespending_by_subaward_grouped - Matching prime awards with cumulative reported subaward totalsRecipients
search_recipients - Search recipients by keywordget_recipient_profile - Full recipient recordget_recipient_children - Subsidiaries of a parent recipientautocomplete_recipient - Find recipient names by partial namelist_states - All states with FIPS codesFor a recipient workflow, take a name from autocomplete_recipient to
search_recipients. Use the returned id hash for profiles and new-award
trends. To retrieve subsidiaries, pass the parent (-P) row’s uei (or
legacy duns) to get_recipient_children; that tool accepts UEI/DUNS.
Agency depth
list_toptier_agencies, get_agency_overview, get_agency_awardsget_agency_budgetary_resources - Budget resources by FYget_agency_sub_agencies - Subordinate orgs with obligationsget_agency_federal_accounts - Funding sources (TAS)get_agency_object_classes - Spending categories (OMB)get_agency_program_activities - Program-level breakdownget_agency_obligations_by_award_category - Contract vs grant mixIDV depth
get_idv_amounts - Top-line IDV rollupget_idv_funding, get_idv_funding_rollup - File C for IDVget_idv_activity - Child orders under an IDVFederal accounts (Treasury)
list_federal_accounts - Search TASget_federal_account_detail, get_federal_account_object_classes,
get_federal_account_program_activities, get_federal_account_fy_snapshotAutocomplete
autocomplete_psc, autocomplete_naicsautocomplete_awarding_agency, autocomplete_funding_agencyautocomplete_cfda (grants), autocomplete_glossary, autocomplete_recipientReference data
get_naics_details, get_psc_filter_treeget_award_types_reference - All award type codes (A=BPA Call etc.)get_def_codes_reference - Disaster Emergency Fund codes (COVID, IIJA, IRA)get_glossary - Acquisition/spending vocabularyget_submission_periods - Agency reporting period coverageget_state_profile - State-level spending profileWorkflow convenience
lookup_piid - Auto-detects contract vs IDV and returns the matching awardpip install usaspending-gov-mcp
uvx --refresh-package usaspending-gov-mcp --from usaspending-gov-mcp usaspending-mcp
The --from is required for this server and only this server. The PyPI package
is usaspending-gov-mcp but the console script it installs is usaspending-mcp,
so a bare uvx usaspending-gov-mcp fails with "An executable named
usaspending-gov-mcp is not provided by package usaspending-gov-mcp".
Do not run uvx usaspending-mcp either. usaspending-mcp is an unrelated
third-party package on PyPI, not this project.
git clone https://github.com/1102tools-dev/federal-contracting-mcps.git
cd federal-contracting-mcps/servers/usaspending-gov-mcp
pip install -e .
Use the configuration below as the server definition and adapt its placement to your compatible MCP client. For practical requests using this source, see the prompt library.
{
"mcpServers": {
"usaspending": {
"command": "uvx",
"args": ["--refresh-package", "usaspending-gov-mcp", "--from", "usaspending-gov-mcp", "usaspending-mcp"]
}
}
}
The --refresh-package flag tells uv to check PyPI for a newer release each time your client launches the server, so fixes arrive automatically; without it, uv keeps serving whatever version it first cached. It adds a moment of network time at startup, so raise your platform's MCP startup timeout if it enforces a short one.
If you installed via pip install -e . or a regular pip install:
{
"mcpServers": {
"usaspending": {
"command": "python",
"args": ["-m", "usaspending_gov_mcp.server"]
}
}
}
Restart the client and the tools appear.
Standalone use defaults to USASPENDING_TOOL_PROFILE=full, which exposes all
55 tools. Packaged acquisition agents set
USASPENDING_TOOL_PROFILE=acquisition-agent to expose a stable 20-tool subset
covering core award search, spending, agency, recipient, NAICS, PSC,
transaction, and subaward operations. An unknown profile stops startup with a
clear error instead of silently changing the catalog.
Once configured, try:
new_awards_over_time combines the source’s fiscal-quarter counts for annual fiscal-year results. A date window that covers only part of a fiscal year returns counts for that requested portion, not the entire year. Quarter and month results retain the source counts.spending_by_subaward_grouped ranks cumulative reported subaward totals for matching primes. Its date filters do not trim those totals to subaward actions inside the requested period. For period-specific reports, pass a returned award_generated_internal_id to search_subawards, read every page and filter the records by action_date. Reported amounts can repeat cumulative values; their sum is not net new subcontract spending.spending_by_transaction, read every page and deduplicate award identifiers; get_transactions gives a single award's action dates. Explicit date_type="action_date" bounds the latest action.fy, especially after October rollover. If you ask for a year the source does not have yet, the answer explains which years are available. Agency budgetary resources do not provide a mandatory/discretionary split.award_type parameter takes one of: contracts, idvs, grants, loans, direct_payments, other. Use separate calls for separate categories.program_numbers is for assistance only. Use it with award_type set to grants, loans, direct_payments, or other. Contracts and IDVs have no assistance listing, so the server returns a message instead of zero results.keywords, awarding_agency, naics_codes, etc.) rather than a nested filter dict, for better LLM tool discovery.All data is sourced from USAspending.gov, which aggregates FPDS-NG contract data, FAADC assistance data, and agency DATA Act submissions. Data freshness varies by agency: non-DoD contract data is typically available within 5 business days, DoD and USACE procurement data has a 90-day reporting delay in FPDS, and financial assistance data is available within 2 days of submission.
MIT
Run PYTHONPATH=src uv run --python 3.12 python -m pytest -q from this
package directory. Set USASPENDING_LIVE_TESTS=1 to add the live checks
against the public API (no key needed). See testing.md for details.
| Test file | Coverage |
|---|---|
| test_v0_3_features.py | Tool shapes, filters and expanded API surface |
| test_density_r5.py | Boundary and semantic regression density |
| test_live_audit_r6.py | Live endpoint audit |
| test_live_audit_r7.py | Live parameter and pagination audit |
| test_content_fixes_1013.py | October content fixes, offline and live |
| test_round_8.py | Property and validation checks |
| test_entity_family_fixes.py | Agency, recipient and award semantics |
| test_validation.py | Input validation |
| test_search_family_fixes.py | Search and aggregation semantics |
| test_response_cache_hosted.py | Hosted cache behavior |
| test_audit_r11.py | Paced audit anchors |
| test_throughput.py | Request throughput and pacing |
| test_tool_profiles.py | Tool profile selection |
| test_http.py | HTTP handling |
| test_content_e2e_1014.py | Full end-to-end audit guidance regressions |
| test_published_scope_1015.py | Published tool-selection scope guidance |
| test_new_awards_fiscal_year_1016.py | Captured annual fiscal-year correction and unchanged quarter/month samples |
| test_subaward_period_scope_1017.py | Cumulative FFATA scope and complete dated-report recovery |
| test_federal_account_program_scope_1018.py | Captured all-year program scope, complete list and single-year financial recovery |
| test_federal_account_available_fy_1020.py | Current-FY source availability, supported recovery and unchanged 503 control |
| test_naics_current_retired_1021.py | Actual retired rows versus active rows omitted by the requested limit |
| test_award_date_overlap_r6.py | Award interval overlap versus complete dated-transaction recovery |
| test_sdk23_expected_guidance.py | Visible ordinary recovery hints, no pre-validation source requests, preserved source outputs and unexpected-fault masking |
| Total | 2,322 |
Reference server that exercises every MCP feature: tools, resources, prompts, sampling and more
MOmodelcontextprotocol/servers92k190 new stars in the last 7 days
Current time lookup and conversion between IANA timezones
MOmodelcontextprotocol/servers92k190 new stars in the last 7 days
Free open-source resume builder with remote MCP tools for resumes and job applications.
REreactive-resume/reactive-resume46k207 new stars in the last 7 days
Puter MCP enables AI tools to interact with Puter: manage files, websites, workers, and more
HEHeyPuter/puter44k50 new stars in the last 7 days
A Go implementation of the Model Context Protocol (MCP), enabling seamless integration between LLM applications and external data sources and tools.
MAmark3labs/mcp-go9.3k24 new stars in the last 7 days