sam-gov-mcp
Search SAM.gov contract opportunities (read-only). Bring your own free SAM.gov API key.
- 01Stars
- 0
- 02Version
- 0.1.0
- 03License
- MIT
- 04Review
- Passed
- Language
- TypeScript
- Last commit
- 1h ago
- Forks
- 0
- Open issues
- 0
- Registry update
- Oct 15, 2026
Connect
npm$claude mcp add sam-gov-mcp \ -e SAM_API_KEY=<sam-api-key> \ -- npx -y @itcustomsolution/[email protected]
Environment variables
SAM_API_KEYrequiredsecretYour free SAM.gov API key (sam.gov > Account Details > API Key)
Security review
Review passedReviewed 26m ago.
- metadata
- scanned
- packages
- 1 checked
No findings.
Tools
This server runs on your machine, so its tool list is not fetched before install — the README below describes what it offers.
sam-gov-mcp
An MCP server that lets AI assistants (Claude Desktop, Cursor, and other MCP clients) search SAM.gov contract opportunities through the public SAM.gov Get Opportunities API.
- Read-only. It only searches and reads public notices.
- Bring your own key. You supply a free SAM.gov API key in
SAM_API_KEY. The key is never logged and is redacted from errors and returned links. - No ranking or scoring. It returns what SAM.gov returns, summarized.
Quickstart
-
Get a free API key: sign in at sam.gov → Account Details → API Key.
-
Install. Claude Code:
claude mcp add sam-gov -e SAM_API_KEY=your-key-here -- npx -y @itcustomsolution/sam-gov-mcpOr run it directly:
SAM_API_KEY=your-key-here npx -y @itcustomsolution/sam-gov-mcp -
Add it to your MCP client. Claude Desktop (
claude_desktop_config.json):{ "mcpServers": { "sam-gov": { "command": "npx", "args": ["-y", "@itcustomsolution/sam-gov-mcp"], "env": { "SAM_API_KEY": "your-key-here" } } } } -
Ask: "Find small-business set-aside opportunities for NAICS 541512 posted in the last 30 days in Maryland."
Tools
| Tool | What it does | Inputs |
|---|---|---|
search_opportunities | Search notices | posted_from, posted_to (required, YYYY-MM-DD or MM/DD/YYYY, max 1-year range), keywords (title), naics, set_aside, state, limit (1–100, default 10), offset |
get_opportunity | Full JSON for one notice | notice_id (looks back 1 year) |
list_set_aside_codes | Set-aside codes and meanings | none |
Search results are summarized to: noticeId, title, solicitationNumber, agency, postedDate, responseDeadline, type, setAside, naics, state, uiLink.
Scope and limits
- SAM.gov requires a posted-date range of 1 year or less on every search; the server validates this before calling the API.
- Public API keys have daily rate limits set by GSA. Errors from SAM.gov are passed back as tool errors (with the key redacted).
- Out of scope: entity/UEI lookup, award data, attachments download, bid/no-bid scoring.
Development
npm install
npm test # vitest, HTTP fully mocked, no key needed
npm run build
Never commit a real key. .env is git-ignored.
License
MIT © IT Custom Solution
From the server's repository — third-party content, read it before running anything it suggests.
More in Public data
TerraMCP
io.github.camerhann
Discover curated water, environment, terrain and civil engineering MCP servers and open data.
Nameidea
io.github.iyuyoung
Search recorded surnames with 2010 U.S. Census ranks, counts and traceable sources.
Cedulon
io.github.dogrucanemek-alt
Policy-gated agent spend with signed receipts and rail-extract audit
brightspace
io.github.RohanMuppa
D2L Brightspace MCP server: grades, due dates, assignments, announcements and files. Any school.
kio-orzeczenia-mcp
io.github.matematicsolutions
MCP server for Krajowa Izba Odwolawcza (KIO) rulings from orzeczenia.uzp.gov.pl.
ConformRadar
com.conformradar
Check online shops and pages against French e-commerce and consumer law, with legal references.
Listing from the official MCP Registry · repository facts from GitHub, 28m ago.