mcp-sam-gov
The most comprehensive keyless federal-data MCP server. 36 tools for SAM.gov + USAspending + Federal Register + eCFR + Grants.gov. No API key, no registration, no signup. Works in Claude Desktop, Claude Code, Codex CLI, Cursor, Continue, Gemini CLI, and any MCP-aware host.
README
<div align="center">
@cliwant/mcp-sam-gov
$4 trillion of public federal data, one npm install away.
The most comprehensive keyless MCP server for US federal contracting + spending + regulation. 36 tools that work today, in any AI agent.
</div>
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: Rebecca Gobble <rebecca.gobble@va.gov> +1-410-642-2411
Set-aside: Total Small Business
Attachments: 1 ↓ 36C24526Q0460_1.docx (172 KB)
SOW preview: "RFQ# 36C24526Q0460 — Bulk Oxygen Tank Rental, Fill, Telemetry…"
Zero API key. Zero registration. Zero signup. Just plug it in and ask.
Why this exists
| Status quo | With this MCP |
|---|---|
| GovWin: $30K-$100K/yr per seat | Free, MIT license |
| API key registration → wait 24h → quota tier shopping | npm install → working in 60s |
| 5 separate vendor APIs / scrapers | 1 unified surface, 36 tools |
| LLMs hallucinate NAICS codes / agency names | Anti-hallucination autocomplete guards built-in |
| Brittle scraping breaks weekly | Daily live smoke test (badge above) |
| Procurement officer → IT ticket → 3-week wait | Claude 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)
| Domain | What you can ask | Tools |
|---|---|---|
| 🔍 Active opportunities | "Find SAM.gov solicitations under NAICS 541512 closing this month" | 5 SAM.gov tools |
| 💰 Awards & recipients | "Show me Booz Allen wins at VA last fiscal year" | 8 USAspending tools |
| 📊 Aggregate analysis | "Top 10 PSC categories at DoD by spending FY26" | 6 USAspending tools |
| 🏛 Agency profiles | "What's VA's mission? FY25 budget breakdown?" | 3 USAspending tools |
| 🏢 Recipient profiles | "Pull Booz Allen's full recipient profile + alternate names" | 2 USAspending tools |
| 🧠 Anti-hallucination | NAICS / recipient / agency autocomplete + glossary | 5 USAspending tools |
| 📜 Federal Register | "What VA cybersecurity rules were published this quarter?" | 3 tools |
| ⚖️ Regulations (FAR/CFR) | "Find FAR sections about SDVOSB set-aside" | 2 eCFR tools |
| 🎓 Federal grants | "Cybersecurity grants posted in the last 30 days" | 2 Grants.gov tools |
36 tools total. Zero API keys. p50 latency 257ms, p95 766ms (live benchmarks against federal APIs).
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):
/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 36 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.
⚪ 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
Claude Desktop
%APPDATA%\Claude\claude_desktop_config.json (Windows) or ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):
{
"mcpServers": {
"sam-gov": { "command": "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 (36 tools)".
Claude Code
Per-project .mcp.json:
{ "mcpServers": { "sam-gov": { "command": "mcp-sam-gov" } } }
Or globally:
claude mcp add sam-gov mcp-sam-gov
Codex CLI
~/.codex/config.toml:
[mcp_servers.sam-gov]
command = "mcp-sam-gov"
args = []
Cursor
Settings → MCP → Add new MCP server:
{ "mcpServers": { "sam-gov": { "command": "mcp-sam-gov" } } }
Continue
~/.continue/config.json:
{
"experimental": {
"modelContextProtocolServer": {
"transport": { "type": "stdio", "command": "mcp-sam-gov" }
}
}
}
Gemini CLI
~/.gemini/settings.json:
{ "mcpServers": { "sam-gov": { "command": "mcp-sam-gov" } } }
Anything else
If your host speaks MCP over stdio, point it at mcp-sam-gov. 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
- "Find FAR sections about SDVOSB set-aside requirements"
- "What new VA cybersecurity rules were published this quarter?"
- "Is there a Federal Register doc number 2026-08333? Pull the citation."
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:
{
"mcpServers": {
"sam-gov": {
"command": "mcp-sam-gov",
"env": { "SAM_GOV_API_KEY": "your-key-here" }
}
}
}
Get a free key at sam.gov/SAM/pages/public/searchKeyData.jsf. The agent doesn't need to know — the key path is transparent.
Tool catalog (36 tools)
<details> <summary><b>SAM.gov — opportunities + attachments (5 tools)</b></summary>
sam_search_opportunities— keyless HAL search (~47K active)sam_get_opportunity— full detail by 32-char hex noticeId (POCs + attachments + body)sam_fetch_description— full RFP body as plain textsam_attachment_url— public download URL for resourceIdsam_lookup_organization— federal-organization id → fullParentPathName </details>
<details> <summary><b>USAspending — awards + recipients (8 tools)</b></summary>
usas_search_awards— share-of-wallet at agency × NAICSusas_search_individual_awards— line items (returns generatedInternalId)usas_search_subagency_spending— buyer-office breakdownusas_lookup_agency— abbreviation → canonical nameusas_search_awards_by_recipient— recipient win historyusas_search_subawards— supply-chain / teamingusas_search_expiring_contracts— recompete radarusas_get_award_detail— period of performance, options, set-aside, competition </details>
<details> <summary><b>USAspending — aggregate analysis (6 tools)</b></summary>
usas_spending_over_time— fiscal_year / quarter / month time seriesusas_search_psc_spending— PSC market structureusas_search_state_spending— geographic distributionusas_search_cfda_spending— grant programsusas_search_federal_account_spending— Treasury Account Symbols (TAS)usas_search_agency_spending— top buying agencies for NAICS / set-aside </details>
<details> <summary><b>USAspending — agency profile (3 tools)</b></summary>
usas_get_agency_profile— mission, abbreviation, websiteusas_get_agency_awards_summary— transaction count + obligationsusas_get_agency_budget_function— budget breakdown by program area </details>
<details> <summary><b>USAspending — recipient profile (2 tools)</b></summary>
usas_search_recipients— list with parent/child hierarchyusas_get_recipient_profile— full detail (DUNS, UEI, alternate names, totals) </details>
<details> <summary><b>USAspending — reference / autocomplete (5 tools)</b></summary>
usas_autocomplete_naics— anti-hallucination NAICS guardusas_autocomplete_recipient— anti-hallucination recipient guardusas_naics_hierarchy— navigate NAICS treeusas_glossary— 151 federal-spending termsusas_list_toptier_agencies— list all toptier agencies + obligations </details>
<details> <summary><b>Federal Register — rules + notices (3 tools)</b></summary>
fed_register_search_documents— search by query / agency / type / datefed_register_get_document— citation, body URL, CFR refsfed_register_list_agencies— agency slugs reference </details>
<details> <summary><b>eCFR — Code of Federal Regulations (2 tools)</b></summary>
ecfr_search— full-text search (titleNumber=48 for FAR)ecfr_list_titles— all 50 CFR titles + last-amended dates </details>
<details> <summary><b>Grants.gov — federal grants (2 tools)</b></summary>
grants_search— opportunity searchgrants_get_opportunity— full grant detail </details>
Troubleshooting
| Symptom | Fix |
|---|---|
Claude Desktop 🔨 menu doesn't show sam-gov |
Fully quit Claude Desktop (system tray on Windows / Quit menu on macOS) and reopen. Check %APPDATA%\Claude\logs\mcp*.log |
command not found: mcp-sam-gov |
Confirm npm install -g . succeeded; check that npm's global bin is on PATH (npm config get prefix) |
MODULE_NOT_FOUND ...dist/server.js after npm install -g github:... |
npm bug with git-dep symlinks on Windows. Use the clone + npm install -g . recipe (Path 3) instead. |
EPERM: operation not permitted, rmdir during install |
Previous failed install left dangling files. Run rmdir /s /q "%APPDATA%\npm\node_modules\@cliwant" (or @govicon if you installed an early version) then retry. |
npm install fails with "private repo" / 404 |
The repo is now public — should not happen. If it does, try git clone https://github.com/cliwant/mcp-sam-gov.git directly. |
| Tools return empty results | SAM.gov rate-limits aggressive callers. Wait 1 minute. Or set SAM_GOV_API_KEY for the higher-rate authenticated path. |
| "Tool error: USAspending POST returned 400" | Usually means a field has a wrong type (e.g. fiscal year as string). Check the tool input schema in your host's tool browser. |
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.
npm install @cliwant/mcp-sam-gov
// SAM.gov client
import { SamGovClient } from "@cliwant/mcp-sam-gov/sam-gov";
const sam = new SamGovClient(); // keyless
const result = await sam.searchOpportunities({ ncode: "541512", limit: 5 });
const opp = await sam.getOpportunity("5ef3db5daeb54099a96d487783a38bd0");
// USAspending wrappers (22 functions)
import * as usas from "@cliwant/mcp-sam-gov/usaspending";
const recompete = await usas.searchExpiringContracts({
agency: "Department of Veterans Affairs",
naics: "541512",
monthsUntilExpiry: 12,
});
const recipient = await usas.getRecipientProfile("ed02855e-60d7-2540-...-P");
// Federal Register / eCFR / Grants.gov
import * as fedreg from "@cliwant/mcp-sam-gov/federal-register";
import * as ecfr from "@cliwant/mcp-sam-gov/ecfr";
import * as grants from "@cliwant/mcp-sam-gov/grants";
const farResults = await ecfr.search({ query: "SDVOSB", titleNumber: 48 });
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.
License
MIT — see LICENSE.
Disclaimer
This server uses publicly available federal API endpoints. It is not affiliated with the General Services Administration, SAM.gov, USAspending.gov, the Office of the Federal Register, the National Archives, Grants.gov, or any federal agency. Federal procurement, spending, and regulation data is in the public domain.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。