SuperAPIAI Directory

mcp-sam-gov

github.com · AI developer platforms

US government contracting, spending and regulation data: SAM.gov, USAspending, Grants.gov, Federal Register, eCFR, OFAC sanctions and state/local bid portals.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Linux

About this tool

Purpose

mcp-sam-gov is an MCP (Model Context Protocol) server designed to enable AI agents to query U.S. federal and state/local (SLED) government procurement, spending, regulatory, and partner vetting data. Its core goal is to lower the barrier to querying public data and avoid high subscription fees. The data itself is in the public domain.

Main Capabilities

The server provides 153 tools, covering 54 data sources. Key data sources include SAM.gov, USAspending, Grants.gov, OFAC, FDIC, EPA, CourtListener, and more. The tools are grouped by workflow and cover the following scenarios:

  • Procurement opportunity search: search active contract opportunities, pre-solicitation notices (Sources Sought / Presol / Special Notices) on SAM.gov, and retrieve detailed information (points of contact, attachments, body text).
  • Competitive landscape analysis: query contract awardees under a specific agency or NAICS code, individual awards, subcontractors, and more.
  • Trends and aggregation: analyze historical spending trends, spending rankings by state or Product Service Code (PSC), grant programs, and more.
  • Agency intelligence: generate agency profiles, budget breakdowns, transaction volumes, and more.
  • Recompete radar: find contracts nearing expiration and period-of-performance information.
  • Regulations and legislation: search FAR clauses, generate compliance matrices, query the Federal Register, Regulations.gov comments, eCFR rule text, and more.
  • Partner and entity vetting: screen entities against the OFAC sanctions list and the SAM exclusion list, query NPI status, single audit findings, bank health, SEC EDGAR financial data, EPA compliance flags, and more.
  • Compliance and eligibility: query SBA small business size standards, HTS import tariff rates, and more.
  • Pricing, labor, and fiscal: query GSA CALC rates, SCA wage determinations, CPI-U changes, U.S. public debt, the CISA KEV catalog, and more.
  • Health and research funding: query NIH RePORTER projects, clinical trials, CMS Open Payments data, and more.

How to Use

There are four installation paths:

  1. Claude Desktop one-click installation: download the latest version of the mcp-sam-gov.mcpb file, and after double-clicking it Claude Desktop will pop up an installation dialog; just click Install. Requires Claude Desktop 1.0 or later.
  2. Claude Code single command: for users already using the Claude Code CLI, installs the MCP server and the SKILL.md workflow guide.
  3. Manual installation: for any host that supports MCP (Codex, Cursor, Continue, Gemini, etc.). After a global npm install, the binary mcp-sam-gov is added to PATH. When configuring the host, you can choose either the global install ("command": "mcp-sam-gov") or npx without a global install ("command": "npx", "args": ["-y", "@cliwant/mcp-sam-gov"]). Note that the npm package name is @cliwant/mcp-sam-gov; the unscoped mcp-sam-gov does not exist.
  4. Direct path, zero install: skip installation and point the host configuration directly at the file's absolute path.

The specific configuration location for each host is listed in the official documentation and supports Windows and macOS. After installation, users can ask questions in natural language, and the AI agent will automatically select the tool sequence. For example: "Find active SAM.gov solicitations under NAICS 541512, MD only, closing in 30 days".

Keys and Limits

The server runs without keys by default. Four data sources require free keys: Census (census_business_patterns), FRED (fred_search_series, fred_series_observations), BEA (bea_regional_data), and the DOL data endpoint (dol_get_dataset). The remaining keys are optional and are only used to increase rate limits or unlock filtering features. All keys are free to obtain. There are two ways to set them: set them in the host environment variable block, or create a .env file in the server's working directory. The server automatically loads .env on startup, and environment variables take precedence over .env. You can use the keyless api_key_status tool to view the required keys, whether they are required,registration links, and whether they are currently configured.

To reduce context consumption, you can use the MCP_SAM_GOV_TOOLSETS environment variable to specify which toolsets to load (comma-separated, case-insensitive); leaving it empty or setting it to all loads all 153 tools (about 74k tokens). The feedback and api_key_status tools are always loaded. If a tool from a toolset that is not loaded is called, the server returns a structured error and indicates the environment variable that needs to be set.

On startup, the server makes a single anonymous request to the public npm registry to check for the latest version of itself, and only outputs a one-line notice to stderr when there is a new version. It does not send usage data, does not touch the protocol stdout, and is non-blocking. You can opt out via MCP_SAM_GOV_NO_UPDATE_CHECK=1 or NO_UPDATE_NOTIFIER=1.

Use Cases

Suitable for users who need to query U.S. government procurement, spending, regulatory, and entity review data, including government contractors, compliance personnel, researchers, journalists, and others. It is especially suitable for scenarios where you want an AI agent to automatically complete multi-step data queries in natural language.

Limitations

  • The project is independent and has no affiliation with or endorsement from SAM.gov, GSA, or any government agency.
  • Some data sources require a free key to use; without a key, the tools will throw an error.
  • Latency varies by data source and upstream load. The earlier 52-tool version measured approximately p50 0.25 seconds and p95 0.8 seconds; this is for reference only and not guaranteed.
  • The data.gov series of sources uses the public DEMO_KEY, which has a low quota and can be increased via DATA_GOV_API_KEY.
  • The BLS source can optionally use a free BLS_API_KEY to increase the daily quota.
  • Error reporting generates a prefilled GitHub issue link via the agent; it is not automatically posted and must be submitted manually by the user.
  • The feedback link contains only the tool name, error type, and server version, not query values.

Category

Based on its explicit purpose, this tool belongs to AI development platforms (ai-frameworks), specifically an MCP server used to extend the data query capabilities of AI agents.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools