SAM.gov Contract Opportunities MCP (keyless)
Busca oportunidades activas de contratos federales de EE. UU. en SAM.gov sin necesidad de una clave API propia: palabras clave, NAICS, reservas para pequeñas empresas, tipos de avisos, organismos y plazos, con contactos de los responsables de contratación en un esquema normalizado. MCP alojado con Streamable HTTP en Apify, pago por aviso; también se ejecuta localmente mediante stdio.
Servidor MCP alojado
npx add-mcp 'https://mr-wolf-1--us-sam-tenders-mcp-server.apify.actor/mcp'Se instala en Claude Code, Codex, Cursor y más
Documentación
SAM.gov US Federal Contract Opportunities + MCP
Keyless SAM.gov contract opportunities (solicitations, RFPs, sources sought, award notices) with agencies, deadlines, NAICS codes and contracting officer contacts, plus a Standby MCP server.
Extract, filter, and normalize active US federal contract opportunities, government RFPs, solicitations, NAICS codes, and contracting officer contacts directly from SAM.gov — with zero API key required, available both as an HTTP-only Apify Actor and as a Standby MCP Server for AI agents.
Designed for Pay-Per-Event (PPE) cost efficiency with zero headless browsers (runs smoothly on 256 MB RAM).
Why Use This Keyless SAM.gov Scraper & MCP Server?
- No SAM.gov API Key Required: Queries SAM.gov's public
hal+jsonendpoints directly over HTTP with automatic retries (429/5xx). - 256 MB RAM, Zero Browser Overhead: Fast execution and maximum PPE margin.
- Structured Agency Hierarchy & Deadlines: Extracts
department,agency,office,solicitationNumber,noticeType,publishedDate, andresponseDeadline. - Optional Deep Enrichment (
includeDetails): FetchesnaicsCodes,classificationCode, andpointOfContact(contracting officer name, email, and phone). - Dual Mode (Batch + Standby MCP): Connect n8n, Make, Claude Desktop, or Cursor directly.
Input Examples (Copy-Paste)
1. Active Software & IT Federal Solicitations
{
"query": "software",
"noticeTypes": ["o", "k"],
"activeOnly": true,
"includeDetails": true,
"maxItems": 25
}
2. Department of Defense Opportunities with Upcoming Deadlines
{
"departments": ["DEFENSE"],
"activeOnly": true,
"minDeadline": "2026-12-01",
"maxItems": 50
}
Standby MCP Server for AI Agents
Connect Cursor, Claude Desktop, or any Streamable HTTP MCP client to:
https://mr-wolf-1--us-sam-tenders-mcp-server.apify.actor/mcp
Filter semantics
noticeTypesmatches exactly (case-insensitive) the SAM notice type code (oSolicitation,pPresolicitation,kCombined Synopsis/Solicitation,rSources Sought,sSpecial Notice,aAward Notice, ...) or the full type name.["o"]does not match "Sources Sought" or "Special Notice".maxItemscounts items that pass all filters. The Actor keeps fetching SAM.gov pages untilmaxItemsmatches are found or the source is exhausted, capped at 40 pages (about 1000 notices inspected) to bound cost and time. Very selective filters may therefore return fewer thanmaxItems.
Exposed MCP Tools
search_us_contracts(query, noticeTypes, departments, activeOnly, publishedFrom, minDeadline, includeDetails, maxItems)get_opportunity_details(opportunityId)
See docs/integrations/mcp-clients.md for client configuration snippets.
Automation Integrations (n8n & Make)
- n8n workflow template:
docs/integrations/n8n-workflow.json - Make.com scenario blueprint:
docs/integrations/make-scenario.json
Output
One dataset item per SAM.gov opportunity (deduplicated by opportunityId, most recently modified first). Example item with includeDetails: true (description truncated, contact details masked here):
{
"opportunityId": "17878c50e7734edf9371b6c03f867aa5",
"solicitationNumber": "70FA3127I00000002",
"title": "FIID Advanced Anti-Fraud and Risk-Modeling Proof of Concept",
"noticeTypeCode": "r",
"noticeType": "Sources Sought",
"department": "HOMELAND SECURITY, DEPARTMENT OF",
"agency": "FEDERAL EMERGENCY MANAGEMENT AGENCY",
"office": "INFORMATION TECHNOLOGY DEVELOPMENT AND SUSTAINMENT",
"isActive": true,
"isCanceled": false,
"publishedDate": "2026-11-27",
"modifiedDate": "2026-11-27",
"responseDeadline": "2026-12-11",
"naicsCodes": ["541512"],
"classificationCode": "DA10",
"pointOfContact": [
{ "fullName": "<contracting officer>", "email": "<name>@fema.dhs.gov", "phone": "<phone>", "type": "primary" }
],
"description": "FEMA’s Fraud Investigations and Inspections Division (FIID), in coordination with the Office of the Chief...",
"samUrl": "https://sam.gov/opp/17878c50e7734edf9371b6c03f867aa5/view"
}
| Field | Type | Description |
|---|---|---|
opportunityId | string | SAM.gov notice ID (use it with get_opportunity_details). |
solicitationNumber | string | null | Solicitation number. |
title | string | Opportunity title. |
noticeTypeCode | string | null | SAM notice type code (o, p, k, r, s, a, ...). |
noticeType | string | null | Notice type name (e.g. Solicitation, Sources Sought). |
department | string | null | Federal department (level 1 of the organization hierarchy). |
agency | string | null | Sub-tier agency (level 2). |
office | string | null | Contracting office (last level). |
isActive | boolean | Whether SAM.gov marks the notice as active. |
isCanceled | boolean | Whether the notice was canceled. |
publishedDate | string | null | Publication date (YYYY-MM-DD). |
modifiedDate | string | null | Last modification date (YYYY-MM-DD). |
responseDeadline | string | null | Response deadline (YYYY-MM-DD). |
naicsCodes | string[] | NAICS codes (only with includeDetails: true, otherwise []). |
classificationCode | string | null | Product/Service Code (only with includeDetails: true). |
pointOfContact | object[] | Contacts with fullName, email, phone, type (only with includeDetails: true, otherwise []). |
description | string | null | Plain-text description, truncated to 1,200 characters. |
samUrl | string | Public SAM.gov page of the notice. |
The SAM.gov Opportunities Overview table view in the Console shows the main columns; the full items are available as JSON, CSV or Excel via the dataset API.
Pricing
Pay-Per-Event (PPE): you pay only for what the Actor delivers. Prices in USD, as currently set in the Apify Console:
| Event | When it is charged | Free plan | Bronze | Silver | Gold / Platinum / Diamond |
|---|---|---|---|---|---|
tender-extracted | Once per normalized opportunity pushed to the dataset (batch mode) | $0.003 | $0.0027 | $0.0024 | $0.0021 |
mcp-query | Once per MCP tool call in Standby mode | $0.005 | $0.0045 | $0.004 | $0.0035 |
apify-actor-start | Once per run, per GB of memory (minimum 1) | $0.00005 | $0.00005 | $0.00005 | $0.00005 |
Higher Apify subscription tiers get the Store discounts shown above automatically. includeDetails does not change the price per item. Example: 50 opportunities on the free plan cost about 50 x $0.003 + $0.00005 = $0.15. Notices removed by your filters are never charged.
Limitations
- Contract opportunities only. Data comes from the SAM.gov Contract Opportunities search (the same public endpoints the sam.gov website uses, no API key). Grants.gov listings and award/spending databases (FPDS, USAspending) are not queried.
- Public endpoints can change or throttle. The Actor retries on
429/5xx, but SAM.gov does not document these endpoints, so a site change can break or slow runs until the Actor is updated. - At most 40 search pages (about 1,000 notices) are inspected per run.
noticeTypes,departments,publishedFromandminDeadlineare applied after fetching, so very selective filters can return fewer thanmaxItemsitems. - NAICS codes, classification code and contacts need
includeDetails: true, which makes one extra request per item (slower runs). If a detail request fails, the base record is kept with emptynaicsCodesandpointOfContact. department,agencyandofficecan benullwhen SAM.gov does not publish the organization hierarchy for a notice; thedepartmentsfilter then cannot match it.- Descriptions are truncated to 1,200 characters and may contain leftover HTML entities (for example
’); the full text is onsamUrl. - Date filters drop notices without that date (
publishedFromneedspublishedDate,minDeadlineneedsresponseDeadline).
Frequently Asked Questions (FAQ)
Do I need a GSA / SAM.gov API key to run this Actor? No. It works out of the box without any SAM.gov account or API key.
Can I extract contracting officer emails and NAICS codes?
Yes. Set "includeDetails": true in batch mode, or call the get_opportunity_details MCP tool with any opportunityId.
Does it require proxies or a headless browser?
No. It runs HTTP-only on 256 MB RAM.
Local Development
npm run typecheck && npm run lint && npm test && npm run build
apify run --purge
Related Actors by mr.wolf
- EU TED Tenders Scraper & Alerts + MCP — Extract and filter active European public procurement notices from TED Europa.
- ATS Jobs API: Greenhouse, Lever, Ashby, Workable ($4/1K jobs) — Extract live tech jobs, salaries, and B2B hiring signals.
- Email Provider Detector (Google Workspace vs Microsoft 365) — Detect tech stack, DNS/MX/SPF/DMARC readiness, and company contacts.
Quick REST API Call
curl -X POST "https://api.apify.com/v2/acts/mr.wolf~us-sam-tenders-mcp-server/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{}'
Related HTTP-Only MCP Actors by mr.wolf
All Actors run HTTP-only (< 512 MB RAM, zero headless browsers) with Pay-Per-Event pricing and Streamable HTTP Standby MCP endpoints:
| Actor | Use Case | Apify Store | Source |
|---|---|---|---|
| Shopify Store Intel, Apps & Catalog | Themes, 28+ apps & pixels, BNPL payments, /products.json | Apify Store | GitHub |
| EU VAT Validator (VIES) & GLEIF LEI Lookup | GLEIF LEI parent trees, EU VIES VAT, French SIRENE | Apify Store | GitHub |
| FDA Recalls, 510(k) & Clinical Trials | openFDA recalls, 510(k) clearances, ClinicalTrials.gov v2 | Apify Store | GitHub |
| SEC EDGAR Filings & XBRL Financials | 10-K, 10-Q, 8-K, Form 4 & US-GAAP XBRL metrics | Apify Store | GitHub |
| Tech & Startup Jobs (4 ATS APIs) | Greenhouse, Lever, Ashby, SmartRecruiters + hiring signals | Apify Store | GitHub |
| B2B Domain Intel & Email Verifier | DNS/MX/SPF/DMARC deliverability, tech stack & contacts | Apify Store | GitHub |
| EU Public Tenders & Grants (TED Europa) | European procurement notices by CPV, country & budget | Apify Store | GitHub |