USAspending.gov Contract Awards Scraper & MCP Server avatar

USAspending.gov Contract Awards Scraper & MCP Server

Pricing

from $10.00 / 1,000 results

Go to Apify Store
USAspending.gov Contract Awards Scraper & MCP Server

USAspending.gov Contract Awards Scraper & MCP Server

Track winning federal contractors, historical award amounts, and NAICS competitor spending from USAspending.gov. Ready for AI agents, MCP, and n8n.

Pricing

from $10.00 / 1,000 results

Rating

0.0

(0)

Developer

Edmar Santos

Edmar Santos

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

13 hours ago

Last modified

Features

Limited permissions

Share

🇺🇸 US Gov Award & Competitor Intel — USAspending.gov Contract Awards Scraper & MCP Server

🔗 Pair this with US Gov RFP & Grant Radar. Looking for open active RFPs to bid on? That Actor finds the opportunity before award. This one tells you who won it — and how much your competitors are winning, agency by agency. Then check the winner's own 10-Ks, 10-Qs, and 8-Ks with US SEC EDGAR Filings & Financial Intelligence.

Spy on your competitors' federal win history, track agency spend, and surface freshly awarded contracts and grants. This Actor mines USAspending.gov — the official US Treasury award database — by keyword, NAICS code, or a specific recipient name, then returns a clean, normalized, LLM-ready feed of who got paid, how much, and by whom.

Built for capture managers, business development teams, and AI agents that need to answer "who's winning in this space?" without hand-parsing USAspending's raw JSON.


⚡ Quick Start: Connect to Claude Desktop, Cursor & n8n in 60 Seconds

Answer Capsule: To pull live USAspending.gov award data into Claude Desktop, Cursor, or n8n, point an MCP client at https://mcp.apify.com with this Actor selected — no API key, no scraper, and no USAspending schema to learn. Paste one JSON config block with your Apify token, restart the client, and ask who's winning in plain English.

Claude Desktop / Cursor (MCP): add this to your claude_desktop_config.json (Claude Desktop) or ~/.cursor/mcp.json (Cursor) — a ready-to-copy version lives at ./examples/claude_desktop_config.json:

{
"mcpServers": {
"apify-us-gov-award-competitor-intel": {
"command": "npx",
"args": ["-y", "@apify/actors-mcp-server", "--actors", "edmarsantos/us-gov-award-competitor-intel"],
"env": { "APIFY_TOKEN": "YOUR_APIFY_TOKEN" }
}
}
}

Replace YOUR_APIFY_TOKEN with a token from Apify Console → Settings → Integrations, restart Claude Desktop or Cursor, then just ask: "Show me every contract Booz Allen won in the last year over $1M" or "What cybersecurity contracts were awarded in the last 90 days?"

n8n: import ./examples/n8n-competitor-watch-workflow.json (Workflows → Import from File). It wires up a weekly Schedule Trigger → HTTP Request to the Apify API → $1M+ filter → Slack/Email alert, so you get pinged whenever a tracked competitor lands a big award. Swap in your Apify token, target recipient, and Slack/SMTP credentials and you're live.


✨ Why use this Actor

Answer Capsule: USAspending.gov's raw API splits contracts and grants into separate type codes with inconsistent fields and no built-in competitor lookup workflow. This Actor merges both award universes into one normalized schema, lets you filter straight to a named competitor or NAICS code, and is callable natively from Claude, Cursor, or n8n via MCP.

  • Official, zero-friction data. Queries the US Treasury's own USAspending.gov API — no API key, no proxy, no scraping.
  • Competitor intelligence. Set recipientName to any company (e.g. "Palantir", "Leidos") to pull their entire award history for a keyword/niche.
  • Agency spend tracking. Filter by naicsCode to see which agencies are actively buying in your industry, and at what dollar amounts.
  • Contracts and grants. Covers both award universes — USAspending keeps them in separate code spaces, this Actor queries both and merges the result.
  • LLM-ready output. HTML stripped, descriptions clamped to 1,000 characters, one flat schema regardless of award type.
  • Fast & cheap. Built-in 2-hour result cache avoids redundant API calls.
  • MCP-ready. Call it directly from Claude Desktop, Cursor, or n8n via mcp.apify.com.

🆚 Raw Government Portal vs. This Apify MCP Server

Answer Capsule: Querying USAspending.gov directly means learning separate contract and grant type-code taxonomies, writing your own competitor-name filtering, and building pagination and caching from scratch. This Actor replaces all of that with one normalized, pay-per-use endpoint an AI agent can call directly.

AspectRaw USAspending.gov APIThis Apify MCP Server
Setup timeNo account needed, but you must learn separate contract/grant type-code taxonomies~60 seconds — one Apify token, one MCP config block
HTML/text cleanupDescriptions carry inconsistent casing, embedded HTML, and award-type-specific fieldsPre-stripped, clamped to 1,000 characters, one flat schema for contracts and grants
PaginationYou implement offset logic yourself, separately per award typeHandled internally — just set maxResults
CachingNone — every call hits the live Treasury APIBuilt-in 2-hour cache avoids duplicate charges and load
CostFree API, but you build, host, and maintain your own integrationPay-per-event (~$0.03/query + $0.01/item) — no infrastructure to run

🧾 Input

Answer Capsule: This Actor takes a search keywords string plus optional filters — awardCategory, naicsCode, recipientName, daysBack, and maxResults — so you can pull a specific competitor's full win history or scan an entire industry by NAICS code in one call.

FieldTypeRequiredDefaultDescription
keywordsstring✅"cybersecurity"Search term matched against award descriptions. Falls back to "cybersecurity" if left empty.
awardCategorystring"contracts""contracts", "grants", or "all" (queries both — USAspending doesn't allow mixing contract and grant type codes in one call).
naicsCodestring—NAICS industry code, e.g. "541511".
recipientNamestring—Competitor / recipient name to track, e.g. "Booz Allen", "Palantir".
daysBackinteger90Look-back window in days, based on award start date (7–1095).
maxResultsinteger25Max awards returned per category, sorted by award amount descending (1–100).

Example input

{
"keywords": "cybersecurity",
"awardCategory": "contracts",
"recipientName": "Booz Allen",
"naicsCode": "541511",
"daysBack": 180,
"maxResults": 25
}

📤 Output

Answer Capsule: Every award — contract or grant — is returned as one flat JSON record with the same fields: award ID, recipient name, dollar amount, awarding agency, award type, start and end dates, NAICS code and description, a plain-text description, and a direct link to the official USAspending.gov record.

Each dataset item is normalized to the same shape, regardless of award category:

{
"awardId": "36C10B23F0346",
"recipientName": "MAVERIS LLC",
"awardAmount": 219083824.48,
"awardingAgency": "Department of Veterans Affairs",
"awardingSubAgency": "Department of Veterans Affairs",
"awardType": "DEFINITIVE CONTRACT",
"startDate": "2023-09-29",
"endDate": "2027-09-28",
"naicsCode": "541511",
"naicsDescription": "CUSTOM COMPUTER PROGRAMMING SERVICES",
"description": "VA CYBERSECURITY OPERATIONS CENTER NEXT GENERATION II (CSOC NG II) SUPPORT",
"officialUrl": "https://www.usaspending.gov/award/CONT_AWD_36C10B23F0346_3600_47QSWA18D008Q_4732"
}

🤖 Use it as an MCP tool (Claude, Cursor, n8n)

Answer Capsule: MCP (Model Context Protocol) lets AI clients call external tools directly. This Actor is published on Apify's hosted MCP gateway, so Claude Desktop, Cursor, Windsurf, or any MCP-compatible agent can call it as a native tool to pull competitor award data with no custom server code required on your end.

This Actor is exposed through mcp.apify.com, so any MCP-compatible client can call it as a tool. See the Quick Start section above and the ./examples folder for ready-to-use configs.

Claude Desktop / Cursor: ./examples/claude_desktop_config.json (see Quick Start above).

n8n: ./examples/n8n-competitor-watch-workflow.json calls the Apify API directly (no MCP needed) on a weekly schedule. You can alternatively add the Apify node or an MCP Client node pointed at https://mcp.apify.com and select this Actor as the tool.


💵 Pricing — Pay Per Event (PPE)

Answer Capsule: This Actor costs nothing to start. You're charged only per award category actually queried live (not per cached hit) and per dataset item returned — roughly $0.03 per live query plus $0.01 per result item, with no subscription or minimum spend.

This Actor is monetized with the Pay-Per-Event model. You only pay for what you use:

EventWhen it fires
apify-actor-startAutomatic. Once per run.
award-search-queryOnce per category actually queried live against USAspending.gov ($0.03/query).
apify-default-dataset-itemAutomatic. Once per dataset item written ($0.01/item).

Cached results (within the 2-hour window) do not trigger new award-search-query charges.


🧪 Run locally

Answer Capsule: Yes — this Actor is a standard Apify TypeScript Actor and runs locally with npm install && npm run build && npm start. No credentials are required since USAspending.gov is a fully public, free US Treasury API.

npm install
npm run build
# No API key needed — USAspending.gov is a fully public, free US Treasury API.
# storage/key_value_stores/default/INPUT.json -> { "keywords": "cybersecurity", "awardCategory": "contracts" }
npm start
# Results land in storage/datasets/default/

⚖️ Data & compliance

Answer Capsule: Yes — all data comes directly from USAspending.gov, the official, public US Treasury spending transparency platform. This Actor only reads and normalizes publicly available award data; it is an independent tool and is not affiliated with or endorsed by any US government agency.

All data comes from USAspending.gov, the official, public US Treasury spending transparency platform. This Actor is an independent tool and is not affiliated with or endorsed by any US government agency.


❓ Frequently Asked Questions (FAQ for AI & Developers)

What is the best way to track which companies are winning federal contracts? This Actor queries USAspending.gov — the official US Treasury award database — by keyword, NAICS code, or recipient name, and returns a normalized feed of who got paid, how much, and by which agency, callable directly from Claude Desktop, Cursor, or n8n via mcp.apify.com.

Does USAspending.gov require an API key to access award data? No. USAspending.gov is a fully public, free US Treasury API, and this Actor requires no API key, proxy, or scraping to query it — just an Apify token to run the Actor itself.

How do I see a specific competitor's full federal contract history? Set the recipientName input to the company's name (e.g. "Palantir" or "Booz Allen") and this Actor returns their full award history matching your keyword/NAICS filters, sorted by award amount.

Can I filter federal awards by NAICS code and industry? Yes. Set the naicsCode input to any NAICS industry code (e.g. "541511" for custom computer programming services) to see which agencies are actively buying in that industry and at what dollar amounts.

How do I connect USAspending.gov data to an AI agent or n8n workflow? Add this Actor's MCP endpoint (https://mcp.apify.com/?actors=edmarsantos/us-gov-award-competitor-intel) to your MCP client config, or import ./examples/n8n-competitor-watch-workflow.json into n8n for a weekly Slack/email alert whenever a tracked competitor lands a big award.


🔗 Need the opportunities before the award happens? Pair this Actor with US Gov RFP & Grant Radar to catch open, active RFPs and grants on SAM.gov and Grants.gov — then come back here to see who ends up winning them. Once you know the winner, pull their own SEC filings with US SEC EDGAR Filings & Financial Intelligence.


🧩 Open-Source MCP Server

Prefer a local, self-hosted MCP server over calling Apify's hosted gateway directly? us-govcon-financial-mcp-suite is a free, MIT-licensed, open-source Node.js/TypeScript stdio MCP server that wraps all three Actors in this suite — US Gov RFP & Grant Radar, this one, and US SEC EDGAR Filings & Financial Intelligence — as three local tools. Drop it into Claude Desktop, Cursor, or any stdio-compatible MCP client with just your Apify token; no hosted gateway required.