Skip to main content
Glama

Search SAM.gov contract opportunities

search_opportunities
Read-onlyIdempotent

Search active federal contract opportunities on SAM.gov: solicitations, presolicitations, sources sought, RFIs, and award notices - filterable by keywords, NAICS, set-aside (SDVOSB, 8(a), HUBZone, WOSB, small business), notice type, agency, and posted-date range (max 1 year). Call this when the user wants to find federal bidding opportunities or market intelligence on what agencies are buying. Requires the caller's own free SAM.gov API key (X-Sam-Api-Key header or sam_api_key argument); without one it returns an error explaining how to get and pass a key.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMax results (default 10)
agencyNoDepartment/agency name filter
keywordsNoFree-text keywords, e.g. "CMMC compliance"
posted_toNoYYYY-MM-DD (default: today)
set_asideNoSet-aside codes: SDVOSBC/SDVOSBS (SDVOSB), VSA/VSS (VOSB), SBA/SBP (small business), 8A/8AN, HZC/HZS (HUBZone), WOSB/EDWOSB
naics_codesNoNAICS codes, e.g. ["541512"]
notice_typeNoo=solicitation, p=presolicitation, r=sources sought, k=combined synopsis, g=surplus, s=special notice, a=award notice, i=intent to bundle, u=J&A
posted_fromNoYYYY-MM-DD (default: 90 days ago; SAM allows at most a 1-year window)
sam_api_keyNoYour own free SAM.gov API key. Required unless it is already set as the X-Sam-Api-Key header on the MCP connection; this server has no shared SAM.gov key. Get one free at sam.gov: sign in, open your profile (Account Details), request a public API key. Docs: https://open.gsa.gov/api/get-opportunities-public-api/. Never logged or stored.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / sam_api_key / description
      Previous value: -"Optional: your own free SAM.gov API key (from sam.gov → Account Details). With it you spend your own 1,000/day quota and skip the shared budget. Can also be sent once as the X-Sam-Api-Key header on the MCP connection."New value: +"Your own free SAM.gov API key. Required unless it is already set as the X-Sam-Api-Key header on the MCP connection; this server has no shared SAM.gov key. Get one free at sam.gov: sign in, open your profile (Account Details), request a public API key. Docs: https://open.gsa.gov/api/get-opportunities-public-api/. Never logged or stored."
  2. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources