SAM.gov

com.1102tools由 1102tools.com 發布官方發布者v1.0.18更新於 Oct 29, 2026

SAM.gov readiness, entities, exclusions, opportunities, awards, hierarchy, and subawards. 20 tools.

發布方自己的服務:Acquisition.gov

已驗證Streamable HTTP可網頁執行資料與分析商業與電商

概覽

AI 產生的概覽

查詢 SAM.gov 聯邦採購資料——招標機會、實體註冊、排除名單、合約授予與分包——讓助理研究供應商與招標資訊。

可以做什麼
  • 搜尋、讀取並彙整合約機會公告,包含完整說明、截止日期、代碼與聯絡人
  • 依 UEI、CAGE、名稱、NAICS 或州查詢實體註冊,完整版還可取得陳述與認證及誠信紀錄
  • 依 UEI、CAGE 或名稱查核公開的排除與停權紀錄
  • 檢索合約授予、授予修改與已刪除授予紀錄,以及 FFATA 分包與補助子獎勵報告
  • 瀏覽聯邦層級架構並解析 PSC 代碼
  • 執行一次性的供應商責任查核,並回報資料新舊與涵蓋範圍
適用情境
適合聯邦市場研究、招標發掘、供應商盡職調查,以及在組隊或授標前查核註冊與停權狀態。託管版適合免設定的快速查詢,本地版適合更深入的授予、子獎勵與層級分析。
執行需求
託管版:從 Claude 或 ChatGPT 目錄加入的遠端端點,不需金鑰。本地版:需 Python 與 uvx 或 pip,並提供免費的 SAM.gov API 金鑰,透過環境變數 SAM_API_KEY 傳入;金鑰每 90 天過期,且有每日請求上限。需要連線至 SAM.gov 的網路。
安裝前請注意
本地版需要把個人 SAM.gov API 金鑰放入 SAM_API_KEY,該金鑰每 90 天過期需重新產生。結果來自附日期的公開檔案或即時介面,並非完整歷史檔案;查不到的實體可能只是選擇不公開顯示,排除或認證結論應在 SAM.gov 上確認。本地安裝不會自動更新。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 SAM.gov,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/com.1102tools%2Fsam-gov-mcp/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "sam-gov": {
      "type": "http",
      "url": "https://sam.1102tools.com/mcp"
    }
  }
}

README

sam-gov-mcp

[price: free] [license: MIT] [tools: 20] [regression tests]

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.

Local or hosted

SAM.gov comes in two editions. Hosted is the only one with no key.

Local (full edition)Hosted
InstallOn your computer. Give your AI this page's link and ask it to set it up, or start at InstallationAdd from the Claude or ChatGPT directory
API keyFree SAM.gov key, which expires every 90 daysNone
Tools206
CoversOpportunities plus entity registrations, SBA certifications, exclusions, reps and certs, integrity records, contract award records, the federal hierarchy, and subawardsContract opportunities, award notices, justifications, public entity registrations and business/SBA certification codes, and exclusions
DataLive SAM.gov APIs, within your key's daily limitSAM.gov's public files: opportunities and exclusions daily, entity registrations monthly; source file names and dates accompany results
Works inClaude or ChatGPT desktop apps and other AI apps, on a desktop or laptopClaude or ChatGPT on web, desktop, and phone
UpdatesManual. Local installs don't update themselves. Ask your AI to update themAutomatic. Always runs the latest release
Local (desktop)Claude (hosted)ChatGPT (hosted)
Local setupInstallInstall

Compare local and hosted · Matching prompts

Hosted edition: 6 tools, no key

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.

ToolWhat it does
search_opportunitiesSearch 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_opportunityThe full notice: description, contacts, award details, and the sam.gov link
summarize_opportunitiesCounts by agency, NAICS, set-aside, or notice type
search_entitiesLook up a public registration by UEI or CAGE, or search by name, NAICS, state, business type / SBA certification code, and active registration status
search_exclusionsCheck public exclusions by UEI, CAGE, or name
get_data_statusSource 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.

Local full edition: when you need more

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.

What it does

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 sections
  • lookup_entity_by_cage - CAGE code lookup
  • search_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 data

Exclusions (v4)

  • check_exclusion_by_uei - Single-UEI debarment check
  • search_exclusions - Broader exclusion search by name, classification, program, agency, date

Contract Opportunities (v2)

  • search_opportunities - Search contract opportunities with full working filter set
  • get_opportunity_description - Fetch the HTML description by notice ID

Contract 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 PIID
  • search_deleted_awards - Search deleted award records for audit trails

Federal 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 organization

Acquisition 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 record
  • search_psc_free_text - Free-text PSC discovery

Composite workflow

  • vendor_responsibility_check - One-shot FAR 9.104-1 check (entity + exclusions in a single tool call)

Authentication

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 TypeDaily Limit
Non-federal, no SAM role10/day
Non-federal with SAM role1,000/day
Federal personal1,000/day
Federal system account10,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.

Installation

Via uvx

bash
uvx --refresh-package sam-gov-mcp --from sam-gov-mcp sam-gov-mcp

Via pip

bash
pip install sam-gov-mcp

From source

bash
git clone https://github.com/1102tools-dev/federal-contracting-mcps.gitcd federal-contracting-mcps/servers/sam-gov-mcppip install -e .

Configuration

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.

json
{  "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.

Example prompts

Once configured, these examples illustrate the server's advanced standalone use. The maintained MCP-oriented request library contains the broader collection:

  • "Run a vendor responsibility check on [UEI] for registration status and exclusions, then pull FAPIIS integrity records separately; the one-pass check does not include those."
  • "Pull [COMPANY]'s registration status, socioeconomic categories, and any exclusions. If SAM returns multiple registrations for one UEI, say so and list them before picking one."
  • "Get [COMPANY]'s FAR 52.212-3 and DFARS 252.204-7016 answers from their reps and certs (summary mode), and flag anything a contracting officer would want to read in full text."
  • "How far back does [COMPANY]'s federal award history actually go? Check contract awards decade by decade, FY1970 forward; volumes thin out before 1980, so read single-digit years as archival traces, not gaps."
  • "Find active 8(a)-certified firms (SBA-certified, not self-designated) in [STATE] under NAICS [NAICS]."
  • "Search sources sought notices from the last 30 days under NAICS [NAICS], response deadlines sorted soonest first."
  • "Show me SDVOSB set-aside solicitations for IT services posted this quarter."
  • "Get the full description of notice ID [paste ID] and summarize the SOW."
  • "Search exclusions for [NAME]: give me classification (Firm, Individual, Vessel), excluding agency, and whether each record is active."
  • "Search contract awards for [COMPANY] in fiscal year 2026, then look up all modifications for the biggest PIID you find."
  • "Show me deleted contract award records for Department of Defense this fiscal year."
  • "Find the Federal Hierarchy ID for the Department of the Treasury and walk one level of children."
  • "Show me FFATA subcontracts on prime PIID [PIID], and total the subaward amounts."
  • "Pull all subawards reported under grant FAIN [FAIN]."
  • "List the agency-level orgs in CGAC 075 (HHS)."

Design notes

  • Authentication via env var only. SAM_API_KEY is read from the environment on every call. The key never enters the model's conversation context.
  • 90-day expiration awareness. 401/403 errors are translated into an actionable regeneration message with the current SAM.gov Help link.
  • API quirks baked in as safety rails.
    • Entity Management hard cap of size=10 is enforced client-side with a clear error
    • Exclusions uses size not limit (different from other SAM endpoints)
    • Country codes are validated as 3-character ISO alpha-3 (2-char codes return 0 silently)
    • No Accept: application/json header is set (Exclusions returns 406 if present)
    • Bracket/tilde/exclamation characters are preserved in query strings for multi-value params
  • Post-filtering for broken parameters. The Opportunities API silently ignores deptname and subtier filters. search_opportunities exposes an agency_keyword parameter that post-filters results by matching fullParentPathName substring.
  • includeSections defaults. Entity lookups default to 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.
  • Contract Awards response normalization. The Contract Awards API returns different JSON wrapper shapes for populated vs. empty results. All tools normalize this to a consistent {"awardSummary": [...], "totalRecords": int} shape. Error responses are plain text (not JSON), detected and raised as actionable errors.
  • Contract Awards pagination. Uses 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].
  • Composite workflow. 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.
  • Federal Hierarchy quirks baked in.
    • Lowercase totalrecords and orglist keys (rest of SAM.gov uses camelCase); normalizer preserves both
    • Default response is ACTIVE-only; passing status=ACTIVE is a no-op vs. the unfiltered call. Pass INACTIVE to expand to retired orgs
    • Real fhorgtype values look like Department/Ind. Agency, but the API also accepts shorthand (DEPARTMENT, AGENCY) with case-insensitive matching
  • Subaward Reporting quirks baked in.
    • Dates use ISO yyyy-MM-dd (NOT MM/dd/yyyy like Contract Awards). Mixing them raises a clear pre-network validation error
    • Pagination uses pageNumber/pageSize (NOT page/size or limit/offset)
    • Live audit (April 2026) found three documented parameter casings are silently ignored: 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 server

Part of

federal-contracting-mcps: monorepo of 9 MCP servers for federal contracting data. Pair these sources with the MCP prompt library.

License

MIT

來源:servers/sam-gov-mcp/readme.md,提交 558c401

工具

6

search_opportunities

Search Opportunities

Search active SAM.gov contract opportunity notices: solicitations, combined synopses, presolicitations, sources sought, special notices, award notices, and justifications. All filters combine. Keyword search covers titles and full descriptions. By default, only the latest version of each amended notice is included. Notices whose response deadline has passed are left out, except award notices and justifications; notices with no deadline are also included. Set include_past_deadlines to true to include other past-deadline notices. Results are sorted by soonest deadline, with notices that have no deadline last. Returns up to 100 notices per call with the total match count; use offset to page. Use get_opportunity for a notice's full description and contacts. Data is SAM.gov's public daily file of active notices, not live SAM.gov. Archived notices and attachments are not included.

輸入參數sortlimitagencyoffsetkeywordsposted_topsc_codesdeadline_tonaics_codesposted_fromnotice_typesoffice_state另有 6 個

get_opportunity

Get Opportunity

Get one SAM.gov notice in full: description, response deadline, set-aside, NAICS and PSC codes, place of performance, contracting office, points of contact, award details for award notices, and the public sam.gov link. Also lists other active notices with the same solicitation number, such as earlier versions, amendments, or awards (with awardee and amount). Pass the 32-character notice ID from search results, or a solicitation number (returns its most recently posted current notice, preferring the solicitation over award notices and justifications). Attachments are not retrieved; open the sam.gov link for them.

輸入參數notice_idsolicitation_number

summarize_opportunities

Summarize Opportunities

Count active SAM.gov notices grouped by agency, sub-tier, office, NAICS, PSC, set-aside, notice type, place-of-performance state, contracting office state, or posted month. Accepts the same filters as search_opportunities, e.g. counts of open solicitations under one NAICS by set-aside, or which agencies posted the most sources sought notices this quarter. Counts cover active notices in SAM.gov's public daily file, including notices posted in earlier fiscal years that remain active. This is not a complete historical archive; archived notices are not included.

輸入參數topagencygroup_by必填keywordsposted_topsc_codesdeadline_tonaics_codesposted_fromnotice_typesoffice_statedeadline_from另有 5 個

get_data_status

Get Data Status

Report source file names and dates, load times, row counts and coverage limitations for public opportunities, entity registrations and exclusions. Includes opportunity counts by type and last-load changes. Use it to judge how current results are.

無需輸入參數。

search_entities

Search Entities

Answer SAM registration and socioeconomic questions: women-owned/WOSB/EDWOSB, veteran-owned/SDVOSB, HUBZone, 8(a), and small business. Search the monthly public extract by UEI, CAGE, name, NAICS and state; filters combine. any_naics includes secondary codes. Search defaults Active; UEI/CAGE includes inactive. Use the labeled business or SBA code filters below. For NAICS-specific small-business status, request assertions or All and check sbaSmallBusiness; 2X means for-profit, not small. Codes and active registration do not prove current SBA certification; check certificationExitDate and confirm SBA/SAM.gov status. Public-display opt-outs are excluded. Up to 10 records/page.

輸入參數ueipagesizeany_naicscage_codestate_codeprimary_naicsinclude_sectionsbusiness_type_codelegal_business_nameregistration_statussba_business_type_code另有 1 個

search_exclusions

Search Exclusions

Check SAM.gov public exclusion/debarment records by UEI, CAGE, or name. Filters combine. Searches the dated public extract, which is not a complete exclusion history; inactive or terminated historical records may be absent. Every result identifies the source file and date. No matches in the extract is not a live clearance or eligibility determination; confirm current status on SAM.gov.

輸入參數ueipagesizecountrycage_codeentity_nameclassificationstate_provinceexclusion_programexcluding_agency_code

版本歷史

5
  1. v1.0.18最新Oct 29, 2026
  2. v1.0.16Oct 21, 2026
  3. v1.0.15Oct 15, 2026
  4. v1.0.14Oct 10, 2026
  5. v1.0.13Sep 16, 2026

評分

已滿足適用檢查項的 100%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分

其他 1102tools 整合