Install guide · Cursor
Install mcp-sam-gov for Cursor
Cursor reads ~/.cursor/mcp.json. A project can also commit .cursor/mcp.json.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
Open ~/.cursor/mcp.json on macOS, %USERPROFILE%\.cursor\mcp.json on Windows, or ~/.cursor/mcp.json on Linux.
Paste the JSON config below.
Replace placeholder secrets, then restart the client if it does not reload on its own.
{ "mcpServers": { "cliwant-mcp-sam-gov": { "command": "npx", "args": [ "-y", "@cliwant/mcp-sam-gov@1.17.0" ], "env": { "SAM_GOV_API_KEY": "YOUR_SAM_GOV_API_KEY", "CENSUS_API_KEY": "YOUR_CENSUS_API_KEY", "FRED_API_KEY": "YOUR_FRED_API_KEY", "BEA_API_KEY": "YOUR_BEA_API_KEY", "BLS_API_KEY": "YOUR_BLS_API_KEY", "DOL_API_KEY": "YOUR_DOL_API_KEY", "DATA_GOV_API_KEY": "YOUR_DATA_GOV_API_KEY", "NVD_API_KEY": "YOUR_NVD_API_KEY", "OPENFDA_API_KEY": "YOUR_OPENFDA_API_KEY", "SOCRATA_APP_TOKEN": "YOUR_SOCRATA_APP_TOKEN", "COURTLISTENER_API_TOKEN": "YOUR_COURTLISTENER_API_TOKEN", "LDA_API_KEY": "YOUR_LDA_API_KEY", "EDGAR_USER_AGENT": "", "MCP_SAM_GOV_TOOLSETS": "" } } }}
Where the config lives
| System | Path |
|---|---|
| macOS | ~/.cursor/mcp.json |
| Windows | %USERPROFILE%\.cursor\mcp.json |
| Linux | ~/.cursor/mcp.json |