Samgov

v0.3.1
io.github.pipeworx-io/samgov Checked 4 days ago Published 1 month ago

SAM.gov MCP — Federal contract opportunities and entity registration data

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

sam_search_opportunities

Search active federal contract opportunities by keyword, NAICS code (e.g., "541512"), set-aside type, posting date range, and procurement type. Searches SAM.gov's public Contract Opportunities extract, refreshed daily, without spending an API key — ranking matches by relevance with the opportunity TITLE weighted well above its description, so a genuine title hit outranks a notice whose boilerplate contract-clause text happens to mention the term. Returns titles, solicitation numbers, deadlines, and agencies, plus a `mirror` field reporting how fresh that snapshot is. SAM.gov requires a posti…

ParameterTypeDescription
_apiKeystringOptional — omit it. This search answers keyless from the local snapshot of SAM.gov's public Contract Opportunities extract; a key is needed only to reach postings newer than that snapshot.
keywordstringSearch term for opportunity title or description. query, q, keywords accepted as aliases.
keywordsstringAlias for keyword.
limitnumberNumber of results to return (1-100, default 10)
naicsstringNAICS code to filter by (e.g., "541512" for computer systems design)
offsetnumberResult offset for pagination (default 0)
posted_fromstringStart of posting date range in MM/dd/yyyy format. Defaults to 30 days ago if omitted.
posted_tostringEnd of posting date range in MM/dd/yyyy format. Defaults to today if omitted.
ptypestringProcurement type filter: p (presolicitation), o (solicitation), k (combined synopsis/solicitation), a (award notice)
qstringAlias for keyword.
querystringAlias for keyword.
set_asidestringSmall business set-aside type: SBA (Small Business), SDVOSB (Service-Disabled Veteran), HUBZone, 8AN (8(a)), WOSB (Women-Owned), EDWOSB (Economically Disadvantaged Women-Owned)

sam_get_opportunity

Get full details for a federal contract opportunity by solicitation number. Returns description, contact info, deadlines, attachments, NAICS codes, and set-aside status — the fields sam_search_opportunities does not carry. SAM.gov searches a posting-date range and caps it at one year: we resolve the solicitation's posting date automatically where we can and otherwise search the last year, so pass posted_from/posted_to only for an older solicitation.

ParameterTypeDescription
_apiKey *stringSAM.gov API key — required. Free at https://sam.gov/content/entity-information; a key on an account with a SAM.gov role allows 1,000 requests/day.
solicitation_number *stringThe solicitation number to look up (e.g., "N6133126R3101")
posted_fromstringOptional MM/DD/YYYY start of the posting-date window; only needed for a solicitation older than a year
posted_tostringOptional MM/DD/YYYY end of the posting-date window

sam_set_aside_opportunities

Find federal contract opportunities reserved for a specific class of small business — total or partial small business, 8(a), women-owned (WOSB/EDWOSB), HUBZone, service-disabled veteran-owned (SDVOSB), veteran-owned, Indian small business economic enterprise and Buy Indian. Answers "what HUBZone contracts are open", "recent 8(a) set-asides", "women-owned small business opportunities in NAICS 541512". Reads SAM.gov's public daily Contract Opportunities extract, so it costs no API key and works on the plain code (SBA, HZC, SDVOSBC, 8A, WOSB) or on the ordinary phrasing ("HUBZone", "women-owned…

ParameterTypeDescription
set_aside *stringSet-aside type (required). Either the SAM.gov code — SBA (total small business), SBP (partial), 8A, 8AN (8(a) sole source), WOSB, EDWOSB, HZC (HUBZone), HZS (HUBZone sole source), SDVOSBC, SDVOSBS,…
_apiKeystringOptional — omit it. This search answers keyless from the local snapshot of SAM.gov's public Contract Opportunities extract; a key is needed only to reach postings newer than that snapshot.
keywordstringOptional keyword to narrow results
limitnumberNumber of results to return (1-100, default 10)
naicsstringOptional NAICS code filter

sam_search_exclusions

Search the SAM.gov Exclusions list — parties DEBARRED, suspended, or otherwise excluded from receiving federal contracts, grants, or assistance. Answers "is this company/person barred from federal contracting" for KYB / vendor-vetting / procurement due diligence. Filter by name, US state, and classification (Firm / Individual / Vessel / Special Entity). Returns each excluded party with the exclusion type, program, excluding agency, and active/termination dates. Distinct from OFAC sanctions (see sanctions_screen) — this is the federal procurement debarment list.

ParameterTypeDescription
_apiKeystringOptional — omit it. This search answers keyless from the local snapshot of SAM.gov's public Exclusions extract, which is refreshed daily.
classificationstringOptional classification: "Firm", "Individual", "Vessel", or "Special Entity Designation".
include_terminatedbooleanAccepted, but it currently changes NOTHING — SAM.gov's daily Exclusions extract carries only exclusions in force, so there are no terminated records for it to add. Measured 2026-09-13 over 400 sampl…
limitnumberNumber of results (1-100, default 10).
namestringName to search (company or individual), e.g. "Smith Construction". Matched against the excluded party name; an exact UEI also matches. Optional if you pass `uei` instead — supply one of the two.
offsetnumberRows to skip for paging (default 0).
statestringOptional 2-letter US state to filter by, e.g. "VA".
ueistringOptional — check one specific UEI against the debarment list. More reliable than a name for KYB, since names collide and are transcribed inconsistently.