
Mcp Sam Gov
io.github.cliwant由 GitHub 账号 cliwant 发布v1.17.0更新于 Oct 24, 2026
Keyless-first MCP: 153 tools for US federal + state/local (SLED) contracting, spending & regulation
概览
一个本地 MCP 服务器,提供 153 个以免密钥为主的工具,用于查询美国联邦及州/地方采购、支出、监管和供应商背景数据。
- 可以做什么
- 它在 54 个公开数据源上提供 153 个工具,涵盖 SAM.gov 和 Grants.gov 招标机会、USAspending 与 FPDS 的授标和支出分析、企业背景核查、产品召回、法院判决、SEC 文件、法规、劳动与定价数据、游说披露以及州/地方采购门户。工具包括机会搜索与详情获取、附件文本提取、授标与分包搜索、重新招标和即将到期合同雷达、机构与受赠方档案、NAICS 与机构自动补全校验,以及报告密钥配置状态的 api_key_status 工具。多数工具无需任何密钥即可使用。
- 适用场景
- 当助手需要研究美国政府合同机会、联邦支出与授标、监管或立法文件,或依据公开记录核查公司或供应商时使用。适用于商机与市场研究、竞争分析、合规检查以及资助项目或数据集发现。
- 运行要求
- 以 npm 包(@cliwant/mcp-sam-gov)通过 stdio 在本地运行,需要 Node.js;可通过 npx、全局安装或 Claude Desktop 扩展文件安装。四个数据源需要免费密钥:CENSUS_API_KEY、FRED_API_KEY、BEA_API_KEY 和 DOL_API_KEY。可提升速率限制或解锁筛选条件的可选密钥:SAM_GOV_API_KEY、DATA_GOV_API_KEY、BLS_API_KEY、NVD_API_KEY、OPENFDA_API_KEY、COURTLISTENER_API_TOKEN、LDA_API_KEY、SOCRATA_APP_TOKEN。密钥可设置在宿主 env 块或本地 .env 文件中。需要访问政府 API 的网络连接。
安装
在 SourceWeft 中
- 打开 控制台中的 Mcp Sam Gov,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
@cliwant/mcp-sam-gov
$4 trillion of public federal data, one npm install away.
The most comprehensive keyless-first MCP server for US federal and state/local (SLED) contracting + spending + regulation + partner vetting. 153 tools across 54 data sources — keyless-first: only 4 sources (Census business-patterns, FRED, BEA, and DOL's data endpoint) need a free key; the other 50 need none. Works today, in any AI agent.
Independent project — not affiliated with, endorsed by, or sponsored by SAM.gov, the U.S. General Services Administration (GSA), or any government agency.
[npm] [mcp-registry] [Glama score] [License: MIT] [Daily smoke] [Install in VS Code] [Add to Kiro]
See it in action
No API key, registration or signup for 148 of the 153 tools. Just plug it in and ask.
Why this exists
The federal data this wraps is public domain. There is no good reason it should cost a five-figure subscription to query.
What this gives Claude (and other AI agents)
153 tools across 54 data sources — keyless-first: only 4 sources (Census business-patterns, FRED, BEA, and DOL's data endpoint) need a free key; the other 50 need none. (An earlier 52-tool build measured roughly p50 ~0.25s / p95 ~0.8s against production federal APIs; latency varies by source and upstream load — treat it as fast, not a benchmarked guarantee.)
How do I install it? Pick the path that matches you.
🟢 Path 1 — Claude Desktop, one-click (no terminal needed)
Best for non-developers. Just download a file and double-click.
- Download
mcp-sam-gov.mcpbfrom the latest release. - Double-click the file. Claude Desktop opens with an "Install Extension" dialog.
- Click Install.
- Done. Start a new conversation and ask "Find active SAM.gov opportunities under NAICS 541512".
That's it. No PowerShell, no npm, nothing.
Requires Claude Desktop ≥ 1.0 (which ships its own Node.js runtime).
🟡 Path 2 — Claude Code, one command
If you already use Claude Code (the CLI):
This installs the MCP server plus a SKILL.md workflow guide that teaches Claude when + how to use each of the 153 tools.
🔵 Path 3 — Manual install for any MCP host (Codex, Cursor, Continue, Gemini)
For Codex CLI / Cursor / Continue / Gemini CLI / anything that speaks MCP:
After install, the binary mcp-sam-gov is on your PATH. Add this to your host config:
Specific config locations per host: see Host configurations below.
No global install? Every host config below also has an npx variant (npx -y @cliwant/mcp-sam-gov) that skips the clone and npm install -g. It only needs Node.js.
⚪ Path 4 — Direct path (zero install, just point at the file)
Skip installation entirely:
Then point your host config at the absolute path:
Host configurations
Each host below shows two variants. Use one of them:
- Global install:
"command": "mcp-sam-gov". This works only afternpm install -g(Path 3) has put themcp-sam-govbinary on your PATH. - No global install (npx):
"command": "npx", "args": ["-y", "@cliwant/mcp-sam-gov"]. This needs only Node.js. npx downloads the package from npm on first run and caches it.
Package name: the npm package is scoped:
@cliwant/mcp-sam-gov.mcp-sam-govis only the name of the binary that a global install puts on your PATH. No unscopedmcp-sam-govpackage exists on npm, sonpx -y mcp-sam-govfails with a 404. Usenpx -y @cliwant/mcp-sam-gov.
Claude Desktop
%APPDATA%\Claude\claude_desktop_config.json (Windows) or ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):
Global install:
No global install (npx):
On Windows, if the server fails to start with spawn npx ENOENT in %APPDATA%\Claude\logs\mcp*.log, wrap npx in cmd /c:
(Or skip this entirely — use Path 1's .mcpb and it auto-configures.)
Restart Claude Desktop fully (system tray quit on Windows / Quit menu on macOS), then look for the 🔨 icon. You should see "sam-gov (153 tools)".
Claude Code
Per-project .mcp.json, global install:
No global install (npx):
Or with the CLI:
Codex CLI
~/.codex/config.toml:
Global install:
No global install (npx):
Cursor
Settings → MCP → Add new MCP server. Global install:
No global install (npx):
Continue
~/.continue/config.json, global install:
No global install (npx):
Gemini CLI
~/.gemini/settings.json, global install:
No global install (npx):
VS Code
Add a .vscode/mcp.json at your project root (VS Code uses "servers", not "mcpServers"):
Or use the one-click badge at the top of this page to install directly from your browser.
Kiro
Use the one-click badge at the top of this page to add the server. Kiro opens an install dialog pre-filled with the npx command.
Anything else
If your host speaks MCP over stdio, point it at mcp-sam-gov (global install) or at npx -y @cliwant/mcp-sam-gov (no global install). No host-specific code.
What questions can I ask?
Once installed, you can ask in natural language. The agent picks the right tool sequence automatically.
Discovery
- "NAICS 541512 의 메릴랜드 입찰 중 30일 안에 마감되는 것 찾아줘"
- "Find active SAM.gov solicitations under NAICS 541512, MD only, closing in 30 days"
- "What's the canonical NAICS code for 'computer systems design'?"
RFP analysis
- "Pull noticeId 5ef3db5daeb54099a96d487783a38bd0 — give me the SOW, contracting officer, and attachments"
- "Show me the full RFP body for that notice"
Competitive landscape
- "Top 5 recipients of VA contracts in NAICS 541519 last fiscal year"
- "Show me Booz Allen's individual awards at DISA"
- "Who are the sub-contractors on Leidos' VA contracts?"
- "What's CMS in USAspending? (resolve the abbreviation)"
Trends & aggregation
- "How has VA 541512 spending trended over the last 5 fiscal years?"
- "Top 10 states by federal contracting spend in 541512"
- "Top PSC categories at DoD by spending"
- "Federal grant programs in cybersecurity by total $"
Agency intelligence (capture brief)
- "Give me a capture brief on VA: mission, FY26 budget breakdown, top sub-agencies"
- "What's VA's transaction volume for FY25?"
Recompete radar
- "VA 541512 contracts expiring in next 12 months over $1M"
- "Pull period of performance for award CONT_AWD_..."
Regulatory & legislative
- "Find FAR sections about SDVOSB set-aside requirements"
- "Turn this RFP's cited FAR/DFARS clause list into a Section L/M compliance matrix"
- "What new VA cybersecurity rules were published this quarter?"
- "Any Federal Register documents on the public-inspection desk from DoD today?"
- "Search Regulations.gov dockets on 'contractor cybersecurity' and pull the public comments"
- "Discover federal open datasets about 'wildfire' on data.gov"
- "Is there a Federal Register doc number 2026-08333? Pull the citation."
Partner & entity vetting
- "Screen 'Acme Defense LLC' against the OFAC sanctions list and SAM exclusions"
- "Look up NPI 1234567890 in NPPES — is this provider active?"
- "Does this subcontractor have adverse Single Audit findings in the Federal Audit Clearinghouse?"
- "How healthy is the bank on cert #3510 — risk ratios and quarterly financials?"
- "Pull this public company's revenue trend and latest 10-K from SEC EDGAR"
- "Any EPA compliance/enforcement flags for this facility?"
Compliance & eligibility
- "What's the SBA small-business size standard for NAICS 541512?"
- "Search the eCFR for the exact text of a rule"
- "What's the US import duty rate (HTS) for lithium-ion batteries?"
Pricing, labor & fiscal
- "GSA CALC ceiling-rate band for a senior systems analyst"
- "Find the SCA wage determination for Baltimore County, MD and give me the fringe rates"
- "How much has CPI-U risen over the last 3 years for an escalation clause?"
- "What's the current total US public debt (Debt to the Penny)?"
Cyber
- "Is CVE-2021-44228 (Log4Shell) on the CISA KEV must-patch list, and what's the due date?"
Health & research funding
- "NIH RePORTER projects on mRNA vaccines funded last year"
- "Recruiting clinical trials for diabetes sponsored by industry"
- "Industry payments to physicians in CA from the CMS Open Payments Research dataset"
Grants
- "Cybersecurity grants posted in the last 30 days"
- "Pull grant id 361238"
Optional — higher rate limits + archives
The MCP server runs keyless by default. For higher SAM.gov rate limits + the full archive (notices older than ~12 months), set SAM_GOV_API_KEY in your host's env block:
Get a free key at sam.gov/SAM/pages/public/searchKeyData.jsf. The agent doesn't need to know — the key path is transparent.
DATA_GOV_API_KEY — the api.data.gov / api.gsa.gov family
A handful of sources ride the shared api.data.gov gateway — Congress.gov, GovInfo, Regulations.gov, FAC, GSA per-diem, and the data.gov v4 dataset catalog. They work keyless out of the box via the public DEMO_KEY (a low shared hourly quota). Set DATA_GOV_API_KEY to raise those limits substantially:
Get one free (instant, no wait) at api.data.gov/signup. The same key is accepted across all api.data.gov / api.gsa.gov sources. Like the SAM key, it is sent only on the wire (never logged); unset simply means DEMO_KEY. BLS sources similarly accept an optional free BLS_API_KEY to lift their daily quota.
Keys & higher limits — the full inventory
Most tools are keyless. Four sources require a free key — Census (census_business_patterns), FRED (fred_search_series, fred_series_observations), BEA (bea_regional_data), and DOL's data endpoint (dol_get_dataset) — those sources have no keyless tier, so the tool throws without one. (DOL's catalog dol_list_datasets is keyless.) The other keys are optional: they only raise a rate limit or unlock a single filter. Every key below is free.
Two ways to set any key — pick one:
- Host env block — the
"env": { … }object shown in the examples above. - A
.envfile in the server's working directory — configure your keys once: The server auto-loads.envat startup. A real environment variable always wins over.env(standard precedence), and.envis git-ignored so your keys never get committed.
Ask the server which keys it needs. The keyless api_key_status tool lists every key, whether it's required or optional, the free signup URL + what it unlocks, and whether each is currently configured (a boolean — the key value is never shown). Creating the account at the signup URL is your one manual step; the server automates discovery (api_key_status) and configuration (.env). To confirm a key actually works, call that source's own tool.
Choosing toolsets (smaller context)
By default all 153 tools load — about 74k tokens per session. Clients that pay the full context cost (Claude Desktop, Cursor, raw API) can cut that significantly by loading only the toolsets relevant to the task.
Set the MCP_SAM_GOV_TOOLSETS environment variable to a comma-separated list of toolset names (case-insensitive). Leave it blank (or set it to all) to restore all tools.
Token counts are approximate, measured as the compact JSON character count of each tools/list entry divided by 4.
feedback and api_key_status are always loaded in every profile (they help agents report problems and check key health regardless of which toolset is active).
Config examples:
Claude Desktop (claude_desktop_config.json):
Claude Code (command line):
Claude Desktop bundle (.mcpb / manifest user_config): set the Toolsets field in the extension settings dialog (blank = all).
If you call a tool that belongs to an unloaded toolset, the server returns a structured tool_not_loaded error naming the toolset and the exact env var to set. The suggested value is the union of your current loaded sets plus the needed set (e.g. MCP_SAM_GOV_TOOLSETS=core,vetting when you have core loaded and call a vetting tool) so your existing profile is not silently dropped. It never silently returns an empty result.
Staying up to date
npm doesn't notify installed users of new versions, so the server does — minimally. On startup it makes one anonymous request to the public npm registry for its own latest version and, only if a newer one exists, prints a single line to stderr (e.g. a newer version is available: 1.7.0 → 1.8.0). It sends no usage data (a version check, not telemetry), never touches the protocol's stdout, is non-blocking, and stays silent when you're current.
- Update:
npm i -g @cliwant/mcp-sam-gov@latest— or just restart if your config usesnpx @cliwant/mcp-sam-gov@latest. - Opt out: set
MCP_SAM_GOV_NO_UPDATE_CHECK=1(orNO_UPDATE_NOTIFIER=1). - What changed: the releases page + CHANGELOG.
Found a bug? Want a feature? Report it in one step
This server is built to improve from real usage. Because an AI agent (not a human) calls the tools, the feedback path runs through the agent:
- On the two "something may be broken" errors —
schema_drift(a federal API changed shape) andupstream_unavailable(an outage) — the error envelope carries areportfield: a prefilled GitHub issue link your agent can offer you. - Or just tell your agent "report a bug" / "this result looks wrong" / "I wish it could do X" — it calls the
feedbacktool, which returns a prefilled issue link for you to open and submit.
Nothing is ever posted automatically. The server has no token and no account — it only builds the link; you open and submit it. Prefilled links carry only the tool name, error kind, and server version — never your query values. The repo is public, so redact anything sensitive first.
You can also open one directly: New issue — bug / feature / wrong-output templates.
Tool catalog (153 tools)
Grouped by workflow. Keyless-first — most tools need no key; Census business-patterns, FRED, BEA, and DOL's data endpoint require a free key, and a handful of others gain higher limits from an optional free key (noted above). Descriptions are condensed — each tool's own inputSchema carries the full contract and honesty caveats.
Opportunities & solicitations — SAM.gov + Grants.gov (10 tools)
sam_search_opportunities— keyless HAL search of active SAM.gov contracting opportunitiessam_search_shaping— pre-solicitation radar (Sources Sought / Presol / Special Notices before the RFP exists)sam_get_opportunity— full detail by 32-char hex noticeId (POCs + attachments + body)sam_fetch_description— full RFP body as plain textsam_fetch_attachment_text— extract attachment text (RFP / SOW / Q&A / wage tables) from PDF + DOCX + text/HTMLsam_attachment_url— build the public download URL for an attachment resourceIdsam_lookup_organization— federal-organization id → canonical fullParentPathNamesam_lookup_notice_fields— batch-fill nulled naics/set-aside/PoP/deadline for 1–100 noticeIds from the opt-in GSA daily CSVgrants_search— Grants.gov federal grant opportunities (financial assistance, distinct from SAM contracts)grants_get_opportunity— full detail for a single grant opportunity by id
Spending, awards & competition — USAspending + FPDS + GAO (31 tools)
usas_search_awards— aggregate share-of-wallet at agency × NAICSusas_search_individual_awards— line-item federal contracts (returns generatedInternalId)usas_get_award_detail— full award detail: period of performance, options, set-aside, competitionusas_search_awards_by_recipient— every contract a recipient won in an agency × NAICS sliceusas_search_subawards— enumerate subcontracts on prime awards (supply chain / teaming)usas_search_recompetes— recompete radar (PoP ending in a window, soonest-first, no silent drops)usas_search_expiring_contracts— deprecated alias ofusas_search_recompetes(legacy shape)usas_analyze_incumbent— per-award incumbent + public recompete-pressure hints (labels, not a score)usas_search_teaming_partners— small-business teaming discovery by cert × NAICS × agency, exclusion-screenedusas_spending_over_time— contract-spending time series (fiscal_year / quarter / month)usas_search_agency_spending— spending broken down by awarding agencyusas_search_subagency_spending— break a parent agency down by sub-agency / officeusas_search_psc_spending— spending by Product Service Code (PSC)usas_search_cfda_spending— spending by CFDA grant-program codeusas_search_state_spending— spending by state / territoryusas_search_federal_account_spending— spending by federal account / Treasury Account Symbol (TAS)usas_search_recipients— recipient list with parent/child hierarchyusas_get_recipient_profile— full recipient detail (UEI, alternate names, totals)usas_get_agency_profile— agency profile by toptier code (mission, abbreviation, website)usas_get_agency_awards_summary— award activity for a fiscal year (transaction count + obligations)usas_get_agency_budget_function— budget-function breakdown for an agency × fiscal yearusas_list_toptier_agencies— all toptier agencies + current-FY obligationsusas_lookup_agency— resolve 'VA' / 'DHS' → canonical toptier name + 4-digit codeusas_autocomplete_naics— anti-hallucination NAICS guardusas_autocomplete_recipient— anti-hallucination recipient guardusas_naics_hierarchy— navigate the NAICS tree (2→4→6) + active-contract count per codeusas_glossary— 151 federal-spending termsusas_list_disaster_codes— list Disaster Emergency Fund Codes (DEFC): COVID-19, IIJA/infrastructure, and other emergency-appropriation tagsusas_disaster_spending— disaster/emergency-fund spending BY GEOGRAPHY for given DEFCs (which state/county/district captured COVID/IIJA relief money)fpds_search_awards— FPDS-NG federal contract award actions (the authoritative award-action feed)gao_protest_lookup— recent GAO bid-protest decisions from the public Legal-Products RSS feed (recent window only)
Entity & partner vetting — OFAC · SAM · FAC · FDIC · EPA (15 tools)
ofac_screen_entity— keyless OFAC denied-party / sanctions screeningsam_check_exclusions— keyless SAM debarment/exclusion screening by name and/or UEI/CAGEsam_integrity_lookup— one-call integrity screen (exclusion verdict + honest FAPIIS pointer)fac_search_audits— Single Audit summaries from the Federal Audit Clearinghousefac_get_findings— drill into the audit-RISK findings for an entityfdic_search_institutions— search the FDIC-insured-institution directoryfdic_institution_financials— quarterly financial time-series for one institution (by cert #)fdic_risk_ratios— counterparty risk ratios for one institutionfdic_institution_history— structural-change event log (mergers, charter changes)fdic_branch_deposits— branch-deposit footprintfdic_bank_failures— historical bank failures & assistance transactionsfdic_industry_summary— industry & state banking-sector annual aggregatesecho_search_facilities— search EPA-regulated facilities by state with compliance/enforcement screeningecho_facility_report— EPA ECHO Detailed Facility Report for one facility (by FRS RegistryID)epa_tri_facilities— EPA Envirofacts TRI (Toxics Release Inventory) facilities by state/industry (environmental / ESG vetting)
Product safety & recalls — openFDA · NHTSA · CPSC (6 tools)
openfda_enforcement— FDA drug / device / food recalls & enforcement actions (product-safety supplier vetting)openfda_device_clearances— FDA 510(k) medical-device clearances (device-maker capability check)openfda_drug_approvals— openFDA Drugs@FDA drug-approval applications (sponsor, approved products, submission/approval history)nhtsa_recalls— NHTSA vehicle recalls by make / model / yearnhtsa_complaints— NHTSA vehicle safety complaints by make / model / yearcpsc_recalls— CPSC consumer-product recalls (product supplier vetting)
Litigation & courts — CourtListener (2 tools)
courtlistener_search_opinions— US federal court opinions (COFC contract claims / bid protests, Federal Circuit);partyparam for actual-party cases — data via CourtListener / Free Law Project (disclosed)courtlistener_search_dockets— RECAP dockets (type=r) for FCA / False Claims Act / qui tam matters that rarely produce opinions; suitNature fielded filter — data via CourtListener / Free Law Project (disclosed)
Nonprofit vendors — IRS 990 via ProPublica (2 tools)
nonprofit_search— IRS-990 nonprofit search by name / state / NTEE — via ProPublica Nonprofit Explorer (disclosed)nonprofit_financials— IRS-990 nonprofit financials by EIN — via ProPublica Nonprofit Explorer (disclosed)
Financial disclosure — SEC EDGAR (8 tools)
edgar_lookup_cik— resolve a company ticker or name to its 10-digit SEC CIKedgar_company_filings— a company's SEC filingsedgar_company_facts— curated XBRL financial facts for a fileredgar_company_concept— one filer × one XBRL concept × the complete reported time-seriesedgar_xbrl_frames— cross-filer XBRL cross-section (one concept across all filers for a period)edgar_full_text_search— full-text search across EDGAR filings, 2001–presentedgar_filing_index— bulk cross-filer filing index for a quarteredgar_daily_filing_index— per-day cross-filer filing index
Regulatory & legislative — Federal Register · Regulations.gov · eCFR · FAR · Congress · GovInfo (19 tools)
fed_register_search_documents— search Federal Register documents by query / agency / type / datefed_register_get_document— full detail for a document by number (citation, body URL, CFR refs)fed_register_public_inspection— the Federal Register public-inspection desk (pre-publication)fed_register_list_agencies— Federal Register agency slugs referenceregulations_search_dockets— search Regulations.gov rulemaking docketsregulations_search_documents— search Regulations.gov rulemaking documents (rules, proposed rules, notices)regulations_search_comments— search public comments on rulemakingsregulations_get_docket— fetch one Regulations.gov docket by idecfr_search— full-text search across the entire CFR (titleNumber=48 for FAR); returns ranked snippets + ecfrUrlecfr_get_section— the FULL text of one CFR section by citation (any title; for FAR/DFARS preferfar_clause_lookup)ecfr_list_titles— all 50 CFR titles + last-amended datesfar_clause_lookup— authoritative FAR/DFARS clause text + its prescription (exact clause number)far_search— FAR/DFARS-scoped search (excludes GSAM, collapses to current in-force version)far_compliance_matrix— cited-clause list → proposal-ready Section L/M compliance matrix (eligibility gates flagged)congress_search_bills— search Congress.gov bills / legislationcongress_get_bill— one bill by congress / type / numbergovinfo_search_packages— search GovInfo (GPO-authoritative) packages in a collectiongovinfo_get_package— one GovInfo package summary + download links (txt/xml/pdf/mods)govinfo_list_collections— the GovInfo collection catalog
Pricing, labor & fiscal — GSA CALC · SAM WDs · BLS · Census CBP · FRED · BEA · US Treasury · GSA per-diem (15 tools)
gsa_benchmark_labor_rates— GSA CALC awarded ceiling-rate market band for a labor category (a distribution, not one price)sam_search_wage_determinations— find SCA / Davis-Bacon wage determinations for a localitysam_get_wage_rates— prevailing-wage + fringe / H&W rate table parsed from a WD, plus the EO minimum-wage floorbls_timeseries— BLS time series (CPI-U / ECI escalation, PPI, employment) — the pricing/escalation layerbls_oews_wages— benchmark occupational wages & employment (BLS OEWS) by area × occupationbls_qcew— county × NAICS market size / wages / location quotient (competition density)treasury_debt_to_penny— daily total US public debt outstanding (Treasury Fiscal Data)treasury_avg_interest_rates— average interest rate the Treasury pays by security typetreasury_monthly_statement— Monthly Treasury Statement: receipts, outlays, deficit/surplus by monthtreasury_query_dataset— escape-hatch query over 7 confirmed Treasury Fiscal Data datasetsbea_regional_data— GDP / personal income by industry × geography (BEA Regional; requires free BEA_API_KEY)census_business_patterns— establishments / employment / annual payroll by NAICS × geography (Census CBP; requires free CENSUS_API_KEY)fred_search_series— search the FRED macroeconomic series catalog (GDP/CPI/rates/unemployment; requires free FRED_API_KEY)fred_series_observations— time-series observations for a FRED series (missing values → null; requires free FRED_API_KEY)gsa_perdiem_rates— federal travel per-diem: monthly lodging + M&IE meals caps by city+state or zip (keyless via DEMO_KEY)
Health & research funding — NIH · NSF · ClinicalTrials · CMS · NPPES (9 tools)
nih_reporter_search_projects— awarded NIH RePORTER research-grant projectsnsf_search_awards— awarded NSF research-grant awardsnsf_get_award— one NSF award by its numeric award idclinicaltrials_search_studies— federally-registered clinical studies with sponsor/funder enrichmentclinicaltrials_get_study— one clinical study by NCT id (incl. brief summary)clinicaltrials_facet_counts— exact per-value study-count distribution over the whole registrycms_search_datasets— discover CMS Open Payments (Sunshine Act) datasetscms_query_dataset— query a CMS Open Payments datastore distribution (industry→physician payments)nppes_lookup_provider— CMS/HHS NPPES NPI Registry provider lookup
Healthcare providers & facilities — CMS (5 tools)
cms_medicare_provider_services— Medicare provider utilization & payments (healthcare market sizing)cms_hospital_compare— CMS Hospital Compare quality ratingscms_facility_directory— CMS nursing-home / home-health / hospice / dialysis facility directoriescms_dmepos_suppliers— CMS DMEPOS (durable medical equipment) supplier directory + Medicare spendcms_revoked_providers— CMS Medicare revocation / exclusion list (provider compliance vetting)
Cyber compliance — NVD + CISA KEV + NIST 800-53 (3 tools)
cve_lookup— look up NIST NVD CVE recordscisa_kev_lookup— filter the CISA Known Exploited Vulnerabilities catalog (binding BOD 22-01 remediation due-dates)nist_800_53_controls— NIST SP 800-53 Rev 5 security & privacy controls lookup (FedRAMP/CMMC/RMF requirement text by controlId/family/keyword)
Trade, tariffs & logistics — USITC · CBP (2 tools)
hts_lookup— US import-tariff classification + duty rates from the USITC Harmonized Tariff Schedulecbp_border_wait_times— live CBP land-border commercial-vehicle wait times (Canadian + Mexican ports; freight/logistics)
Geo, disaster & state/local open data — Census · FEMA · NWS · Socrata · CKAN (10 tools)
census_geocode_address— resolve a one-line US address → matched address + Census geographies (tract, CD, place)census_geographies_by_coordinates— resolve a longitude/latitude point → Census geographiesfema_disaster_declarations— FEMA disaster / emergency declarations by state, type, incident, yearfema_search_public_assistance— FEMA Public Assistance funded projectsfema_search_hazard_mitigation— FEMA Hazard Mitigation Assistance projects (HMGP/FMA/PDM/BRIC mitigation grants to state/local/tribal subrecipients; disaster-resilience, distinct from Public Assistance recovery)nws_active_alerts— currently-active NWS weather alerts (watches/warnings/advisories; disaster/climate readiness, pairs with the FEMA tools)socrata_discover_datasets— find Socrata dataset 4x4 ids by keywordsocrata_query— query rows from an allowlisted Socrata/SODA open-data portal (54 curated state/county/city + federal hosts — checkbook, contracts, vendor payments, live solicitations across the SLED tier)ckan_discover_datasets— find CKAN datastore resource ids by keywordckan_query— query rows from an allowlisted CKAN datastore resource (state/city spend/checkbook)
State/local procurement bids (SLED) — OpenGov · Bonfire · ArcGIS · Tableau · Open Checkbook (8 tools)
opengov_list_governments— directory of 525+ US state/local governments on OpenGov Procurement (filter by state/query)opengov_search_solicitations— a government's live public solicitations (title, status [open = accepting], deadline, portal link) — keyless anonymous endpointsbonfire_list_organizations— curated live-verified 187-org US seed directory of governments on Bonfire (Euna)bonfire_search_opportunities— an org's currently-open opportunities via keyless RSS (referenceNumber, name, closeDate, link); the RSS is the complete open set (exact total)arcgis_hub_discover_datasets— discover ArcGIS Hub datasets by keyword (the SLED GIS/infrastructure/permits/procurement layer Socrata & CKAN don't cover; a discovery aid with publisher surfaced for vetting)arcgis_feature_query— query rows from a curated allowlist of 29 US-gov ArcGIS REST feature layers: DC OCP PASS live solicitations; local-gov checkbooks/contracts; county CIP pipelines (Hennepin County MN, Charlotte-Mecklenburg NC — capital-project pipelines, not solicitation registers); state DOT bid/award registers (TX / AK / IA / OK); 4 North Dakota DOT federal flex-funding award layers (NDDOT funding awards to local public agencies such as counties, townships and cities, not vendor contracts or winning bids; a proxy because ND's statewide checkbook and procurement portal aren't keyless-reachable)tableau_view_csv— fetch a curated US-gov Tableau Server Guest view's complete CSV export (keyless) and page over it; one view today: Montana DOA Contracts Awarded (~4,554 award records; freshness is set by the publisher and can lag)open_checkbook_search— row-level vendor-payment search over a curated Socrata Open Expenditures checkbook portal (keyless; exact-match year/vendor/department/expense-category filters); two portals today: South Dakota (~740,980 payments, only the ~3 most recent fiscal years) and Alaska (41,751 payments, FY2026 only — any other year returns count:0, meaning "not published", not zero spending); freshness is set by the publisher and can lag, so sort by payment_date desc to see the newest date)
State open-data map — also available as an MCP resource (
samgov://data-map/state-local, readable by any MCP client viaresources/read) and inskills/sam-gov/SKILL.md. Largest verified keyless datasets: Texas DIR cooperative purchase lines 10.7M rows + TxDOT live lettings 412 projects (socrata_querydata.texas.gov), Massachusetts CTHRU vendor payments ~49M rows, Virginia eVA PO line items 1.69M rows (ckan_querydata.virginia.gov), New Jersey YourMoney 660k rows, Washington contracts + master-contract-sales 325k rows combined. These are state open-data mirrors, not the states' live bid portals (TX TxDOT lettings being the first live solicitation feed). CA, OH, NC, MI, and non-TxDOT TX portals are login/WAF-gated; FL and GA have no state open-data portals (NXDOMAIN); PA's portal carries no procurement datasets.
Dataset & registry discovery — data.gov · get.gov (2 tools)
datagov_search_datasets— search the data.gov v4 catalog for federal open datasets across all publishing agenciessearch_gov_domains— CISA get.gov authoritative .gov domain registry (resolve which org owns a .gov domain; enumerate federal agencies + map SLED entities)
Small business — SBA (1 tool)
sba_size_standard— SBA small-business size standard for a 6-digit NAICS (set-aside eligibility gate)
Labor compliance — US DOL (2 tools)
dol_list_datasets— browse DOL enforcement/compliance datasets (WHD, OFCCP, …) — keyless catalogdol_get_dataset— fetch DOL enforcement records (WHD wage-hour / OFCCP; requires free DOL_API_KEY)
Lobbying & influence — US Senate LDA (1 tool)
lda_search_filings— Senate lobbying filings: who lobbies which agency, on what issue, for how much (keyless)
Server utilities — key discovery · feedback (2 tools)
api_key_status— list which API keys the server can use, required vs optional, signup URLs, and whether each is currently set (value never shown)feedback— returns a prefilled GitHub issue link for a bug report or feature request; you open and submit it yourself (the tool never posts anything)
Reliability & offline snapshots
This server is built around one rule: honest failure over confident fabrication. Everything below is about availability of public data — none of it bypasses access controls.
Keyless-first, and a down source throws. 50 of the 54 sources (148 of the 153 tools) work with no API key; Census business-patterns, FRED, BEA and DOL's data endpoint need a free one. When a source is rate-limited, blocked, or down, the tool returns a typed error (rate_limited / upstream_unavailable / schema_drift / …) — it never invents rows and never reports a DOWN service as "0 results" or "not found". A genuine empty result and an outage are always distinguishable.
Offline snapshots (on by default). Some reference data changes slowly — the toptier-agency list, the top-level NAICS tree, the USAspending glossary, SBA size standards, the latest Treasury "Debt to the Penny." By default, when a live federal source is briefly unreachable from your egress, the server falls back to a public, weekly-refreshed snapshot of that slow-changing reference data, hosted at raw.githubusercontent.com/cliwant/mcp-sam-gov/snapshots. It only fetches on a live hard-failure (an outage / IP-reputation block), never during normal operation — public data, no telemetry. A served snapshot is never presented as live — the response carries _meta.dataPath: "snapshot" plus an asOf timestamp, and complete is forced off, so an AI agent (and you) always see the staleness. A rate limit (429) is always honored, never routed around onto the mirror.
-
Disable it (pure live-only): set
SAMGOV_SNAPSHOT_BASE_URL=off. Then no snapshot path is ever added and behavior is byte-for-byte identical to a live-only client. -
Point at your own mirror: set
SAMGOV_SNAPSHOT_BASE_URLto your base URL to host the snapshots yourself instead of using the public default. -
Build the snapshots: run
node scripts/build-snapshots.mjsfrom any clean, non-blocked egress (a laptop / home / clean CI runner). It self-diagnoses per-source reachability, prints a reachability table, and writes amanifest.json. On partial coverage it refreshes only the sources it can reach and leaves the last-good file in place for the rest (stale-but-honest, never blanked). It exits non-zero only when zero sources were reachable (a fully blocked egress — the signal to re-run from a cleaner one). -
The honest boundary. This covers public-data availability only. The snapshot builder ingests only public, redistributable (public-domain / CC0) data, and the reader refuses to serve any envelope not marked
accessLevel: "public". It honors rate limits (a 429 is never routed around), uses no proxies, no IP rotation, no auth/paywall/CAPTCHA bypass, and refuses off-host redirects. If a source is blocked, the honest remedy is to build from a cleaner egress — not to evade the block.
Troubleshooting
Use as a TypeScript / JavaScript library (no MCP)
Beyond the MCP server, this package also exports the underlying federal-data clients as importable modules. Useful if you're building your own SaaS, AI agent, or CLI and want programmatic access without spawning an MCP server.
This is the canonical home for the Cliwant federal-data libraries — there
is no separate library package. Two earlier repos (govicon-sam-gov and
govicon-mcp-sam-gov) have been archived and consolidated here. All
client code lives in src/sam-gov/, src/usaspending.ts,
src/federal-register.ts, src/ecfr.ts, src/grants.ts.
Privacy Policy
This server runs locally and collects nothing — no telemetry, no analytics, no accounts. Your prompts and results are processed in memory on your machine and are never sent to Cliwant. Each tool calls the relevant official government API directly over HTTPS; optional API keys stay in your local environment and are sent only to that source. See the full Privacy Policy (contact: [email protected]).
License
MIT — see LICENSE.
Disclaimer
This is an independent open-source project. It is not affiliated with, endorsed by, or sponsored by the General Services Administration, SAM.gov, USAspending.gov, the Office of the Federal Register, the National Archives, Grants.gov, or any federal, state, or local government agency. It uses only publicly available government open-data endpoints; federal procurement, spending, and regulation data is in the public domain.
来源:README.md,提交 6e181f7
工具
0版本历史
6- v1.17.0最新Sep 29, 2026
- v1.16.0Sep 22, 2026
- v1.15.0Sep 21, 2026
- v1.14.0Sep 18, 2026
- v1.13.2Sep 17, 2026
- v1.13.1Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分