Skip to main content
Glama

usaspending-mcp-server

Server Details

Access US federal award, recipient, agency, and spending analytics data from USAspending.gov.

If you are the author of this connector, you can claim ownership. Claimed connector authors can inspect health checks, view analytics, and manage their listing.
Status
Healthy
Uptime
100.0% over the last 24 hours
Last Tested
Transport
Streamable HTTP · MCP 2025-11-25
URL
Repository
cyanheads/usaspending-mcp-server
GitHub Stars
5
Server Listing
usaspending-mcp-server
ChatGPT
–
Claude
–

TDQS

A4.2/5.0

Scored across 18 tools

Disambiguation5/5

Each tool targets a distinct resource plus action: search vs. get for awards, recipients, and federal accounts; separate transaction, subaward, IDV-child, and federal-account-linkage tools for a single award; and three aggregation tools with clearly different grouping axes (category, geography, time). Descriptions explicitly contrast the tempting look-alikes (e.g., get_award_federal_accounts vs. account_obligations_by_defc, get_federal_account vs. get_federal_account_breakdown) and cross-reference which ID field feeds which tool.

Naming Consistency4/5

All names share the usaspending_ prefix and snake_case, with predictable verb families (get_, search_, list_, spending_by_). The only deviation is disaster_spending, which is a noun phrase rather than verb_noun, but it is readable and doesn't create confusion.

Tool Count4/5

At 18 tools this sits just above the comfortable range, but the domain is genuinely broad (awards, recipients, agencies, federal accounts, audits, geography, time, disaster funding) and each tool maps to a distinct resource or analysis axis. Nothing looks redundant enough to cut outright.

Completeness4/5

Coverage of the read-only analytics lifecycle is strong: discovery (autocomplete, searches), drill-down (award, recipient, agency, account, transactions, subawards, IDV children), and aggregation (category, geography, time, disaster). Minor gaps remain, such as no first-class recipient-award or agency-award listing (only reachable via search/aggregation filters) and no bulk export, but none are blocking.

Available Tools

18 tools
usaspending_autocomplete_filtersAutocomplete Codes and NamesA
Read-onlyIdempotent
Inspect

Look up valid code values for filter fields by searching free-text descriptions. Use the type parameter to select the lookup table: naics (NAICS industry codes), psc (product/service codes), cfda (CFDA/Assistance Listing program numbers), def_code (Disaster/Emergency Funding codes by code, appropriation title, or public law), awarding_agency and funding_agency (agency and sub-agency names from the awarding and the funding directory, each with its tier and top-tier parent — agency_name takes an awarding_agency match and funding_agency_name a funding_agency match; a sub-tier name shared by several parents matches under all parents), recipient (recipient names with UEI/DUNS), or location (US state, county, and congressional district names, resolved to the codes the location filters and usaspending_spending_by_geography shape_codes take). Call this before filtering awards when you know a description but not the exact code. Returns matching codes and names for use in other tool filters.

Inputs: type (required), search_text (required), limit. Returns: cap, type, error, query, +9 more

usaspending_disaster_spendingDisaster and Emergency SpendingA
Read-onlyIdempotent
Inspect

Fetch disaster and emergency supplemental spending broken down by agency, CFDA assistance program, recipient, or geography, or request an overview. Find DEF codes in usaspending_autocomplete_filters with type def_code. Filter by those codes to select emergency appropriations, then check amount_coverage before interpreting amounts: award breakdowns and geography cover the provider COVID grouping, while overview and agency total cover all requested codes. Rows and award counts can match codes outside the monetary scope.

Inputs: dimension (required), page, limit, filters, +1 more. Returns: cap, error, shown, notice, +16 more

usaspending_get_agencyGet Agency OverviewA
Read-onlyIdempotent
Inspect

Fetch an agency's fiscal-year overview including mission, budgetary resources, obligation and outlay totals (for the most recent fiscal year with reported budget data), sub-agency count, and disaster/emergency funding codes. def_codes_fiscal_year names the fiscal year covered by def_codes, which follows the budget totals when available. budget_by_fiscal_year carries the same totals for every fiscal year with reported data since FY2017, newest first, for budget trends; a row whose reported_through_period is below 12 is year-to-date, so compare it to full years with care. Also returns a paginated sub-agency breakdown with obligation and transaction counts for the same fiscal year as the budget totals (the current fiscal year when no budget year is available within 5 seconds); sub_agency_fiscal_year names the year it covers. Accepts exactly one directory toptier_code (e.g., 097 for DoD, 1601 for Labor; one/two-digit numeric inputs are zero-padded to three digits) or an agency_slug (e.g., department-of-defense) — both appear in usaspending_list_agencies results and award search results. When the budget, sub-agency or DEF code request fails, the overview is still returned and unavailable_sections names each missing section with its reason.

Inputs: page, agency_slug, toptier_code. Returns: name, error, notice, mission, +19 more

usaspending_get_awardGet Award DetailsA
Read-onlyIdempotent
Inspect

Fetch full details of a federal award by its generated unique award ID. Returns contract or assistance award data including recipient identity (UEI, parent organization, business categories, executive compensation), the awarding and funding agency hierarchy with each office, period of performance, place of performance with its county code, Assistance Listings with the obligation under each, loan face value and subsidy cost for loans, cost share (non_federal_funding, total_funding) and the funding opportunity for assistance awards that report them, funding account linkages (account_obligations_by_defc), parent IDV information, and subaward count and total. For contracts and IDVs it also returns competition (extent competed, solicitation procedure, set-aside, the authority for not competing, the fair-opportunity status of an order under a multiple-award IDV, offers received) and contract_pricing. Use generated_internal_id values from usaspending_search_awards as input. Recipient and parent recipient hashes can be passed to usaspending_get_recipient; NAICS codes can be used in usaspending_search_awards filters, Assistance Listing numbers in its assistance_listings filter, and the place of performance county_code with state_code in its location_filter. For IDV-category awards (category="idv"), use usaspending_get_idv_awards to list the child contracts and task/delivery orders placed under them.

Inputs: award_id (required). Returns: fain, piid, type, error, +31 more

usaspending_get_award_federal_accountsGet Award Federal AccountsA
Read-onlyIdempotent
Inspect

List the Treasury federal accounts that funded an award, with the amount obligated from each and the funding agency behind it. This is the award → appropriation link: each row returns federal_account (AGENCY-MAIN format, e.g. 080-0120) to chain into usaspending_get_federal_account for the account budget detail. The award_id must be a generated_unique_award_id — from usaspending_search_awards (generated_internal_id field) or usaspending_get_award. Distinct from usaspending_get_award account_obligations_by_defc, which breaks funding down by Disaster/Emergency Funding code rather than by account. An award_id that does not exist returns an empty list rather than an error.

Inputs: award_id (required), page, limit. Returns: error, notice, results, award_id, +5 more

usaspending_get_award_subawardsGet Award SubawardsA
Read-onlyIdempotent
Inspect

List subaward contracts or grants under a prime federal award. Reveals the sub-contractor or sub-grantee layer — the organizations that actually perform the work. Each row shows the subaward number, amount, description, action date, and recipient. Check subaward_count on usaspending_get_award first to confirm subawards exist before calling this tool.

Inputs: award_id (required), page, sort, limit, +1 more. Returns: error, notice, results, award_id, +6 more

usaspending_get_award_transactionsGet Award TransactionsA
Read-onlyIdempotent
Inspect

List individual transactions (contract modifications, grant amendments) on a federal award. Each transaction represents a change event — obligation modifications, performance period extensions, scope changes, etc. Use this to trace the spending history and obligation changes over the life of an award. Award IDs come from usaspending_search_awards (generated_internal_id field).

Inputs: award_id (required), page, sort, limit, +1 more. Returns: error, notice, results, award_id, +6 more

usaspending_get_federal_accountGet Federal AccountA
Read-onlyIdempotent
Inspect

Fetch a federal account's budget data: total obligations, gross outlays, and budgetary resources, plus the per-Treasury-Account-Symbol (TAS) component breakdown in children. fiscal_year selects a reporting year; omit it for the current federal fiscal year. An empty year retains metadata and a notice, without substituting another year. Federal accounts connect appropriations law to actual agency spending. Account codes come from usaspending_search_federal_accounts (its account_number output field) or usaspending_get_award_federal_accounts (its federal_account field), and are formatted as AGENCY-MAIN (e.g., 097-0100 for DoD Operation and Maintenance). For obligations broken down by program activity or object class, use usaspending_get_federal_account_breakdown.

Inputs: account_code (required), fiscal_year. Returns: error, notice, children, bureau_name, +9 more

usaspending_get_federal_account_breakdownGet Federal Account BreakdownA
Read-onlyIdempotent
Inspect

Fetch a federal account's obligations broken down by program activity (what the money funds) or object class (what it buys — personnel, supplies, contracts). Use the dimension parameter to select the axis. fiscal_year scopes financial reporting periods to the full October–September year, not award action dates; omit it for all available periods. Account codes are AGENCY-MAIN format and come from usaspending_search_federal_accounts (its account_number output field), usaspending_get_award_federal_accounts (its federal_account field), or usaspending_get_federal_account. Paginated with an honest total count. For the account's own metadata and top-level totals, use usaspending_get_federal_account.

Inputs: dimension (required), account_code (required), page, limit, +1 more. Returns: error, notice, period, results, +10 more

usaspending_get_idv_awardsGet IDV Child AwardsA
Read-onlyIdempotent
Inspect

List child contracts and task/delivery orders placed under an IDV (Indefinite Delivery Vehicle) award. Each row includes the generated_unique_award_id to chain into usaspending_get_award for full detail. The award_id must be the generated_unique_award_id of the parent IDV — obtainable from usaspending_search_awards (generated_internal_id field) or from usaspending_get_award. IDV category awards returned by usaspending_get_award have child orders accessible via this tool.

Inputs: award_id (required), page, sort, type, +2 more. Returns: cap, error, shown, notice, +8 more

usaspending_get_recipientGet Recipient ProfileA
Read-onlyIdempotent
Inspect

Fetch a recipient's full profile including address, business type codes, parent organizations, alternate names, and total transaction and loan amounts. A -P ID covers awards USAspending attributes to that parent, and historical attribution can vary. A -C ID covers the entity's own awards recorded with a parent, and a -R ID covers its own awards recorded without one. Use IDs returned by usaspending_search_recipients or usaspending_get_award. If search returns both -C and -R for the entity, check both. Never construct an ID by replacing a suffix. Totals cover the trailing 12 months by default. Set fiscal_year to one year or "all" for USAspending's searchable history through the request date. The period field names the window. parents lists every parent organization — a child often has several, and a parent lists itself — and each parent_id opens that parent in usaspending_get_recipient. For a -P parent, children lists its child recipients with their amounts over the same period, highest amount first, up to children_limit, and children_total counts them all; children is a best-effort second request, so when it fails the profile is still returned and unavailable_sections names children with its reason. For a recipient's totals by award type, use usaspending_spending_over_time with filters.recipient_id and award_type_codes. UEI and DUNS values can be used to cross-reference with SAM.gov and SEC EDGAR.

Inputs: recipient_id (required), fiscal_year, children_limit. Returns: cap, uei, duns, name, +22 more

usaspending_list_agenciesList Federal AgenciesA
Read-onlyIdempotent
Inspect

List top-tier federal agencies with toptier codes, agency slugs, budget authority amounts, and obligation totals for the latest reported period. Returns the full directory unless limit is supplied; optional pagination slices the provider-sorted directory. Use this as the entry point for agency navigation — toptier codes and agency slugs are required inputs for usaspending_get_agency and agency-based filters on spending analysis tools.

Inputs: page, sort, limit, order. Returns: error, total, results, has_next, +2 more

usaspending_search_awardsSearch Federal AwardsA
Read-onlyIdempotent
Inspect

Search federal awards by keyword, recipient, agency, award type, NAICS code, assistance listing (CFDA) number, PSC, DEF code, extent competed, set-aside, contract pricing, location, or date range. Location filters by place of performance (location_filter, or filters.place_of_performance_location, which overrides it) or by where the recipient is based (filters.recipient_location). The contract filters extent_competed_type_codes, set_aside_type_codes, and contract_pricing_type_codes take the FPDS codes usaspending_get_award returns: 1–8 letters or digits, sent uppercased; an empty list is unset, several values match any of them, and an unknown code matches nothing. Only contracts and IDVs carry these codes, so a call whose award types include an assistance code is rejected as contract_filters_type_mismatch. Returns ranked award summaries including recipient names, amounts, awarding agencies, and generated award IDs for use with usaspending_get_award; loan rows carry loan value, subsidy cost, and issue date in place of award amount and dates. Rows carry the recipient_id that opens usaspending_get_recipient, and the recipient UEI, when upstream has them; page_metadata.total counts every match for the call's filters and award_type_codes. Page numbers reach results up to a 50,000-result offset (page × limit); past it, continue with last_record_sort_value and last_record_unique_id from page_metadata, which the upstream returns only while page × limit is under 10,000, so capture the pair before then. With both cursor fields supplied, page is ignored. Award types: A/B/C/D = contracts, IDV_A–IDV_E = IDVs, 02/03/04/05/F001/F002 = grants, 06/10/F006/F007 = direct payments, 07/08/F003/F004 = loans, 09/11/-1/F005/F008/F009/F010 = other assistance. Dates must be ISO 8601 (YYYY-MM-DD). Earliest data: 2007-10-01 via search API. DoD contracts have a 90-day publication lag.

Inputs: page, sort, limit, order, +17 more. Returns: cap, page, error, shown, +26 more

usaspending_search_federal_accountsSearch Federal AccountsA
Read-onlyIdempotent
Inspect

List and keyword-search federal accounts by directory toptier code or title keyword. Returns account numbers, names, managing agencies, and budgetary resources. fiscal_year selects the resource amounts, not account membership; omit it for the latest available submission year. Search and detail totals use different calculations and can differ for the same year. Use account_number from results as input to usaspending_get_federal_account for full budget detail. Use usaspending_list_agencies to look up the input agency_identifier (directory toptier_code, e.g. "097" for DoD or "1601" for Labor); account rows return their account-prefix agency_identifier, e.g. "016" for Labor.

Inputs: page, limit, keyword, sort_field, +3 more. Returns: page, error, notice, results, +5 more

usaspending_search_recipientsSearch Award RecipientsA
Read-onlyIdempotent
Inspect

Search for organizations or individuals receiving federal funds by name, UEI (Unique Entity Identifier), or DUNS. Returns recipient hash IDs, UEI/DUNS identifiers, trailing-12-month obligations, and hierarchy level. Amounts come from USAspending's precomputed snapshot and may differ from trailing-12-month profile totals. Results are paginated — use page to retrieve matches beyond the first page; page_metadata.total reports the full match count. Recipient hash IDs from this tool can be passed to usaspending_get_recipient for full profiles. Recipient level: P = parent organization, C = child entity, R = standalone.

Inputs: keyword (required), page, limit, award_type. Returns: page, error, notice, period, +6 more

usaspending_spending_by_categorySpending by CategoryA
Read-onlyIdempotent
Inspect

Aggregate federal spending grouped by a specific dimension: NAICS industry code, PSC product/service code, awarding or funding agency or subagency, CFDA assistance program, recipient, federal account, or Disaster Emergency Fund Code (DEF). Returns top items with obligation amounts — useful for trend and breakdown analysis. Filter by keyword, award type, agency, recipient, NAICS code, Assistance Listing, PSC, DEF code, place of performance or recipient location, or date range. federal_account and defc amounts are whole transaction obligations, counted under every federal account or DEF code the award carries, so rows overlap and never sum to a total; on defc, filters.def_codes selects awards but the rows still list every code those awards carry. Chain NAICS, PSC, CFDA, and DEF codes back into these filters, into usaspending_search_awards filters, or into usaspending_autocomplete_filters lookups; a federal_account code (AGENCY-MAIN, e.g. 047-4534) opens in usaspending_get_federal_account. Agency rows carry agency_slug, which opens the agency in usaspending_get_agency — on a subagency row, its parent department. recipient_duns rows carry recipient_id, which opens the recipient profile in usaspending_get_recipient, and uei.

Inputs: category (required), page, limit, filters. Returns: page, error, notice, results, +18 more

usaspending_spending_by_geographySpending by GeographyA
Read-onlyIdempotent
Inspect

Aggregate federal spending by state, county, or congressional district. Useful for per-capita analysis, regional comparisons, and mapping federal investment patterns. Filter by keyword, award type, agency, recipient, NAICS code, Assistance Listing, PSC, DEF code, place of performance or recipient location, or date range. scope picks the location results are grouped by, separately from the location filters: the counties of one state are geo_layer county with filters.place_of_performance_location set to that state and scope place_of_performance. Areas are ranked by obligation and capped at limit; to retrieve specific areas, including ones ranked past the cap, list their codes in shape_codes — a 2-letter postal code for state, a 5-digit state + county FIPS code for county, or a 4-digit state FIPS + district number for district — NOT place names. Resolve a state, county, or district name to its code with usaspending_autocomplete_filters type=location. Chain per-capita results with Census population data for meaningful comparisons.

Inputs: scope (required), geo_layer (required), limit, filters, +2 more. Returns: cap, error, scope, shown, +25 more

usaspending_spending_over_timeSpending Over TimeA
Read-onlyIdempotent
Inspect

Fetch aggregated federal obligation amounts grouped by fiscal year, fiscal quarter, or fiscal month. All grouping is relative to the US government fiscal year (Oct–Sep), so fiscal month 1 is October, not January. Filter by award type, agency, recipient, keyword, NAICS code, Assistance Listing, PSC, DEF code, or location (place of performance or recipient) to trace spending trends in a specific area; award types default to contracts. Returns per-period totals and optional breakdowns by award category (contracts, grants, direct payments, IDVs, loans, other).

Inputs: group (required), filters, subawards. Returns: error, group, notice, results, +17 more

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables research of federal contract awards and competitive landscape analysis using the USASpending.gov API. Supports searching for contracts, analyzing recipients, tracking spending trends, and identifying market opportunities in government contracting.
      2
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables research of federal contract awards, market opportunities, and competitive landscapes using the USASpending.gov API. It provides specialized tools for AI agents to analyze government spending trends, identify incumbents, and search contractor details.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables querying and analyzing US federal grant single-audit filings, including audits, findings, and federal awards, using data from the Federal Audit Clearinghouse.
      68 npm
      MIT
    Try in Browser

    Glama MCP Gateway

    Add one secure layer between your agents and this server.