Skip to main content
Glama
beholder-mcp

beholder-mcp

by rsivilli

beholder-mcp

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.

Prerequisites

Related MCP server: EzBiz Government Contracting MCP Server

Setup

git clone https://github.com/rsivilli/beholder-mcp
cd beholder-mcp

Create a .env file and set your API key:

BEHOLDER_API_KEY=your_api_key_here

Running the server

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

uv run beholder-mcp

HTTP (for connecting remotely):

uv run beholder-mcp-http

Claude Desktop configuration

Add 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"
      }
    }
  }
}

Available tools

Contractors

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

Opportunities

Tool

Description

search_opportunities

Search contract opportunities and award notices by keyword, NAICS code, set-aside, agency, active status, and date filters

Contracts & subawards

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

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

Available Tools

14 tools
find_competitorsB

Find companies competing in the same PSC code categories as the given contractor. Useful for mapping the competitive landscape around a specific contractor.

Inputs: uei (required), page_size. Returns: competitors, contractor_id, psc_codes_used

get_contract_detailA

Get the full detail record for a contract by PIID. Returns all available fields: parent contract, funding agency, period of performance, financial values (obligated, potential, base+options), competition details, and vehicle info.

Inputs: piid (required). Returns: Full detail record from GET /contracts/{id} — richer than ContractListItem.

get_contractorB

Get a contractor record by UEI or name. Returns a ContractorProfile with top agencies, PSC codes, and risk indicators.

Inputs: uei (required). Returns: id, uei, legal_name, sam_status, +17 more

get_contractor_profileB

Full profile of a contractor: registration details, recent contract history, top agencies, PSC codes, vehicle summaries, and risk indicators — in a single call.

Inputs: uei (required). Returns: id, uei, legal_name, sam_status, +17 more

get_contract_portfolio_deck_dataA

Fetch all structured data needed to generate a federal contract portfolio presentation. Returns entity profile, all normalized awards with financials and period of performance, subcontract history, financial rollups by agency/year/type, and headline portfolio metrics. This is the primary tool for slide deck data generation — gets everything in one call.

Inputs: uei (required), include_subcontracts. Returns: Complete structured data payload for generating a federal contract portfolio de…

get_entity_awardsB

Get all contracts for a company as normalized Award objects with structured financials, period of performance, competition details, and agency information. Makes one detail API call per contract — expect several seconds for large portfolios.

Inputs: uei (required), page_size, include_inactive. Returns: result

get_financial_rollupsB

Get obligated value rollups by agency, fiscal year, and award type for a contractor. IDV ceiling-only awards are excluded by default to avoid inflating obligation totals.

Inputs: uei (required), exclude_ceiling_only. Returns: notes, obligated_by_year, obligated_by_agency, obligated_by_award_type, +1 more

get_subcontract_historyA

Get subcontract relationships where the given company appears as the subcontractor. Enriches each subaward with prime contract details: period, agency, vehicle, and prime value.

Inputs: uei (required). Returns: result

resolve_contractorA

Resolve a company name or UEI to its Beholder contractor record and UUID. Returns the single best match, or raises an error if none found.

Inputs: name (required), state. Returns: id, uei, legal_name, address_city, +3 more

search_contractorsC

Search for contractors (vendors/organizations) in the Beholder database.

Inputs: q, page, state, sort_by, +2 more. Returns: page, items, total, page_size

search_contractsB

Search awarded contract records. Use recipient_uei to find all contracts awarded to a specific company. Filter by psc_code, fiscal_year, or date range.

Inputs: q, page, status, date_to, +11 more. Returns: page, items, total, page_size

search_opportunitiesC

Search for contract opportunities (solicitations and award notices).

Inputs: q, cgac, page, active, +10 more. Returns: page, items, total, page_size

search_subawardsB

Get subawards reported under a specific prime contract by PIID.

Inputs: piid (required), page, page_size. Returns: page, items, total, page_size

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.4/5.0

    Scored across 14 tools

    Disambiguation3/5

    Several tool boundaries are fuzzy: get_contractor, resolve_contractor, and get_contractor_profile all resolve the same entity and return overlapping fields (top agencies, PSC codes, risk indicators), and get_entity_awards overlaps with search_contracts(recipient_uei). The composite get_contract_portfolio_deck_data explicitly returns 'everything in one call,' which cannibalizes most other tools. Descriptions do offer hints (resolve returns UUID, profile is the fuller record), but an agent could easily pick the wrong one.

    Naming Consistency4/5

    All names are snake_case, verb-first, and domain nouns are used consistently (contract, contractor, subaward). The verb set (get/search/find/resolve) mostly maps meaningfully to intent. Minor weakness: get_contractor vs get_contractor_profile does not signal the functional difference, and get_contract_portfolio_deck_data is a long outlier.

    Tool Count4/5

    14 tools sits comfortably in the well-scoped 3-15 range for a federal contracting analytics server. A few entries are arguably redundant (three contractor-getter variants plus the deck-data composite), so the count is slightly inflated rather than trimmed.

    Completeness4/5

    Coverage is strong for a read-only analytics surface: contractor search/profile, contract search/detail/related, subawards and subcontract history, competitors, financial rollups, and opportunities. Gaps remain — no detail lookup for a solicitation/opportunity, no agency or vehicle entity lookup, and search_subawards requires a prime PIID so subaward discovery is only indirect.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables research of federal contract awards and competitive landscape analysis using the USASpending.gov API. Supports searching for contracts, analyzing recipients, tracking spending trends, and identifying market opportunities in government contracting.
      2
      MIT
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to search federal contracts, analyze agency spending, track competitor wins, and monitor small business set-aside opportunities using SAM.gov, USASpending.gov, and FPDS data.
      1
      -
    • A
      license
      B
      quality
      A
      maintenance
      Enables searching and filtering federal contract opportunities by keyword, agency, set-aside, NAICS, and more from any MCP client. Analyzes solicitations for small-business fit and risk, and provides reference lookups for NAICS codes, set-asides, and federal thresholds.
      9
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Find federal contract opportunities, research awards and vendors, and review exclusion evidence with linked official sources. Public research is free and needs no account.
      MIT