SAM.gov — Claude Code MCP server: what it does, how to install
Accesses US federal contracting data through SAM.gov. Provides 20 tools to inspect entities, active opportunities, awards, and exclusions.
claude mcp add --transport http sam-gov-mcp https://sam.1102tools.com/mcpWhat SAM.gov 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.
What it helps with
- 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 for the agent
- 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
How to install SAM.gov
1Platform CLI: remote server
claude mcp add --transport http sam-gov-mcp https://sam.1102tools.com/mcp2Platform CLI
claude mcp add --env SAM_API_KEY=<SAM_API_KEY> --transport stdio sam-gov-mcp -- uvx sam-gov-mcpReplace <…> 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>
1Platform CLI: remote server
codex mcp add sam-gov-mcp --url https://sam.1102tools.com/mcp2Platform CLI
codex mcp add sam-gov-mcp --env SAM_API_KEY=<SAM_API_KEY> -- uvx sam-gov-mcpReplace <…> 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>
Config file
{
"mcpServers": {
"sam-gov-mcp": {
"url": "https://sam.1102tools.com/mcp"
}
}
}{
"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>
Config file
{
"servers": {
"sam-gov-mcp": {
"type": "http",
"url": "https://sam.1102tools.com/mcp"
}
}
}{
"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>
1Platform CLI: remote server
gemini mcp add -t http sam-gov-mcp https://sam.1102tools.com/mcp2Platform CLI
gemini mcp add -e SAM_API_KEY=<SAM_API_KEY> sam-gov-mcp uvx sam-gov-mcpReplace <…> 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>
Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about SAM.gov
How to install SAM.gov in Claude Code?
Run claude mcp add --transport http sam-gov-mcp https://sam.1102tools.com/mcp to configure the HTTP connection.
What does the SAM.gov MCP server do?
It gives your agent 20 tools to query federal contracting records. It covers readiness, entities, exclusions, awards, opportunities, hierarchy, and subawards.
Does the server require an API key?
The stdio setup using uvx requires passing SAM_API_KEY. The HTTP endpoint connects directly via https://sam.1102tools.com/mcp.