# SAM.gov

Accesses US federal contracting data through SAM.gov. Provides 20 tools to inspect entities, active opportunities, awards, and exclusions.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 27
- Author: 1102tools-dev
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/1102tools-dev/federal-contracting-mcps/tree/HEAD/servers/sam-gov-mcp
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/mcp/samgov

## What it does

This server connects AI assistants to federal procurement records through 20 specialized tools. It handles checks for entity registrations and vendor exclusions.

The toolset also retrieves procurement opportunities, awarded contracts, and subawards. Running the package locally via `uvx` requires setting the `SAM_API_KEY` environment variable. Alternatively, you can point your client directly to the hosted HTTP endpoint.

## Requirements
- Needs: Python and uv (commands run via uvx)
- Remote server: `https://sam.1102tools.com/mcp`
- Environment variables: `SAM_API_KEY` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

1. **Platform CLI: remote server**
```bash
claude mcp add --transport http sam-gov-mcp https://sam.1102tools.com/mcp
```

2. **Platform CLI**
```bash
claude mcp add --env SAM_API_KEY=<SAM_API_KEY> --transport stdio sam-gov-mcp -- uvx sam-gov-mcp
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from sam-gov-mcp <command>

### Codex

1. **Platform CLI: remote server**
```bash
codex mcp add sam-gov-mcp --url https://sam.1102tools.com/mcp
```

2. **Platform CLI**
```bash
codex mcp add sam-gov-mcp --env SAM_API_KEY=<SAM_API_KEY> -- uvx sam-gov-mcp
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from sam-gov-mcp <command>

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "sam-gov-mcp": {
            "url": "https://sam.1102tools.com/mcp"
        }
    }
}
```
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "sam-gov-mcp": {
            "command": "uvx",
            "args": [
                "sam-gov-mcp"
            ],
            "env": {
                "SAM_API_KEY": "<SAM_API_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from sam-gov-mcp <command>

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "sam-gov-mcp": {
            "type": "http",
            "url": "https://sam.1102tools.com/mcp"
        }
    }
}
```
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "sam-gov-mcp": {
            "type": "stdio",
            "command": "uvx",
            "args": [
                "sam-gov-mcp"
            ],
            "env": {
                "SAM_API_KEY": "<SAM_API_KEY>"
            }
        }
    }
}
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from sam-gov-mcp <command>

### Gemini CLI

1. **Platform CLI: remote server**
```bash
gemini mcp add -t http sam-gov-mcp https://sam.1102tools.com/mcp
```

2. **Platform CLI**
```bash
gemini mcp add -e SAM_API_KEY=<SAM_API_KEY> sam-gov-mcp uvx sam-gov-mcp
```
Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from sam-gov-mcp <command>

## When to use it
- Look up registered entities in the SAM.gov database
- Verify vendor status against federal exclusion lists
- Retrieve active contracting opportunities and award notices
- Inspect federal agency hierarchy and subaward records

## Example prompts
- Check if an entity is currently listed in federal exclusions
- Search for active contract opportunities in SAM.gov
- Retrieve details on recent federal awards and subawards

## Similar
- [World Monitor](https://affpapa.org/en/nevibecode/mcp/world-monitor.md) — MCP server · ★ 89609
- [CCXT](https://affpapa.org/en/nevibecode/mcp/ccxt.md) — MCP server · ★ 44591
- [Finance Toolkit](https://affpapa.org/en/nevibecode/mcp/finance-toolkit.md) — MCP server · ★ 5469
- [EdgarTools](https://affpapa.org/en/nevibecode/mcp/edgartools.md) — MCP server · ★ 2817
- [LetsFG — Flights & Hotels](https://affpapa.org/en/nevibecode/mcp/letsfg-flights-hotels.md) — MCP server · ★ 2197
- [AutoTS](https://affpapa.org/en/nevibecode/mcp/autots.md) — MCP server · ★ 1434

From the same set: [1102tools-dev/federal-contracting-mcps](https://affpapa.org/en/nevibecode/by/1102tools-dev/federal-contracting-mcps.md) — 9 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
