Everything
Reference server that exercises every MCP feature: tools, resources, prompts, sampling and more
MOmodelcontextprotocol/servers92k190 new stars in the last 7 days
SAM.gov entity registration, exclusions, opportunities, contract awards. 15 tools.
Free, open-source MCP server for SAM.gov entity registration, exclusion/debarment, contract opportunity, contract award, federal hierarchy, and FFATA subaward data.
Overview, demo video and hosted setup: https://1102tools.com/mcp/sam-gov
Two editions: hosted, with 6 keyless tools for contract opportunities, public entity registrations, and exclusions, and local, the full 20 tools with a free SAM.gov key. See Local or hosted.
Regression tests, including live checks against the SAM.gov APIs. The October 2026 releases were also checked with realistic contracting questions against official SAM.gov records. See testing.md.
SAM.gov comes in two editions. Hosted is the only one with no key.
| Local (full edition) | Hosted | |
|---|---|---|
| Install | On your computer. Give your AI this page's link and ask it to set it up, or start at Installation | Add from the Claude or ChatGPT directory |
| API key | Free SAM.gov key, which expires every 90 days | None |
| Tools | 20 | 6 |
| Covers | Opportunities plus entity registrations, SBA certifications, exclusions, reps and certs, integrity records, contract award records, the federal hierarchy, and subawards | Contract opportunities, award notices, justifications, public entity registrations and business/SBA certification codes, and exclusions |
| Data | Live SAM.gov APIs, within your key's daily limit | SAM.gov's public files: opportunities and exclusions daily, entity registrations monthly; source file names and dates accompany results |
| Works in | Claude or ChatGPT desktop apps and other AI apps, on a desktop or laptop | Claude or ChatGPT on web, desktop, and phone |
| Updates | Manual. Local installs don't update themselves. Ask your AI to update them | Automatic. Always runs the latest release |
| Local (desktop) | Claude (hosted) | ChatGPT (hosted) |
|---|---|---|
| Local setup | Install | Install |
Compare local and hosted · Matching prompts
The hosted edition finds and reads contract opportunities, public entity registrations, and exclusions. It serves copies of the files that SAM.gov publishes for public download, so it needs no API key and no local setup. Opportunities and exclusions are published daily; public entity registrations are published monthly. The service checks opportunities every two hours and public entity and exclusion files every four hours, with an extra check after the usual exclusions publication time. Refreshes remain subject to the existing operating budgets; unchanged files write no rows. The date shown in each result identifies the file actually loaded; publication does not guarantee an immediate refresh. During an unfinished refresh, the affected public tool reports that data is refreshing and asks you to retry.
| Tool | What it does |
|---|---|
search_opportunities | Search notices by keyword (titles and full descriptions), NAICS, PSC, set-aside, notice type, agency, state, and posted or response dates. Award notices and justifications are notice types. |
get_opportunity | The full notice: description, contacts, award details, and the sam.gov link |
summarize_opportunities | Counts by agency, NAICS, set-aside, or notice type |
search_entities | Look up a public registration by UEI or CAGE, or search by name, NAICS, state, business type / SBA certification code, and active registration status |
search_exclusions | Check public exclusions by UEI, CAGE, or name |
get_data_status | Source file names and dates, load times, and row counts for opportunities, entities, and exclusions |
Older notices can appear when they remain active, including notices posted in earlier fiscal years. This is not a complete historical archive; archived notices and attachments are not included (results link to the notice on sam.gov). Pair it with the USAspending MCP for broader award history.
Every entity and exclusion answer includes its source file name and date. Entities that opted out of public display are not included in the hosted public mirror; a missing result does not establish that an entity is unregistered. Confirm current registration status on SAM.gov before relying on a registration result. Exclusion results are a dated public-file check; verify material findings on SAM.gov.
An active registration does not establish current SBA certification. Public 8(a) codes can remain after the recorded certification exit date; check certificationExitDate and confirm current certification with SBA.
The full edition has everything in hosted, plus contract awards, subawards, reps and certs, and past terminations and legal proceedings.
The full edition is local only. Give your AI this page's link and ask it to set it up, or start at Installation. It needs your own free SAM.gov key, and that key's daily limit applies; see Authentication.
Exposes seven SAM.gov REST APIs plus a credential-readiness check as 20 MCP tools:
Entity Management (v3)
lookup_entity_by_uei - Single UEI lookup with configurable response sectionslookup_entity_by_cage - CAGE code lookupsearch_entities - Flexible entity search (NAICS, PSC, business type, state, name, etc.)get_entity_reps_and_certs - FAR/DFARS reps and certs (must be requested explicitly)get_entity_integrity_info - FAPIIS proceedings dataExclusions (v4)
check_exclusion_by_uei - Single-UEI debarment checksearch_exclusions - Broader exclusion search by name, classification, program, agency, dateContract Opportunities (v2)
search_opportunities - Search contract opportunities with full working filter setget_opportunity_description - Fetch the HTML description by notice IDContract Awards (v1) -- FPDS replacement
search_contract_awards - Search contract award records (vendor, agency, NAICS, dates, dollars, set-aside, etc.)lookup_award_by_piid - Look up all modifications for a single PIIDsearch_deleted_awards - Search deleted award records for audit trailsFederal Hierarchy (v1)
search_federal_organizations - Search the FH for departments, agencies, sub-agencies, offices (filter by FH org id, name, type, status, agency code, CGAC)get_organization_hierarchy - Walk the children of a federal organizationAcquisition Subaward Reporting (FFATA subcontracts)
search_acquisition_subawards - Search FFATA subcontract reports (prime/sub relationships, agency, dates, status)Assistance Subaward Reporting (FFATA grant subawards)
search_assistance_subawards - Search FFATA grant subaward reports (FAIN, prime award key, agency, dates)PSC Lookup
lookup_psc_code - Resolve a PSC code to its full recordsearch_psc_free_text - Free-text PSC discoveryComposite workflow
vendor_responsibility_check - One-shot FAR 9.104-1 check (entity + exclusions in a single tool call)Requires a SAM.gov API key set via the SAM_API_KEY environment variable.
Get a free personal API key by signing in and following the Public API Key instructions at SAM.gov Help.
| Account Type | Daily Limit |
|---|---|
| Non-federal, no SAM role | 10/day |
| Non-federal with SAM role | 1,000/day |
| Federal personal | 1,000/day |
| Federal system account | 10,000/day |
Important: SAM.gov API keys expire every 90 days. Use SAM.gov Help to verify or regenerate the key and update your env var. This server returns a clear actionable error on 401/403 with regeneration instructions.
uvx --refresh-package sam-gov-mcp --from sam-gov-mcp sam-gov-mcp
pip install sam-gov-mcp
git clone https://github.com/1102tools-dev/federal-contracting-mcps.git
cd federal-contracting-mcps/servers/sam-gov-mcp
pip install -e .
Use the configuration below as the server definition and adapt its placement to your compatible MCP client. For practical requests using this source, see the prompt library.
{
"mcpServers": {
"sam-gov": {
"command": "uvx",
"args": ["--refresh-package", "sam-gov-mcp", "--from", "sam-gov-mcp", "sam-gov-mcp"],
"env": {
"SAM_API_KEY": "SAM-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
}
}
}
The --refresh-package flag tells uv to check PyPI for a newer release each time your client launches the server, so fixes arrive automatically; without it, uv keeps serving whatever version it first cached. It adds a moment of network time at startup, so raise your platform's MCP startup timeout if it enforces a short one.
Restart the client and the tools appear.
Once configured, these examples illustrate the server's advanced standalone use. The maintained MCP-oriented request library contains the broader collection:
SAM_API_KEY is read from the environment on every call. The key never enters the model's conversation context.size not limit (different from other SAM endpoints)Accept: application/json header is set (Exclusions returns 406 if present)deptname and subtier filters. search_opportunities exposes an agency_keyword parameter that post-filters results by matching fullParentPathName substring.entityRegistration,coreData. Always include entityRegistration alongside any other section or the response has no identification. repsAndCerts and integrityInformation require explicit tool calls (get_entity_reps_and_certs, get_entity_integrity_info) because even includeSections=All doesn't include them.{"awardSummary": [...], "totalRecords": int} shape. Error responses are plain text (not JSON), detected and raised as actionable errors.limit/offset (NOT page/size like Entity Management). Max limit is 100. Dates must be MM/dd/yyyy format with bracket ranges [MM/dd/yyyy,MM/dd/yyyy].vendor_responsibility_check collapses a typical FAR 9.104-1 check (entity registration + exclusion lookup) into one tool call, returning a structured flags list for downstream reasoning.totalrecords and orglist keys (rest of SAM.gov uses camelCase); normalizer preserves bothstatus=ACTIVE is a no-op vs. the unfiltered call. Pass INACTIVE to expand to retired orgsfhorgtype values look like Department/Ind. Agency, but the API also accepts shorthand (DEPARTMENT, AGENCY) with case-insensitive matchingyyyy-MM-dd (NOT MM/dd/yyyy like Contract Awards). Mixing them raises a clear pre-network validation errorpageNumber/pageSize (NOT page/size or limit/offset)PIID is dropped (use lowercase piid), referencedIdvPIID is dropped (use referencedIDVPIID), and referencedIDVAgencyID is dropped (use referencedIDVAgencyId). Wire-level names are now correct in the serverfederal-contracting-mcps: monorepo of 9 MCP servers for federal contracting data. Pair these sources with the MCP prompt library.
MIT
Reference server that exercises every MCP feature: tools, resources, prompts, sampling and more
MOmodelcontextprotocol/servers92k190 new stars in the last 7 days
Current time lookup and conversion between IANA timezones
MOmodelcontextprotocol/servers92k190 new stars in the last 7 days
Free open-source resume builder with remote MCP tools for resumes and job applications.
REreactive-resume/reactive-resume46k207 new stars in the last 7 days
Puter MCP enables AI tools to interact with Puter: manage files, websites, workers, and more
HEHeyPuter/puter44k50 new stars in the last 7 days
A Go implementation of the Model Context Protocol (MCP), enabling seamless integration between LLM applications and external data sources and tools.
MAmark3labs/mcp-go9.3k24 new stars in the last 7 days