USASpending.gov
PYPI · USASPENDING-GOV-MCP · SCANNED SEP 20
USASpending.gov awards, subawards, recipients, agencies, and federal accounts. 55 tools.
Available components
How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. How we score → Why this is hard to score →
Supply Chain Security100
- No malware found by supply-chain analysis.Pass
- No known CVEs affecting this package version or its production dependencies.Pass
- Runs hatchling.build at install time, a recognised native-build step with no shell scripting around it. View diagnostics → Pass
- 1 of 34 dependencies flagged as unhealthy. View diagnostics → Partial
Provenance & Transparency45
- Source repository is publicly reachable at the declared URL. View diagnostics → Pass
- Provenance check failed: no build-provenance attestation is published. See how to fix → View diagnostics → Fail
- Clear OSI-approved license (MIT).Pass
- Actively maintained (last published 6 days ago).Pass
- Disclosure check failed: no security disclosure policy was found in the source repository. See how to fix → Fail
Schema Quality & AI Usability66
- AI-judged instruction clarity (good).Pass
- Context-footprint check failed: tool/resource definitions use about 6850 tokens (~124/item across 55 items; 55 tools + 0 resources), over budget; trim descriptions and params. See how to fix → Fail
- Usage-examples check failed: none of the tools include examples. See how to fix → Fail
Stability & Change Management90
- Stability observed for 27 of 30 days with no destabilising changes; credit accrues until the full window elapses.Partial
Tool Coverage71
- 100% of tools have a non-trivial description (not blank, and not just the tool's name).Pass
- 0% of tool parameters carry a description.Fail
- Structured output schemas are declared (100% of tools); any adoption earns full credit.Pass
Tool Safety100
- No prompt-injection markers were found in the server instructions, tool names or descriptions we captured.Pass
- We read all 55 captured tool definition(s), and no name or description among them implies an irreversible operation.Pass
- An AI judge read all 55 captured unit(s) of tool text and found none that tries to manipulate the model reading it.Pass
Capabilities100
- Implements a current MCP spec version (2026-07-28).Pass
How do I install the USASpending.gov MCP server?
USASpending.gov runs locally as a PyPI package, launched with uvx usaspending-gov-mcp. Ready-made configuration for Claude, Cursor, VS Code, Codex and 5 more is on this page, copied from each client's own documentation.
pypi · usaspending-gov-mcp
claude mcp add com-1102tools-usaspending-gov-mcp -- uvx usaspending-gov-mcp
{
"mcpServers": {
"com-1102tools-usaspending-gov-mcp": {
"command": "uvx",
"args": [
"usaspending-gov-mcp"
]
}
}
} {
"servers": {
"com-1102tools-usaspending-gov-mcp": {
"command": "uvx",
"args": [
"usaspending-gov-mcp"
]
}
}
} codex mcp add com-1102tools-usaspending-gov-mcp -- uvx usaspending-gov-mcp
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"com-1102tools-usaspending-gov-mcp": {
"type": "local",
"command": [
"uvx",
"usaspending-gov-mcp"
],
"enabled": true
}
}
} openclaw mcp add com-1102tools-usaspending-gov-mcp --command uvx --arg usaspending-gov-mcp
mcp_servers:
com-1102tools-usaspending-gov-mcp:
command: "uvx"
args: ["usaspending-gov-mcp"] {
"McpServers": {
"com-1102tools-usaspending-gov-mcp": {
"Transport": "stdio",
"Command": "uvx",
"Arguments": [
"usaspending-gov-mcp"
]
}
}
} assistant mcp add com-1102tools-usaspending-gov-mcp -t stdio -c uvx -a usaspending-gov-mcp
{
"mcpServers": {
"com-1102tools-usaspending-gov-mcp": {
"command": "uvx",
"args": [
"usaspending-gov-mcp"
]
}
}
} Every change we have recorded for this component, newest first. Security-relevant changes are always shown. ▲ marks a change for the better, ▼ a change for the worse; unmarked changes are neutral.
- 19 Sept 26 +1
No change was recorded against any check on this day. Stability & Change Management went from 83 to 87. That category is still filling its 30-day observation window: 25 days of observed history at the previous scan, 26 at this one. The score rises as the window fills, whether or not the server changes.
- 18 Sept 26 +15
- Malware scan: unverified → pass ▲ security
- 17 Sept 26 +1
No change was recorded against any check on this day. Stability & Change Management went from 77 to 80. That category is still filling its 30-day observation window: 23 days of observed history at the previous scan, 24 at this one. The score rises as the window fills, whether or not the server changes.
- 15 Sept 26 +1
No change was recorded against any check on this day. Stability & Change Management went from 70 to 73. That category is still filling its 30-day observation window: 21 days of observed history at the previous scan, 22 at this one. The score rises as the window fills, whether or not the server changes.
- 13 Sept 26 +1
- Package version: 1.0.5 → 1.0.9 functional
- Package version: 1.0.5 → 1.0.8 functional
- Package version: 1.0.5 → 1.0.7 functional
- 10 Sept 26 +1
No change was recorded against any check on this day. Stability & Change Management went from 53 to 57. That category is still filling its 30-day observation window: 16 days of observed history at the previous scan, 17 at this one. The score rises as the window fills, whether or not the server changes.
- 8 Sept 26 +1
No change was recorded against any check on this day. Stability & Change Management went from 47 to 50. That category is still filling its 30-day observation window: 14 days of observed history at the previous scan, 15 at this one. The score rises as the window fills, whether or not the server changes.
- 6 Sept 26 +1
No change was recorded against any check on this day. Stability & Change Management went from 40 to 43. That category is still filling its 30-day observation window: 12 days of observed history at the previous scan, 13 at this one. The score rises as the window fills, whether or not the server changes.
Diagnostic detail from the automated scan of this channel: what the scanner observed at each step, so you can see exactly where a check passed or failed. It is informational only and never changes the trust score.
Captured 20 Sept 2026 · Analysed pypi/usaspending-gov-mcp@1.0.9
Provenance No attestation
The registry publishes no build provenance for this version, so there is nothing to verify.
| Result | No attestation |
|---|---|
| Ecosystem | pypi |
Background: How many MCP packages publish verified provenance →
Install scripts 1 script
| Hook | Tier | Command |
|---|---|---|
| build_backend | allowlisted | hatchling.build |
Background: Why install scripts are a supply-chain risk →
Dependencies 34 packages
| Packages resolved | 34 |
|---|---|
| No linked repository | 1 |
| Tree resolution | Complete |
Background: SBOMs and build attestations, explained →
The tools this component advertises to a client, with an estimated token cost for each. Expand a tool to see its parameters and schema. The per-tool counts are indicative and are not scored directly; the schema's total context footprint is one signal in Schema Quality & AI Usability. A tool's description is untrusted text the model reads on every call, which is what makes this list a security surface and not just an inventory: how tool poisoning works →
autocomplete_awarding_agency ~75
Find awarding agency names by partial match. USASpending search filters require the EXACT awarding agency name (slugs return zero). Use this to resolve a partial name to the canonical one before passing to search_awards() awarding_agency parameter.
| Name | Type | Req | Description |
|---|---|---|---|
| limit | integer | – | – |
| search_text | string | yes | – |
Structured output declared, but exposes no named fields.
No examples provided.
autocomplete_cfda ~52
Find CFDA (Catalog of Federal Domestic Assistance) program numbers by partial title or program number. CFDA codes are used in grants.
| Name | Type | Req | Description |
|---|---|---|---|
| limit | integer | – | – |
| search_text | string | yes | – |
Structured output declared, but exposes no named fields.
No examples provided.
autocomplete_funding_agency ~40
Find funding agency names by partial match (companion to awarding agency).
| Name | Type | Req | Description |
|---|---|---|---|
| limit | integer | – | – |
| search_text | string | yes | – |
Structured output declared, but exposes no named fields.
No examples provided.
autocomplete_glossary ~39
Find glossary terms (acquisition + spending vocabulary) by partial match.
| Name | Type | Req | Description |
|---|---|---|---|
| limit | integer | – | – |
| search_text | string | yes | – |
Structured output declared, but exposes no named fields.
No examples provided.
autocomplete_naics ~154
Autocomplete lookup for NAICS codes. Accepts partial codes ('541') or keywords ('software'). Returns matching NAICS entries with code and description. Minimum 2 characters required. Short queries silently match substrings inside parenthetical notes (e.g. 'x' matches 'except') and produce nonsense results, so we require 2+ chars. exclude_retired defaults to True. The upstream NAICS taxonomy still returns codes retired in 2012/2017/2022; these are almost never what callers want. Set exclude_retired=False to include them.
| Name | Type | Req | Description |
|---|---|---|---|
| exclude_retired | boolean | – | – |
| limit | integer | – | – |
| search_text | string | yes | – |
Structured output declared, but exposes no named fields.
No examples provided.
autocomplete_psc ~105
Autocomplete lookup for Product/Service Codes (PSC). Works best with code prefixes ('R499', 'D3', 'AJ') or keywords ('professional', 'application'). Returns matching PSC entries with code and description. Minimum 2 characters required. Single-character queries return first-N alphabetical results from the upstream API (useless for matching) and empty strings return HTTP 400.
| Name | Type | Req | Description |
|---|---|---|---|
| limit | integer | – | – |
| search_text | string | yes | – |
Structured output declared, but exposes no named fields.
No examples provided.
autocomplete_recipient ~112
Find recipient names by partial name or UEI/DUNS. NOTE: this endpoint returns recipient NAMES only. It does NOT return the recipient hash needed by get_recipient_profile() and get_recipient_children() (and its uei/duns fields come back null). To get a hash, take a name from here and pass it to search_recipients(), whose results carry the hash in their 'id' field.
| Name | Type | Req | Description |
|---|---|---|---|
| limit | integer | – | – |
| search_text | string | yes | – |
Structured output declared, but exposes no named fields.
No examples provided.
awards_last_updated ~43
Get the timestamp of the last USASpending award data refresh. Use this to determine data freshness when comparing to other sources (SAM.gov Contract Awards API for example).
Input schema present but exposes no named parameters.
Structured output declared, but exposes no named fields.
No examples provided.
get_agency_awards ~68
Get award summary totals for an agency in a given fiscal year. Returns obligation totals by award category. toptier_code is auto-padded to 3 digits if a shorter numeric value is supplied.
| Name | Type | Req | Description |
|---|---|---|---|
| fiscal_year | – | – | – |
| toptier_code | string | yes | – |
Structured output declared, but exposes no named fields.
No examples provided.
get_agency_budgetary_resources ~57
Get an agency's budgetary resources by fiscal year. Returns total budgetary resources, obligations, outlays, and discretionary vs mandatory breakdown for each fiscal year on file.
| Name | Type | Req | Description |
|---|---|---|---|
| toptier_code | string | yes | – |
Structured output declared, but exposes no named fields.
No examples provided.
get_agency_federal_accounts ~103
List the Treasury Account Symbols (federal accounts) used by an agency. Returns each federal account with its obligated amount and gross outlay for the given fiscal year. Useful for understanding how an agency's money flows through Treasury.
| Name | Type | Req | Description |
|---|---|---|---|
| fiscal_year | – | – | – |
| limit | integer | – | – |
| order | string | – | – |
| page | integer | – | – |
| sort | string | – | – |
| toptier_code | string | yes | – |
Structured output declared, but exposes no named fields.
No examples provided.
get_agency_object_classes ~102
List the object class breakdown (what an agency spends money on). Object classes are OMB categories: Personnel Compensation, Travel, Contractual Services, Equipment, Grants, etc. Useful for understanding what types of expenditures an agency makes.
| Name | Type | Req | Description |
|---|---|---|---|
| fiscal_year | – | – | – |
| limit | integer | – | – |
| order | string | – | – |
| page | integer | – | – |
| sort | string | – | – |
| toptier_code | string | yes | – |
Structured output declared, but exposes no named fields.
No examples provided.
get_agency_obligations_by_award_category ~91
Get an agency's obligation breakdown by award category. Returns total obligated dollars split by category: contracts, IDVs, grants, loans, direct payments, other. Quick way to see what mix of award types an agency uses (heavy contractor agency vs grant-issuing agency vs mixed).
| Name | Type | Req | Description |
|---|---|---|---|
| fiscal_year | – | – | – |
| toptier_code | string | yes | – |
Structured output declared, but exposes no named fields.
No examples provided.
get_agency_overview ~109
Get summary information for a specific agency in a given fiscal year. toptier_code is the 3- or 4-digit agency code (e.g. '097' for DoD, '075' for HHS, '080' for NASA). Shorter inputs like '97' are left-padded to '097' automatically. Get valid codes via list_toptier_agencies().
| Name | Type | Req | Description |
|---|---|---|---|
| fiscal_year | – | – | – |
| toptier_code | string | yes | – |
Structured output declared, but exposes no named fields.
No examples provided.
get_agency_program_activities ~104
List the program activities (specific programs) within an agency. Program activities are the specific named programs that obligate funds (e.g., 'Cybersecurity and Infrastructure Security Agency'). Useful for pinpointing which program funds a specific activity.
| Name | Type | Req | Description |
|---|---|---|---|
| fiscal_year | – | – | – |
| limit | integer | – | – |
| order | string | – | – |
| page | integer | – | – |
| sort | string | – | – |
| toptier_code | string | yes | – |
Structured output declared, but exposes no named fields.
No examples provided.
get_agency_sub_agencies ~161
List the subordinate (subtier) organizations of a toptier agency. Returns each sub-agency with its obligations, transaction count, and new-award count for the given fiscal year. Useful for finding the canonical subtier name to pass into search_awards() awarding_subagency. sort accepts name, total_obligations, transaction_count, or new_award_count (this endpoint has no outlay column; a former 'total_outlays' option was rejected by the API with HTTP 400).
| Name | Type | Req | Description |
|---|---|---|---|
| fiscal_year | – | – | – |
| limit | integer | – | – |
| order | string | – | – |
| page | integer | – | – |
| sort | string | – | – |
| toptier_code | string | yes | – |
Structured output declared, but exposes no named fields.
No examples provided.
get_award_count ~298
Count awards matching filters, broken down by award category. Returns counts grouped by: contracts, idvs, grants, loans, direct_payments, other. Use this for dimensional analysis: how many FFP vs T&M awards, how many competed vs sole-source, how many small business set-asides, etc. Unlike search_awards, this returns total counts across ALL award categories in a single call (not just the one specified in award_type). The award_type parameter is ignored here; filters apply to the count query directly. def_codes filters to Disaster Emergency Fund codes; see get_def_codes_reference(). At least one filter is required (the API rejects empty filter sets with HTTP 400). Typical usage: pass time_period_start + time_period_end, or a keywords/agency filter.
| Name | Type | Req | Description |
|---|---|---|---|
| award_amount_max | – | – | – |
| award_amount_min | – | – | – |
| award_type | string | – | – |
| awarding_agency | – | – | – |
| awarding_subagency | – | – | – |
| contract_pricing_type_codes | – | – | – |
| def_codes | – | – | – |
| extent_competed_type_codes | – | – | – |
| funding_agency | – | – | – |
| keywords | – | – | – |
| naics_codes | – | – | – |
| place_of_performance_state | – | – | – |
| psc_codes | – | – | – |
| recipient_name | – | – | – |
| set_aside_type_codes | – | – | – |
| time_period_end | – | – | – |
| time_period_start | – | – | – |
Structured output declared, but exposes no named fields.
No examples provided.
get_award_detail ~186
Fetch full details for a single award by its generated_internal_id. Use the generated_internal_id value returned by search_awards to fetch the complete award record. Returns: PIID, full description, total obligation, recipient details, parent award info, latest transaction contract data (competition, set-aside, pricing type), period of performance, place of performance, NAICS hierarchy, PSC hierarchy, base and all options value, and sub-award totals. Accepts either a generated award id (CONT_AWD_*, CONT_IDV_*, ASST_NON_*, ASST_AGG_*) or the numeric internal database id from a prior response. Example generated_award_id format: CONT_AWD_N0002424C0085_9700_N0002421D0001_9700
| Name | Type | Req | Description |
|---|---|---|---|
| generated_award_id | string | yes | – |
Structured output declared, but exposes no named fields.
No examples provided.
get_award_federal_account_count ~34
Count of distinct federal accounts (TAS) funding an award.
| Name | Type | Req | Description |
|---|---|---|---|
| award_id | string | yes | – |
Structured output declared, but exposes no named fields.
No examples provided.
get_award_funding ~120
Fetch File C funding data for an award: federal account, object class, program activity. Shows which Treasury accounts, object classes, and program activities funded an award. Useful for appropriations analysis and understanding what colors of money paid for what. Sort fields: reporting_fiscal_date, account_title, transaction_obligated_amount, object_class.
| Name | Type | Req | Description |
|---|---|---|---|
| generated_award_id | string | yes | – |
| limit | integer | – | – |
| order | string | – | – |
| page | integer | – | – |
| sort | string | – | – |
Structured output declared, but exposes no named fields.
No examples provided.
get_award_funding_rollup ~69
Get a rollup of an award's funding totals. Returns total transaction obligated amount, awarding agency count, funding agency count, and federal account count for a single award. Useful for a one-line summary of an award's funding picture.
| Name | Type | Req | Description |
|---|---|---|---|
| award_id | string | yes | – |
Structured output declared, but exposes no named fields.
No examples provided.
get_award_subaward_count ~39
Count of subawards (FFATA subcontracts/subawards) reported on an award.
| Name | Type | Req | Description |
|---|---|---|---|
| award_id | string | yes | – |
Structured output declared, but exposes no named fields.
No examples provided.
get_award_transaction_count ~30
Count of transactions (modifications) on an award.
| Name | Type | Req | Description |
|---|---|---|---|
| award_id | string | yes | – |
Structured output declared, but exposes no named fields.
No examples provided.
get_award_types_reference ~72
Return the full mapping of award type codes to descriptions. Returns the canonical reference: contracts (A=BPA Call, B=Purchase Order, C=Delivery Order, D=Definitive Contract), IDVs, grants, loans, etc. Authoritative source if you're unsure what a code letter means.
Input schema present but exposes no named parameters.
Structured output declared, but exposes no named fields.
No examples provided.
get_def_codes_reference ~52
Return all Disaster Emergency Fund (DEFC) codes with public laws. DEFCs are used to filter awards funded by specific supplemental appropriations (COVID-19, IIJA, IRA, etc.).
Input schema present but exposes no named parameters.
Structured output declared, but exposes no named fields.
No examples provided.
get_federal_account_detail ~31
Get an individual federal account's metadata + budgetary resources.
| Name | Type | Req | Description |
|---|---|---|---|
| account_code | string | yes | – |
Structured output declared, but exposes no named fields.
No examples provided.
get_federal_account_fy_snapshot ~107
Get a single-fiscal-year snapshot of a federal account's resources. Important: this endpoint takes the numeric `account_id` (e.g. 4595), NOT the alphanumeric `account_number` (e.g. "027-5183") used by the other federal-account endpoints. The list_federal_accounts response includes both fields per record. Pass the integer account_id here.
| Name | Type | Req | Description |
|---|---|---|---|
| account_id | – | yes | – |
| fiscal_year | – | – | – |
Structured output declared, but exposes no named fields.
No examples provided.
get_federal_account_object_classes ~171
Get the object class breakdown of obligations for a federal account. IMPORTANT: the returned obligations are CUMULATIVE across all reported fiscal years (FY2017 onward, the DATA Act window), not a single year. They are NOT comparable to get_federal_account_fy_snapshot(), which is single-year (verified live: account 021-0725 summed to $3.38B here vs $0.42B obligated in its FY2024 snapshot). The upstream endpoint has no year control: a fiscal_year body parameter is accepted but ignored, so none is exposed here. Note: this endpoint requires POST (not GET like the other federal account sub-endpoints). Live audit caught this; the body is empty.
| Name | Type | Req | Description |
|---|---|---|---|
| account_code | string | yes | – |
Structured output declared, but exposes no named fields.
No examples provided.
get_federal_account_program_activities ~37
Get the program activities funded under a federal account.
| Name | Type | Req | Description |
|---|---|---|---|
| account_code | string | yes | – |
| fiscal_year | – | – | – |
Structured output declared, but exposes no named fields.
No examples provided.
get_glossary ~37
Get the full USASpending glossary of acquisition + spending terms.
| Name | Type | Req | Description |
|---|---|---|---|
| limit | integer | – | – |
| page | integer | – | – |
Structured output declared, but exposes no named fields.
No examples provided.
get_idv_activity ~153
List child task/delivery orders awarded under an IDV. Results are ALWAYS sorted by obligated amount, descending; the endpoint accepts no sort or order parameters. (Earlier releases exposed sort/order here, but the API silently ignored them: the advertised default of period_of_performance_start_date was never the actual ordering. Round 10 audit finding.) For date-ordered children use get_idv_children(), whose endpoint does honor sort/order. hide_edge_cases=True filters out child awards missing obligated/awarded amounts or end dates.
| Name | Type | Req | Description |
|---|---|---|---|
| award_id | string | yes | – |
| hide_edge_cases | boolean | – | – |
| limit | integer | – | – |
| page | integer | – | – |
Structured output declared, but exposes no named fields.
No examples provided.
get_idv_amounts ~77
Top-line amounts for an Indefinite Delivery Vehicle (IDV). Returns child IDV count, child award count, child award total obligation, and base/option values rolled up across all task/delivery orders under the IDV. Pass a CONT_IDV_* generated_internal_id.
| Name | Type | Req | Description |
|---|---|---|---|
| award_id | string | yes | – |
Structured output declared, but exposes no named fields.
No examples provided.
get_idv_children ~241
Fetch child awards (task/delivery orders) under an IDV. For a Multiple Award IDV, child_awards returns the task orders or delivery orders placed against it. For a parent IDV, child_idvs returns the downstream IDV structure. grandchild_awards walks the hierarchy. Field name differences from search_awards: children use 'piid' (not 'Award ID'), 'obligated_amount' (not 'Award Amount'), and 'generated_unique_award_id' (not 'generated_internal_id'). An active vehicle can legitimately return zero children here: USASpending's award cross-linking has gaps. Treat an empty result as a reporting gap, not proof that no orders exist. A search_awards call with keywords=['<IDV PIID>'] sometimes recovers the orders, but it can also be empty on the same vehicle.
| Name | Type | Req | Description |
|---|---|---|---|
| child_type | string | – | – |
| generated_idv_id | string | yes | – |
| limit | integer | – | – |
| order | string | – | – |
| page | integer | – | – |
| sort | string | – | – |
Structured output declared, but exposes no named fields.
No examples provided.
get_idv_funding ~63
List the funding records (File C) for an IDV's child orders.
| Name | Type | Req | Description |
|---|---|---|---|
| award_id | string | yes | – |
| limit | integer | – | – |
| order | string | – | – |
| page | integer | – | – |
| sort | string | – | – |
Structured output declared, but exposes no named fields.
No examples provided.
get_idv_funding_rollup ~37
Funding rollup totals for an IDV (single dict, not paginated).
| Name | Type | Req | Description |
|---|---|---|---|
| award_id | string | yes | – |
Structured output declared, but exposes no named fields.
No examples provided.
get_naics_details ~47
Get details for a NAICS code (2-6 digits). Returns the NAICS description, parent categories, and child subcategories if applicable.
| Name | Type | Req | Description |
|---|---|---|---|
| code | string | yes | – |
Structured output declared, but exposes no named fields.
No examples provided.
get_psc_filter_tree ~66
Get the PSC hierarchy tree. Pass an empty path for the top-level. Drill down with paths like 'Service/R/' to get the service professional services tree, or 'Product/5' for product codes starting with 5.
| Name | Type | Req | Description |
|---|---|---|---|
| path | string | – | – |
Structured output declared, but exposes no named fields.
No examples provided.
get_recipient_children ~223
Get the child recipients (subsidiaries) of a parent recipient. Pass the parent recipient's 12-character UEI (or legacy 9-digit DUNS). Do NOT pass a recipient hash: the /recipient/children/ endpoint is the one recipient endpoint keyed by UEI/DUNS, and it rejects hashes with HTTP 400. Get the UEI from search_recipients() results (the 'uei' field of the -P row) or from get_recipient_profile(). Returns the child recipients, each with its own -C suffixed recipient_id hash usable with get_recipient_profile(). Useful for mapping corporate structures (e.g. Lockheed Martin parent -> all its subsidiaries). year: optional 'all', 'latest', or a fiscal year like 2026. The upstream endpoint returns a JSON array; it is wrapped here as {"results": [...], "total": N} to keep the dict-only response invariant.
| Name | Type | Req | Description |
|---|---|---|---|
| uei_or_duns | string | yes | – |
| year | – | – | – |
Structured output declared, but exposes no named fields.
No examples provided.
get_recipient_profile ~132
Get full profile for a recipient by their USASpending hash. Returns recipient details: name, UEI, DUNS, business categories, location, parent (if any), and lifetime award totals. The hash is the 'id' field returned by search_recipients(). (autocomplete_recipient does NOT return hashes; it is a name lookup only.) year: optional 'all' or a fiscal year like 2026 (int or str both accepted). Default is 'latest' (trailing 12 months).
| Name | Type | Req | Description |
|---|---|---|---|
| recipient_hash | string | yes | – |
| year | – | – | – |
Structured output declared, but exposes no named fields.
No examples provided.
get_state_profile ~74
Get spending profile for a US state by its 2-digit FIPS code. Examples: '06' = California, '48' = Texas, '24' = Maryland, '51' = Virginia. Returns award totals, top agencies, top recipients, and district data.
| Name | Type | Req | Description |
|---|---|---|---|
| state_fips | string | yes | – |
Structured output declared, but exposes no named fields.
No examples provided.
get_submission_periods ~45
Return the list of agency submission periods (when each agency last submitted data for each fiscal period). Useful for understanding which quarters of which fiscal years have full data coverage.
Input schema present but exposes no named parameters.
Structured output declared, but exposes no named fields.
No examples provided.
get_transactions ~130
Fetch the full transaction (modification) history for an award. Every modification, option exercise, and de-obligation is a transaction. Modification number '0' is the original base award. Use to understand the full lifecycle of a contract including its descriptive text at each point in time. Returns per transaction: id, type, action_date, action_type, modification_number, description, federal_action_obligation.
| Name | Type | Req | Description |
|---|---|---|---|
| generated_award_id | string | yes | – |
| limit | integer | – | – |
| order | string | – | – |
| page | integer | – | – |
| sort | string | – | – |
Structured output declared, but exposes no named fields.
No examples provided.
list_federal_accounts ~86
List Treasury federal accounts (TAS) with budgetary resources. keyword filters by account name or AID. fiscal_year defaults to current FY. sort is a dict like {'field':'budgetary_resources','direction':'desc'}.
| Name | Type | Req | Description |
|---|---|---|---|
| fiscal_year | – | – | – |
| keyword | – | – | – |
| limit | integer | – | – |
| page | integer | – | – |
| sort | – | – | – |
Structured output declared, but exposes no named fields.
No examples provided.
list_states ~85
List all states with their FIPS codes and award totals. Returns the full list of US states/territories with FIPS codes you can pass to get_state_profile(). The /recipient/state/ endpoint returns a JSON array (not an object). We wrap it in {"results": [...]} to keep the tool return type consistent with every other endpoint in this MCP.
Input schema present but exposes no named parameters.
Structured output declared, but exposes no named fields.
No examples provided.
list_toptier_agencies ~59
List all top-tier federal agencies tracked by USASpending. Returns agency codes, names, abbreviations, and current-year budgetary resources. Use the returned 'toptier_code' values with get_agency_overview().
Input schema present but exposes no named parameters.
Structured output declared, but exposes no named fields.
No examples provided.
lookup_piid ~181
Look up awards by PIID or PIID prefix with automatic award-type detection. Convenience tool: tries contracts first, then IDVs if no match. Uses keyword search under the hood, which behaves as a substring match on the PIID field, so you can pass a full PIID or a contracting-office prefix (e.g. 'N00024' for NAVSEA, 'W91CRB' for Army Contracting Command, 'FA8650' for AFRL). Returns the matching awards with basic fields. Use get_award_detail() with the returned generated_internal_id for the full record. Handy for enriching PRISM, Contract Court, or FPDS exports where you have a PIID but don't know whether it's a contract or IDV.
| Name | Type | Req | Description |
|---|---|---|---|
| limit | integer | – | – |
| piid | string | yes | – |
Structured output declared, but exposes no named fields.
No examples provided.
new_awards_over_time ~154
Pipeline trend of new awards to a recipient over time. REQUIRES recipient_id (the recipient hash with -P suffix for parent-level rollup, or -R for a single recipient). Returns counts of new awards grouped by month, quarter, or fiscal year. The endpoint rejects calls without recipient_id with HTTP 422, and it also requires a time_period. When you omit the dates, a default range covering all searchable data (2007-10-01 through 2099-09-30) is sent automatically.
| Name | Type | Req | Description |
|---|---|---|---|
| group | string | – | – |
| recipient_id | string | yes | – |
| time_period_end | – | – | – |
| time_period_start | – | – | – |
Structured output declared, but exposes no named fields.
No examples provided.
search_awards ~867
Search federal awards (contracts, IDVs, grants, loans, etc.) on USASpending.gov. This is the primary workhorse for finding awards. Returns matching awards with standard fields (Award ID, Recipient, Description, Amount, Agencies, NAICS, PSC, dates). Use get_award_detail() with the generated_internal_id from results to get full award details. Important rules: - award_type groups cannot be mixed; pick one category per call - time_period_start/end use YYYY-MM-DD format - award_amount_min/max are in USD - place_of_performance_state is a 2-letter USPS code (e.g. 'MD', 'VA') - For loans, use award_type='loans' and sort='Loan Value' - def_codes filters to Disaster Emergency Fund codes (COVID-19, IIJA, IRA supplementals); see get_def_codes_reference() for the list Filtering to specific contracting commands (NAVSEA, AFRL, etc.): USASpending's subtier level is at the service branch (Department of the Navy, Army, Air Force), not the contracting command. To filter to a specific command, use keywords with the PIID office prefix instead: - NAVSEA contracts: keywords=['N00024'] - Army Contracting: keywords=['W91CRB'] - AFRL: keywords=['FA8650'] - NAVAIR: keywords=['N00019'] This performs a substring match on the PIID field and is more reliable than the award_ids filter for partial matches. Common filter value references: - set_aside_type_codes: SBA, SBP, 8A, 8AN, HZC, HZS, SDVOSBS, SDVOSBC, WOSB, WOSBSS, EDWOSB, EDWOSBSS, VSA - extent_competed_type_codes: A (Full & Open), B, C, D, E, F, G, CDO, NDO - contract_pricing_type_codes: J (FFP), Y (T&M), Z (LH), U (CPFF), V (CPIF), R (CPAF), L (FP Incentive), M (FP Award Fee) IMPORTANT: awarding_agency/funding_agency must be the FULL TOPTIER NAME, not a slug. Use 'Department of Defense', NOT 'department-of-defense'. Slugs silently return zero results, and so does any name that is not a toptier agency: the military departments are SUBTIERS, so pass awarding_agency='Department of Defense' with awarding_s…
| Name | Type | Req | Description |
|---|---|---|---|
| award_amount_max | – | – | – |
| award_amount_min | – | – | – |
| award_ids | – | – | – |
| award_type | string | – | – |
| awarding_agency | – | – | – |
| awarding_subagency | – | – | – |
| contract_pricing_type_codes | – | – | – |
| def_codes | – | – | – |
| extent_competed_type_codes | – | – | – |
| funding_agency | – | – | – |
| keywords | – | – | – |
| limit | integer | – | – |
| naics_codes | – | – | – |
| order | string | – | – |
| page | integer | – | – |
| place_of_performance_state | – | – | – |
| psc_codes | – | – | – |
| recipient_name | – | – | – |
| set_aside_type_codes | – | – | – |
| sort | – | – | – |
| time_period_end | – | – | – |
| time_period_start | – | – | – |
Structured output declared, but exposes no named fields.
No examples provided.
search_recipients ~133
Search USASpending recipients (vendors and grantees) by keyword. Returns paginated recipients with their UEI, DUNS, name, and a recipient 'id' that downstream tools use as the hash for get_recipient_profile and get_recipient_children. keyword can match recipient name, UEI, or DUNS. If omitted, returns the top recipients ranked by `sort`.
| Name | Type | Req | Description |
|---|---|---|---|
| award_type | string | – | – |
| keyword | – | – | – |
| limit | integer | – | – |
| order | string | – | – |
| page | integer | – | – |
| sort | string | – | – |
Structured output declared, but exposes no named fields.
No examples provided.
search_subawards ~159
Search FFATA subaward reports on USASpending. Returns the FFATA subaward records (subcontracts under prime contracts and subawards under prime grants). Complementary to the SAM.gov FFATA endpoints but expressed at the USASpending data model. award_id: optional generated_internal_id (CONT_AWD_..., ASST_NON_..., etc.) to scope subawards to a single prime award. If omitted, returns subawards across all primes for the page. Pagination uses page (1-indexed) and limit (1-100).
| Name | Type | Req | Description |
|---|---|---|---|
| award_id | – | – | – |
| limit | integer | – | – |
| order | string | – | – |
| page | integer | – | – |
| sort | string | – | – |
Structured output declared, but exposes no named fields.
No examples provided.
What is the USASpending.gov MCP server?
USASpending.gov is an MCP server listed in the public MCP registry as com.1102tools/usaspending-gov-mcp. USASpending.gov awards, subawards, recipients, agencies, and federal accounts. 55 tools. This page covers its PyPI package (usaspending-gov-mcp).
Is the USASpending.gov MCP server safe to use?
USASpending.gov scores 79 out of 100 on VerifyMCP. We found no known CVEs affecting it as of 20 September 2026. That is a record of what we were able to check automatically, not an endorsement. The category breakdown on this page shows every signal behind the number, including the ones we could not confirm.
What tools does the USASpending.gov MCP server expose?
USASpending.gov exposes 55 tools: search_awards, get_award_count, spending_over_time, spending_by_category, get_award_detail, and 50 more. Their descriptions and schemas cost roughly 6,850 tokens of context every time the server is loaded.
Is the USASpending.gov MCP server still maintained?
USASpending.gov is still listed as active in the MCP registry. We last reached this channel on 20 September 2026. Those dates come from our own scans of the registry and the channel itself, not from anything the publisher announced.
What licence is the USASpending.gov MCP server under?
USASpending.gov declares the MIT licence, which is OSI-approved. That covers the source only, and says nothing about the cost of any service it calls.