Samgov
v0.3.1SAM.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…
| Parameter | Type | Description |
|---|---|---|
_apiKey | string | Optional — 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. |
keyword | string | Search term for opportunity title or description. query, q, keywords accepted as aliases. |
keywords | string | Alias for keyword. |
limit | number | Number of results to return (1-100, default 10) |
naics | string | NAICS code to filter by (e.g., "541512" for computer systems design) |
offset | number | Result offset for pagination (default 0) |
posted_from | string | Start of posting date range in MM/dd/yyyy format. Defaults to 30 days ago if omitted. |
posted_to | string | End of posting date range in MM/dd/yyyy format. Defaults to today if omitted. |
ptype | string | Procurement type filter: p (presolicitation), o (solicitation), k (combined synopsis/solicitation), a (award notice) |
q | string | Alias for keyword. |
query | string | Alias for keyword. |
set_aside | string | Small 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.
| Parameter | Type | Description |
|---|---|---|
_apiKey * | string | SAM.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 * | string | The solicitation number to look up (e.g., "N6133126R3101") |
posted_from | string | Optional MM/DD/YYYY start of the posting-date window; only needed for a solicitation older than a year |
posted_to | string | Optional MM/DD/YYYY end of the posting-date window |
sam_entity_search
Look up federal contractors registered in SAM.gov by business name, UEI, or CAGE code. Returns UEI, CAGE, legal and DBA name, address, NAICS and PSC codes, entity structure, registration and expiration dates, small-business/SBA certifications, and whether the entity carries an exclusion flag. Answers keyless from a local mirror of SAM.gov's public Entity Registration extract, ranking an exact UEI/CAGE/legal-name match above any fuzzy name hit and active registrations above expired ones. Every response carries a `mirror` field with the snapshot date and its age in days — the public entity ext…
| Parameter | Type | Description |
|---|---|---|
business_name * | string | What to search for: a legal/DBA business name, or an exact UEI or CAGE code. Accepts query / q / name as aliases. |
_apiKey | string | Optional — omit it. This search answers keyless from the local snapshot of SAM.gov's public Entity Registration extract; a key is needed only for live:true. |
active_only | boolean | Only entities with an active registration (default false — expired registrations are returned but sorted below active ones). |
limit | number | Number of results (1-100, default 10). |
live | boolean | Force a live SAM.gov API lookup instead of the mirror. Needs _apiKey. Use only when you specifically need registrations changed since the mirror snapshot — the live entity API is capped at 10 reques… |
naics | string | Filter by NAICS code (optional) — matches the primary NAICS or any NAICS the entity lists. |
offset | number | Rows to skip for paging (default 0). |
small_business | boolean | Filter to only small business entities (optional) |
state | string | Filter by 2-letter US state code (e.g., "VA", "CA") |
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…
| Parameter | Type | Description |
|---|---|---|
set_aside * | string | Set-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,… |
_apiKey | string | Optional — 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. |
keyword | string | Optional keyword to narrow results |
limit | number | Number of results to return (1-100, default 10) |
naics | string | Optional 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.
| Parameter | Type | Description |
|---|---|---|
_apiKey | string | Optional — omit it. This search answers keyless from the local snapshot of SAM.gov's public Exclusions extract, which is refreshed daily. |
classification | string | Optional classification: "Firm", "Individual", "Vessel", or "Special Entity Designation". |
include_terminated | boolean | Accepted, 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… |
limit | number | Number of results (1-100, default 10). |
name | string | Name 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. |
offset | number | Rows to skip for paging (default 0). |
state | string | Optional 2-letter US state to filter by, e.g. "VA". |
uei | string | Optional — check one specific UEI against the debarment list. More reliable than a name for KYB, since names collide and are transcribed inconsistently. |