SAM.gov

v0.4.1
io.github.1102tools/sam-gov-mcp Checked 8 hours ago Published 7 months ago

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

VariableWhat it is
SAM_API_KEYrequired 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.1
Add 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

  1. Ask the user for: SAM_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
  2. 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).
  3. Restart or reload the client so it starts the server.
  4. 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, ….
  5. 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