SAM.gov
v0.4.1SAM.gov entity registration, exclusions, opportunities, contract awards.
Starts only with mcp<2 (written for an older SDK); the install commands pin it.
Values you need
| Variable | What it is | |
|---|---|---|
SAM_API_KEY | required secret | Free SAM.gov API key from https://sam.gov. Rotates every 90 days. |
PyPI (uvx) discovery passed
Requires uv (https://docs.astral.sh/uv/)
Run in a terminal
claude mcp add sam-gov-mcp -e 'SAM_API_KEY=<SAM_API_KEY>' -- uvx --with 'mcp<2' sam-gov-mcp==0.4.1Add to
claude_desktop_config.json{
"mcpServers": {
"sam-gov-mcp": {
"args": [
"--with",
"mcp<2",
"sam-gov-mcp==0.4.1"
],
"command": "uvx",
"env": {
"SAM_API_KEY": "<SAM_API_KEY>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"sam-gov-mcp": {
"args": [
"--with",
"mcp<2",
"sam-gov-mcp==0.4.1"
],
"command": "uvx",
"env": {
"SAM_API_KEY": "<SAM_API_KEY>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "SAM_API_KEY",
"id": "sam-api-key",
"password": true,
"type": "promptString"
}
],
"servers": {
"sam-gov-mcp": {
"args": [
"--with",
"mcp<2",
"sam-gov-mcp==0.4.1"
],
"command": "uvx",
"env": {
"SAM_API_KEY": "${input:sam-api-key}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.sam-gov-mcp]
command = "uvx"
args = ["--with", "mcp<2", "sam-gov-mcp==0.4.1"]
env = { "SAM_API_KEY" = "<SAM_API_KEY>" }For AI agents
- Ask the user for: SAM_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: lookup_entity_by_uei, lookup_entity_by_cage, search_entities, get_entity_reps_and_certs, get_entity_integrity_info, check_exclusion_by_uei, search_exclusions, search_opportunities, ….
- If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.
Machine-readable: install.md · manifest.json