npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

usaspending-mcp

v0.1.2

Published

MCP server for the USASpending.gov API - federal spending intelligence

Readme

usaspending-mcp

MCP server for the USASpending.gov API — 25 tools for querying federal spending data, tracking government contracts, and researching award recipients.

No API key required. Works with Claude Code, Claude Desktop, Claude.ai, and any MCP-compatible client.

Quick Start

Claude Code (npx)

{
  "mcpServers": {
    "usaspending": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "usaspending-mcp"]
    }
  }
}

Claude Code (local)

{
  "mcpServers": {
    "usaspending": {
      "type": "stdio",
      "command": "node",
      "args": ["/path/to/usaspending-mcp/dist/index.js"]
    }
  }
}

Remote (Streamable HTTP)

Run on a server:

npx usaspending-mcp --transport http --port 3001

Connect from Claude Desktop or Claude.ai via your reverse proxy URL.

Tools

Search & Discovery (8 tools)

| Tool | Description | |------|-------------| | search_awards | Search federal awards with filters (agency, NAICS, PSC, keywords, date range, award type). Supports pagination. | | search_awards_count | Get result counts by award type before running a full search. | | search_subawards | Search subaward/subcontract records across all prime awards. | | search_by_category | Aggregate spending by dimension (NAICS, PSC, recipient, agency, geography, etc.). | | search_new_awards_over_time | Track new award volume over time by month, quarter, or fiscal year. | | search_spending_over_time | Track spending amounts over time. | | search_spending_by_geography | Break down spending by state, county, or congressional district. | | search_by_transaction | Transaction-level search across all awards. |

Award & IDV Detail (8 tools)

| Tool | Description | |------|-------------| | get_award | Full details for a specific award (recipient, amounts, dates, NAICS/PSC, agency). | | get_award_funding | Funding sources — which federal accounts and agencies fund an award. | | get_award_subawards | Subawards under a prime award. Key for mapping supply chains. | | get_award_transactions | Transaction/modification history for an award. | | get_idv_amounts | Funding summary for an IDV (IDIQ, GWAC, BPA, BOA, FSS). | | get_idv_awards | Task orders under an IDV. Identifies all awardees on a contract vehicle. | | get_idv_activity | Modification and activity history for an IDV. | | get_idv_funding | IDV funding breakdown by federal account. |

Recipient Intelligence (5 tools)

| Tool | Description | |------|-------------| | autocomplete_recipient | Quick recipient name search. First step in finding a company. | | list_recipients | Search and filter recipients with award totals. | | get_recipient | Full company profile — DUNS/UEI, parent company, award history by type. | | get_recipient_children | Child/subsidiary organizations under a parent company. | | get_spending_by_recipient_for_agency | Recipients ranked by award amount from a specific agency. |

Reference Data (4 tools)

| Tool | Description | |------|-------------| | list_agencies | All top-tier federal agencies with codes and metadata. | | search_naics | Search NAICS industry codes by keyword. | | search_psc | Search Product/Service Classification codes by keyword. | | get_naics_hierarchy | Browse the NAICS code tree. |

Filtering

Search tools accept a shared filter object:

{
  "keywords": ["cybersecurity"],
  "award_type_codes": ["D"],
  "time_period": [{ "start_date": "2025-01-01", "end_date": "2025-12-31" }],
  "agencies": [{ "type": "awarding", "tier": "toptier", "name": "Department of Defense" }],
  "naics_codes": ["541512"],
  "psc_codes": ["D399"],
  "recipient_search_text": ["Lockheed"],
  "page": 1,
  "limit": 20,
  "sort": "Award Amount",
  "order": "desc"
}

All filter fields are optional — compose what you need.

Award Type Codes

| Code | Type | |------|------| | A | BPA Call | | B | Purchase Order | | C | Delivery Order | | D | Definitive Contract | | IDV_A | GWAC | | IDV_B_A | IDC / IDIQ | | IDV_B_B | IDC / Indefinite | | IDV_B_C | IDC / Definitive | | IDV_C | FSS | | IDV_D | BOA | | IDV_E | BPA |

Example Workflows

Find DOD cybersecurity contracts:

  1. search_naics — find relevant codes (541512, 541519)
  2. search_awards — filter by DOD + NAICS codes + award type "D" + date range
  3. get_award — deep dive on a specific contract
  4. get_recipient — profile the winning company

Map a contractor's supply chain:

  1. autocomplete_recipient — find the prime by name
  2. get_recipient — get their profile
  3. search_awards — find their contracts
  4. get_award_subawards — find subcontractors on each contract

Explore an IDIQ/GWAC:

  1. search_awards — filter for IDV award types
  2. get_idv_awards — list all task order holders
  3. get_idv_activity — see recent activity
  4. get_recipient — profile each awardee

Development

git clone https://github.com/boejucci/usa-spending-mcp.git
cd usa-spending-mcp
npm install
npm run build
npm run dev        # watch mode

License

MIT