Sam Gov MCP Server
by cliwantio.github.cliwant/mcp-sam-govv1.17.0
US government contracting, spending and regulation data: SAM.gov, USAspending, Grants.gov, Federal Register, eCFR, OFAC sanctions and state/local bid portals.
context tax
queued
security
queued
cold start
queued
freshness
Active11d ago
Install Sam Gov MCP server
Install in Claude Code
claude mcp add sam-gov -e SAM_GOV_API_KEY='<sam-gov-api-key>' -e CENSUS_API_KEY='<census-api-key>' -e FRED_API_KEY='<fred-api-key>' -e BEA_API_KEY='<bea-api-key>' -e BLS_API_KEY='<bls-api-key>' -e DOL_API_KEY='<dol-api-key>' -e DATA_GOV_API_KEY='<data-gov-api-key>' -e NVD_API_KEY='<nvd-api-key>' -e OPENFDA_API_KEY='<openfda-api-key>' -e SOCRATA_APP_TOKEN='<socrata-app-token>' -e COURTLISTENER_API_TOKEN='<courtlistener-api-token>' -e LDA_API_KEY='<lda-api-key>' -- npx -y @cliwant/mcp-sam-govInstall in Cursor
{
"mcpServers": {
"sam-gov": {
"command": "npx",
"args": [
"-y",
"@cliwant/mcp-sam-gov"
],
"env": {
"SAM_GOV_API_KEY": "<sam-gov-api-key>",
"CENSUS_API_KEY": "<census-api-key>",
"FRED_API_KEY": "<fred-api-key>",
"BEA_API_KEY": "<bea-api-key>",
"BLS_API_KEY": "<bls-api-key>",
"DOL_API_KEY": "<dol-api-key>",
"DATA_GOV_API_KEY": "<data-gov-api-key>",
"NVD_API_KEY": "<nvd-api-key>",
"OPENFDA_API_KEY": "<openfda-api-key>",
"SOCRATA_APP_TOKEN": "<socrata-app-token>",
"COURTLISTENER_API_TOKEN": "<courtlistener-api-token>",
"LDA_API_KEY": "<lda-api-key>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"sam-gov": {
"command": "npx",
"args": [
"-y",
"@cliwant/mcp-sam-gov"
],
"env": {
"SAM_GOV_API_KEY": "<sam-gov-api-key>",
"CENSUS_API_KEY": "<census-api-key>",
"FRED_API_KEY": "<fred-api-key>",
"BEA_API_KEY": "<bea-api-key>",
"BLS_API_KEY": "<bls-api-key>",
"DOL_API_KEY": "<dol-api-key>",
"DATA_GOV_API_KEY": "<data-gov-api-key>",
"NVD_API_KEY": "<nvd-api-key>",
"OPENFDA_API_KEY": "<openfda-api-key>",
"SOCRATA_APP_TOKEN": "<socrata-app-token>",
"COURTLISTENER_API_TOKEN": "<courtlistener-api-token>",
"LDA_API_KEY": "<lda-api-key>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"sam-gov": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@cliwant/mcp-sam-gov"
],
"env": {
"SAM_GOV_API_KEY": "<sam-gov-api-key>",
"CENSUS_API_KEY": "<census-api-key>",
"FRED_API_KEY": "<fred-api-key>",
"BEA_API_KEY": "<bea-api-key>",
"BLS_API_KEY": "<bls-api-key>",
"DOL_API_KEY": "<dol-api-key>",
"DATA_GOV_API_KEY": "<data-gov-api-key>",
"NVD_API_KEY": "<nvd-api-key>",
"OPENFDA_API_KEY": "<openfda-api-key>",
"SOCRATA_APP_TOKEN": "<socrata-app-token>",
"COURTLISTENER_API_TOKEN": "<courtlistener-api-token>",
"LDA_API_KEY": "<lda-api-key>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"sam-gov": {
"command": "npx",
"args": [
"-y",
"@cliwant/mcp-sam-gov"
],
"env": {
"SAM_GOV_API_KEY": "<sam-gov-api-key>",
"CENSUS_API_KEY": "<census-api-key>",
"FRED_API_KEY": "<fred-api-key>",
"BEA_API_KEY": "<bea-api-key>",
"BLS_API_KEY": "<bls-api-key>",
"DOL_API_KEY": "<dol-api-key>",
"DATA_GOV_API_KEY": "<data-gov-api-key>",
"NVD_API_KEY": "<nvd-api-key>",
"OPENFDA_API_KEY": "<openfda-api-key>",
"SOCRATA_APP_TOKEN": "<socrata-app-token>",
"COURTLISTENER_API_TOKEN": "<courtlistener-api-token>",
"LDA_API_KEY": "<lda-api-key>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| SAM_GOV_API_KEY | — | yes | Optional. SAM.gov key for higher rate limits + archives older than 12 months. Keyless by default. |
| CENSUS_API_KEY | — | yes | Required only for census_business_patterns (the Census Data API has no keyless tier); every other tool works without it. |
| FRED_API_KEY | — | yes | Required only for fred_search_series and fred_series_observations (FRED has no keyless tier); every other tool works without it. |
| BEA_API_KEY | — | yes | Required only for bea_regional_data (the BEA Data API has no keyless tier); every other tool works without it. |
| BLS_API_KEY | — | yes | Optional free key for BLS labor-statistics tools (raises rate limits). |
| DOL_API_KEY | — | yes | Required only for dol_get_dataset (DOL's data endpoint has no keyless tier; dol_list_datasets works without it). |
| DATA_GOV_API_KEY | — | yes | Optional free api.data.gov key; raises DEMO_KEY limits for Regulations.gov, Congress.gov, GovInfo, FAC, the data.gov catalog and GSA per-diem. |
| NVD_API_KEY | — | yes | Optional free NVD key (raises CVE rate limits). |
| OPENFDA_API_KEY | — | yes | Optional free openFDA key (raises rate limits). |
| SOCRATA_APP_TOKEN | — | yes | Optional Socrata app token (raises rate limits on SLED Socrata hosts). |
| COURTLISTENER_API_TOKEN | — | yes | Optional CourtListener (Free Law Project) token (raises rate limits). |
| LDA_API_KEY | — | yes | Optional Senate LDA lobbying-disclosure key (raises rate limits). |
| EDGAR_USER_AGENT | — | — | Optional SEC EDGAR User-Agent string (courtesy identification; a sensible default is used otherwise). |
| MCP_SAM_GOV_TOOLSETS | — | — | Optional. Comma-separated toolset names to load (e.g. core,sled). Blank or 'all' loads all 153 tools. |
Freshness
Active — last maintenance signal 11d ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-09-29 · 11d ago · GitHub
Latest release
2026-09-29 · 11d ago · GitHub · v1.17.0
Package published
no data · npm/PyPI
Registry entry updated
2026-09-29 · 11d ago · official registry · v1.17.0
FAQ
›How do I install the Sam Gov MCP server in Claude Code?
Run: claude mcp add sam-gov -e SAM_GOV_API_KEY='<sam-gov-api-key>' -e CENSUS_API_KEY='<census-api-key>' -e FRED_API_KEY='<fred-api-key>' -e BEA_API_KEY='<bea-api-key>' -e BLS_API_KEY='<bls-api-key>' -e DOL_API_KEY='<dol-api-key>' -e DATA_GOV_API_KEY='<data-gov-api-key>' -e NVD_API_KEY='<nvd-api-key>' -e OPENFDA_API_KEY='<openfda-api-key>' -e SOCRATA_APP_TOKEN='<socrata-app-token>' -e COURTLISTENER_API_TOKEN='<courtlistener-api-token>' -e LDA_API_KEY='<lda-api-key>' -- npx -y @cliwant/mcp-sam-gov. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does Sam Gov require an API key?
Yes. It expects SAM_GOV_API_KEY, CENSUS_API_KEY, FRED_API_KEY, BEA_API_KEY, BLS_API_KEY, DOL_API_KEY, DATA_GOV_API_KEY, NVD_API_KEY, OPENFDA_API_KEY, SOCRATA_APP_TOKEN, COURTLISTENER_API_TOKEN, LDA_API_KEY, of which 12 are secrets.
›Can I use Sam Gov as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is Sam Gov in the official MCP registry?
Yes, as io.github.cliwant/mcp-sam-gov.
Alternatives to Sam Gov
Other finance & fintech MCP servers.