原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

MCP Sam Gov

作者:cliwant版本 1.17.0i★ –i在你的电脑上运行
注册名称io.github.cliwant/mcp-sam-gov

安装

概览

作者提供的说明(英文原文)

Keyless-first MCP: 153 tools for US federal + state/local (SLED) contracting, spending & regulation

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 法律与政府数据
  • 你需要填写:SAM_GOV_API_KEY, CENSUS_API_KEY, FRED_API_KEY, BEA_API_KEY, BLS_API_KEY, DOL_API_KEY, DATA_GOV_API_KEY, NVD_API_KEY, OPENFDA_API_KEY, SOCRATA_APP_TOKEN, COURTLISTENER_API_TOKEN, LDA_API_KEY

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: SAM_GOV_API_KEY, CENSUS_API_KEY, FRED_API_KEY, BEA_API_KEY, BLS_API_KEY, DOL_API_KEY, DATA_GOV_API_KEY, NVD_API_KEY, OPENFDA_API_KEY, SOCRATA_APP_TOKEN, COURTLISTENER_API_TOKEN, LDA_API_KEY, EDGAR_USER_AGENT, MCP_SAM_GOV_TOOLSETS

标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。

你需要

  • npm已安装 Node.js(用于 npx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 claude_desktop_config.json

{
  "mcpServers": {
    "sam-gov": {
      "command": "npx",
      "args": [
        "-y",
        "@cliwant/mcp-sam-gov"
      ],
      "env": {
        "SAM_GOV_API_KEY": "your-value",
        "CENSUS_API_KEY": "your-value",
        "FRED_API_KEY": "your-value",
        "BEA_API_KEY": "your-value",
        "BLS_API_KEY": "your-value",
        "DOL_API_KEY": "your-value",
        "DATA_GOV_API_KEY": "your-value",
        "NVD_API_KEY": "your-value",
        "OPENFDA_API_KEY": "your-value",
        "SOCRATA_APP_TOKEN": "your-value",
        "COURTLISTENER_API_TOKEN": "your-value",
        "LDA_API_KEY": "your-value",
        "EDGAR_USER_AGENT": "your-value",
        "MCP_SAM_GOV_TOOLSETS": "your-value"
      }
    }
  }
}

在终端中运行这条命令

claude mcp add sam-gov --env SAM_GOV_API_KEY=your-value --env CENSUS_API_KEY=your-value --env FRED_API_KEY=your-value --env BEA_API_KEY=your-value --env BLS_API_KEY=your-value --env DOL_API_KEY=your-value --env DATA_GOV_API_KEY=your-value --env NVD_API_KEY=your-value --env OPENFDA_API_KEY=your-value --env SOCRATA_APP_TOKEN=your-value --env COURTLISTENER_API_TOKEN=your-value --env LDA_API_KEY=your-value --env EDGAR_USER_AGENT=your-value --env MCP_SAM_GOV_TOOLSETS=your-value -- npx -y @cliwant/mcp-sam-gov

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.cursor/mcp.json

{
  "mcpServers": {
    "sam-gov": {
      "command": "npx",
      "args": [
        "-y",
        "@cliwant/mcp-sam-gov"
      ],
      "env": {
        "SAM_GOV_API_KEY": "your-value",
        "CENSUS_API_KEY": "your-value",
        "FRED_API_KEY": "your-value",
        "BEA_API_KEY": "your-value",
        "BLS_API_KEY": "your-value",
        "DOL_API_KEY": "your-value",
        "DATA_GOV_API_KEY": "your-value",
        "NVD_API_KEY": "your-value",
        "OPENFDA_API_KEY": "your-value",
        "SOCRATA_APP_TOKEN": "your-value",
        "COURTLISTENER_API_TOKEN": "your-value",
        "LDA_API_KEY": "your-value",
        "EDGAR_USER_AGENT": "your-value",
        "MCP_SAM_GOV_TOOLSETS": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

在 VS Code 中打开

或者自己复制设置

粘贴到项目中的 .vscode/mcp.json

{
  "servers": {
    "sam-gov": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@cliwant/mcp-sam-gov"
      ],
      "env": {
        "SAM_GOV_API_KEY": "your-value",
        "CENSUS_API_KEY": "your-value",
        "FRED_API_KEY": "your-value",
        "BEA_API_KEY": "your-value",
        "BLS_API_KEY": "your-value",
        "DOL_API_KEY": "your-value",
        "DATA_GOV_API_KEY": "your-value",
        "NVD_API_KEY": "your-value",
        "OPENFDA_API_KEY": "your-value",
        "SOCRATA_APP_TOKEN": "your-value",
        "COURTLISTENER_API_TOKEN": "your-value",
        "LDA_API_KEY": "your-value",
        "EDGAR_USER_AGENT": "your-value",
        "MCP_SAM_GOV_TOOLSETS": "your-value"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • SAM_GOV_API_KEY 机密 env
    Optional. SAM.gov key for higher rate limits + archives older than 12 months. Keyless by default.
  • CENSUS_API_KEY 机密 env
    Required only for census_business_patterns (the Census Data API has no keyless tier); every other tool works without it.
  • FRED_API_KEY 机密 env
    Required only for fred_search_series and fred_series_observations (FRED has no keyless tier); every other tool works without it.
  • BEA_API_KEY 机密 env
    Required only for bea_regional_data (the BEA Data API has no keyless tier); every other tool works without it.
  • BLS_API_KEY 机密 env
    Optional free key for BLS labor-statistics tools (raises rate limits).
  • DOL_API_KEY 机密 env
    Required only for dol_get_dataset (DOL's data endpoint has no keyless tier; dol_list_datasets works without it).
  • DATA_GOV_API_KEY 机密 env
    Optional free api.data.gov key; raises DEMO_KEY limits for Regulations.gov, Congress.gov, GovInfo, FAC, the data.gov catalog and GSA per-diem.
  • NVD_API_KEY 机密 env
    Optional free NVD key (raises CVE rate limits).
  • OPENFDA_API_KEY 机密 env
    Optional free openFDA key (raises rate limits).
  • SOCRATA_APP_TOKEN 机密 env
    Optional Socrata app token (raises rate limits on SLED Socrata hosts).
  • COURTLISTENER_API_TOKEN 机密 env
    Optional CourtListener (Free Law Project) token (raises rate limits).
  • LDA_API_KEY 机密 env
    Optional Senate LDA lobbying-disclosure key (raises rate limits).
  • EDGAR_USER_AGENT env
    Optional SEC EDGAR User-Agent string (courtesy identification; a sensible default is used otherwise).
  • MCP_SAM_GOV_TOOLSETS env
    Optional. Comma-separated toolset names to load (e.g. core,sled). Blank or 'all' loads all 153 tools.

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月8日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 cliwant 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“法律与政府数据”中的其他服务器比较i

  • 星标数多于此分类中其他 1745 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 1745 个服务器的 45% 更新
  • 基础检查结果等于或优于此分类中其他 1745 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

MCP Sam Gov 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:SAM_GOV_API_KEY, CENSUS_API_KEY, FRED_API_KEY, BEA_API_KEY, BLS_API_KEY, DOL_API_KEY, DATA_GOV_API_KEY, NVD_API_KEY, OPENFDA_API_KEY, SOCRATA_APP_TOKEN, COURTLISTENER_API_TOKEN, LDA_API_KEY

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(1.17.0)于40天前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Node.js。

有什么可以替代它?

同一分类中有:USVI Public Records, Korean Government Documents (HWPX), Korea Tax Law

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:↓ 每周下载量i★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

USVI Public Records

Search and read U.S. Virgin Islands public records: laws, court records, audits, hearings, reports.

作者:usvipublicrecords.com起步阶段今天更新

在云端运行✓ usvipublicrecords.com

Korean Government Documents (HWPX)

Turns a draft into a Korean government report or press release as HWPX in each ministry's format

作者:UpstageAI非常新↓ 103/周今天更新

在你的电脑上运行

Korea Tax Law

Korea tax law: NTS rulings, court/tribunal decisions, basic rules, treaties, point-in-time statutes

作者:UpstageAI起步阶段↓ 1529/周今天更新

在你的电脑上运行

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

@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.

English · 한국어 · 日本語


See it in action

👤  user        Find active SAM.gov solicitations under NAICS 541512 closing this month

🤖 Claude → sam_search_opportunities { ncode: "541512", limit: 5 } ✓ 47,478 active opportunities indexed

• 5ef3db5d… VA Bulk Oxygen Tank Rental closes 2026-05-15 ($1.05M) • a000339c… Articulating Boom Lifts closes 2026-05-30 ($310K) • be9c24ef… CMOP Hazardous Waste Removal closes 2026-06-12 ($2.7M)

👤 user Pull the SOW + contracting officer for the first one

🤖 Claude → sam_get_opportunity { noticeId: "5ef3db5d…" } ✓ Department of Veterans Affairs · Combined Synopsis/Solicitation POC: Contracting Officer +1-XXX-XXX-XXXX Set-aside: Total Small Business Attachments: 1 ↓ 36C24526Q0460_1.docx (172 KB) SOW preview: "RFQ# 36C24526Q0460 — Bulk Oxygen Tank Rental, Fill, Telemetry…"

No API key, registration or signup for 148 of the 153 tools. Just plug it in and ask.


Why this exists

Status quoWith this MCP
GovWin: $30K-$100K/yr per seatFree, MIT license
API key registration → wait 24h → quota tier shoppingnpm install → working in 60s
5+ separate vendor APIs / scrapers1 unified surface, 153 tools across 54 sources
LLMs hallucinate NAICS codes / agency namesAnti-hallucination autocomplete guards built-in
Brittle scraping breaks weeklyDaily live smoke test (badge above)
Procurement officer → IT ticket → 3-week waitClaude Desktop double-click install

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)

DomainWhat you can askSources
🔍 Opportunities & solicitations"Find SAM.gov solicitations under NAICS 541512 closing this month" — read the SOW, POCs, attachmentsSAM.gov, Grants.gov
💰 Spending, awards & competition"Show me Booz Allen wins at VA last fiscal year; top 10 PSC categories at DoD"USAspending, FPDS, GAO
🕵️ Entity & partner vetting"Screen this firm: OFAC sanctions, SAM exclusions, single-audit findings, bank health, EPA compliance + toxics-release"OFAC, SAM, FAC, FDIC, EPA ECHO, EPA Envirofacts
🛒 Product safety & recalls"Any FDA/NHTSA/CPSC recalls or enforcement against this supplier's products?"openFDA, NHTSA, CPSC
⚖️ Litigation & courts"Any Court of Federal Claims bid protests or Federal Circuit opinions involving this contractor?"CourtListener (Free Law Project)
🏢 Nonprofit vendors"Pull this nonprofit's IRS-990 financials before we subcontract to it"IRS 990 (via ProPublica)
🏥 Healthcare providers & facilities"Medicare utilization & payments for this provider; hospital quality ratings; is this provider on the revocation list?"CMS (data.cms.gov)
📈 Financial disclosure (SEC)"Pull this public company's revenue trend and latest 10-K filings"SEC EDGAR
⚖️ Regulatory & legislative"What VA cybersecurity rules were published this quarter? Any open Regulations.gov dockets?"Federal Register, Regulations.gov, eCFR, FAR/DFARS, Congress.gov, GovInfo
💲 Pricing, labor & fiscal"GSA CALC labor-rate band for a systems analyst; SCA wage determination for this county; CPI escalation; per-diem cap for a trip; regional GDP by industry; DOL wage-hour enforcement history"GSA CALC, SAM WDs, BLS, US Census CBP, FRED, BEA, US Treasury, GSA per-diem, US DOL
🏛 Lobbying & influence"Who lobbies the VA on cybersecurity, and how much do they spend?"US Senate LDA
🏥 Health & research funding"NIH/NSF grants on this topic; recruiting clinical trials; industry payments to this physician"NIH RePORTER, NSF, ClinicalTrials.gov, CMS Open Payments, NPPES
🛡 Cyber compliance"Is this CVE on the CISA KEV must-patch list?"NVD, CISA KEV
🌐 Trade, geo & disaster"HTS tariff for this product; Census tract for this address; FEMA declarations in this state"USITC HTS, US Census, FEMA, Socrata, CKAN
🏙 State/local procurement bids (SLED)"What's open on this city's/county's procurement portal right now? Their checkbook, awarded contracts, vendor payments; state DOT bid/award registers"OpenGov Procurement (525+ govs), Bonfire, ArcGIS (feature + Hub), Socrata (54 hosts), one Tableau Server Guest view (Montana), one Socrata Open Expenditures checkbook (South Dakota)
🎓 Grants & datasets"Cybersecurity grants posted in the last 30 days; discover federal open datasets"Grants.gov, data.gov

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.

  1. Download `mcp-sam-gov.mcpb` from the latest release.
  2. Double-click the file. Claude Desktop opens with an "Install Extension" dialog.
  3. Click Install.
  4. 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):

/plugin install cliwant/mcp-sam-gov

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:

gh repo clone cliwant/mcp-sam-gov

cd mcp-sam-gov npm install --omit=dev npm install -g .

After install, the binary mcp-sam-gov is on your PATH. Add this to your host config:

{

"mcpServers": { "sam-gov": { "command": "mcp-sam-gov" } } }

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:

gh repo clone cliwant/mcp-sam-gov

cd mcp-sam-gov npm install --omit=dev # only runtime deps; dist/ is pre-built

Then point your host config at the absolute path:

{

"mcpServers": { "sam-gov": { "command": "node", "args": ["C:\\Users\\you\\mcp-sam-gov\\dist\\server.js"] } } }


Host configurations

Each host below shows two variants. Use one of them:

  • Global install: "command": "mcp-sam-gov". This works only after npm install -g (Path 3) has put the mcp-sam-gov binary 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-gov is only the name of the binary that a global install puts on your PATH. No unscoped mcp-sam-gov package exists on npm, so npx -y mcp-sam-gov fails with a 404. Use npx -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:

{

"mcpServers": { "sam-gov": { "command": "mcp-sam-gov" } } }

No global install (npx):

{

"mcpServers": { "sam-gov": { "command": "npx", "args": ["-y", "@cliwant/mcp-sam-gov"] } } }

On Windows, if the server fails to start with spawn npx ENOENT in %APPDATA%\Claude\logs\mcp*.log, wrap npx in cmd /c:

{

"mcpServers": { "sam-gov": { "command": "cmd", "args": ["/c", "npx", "-y", "@cliwant/mcp-sam-gov"] } } }

(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:

{ "mcpServers": { "sam-gov": { "command": "mcp-sam-gov" } } }

No global install (npx):

{ "mcpServers": { "sam-gov": { "command": "npx", "args": ["-y", "@cliwant/mcp-sam-gov"] } } }

Or with the CLI:

# global install

claude mcp add sam-gov mcp-sam-gov

no global install (npx)

claude mcp add sam-gov -- npx -y @cliwant/mcp-sam-gov

Codex CLI

~/.codex/config.toml:

Global install:

[mcp_servers.sam-gov]

command = "mcp-sam-gov" args = []

No global install (npx):

[mcp_servers.sam-gov]

command = "npx" args = ["-y", "@cliwant/mcp-sam-gov"]

Cursor

Settings → MCP → Add new MCP server. Global install:

{ "mcpServers": { "sam-gov": { "command": "mcp-sam-gov" } } }

No global install (npx):

{ "mcpServers": { "sam-gov"

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx