An MCP server for the Beholder government contracting API, built with FastMCP and Python.
Beholder aggregates and enriches data from SAM.gov and USASpending.gov, providing higher rate limits and richer analysis than either public API — including risk indicators, contract vehicles, competition metrics, and subaward tracking.
- uv
- A Beholder API key — get one at api.beholder-gov.com/docs
git clone https://github.com/rsivilli/beholder-mcp
cd beholder-mcpCreate a .env file and set your API key:
BEHOLDER_API_KEY=your_api_key_herestdio (for MCP clients that spawn the process, e.g. Claude Desktop):
uv run beholder-mcpHTTP (for connecting remotely):
uv run beholder-mcp-httpAdd the following to your claude_desktop_config.json:
{
"mcpServers": {
"beholder": {
"command": "uv",
"args": ["run", "--directory", "/path/to/beholder-mcp", "beholder-mcp"],
"env": {
"BEHOLDER_API_KEY": "your_api_key_here"
}
}
}
}| Tool | Description |
|---|---|
search_contractors |
Search contractors by name, UEI, state, or agency — returns paginated list with obligation totals and review priority scores |
get_contractor |
Get a contractor record by UEI or name — returns full profile with top agencies, PSC codes, vehicle summaries, and risk indicators |
resolve_contractor |
Resolve a company name or UEI to its Beholder UUID and key fields — returns the single best match |
get_contractor_profile |
Full contractor profile in one call: registration details, recent contracts, risk indicators, and contract vehicles |
find_competitors |
Find contractors competing in the same PSC code categories as a given company |
| Tool | Description |
|---|---|
search_opportunities |
Search contract opportunities and award notices by keyword, NAICS code, set-aside, agency, active status, and date filters |
| Tool | Description |
|---|---|
search_contracts |
Search awarded contracts by PIID prefix, recipient, PSC code, fiscal year, obligation range, date range, status, and award type |
get_related_contracts |
Given a contract PIID, find related contracts — parent, siblings, same vehicle, or same awardee |
search_subawards |
Get subaward reports filed under a specific prime contract PIID |
Install dev dependencies and set up pre-commit hooks:
uv sync
uv run pre-commit installRun linting and formatting checks:
uv run pre-commit run --all-files