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
- uv
- A SAM.gov API key — get one at sam.gov/workspace/profile/account-details
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sam_mcp-0.1.1.tar.gz.
File metadata
- Download URL: sam_mcp-0.1.1.tar.gz
- Upload date:
- Size: 3.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
163320729b210bff67b8e7f480dfa1115662020a49bf145c450a2b999666fb07
|
|
| MD5 |
9dfc614634a67ed21c9c03a7e1cc37e6
|
|
| BLAKE2b-256 |
33d6b6dd20c96b1b7ea5b34198b98836f7ab35c54d60145d0d3f6c0dc0e9afaf
|
File details
Details for the file sam_mcp-0.1.1-py3-none-any.whl.
File metadata
- Download URL: sam_mcp-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.9 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8cabb62b60eb7d1c83bb8b3346355618e2a91fad4088bf7a65e2b68a6b57503e
|
|
| MD5 |
5149dcd07eea8d40a7c5c810f721c11d
|
|
| BLAKE2b-256 |
4ae4ed89791a26c7bb1deb537456933910af3db08a192c97eb3cb9fe3ac79080
|