Skip to main content

MCP server for accessing SAM.gov APIs

This project has been archived.

The maintainers of this project have marked this project as archived. No new releases are expected.

Project description

sam-mcp

An MCP server for accessing SAM.gov APIs, built with FastMCP and Python.

Prerequisites

Setup

git clone https://github.com/rsivilli/sam-mcp
cd sam-mcp
cp .env.example .env

Edit .env and set your API key:

SAM_API_KEY=your_api_key_here

Running the server

stdio (for MCP clients that spawn the process, e.g. Claude Desktop):

uv run sam-mcp

HTTP (for connecting remotely):

uv run sam-mcp-http

Claude Desktop configuration

Add the following to your claude_desktop_config.json:

{
  "mcpServers": {
    "sam-gov": {
      "command": "uv",
      "args": ["run", "--directory", "/path/to/sam-mcp", "sam-mcp"],
      "env": {
        "SAM_API_KEY": "your_api_key_here"
      }
    }
  }
}

Available tools

Tool Description
search_entities Search registered entities (vendors/organizations) by name, UEI, CAGE code, state, country, or registration status
get_entity Get full details for a specific entity by UEI
search_opportunities Search contract opportunities/solicitations by keyword, NAICS code, set-aside type, date range, and more
search_exclusions Search for debarred or suspended parties by name, UEI, or CAGE code

Development

Install dev dependencies and set up pre-commit hooks:

uv sync
uv run pre-commit install

Run linting and formatting checks:

uv run pre-commit run --all-files

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sam_mcp-0.2.0.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sam_mcp-0.2.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file sam_mcp-0.2.0.tar.gz.

File metadata

  • Download URL: sam_mcp-0.2.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for sam_mcp-0.2.0.tar.gz
Algorithm Hash digest
SHA256 cf65a781d945ba0aeed27bbff26e89d5e003cd5c0d09220ddc9af356e8ac5965
MD5 3ada728a7ce562299eed2bc88e7585b0
BLAKE2b-256 947ceb9b2b7a5cf04a8d7b89a5337d8b64e022732413f84f84bda7ede732eb67

See more details on using hashes here.

File details

Details for the file sam_mcp-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: sam_mcp-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.12 {"installer":{"name":"uv","version":"0.10.12","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for sam_mcp-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5b509b47797bcb5e5067b3de083b56ca9d33f85510dfc199432efaa25d24524f
MD5 4274bab42376b1755329d2d1265ae628
BLAKE2b-256 cdb36da5a4ae3b33de0b8362df6b38b8fda2866daee0c7c571b47613c37c888c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page