# GovBid MCP: Federal Contract Opportunities for AI Agents (`govbid-data/govbid-federal-contracts-mcp`) Actor

MCP server that lets Claude, ChatGPT, Cursor and other AI agents search open SAM.gov federal contract opportunities, read full notices, see upcoming deadlines and size a market by agency, set-aside and NAICS. No SAM.gov API key. $0.01 per tool call.

- **URL**: https://apify.com/govbid-data/govbid-federal-contracts-mcp.md
- **Developed by:** [GovBid Data](https://apify.com/govbid-data) (community)
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 tool calls

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## GovBid MCP: Federal Contract Opportunities for AI Agents

Give Claude, ChatGPT, Cursor or your own agent live access to open U.S. federal contract opportunities from SAM.gov. Ask in plain language, such as "find open cybersecurity solicitations set aside for service-disabled veteran-owned businesses in Virginia", and the agent calls these tools for you.

No SAM.gov API key, no rate limits to manage and no scraping on your side.

### Tools

| Tool | What it does |
|---|---|
| `search_opportunities` | Search open notices by keywords, NAICS, PSC, set-aside, state, agency, notice type and posting date. Title matches rank first, then newest. |
| `get_opportunity` | Full details for one notice: description, office, solicitation number, contracting contact and award data. |
| `upcoming_deadlines` | Open notices whose response deadline falls in the next N days, soonest first. |
| `market_overview` | Counts of open notices by type, agency, sub-tier, set-aside, NAICS and state for any filter. Useful for sizing a market or choosing where to bid. |

Every result includes a link to the notice on SAM.gov.

### Connect

MCP endpoint (streamable HTTP):

```
https://govbid-data--govbid-federal-contracts-mcp.apify.actor/mcp
```

Send your Apify API token as a bearer token. In Claude Desktop, Cursor or any client that takes a JSON config:

```json
{
  "mcpServers": {
    "govbid": {
      "url": "https://govbid-data--govbid-federal-contracts-mcp.apify.actor/mcp",
      "headers": { "Authorization": "Bearer <YOUR_APIFY_API_TOKEN>" }
    }
  }
}
```

Find your token in Apify Console under Settings, API & Integrations.

### Pricing

Pay per event:

- $0.01 per tool call.
- $0.01 each time your server run starts. A run stays ready for about five minutes after the last request, so one session usually needs one start.
- As with other Apify server Actors, you also pay the platform usage of your own server run (1 GB of memory while it is running), which is typically a few cents per session.

A typical research session of 10 to 20 tool calls costs roughly $0.15 to $0.30 in total. New Apify accounts include free monthly credit.

### Run it without an agent

A normal run (the Start button in Apify Console, the API or a schedule) performs one search with the input settings and saves the matches to the dataset.

### Example prompts

- "What open solicitations for NAICS 541512 close in the next 10 days?"
- "Show me Sources Sought notices from the Army about drones posted this month."
- "Which agencies post the most janitorial contracts set aside for small businesses, and in which states?"
- "Get the full notice and the contracting officer's contact for the first result."

### Data

The server loads SAM.gov's public daily extract of contract opportunities when it starts and refreshes it every six hours. It keeps notices that are still open (response deadline in the future or not set), which includes award notices and special notices. Standard FAR and DFARS clause text is ignored when matching keywords, so results reflect the actual work. Descriptions are trimmed to 4,000 characters; follow the SAM.gov link for attachments.

The first call after the server starts can take about 20 to 30 seconds while the data loads. Later calls return in well under a second.

### Need a spreadsheet instead?

Use [Federal Contract Opportunities (SAM.gov) Search and Monitor](https://apify.com/govbid-data/sam-gov-contract-opportunities) to export matching notices to CSV, Excel or JSON on a schedule, with a monitor mode that returns only new notices.

### Support

Questions or a filter you need: trailheadccr@gmail.com.

This server uses public data published by SAM.gov. It is not affiliated with or endorsed by the U.S. General Services Administration.

# Actor input Schema

## `keywords` (type: `array`):

Words to look for in the title and description.

## `naicsCodes` (type: `array`):

NAICS code prefixes.

## `setAsides` (type: `array`):

Set-aside codes or names, e.g. SBA, 8A, SDVOSBC.

## `states` (type: `array`):

Two-letter place-of-performance state codes.

## `agencies` (type: `array`):

Text to match in department, sub-tier or office.

## `postedWithinDays` (type: `integer`):

Only notices posted in the last N days.

## `limit` (type: `integer`):

Maximum results to save.

## Actor input object example

```json
{
  "keywords": [
    "cybersecurity"
  ],
  "limit": 20
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "keywords": [
        "cybersecurity"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("govbid-data/govbid-federal-contracts-mcp").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "keywords": ["cybersecurity"] }

# Run the Actor and wait for it to finish
run = client.actor("govbid-data/govbid-federal-contracts-mcp").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "keywords": [
    "cybersecurity"
  ]
}' |
apify call govbid-data/govbid-federal-contracts-mcp --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,govbid-data/govbid-federal-contracts-mcp"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/rDCqvOf2Cis9IP9Bl/builds/eGaYaobzWo8yAFanb/openapi.json
