# US Federal Contract Recompete & Procurement Radar (MCP) (`scrapesmart/federal-contract-recompete-radar`) Actor

Deterministic US federal contract recompete & teaming intelligence engine. Scans USASpending.gov v2 open data APIs to track expiring prime contracts, calculate unexercised budget ceilings, score recompete capture windows, and generate token-optimized MCP briefs for AI BD & proposal agents.

- **URL**: https://apify.com/scrapesmart/federal-contract-recompete-radar.md
- **Developed by:** [Dysen K](https://apify.com/scrapesmart) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $40.00 / 1,000 enriched us federal prime contract recompete & procurement intelligence records

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## 🏛️ US Federal Contract Recompete & Procurement Intelligence Radar (MCP)

> **Deterministic, Zero-Token Federal Recompete & Teaming Intelligence Engine for GovCon Capture Teams and AI BD Agents.**\
> Powered 100% by official US Government open data APIs (`api.usaspending.gov`). Zero web scraping fragility, zero authentication required, zero LLM cost.

***

### 💡 Why This Actor Wins (The $20,000/Year Alternative)

Defense contractors, IT vendors, cybersecurity firms, and management consultants pay **$5,000 to $20,000+ per year** for GovWin IQ, Deltek, or Bloomberg Government primarily to answer three critical questions:

1. **Which high-value prime federal contracts expire in the next 3–18 months and must be re-competed?** ("The Recompete Window")
2. **Who is the incumbent prime contractor, what is their socioeconomic status, and do they actively subcontract?** ("Teaming Intelligence")
3. **How much unexercised ceiling remains on the contract?** ("Spending Burn Rate")

The United States Government legally mandates free, unauthenticated, structured public JSON access to all federal awards via the **USASpending.gov v2 REST API**.

This Actor scans active prime federal contract awards, classifies them into **deterministic capture lifecycle windows**, calculates **unexercised option ceilings**, scores **recompete attractiveness (0–100)**, extracts **subcontracting history**, and generates **token-optimized Markdown briefs (<500 tokens)** ready for AI proposal and capture agents (Cursor, Windsurf, Claude Code, Cline, Copilot).

***

### ⚡ Key Intelligence Features

| Intelligence Dimension | What This Actor Extracts | GovCon BD Value |
| :--- | :--- | :--- |
| **Capture Lifecycle Window** | Exact days to expiration classified into `IMMINENT_RFP`, `PRIME_CAPTURE_WINDOW`, `EARLY_PIPELINE`, `ACTIVE_MULTI_YEAR`, `RECENTLY_EXPIRED` | Time your capture, RFI responses, and FOIA requests before solicitations lock. |
| **Incumbent & Teaming Profile** | Incumbent vendor name, SAM.gov UEI, parent corporation, socioeconomic status (8(a), SDVOSB, WOSB, HUBZone, Small Business) | Identify prime or subcontractor teaming partners, joint ventures, and mentor-protégé opportunities. |
| **Financial Runway & Ceilings** | Obligated funding vs potential total ceiling (`base_and_all_options`), calculating exact **unexercised ceiling dollars** | Detect primes with unspent budget ceiling seeking surge subcontractors before contract closeout. |
| **Competition & Pricing History** | Competition extent (Full & Open, Competitive 8(a), Sole Source) and pricing structure (Firm Fixed Price, Cost Plus, Time & Materials) | Determine whether to challenge sole-source incumbencies or prepare competitive price-to-win models. |
| **Subaward Track Record** | Number of first-tier subcontracting awards and total subaward dollar volume | Pinpoint primes with a proven willingness to subcontract significant workshare. |
| **Actionable BD Playbooks** | Rule-based GovCon action items tailored to the contract's timing, set-aside, and ceiling | Ready-to-execute capture steps (FOIA SOW requests, agency briefings, SAM.gov alerts). |
| **MCP AI Brief (<500 Tokens)** | Formatted Markdown brief per contract + combined `MCP_PROMPT` in Key-Value Store | Feed directly into AI proposal writers and capture agents without prompt truncation. |

***

### 🎯 Recompete Capture Windows

The radar automatically maps every contract's expiration date to standard federal capture lifecycle phases:

```
[Now] ───────► (0-90 Days) ───────► (91-180 Days) ───────► (181-365 Days) ───────► (>365 Days)
                IMMINENT_RFP       PRIME CAPTURE          EARLY PIPELINE       ACTIVE MULTI-YEAR
               Final Solicitations  RFI Shaping / FOIA    Teaming Outreach     Task Order Surge
```

- **`PRIME_CAPTURE_WINDOW (91-180 days)`** — *Optimal Capture Zone.* Solicitations are being drafted; contracting offices are receptive to capability statements, sources sought, and industry day discussions.
- **`IMMINENT_RFP (0-90 days)`** — Solicitations about to drop on SAM.gov. Finalize teaming agreements, NDAs, and key personnel staffing immediately.
- **`EARLY_PIPELINE (181-365 days)`** — Long-range capture planning. Reach out to the incumbent prime or competing primes for teaming discussions.
- **`RECENTLY_EXPIRED (<0 days)`** — Contracts expired in the past 6–12 months. Detect active 6-month bridge extensions or delayed follow-on RFP releases.
- **`ACTIVE_MULTI_YEAR (>365 days)`** — Mid-contract vehicles. Target for task order subcontracting or specialized surge staffing.

***

### 🛠️ Input Parameters

| Parameter | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `keywords` | Array of Strings | `["artificial intelligence", "cloud"]` | Keywords matched against federal contract award titles and scopes. |
| `naicsCodes` | Array of Strings | `["541512", "541511"]` | 6-digit NAICS industry codes (e.g. `541512` Computer Systems Design, `541511` Custom Programming, `541715` R\&D). |
| `agencies` | Array of Strings | `["Department of Defense"]` | Federal awarding department or agency names (e.g., `Department of Defense`, `Department of Homeland Security`, `General Services Administration`). |
| `awardTypeCodes` | Array of Strings | `["A", "B", "C", "D"]` | Award types: `A` (BPA Call), `B` (Purchase Order), `C` (Delivery Order / IDC), `D` (Definitive Contract). |
| `minAwardAmount` | Integer | `250000` | Minimum contract obligation ($ USD) to eliminate micro-purchases. |
| `recompeteWindowMonths` | Integer | `18` | Target contracts expiring within this many months ahead. Set to `0` to return all matching awards. |
| `includeRecentlyExpired` | Boolean | `true` | Include awards expired in the last 12 months to detect bridge modifications and recompetes. |
| `fetchDeepAwardDetails` | Boolean | `true` | Fetch individual award detail records from USASpending to extract UEI, parent corporation, pricing, subawards, and unexercised ceiling. |
| `maxResults` | Integer | `25` | Maximum number of federal contract awards to retrieve, score, and output. |
| `sortBy` | String | `"Award Amount"` | Sort dimension: `"Award Amount"`, `"End Date"`, or `"Start Date"`. |
| `sortOrder` | String | `"desc"` | Sort direction: `"desc"` or `"asc"`. |
| `concurrency` | Integer | `5` | Number of contract records to enrich in parallel. |

#### Sample Input JSON

```json
{
  "keywords": [
    "artificial intelligence",
    "cloud migration",
    "zero trust"
  ],
  "naicsCodes": [
    "541512",
    "541511",
    "541519"
  ],
  "agencies": [
    "Department of Defense",
    "Department of Homeland Security"
  ],
  "minAwardAmount": 1000000,
  "recompeteWindowMonths": 18,
  "includeRecentlyExpired": true,
  "fetchDeepAwardDetails": true,
  "maxResults": 20
}
```

***

### 📊 Output Dataset Format

Each dataset record provides complete procurement intelligence:

```json
{
  "awardId": "W911QX20C0023",
  "recipientName": "ECS FEDERAL, LLC",
  "recipientUei": "XYB4JU4PA6T4",
  "parentRecipientName": "ASGN INCORPORATED",
  "awardingAgency": "Department of Defense",
  "awardingSubAgency": "Defense Contract Management Agency",
  "awardAmount": 120492195.74,
  "potentialTotalValue": 173699547.31,
  "unexercisedCeilingAmount": 53207351.57,
  "startDate": "2020-04-23",
  "endDate": "2027-03-11",
  "daysUntilExpiration": 125,
  "recompeteWindowStatus": "PRIME_CAPTURE_WINDOW (91-180 days)",
  "recompeteOpportunityScore": 95,
  "pricingType": "COST PLUS FIXED FEE",
  "extentCompeted": "FULL AND OPEN COMPETITION",
  "setAsideType": "NO SET ASIDE USED.",
  "businessCategories": [
    "Corporate Entity Not Tax Exempt",
    "Not Designated a Small Business",
    "U.S.-Owned Business"
  ],
  "naicsCode": "541715",
  "naicsDescription": "RESEARCH AND DEVELOPMENT IN THE PHYSICAL, ENGINEERING, AND LIFE SCIENCES",
  "contractAwardType": "DEFINITIVE CONTRACT",
  "description": "RESEARCH AND DEVELOPMENT EFFORT TO DESIGN AND DEVELOP PROTOTYPES TO ARTIFICIAL INTELLIGENCE/MACHINE LEARNING ALGORITHMS.",
  "placeOfPerformanceState": "VA",
  "placeOfPerformanceCountry": "USA",
  "subawardCount": 47,
  "totalSubawardAmount": 64431647.13,
  "recommendedCaptureActions": [
    "Prime Capture Window (91-180 days): Request incumbent contract statement of work (SOW) via agency FOIA or public procurement logs.",
    "Schedule agency Contracting Officer (CO) & Contracting Officer Representative (COR) capability briefings prior to draft solicitation.",
    "High Unexercised Option Ceiling ($53.21M remaining): Incumbent prime may actively seek specialized subcontractors to burn remaining ceiling.",
    "Active Subcontracting Prime: ECS FEDERAL, LLC has logged 47 subawards totaling $64.43M. High probability teaming partner.",
    "Full & Open Competition: Anticipate high competition from large defense/IT primes; build differentiated niche technical teaming advantages."
  ],
  "usaspendingUrl": "https://www.usaspending.gov/award/CONT_AWD_W911QX20C0023_9700_-NONE-_-NONE-",
  "mcpMarkdownBrief": "### 🎯 [W911QX20C0023] ECS FEDERAL, LLC\n- **Capture Window**: `PRIME_CAPTURE_WINDOW (91-180 days)` (125 days left | Expiration: 2027-03-11)\n- **Opportunity Score**: **95/100** | **Agency**: Department of Defense / Defense Contract Management Agency\n- **Funding**: Obligated: **$120.49M** | Potential Ceiling: **$173.70M** ($53.21M unexercised ceiling)\n- **Procurement Profile**: Type: DEFINITIVE CONTRACT | Pricing: COST PLUS FIXED FEE\n- **Competition & Set-Aside**: FULL AND OPEN COMPETITION | Set-Aside: None\n- **Incumbent SAM.gov UEI**: `XYB4JU4PA6T4` | Parent: ASGN INCORPORATED\n- **Subcontracting**: 47 subawards totaling $64.43M\n- **NAICS**: 541715 (RESEARCH AND DEVELOPMENT...)\n- **Scope**: RESEARCH AND DEVELOPMENT EFFORT TO DESIGN AND DEVELOP PROTOTYPES TO ARTIFICIAL INTELLIGENCE/MACHINE LEARNING ALGORITHMS...\n- **Recommended Capture Actions**:\n  * Prime Capture Window (91-180 days): Request incumbent contract statement of work (SOW) via agency FOIA...\n  * Schedule agency Contracting Officer capability briefings prior to draft solicitation.\n  * High Unexercised Option Ceiling ($53.21M remaining): Incumbent prime may seek specialized subcontractors.\n- **USASpending Reference**: [View Award Record](https://www.usaspending.gov/award/...)"
}
```

***

### 🤖 AI Agent & MCP Integration (Key-Value Store)

At the completion of every run, the Actor automatically compiles an aggregate intelligence report into the Key-Value Store under the key **`MCP_PROMPT`** (`text/markdown`).

#### How to use with AI Coding & Proposal Agents:

1. In **Cursor**, **Windsurf**, or **Claude Code**, set up an MCP tool or webhook to fetch the Key-Value Store item `MCP_PROMPT`.
2. Give your agent the prompt:
   > *"Analyze our company's capabilities in Cloud Migration and Kubernetes against the expiring federal contracts in MCP_PROMPT. Identify top 3 prime teaming targets and draft a capture outreach email to the incumbent's BD director citing their unexercised ceiling."*

***

### 💰 Pay-Per-Event (PPE) Pricing Transparency

This Actor operates under Apify's transparent **Pay-Per-Event (PPE)** model:

- **`recompete-contract-enriched`**: Charged only when a contract record is successfully retrieved, scored, and enriched with incumbent intelligence.
- Zero charge on empty queries or failed lookups.

***

### 📄 License

Apache-2.0. Open Government Data source: [USASpending.gov](https://www.usaspending.gov/).

# Actor input Schema

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

Keywords to match against contract award titles and descriptions (e.g. 'artificial intelligence', 'cloud', 'cybersecurity', 'zero trust').

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

Filter by 6-digit NAICS codes (e.g. '541512' for Computer Systems Design, '541511' for Custom Computer Programming, '541519' for Other Computer Related Services, '541715' for R\&D).

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

Filter by awarding federal department or agency name (e.g. 'Department of Defense', 'Department of Homeland Security', 'Department of Veterans Affairs', 'General Services Administration').

## `awardTypeCodes` (type: `array`):

Contract award types to search: 'A' (BPA Call), 'B' (Purchase Order), 'C' (Delivery Order / IDC), 'D' (Definitive Contract).

## `recompeteWindowMonths` (type: `integer`):

Target contracts expiring within this many months ahead (e.g. 18 months). Set to 0 to return matching contracts regardless of expiration date.

## `includeRecentlyExpired` (type: `boolean`):

Include contracts expired within the last 12 months to detect active bridge contracts and imminent follow-on solicitations.

## `minAwardAmount` (type: `integer`):

Filter contracts with an award amount equal to or greater than this value.

## `fetchDeepAwardDetails` (type: `boolean`):

Fetches individual award record from USASpending to extract incumbent UEI, parent corporation, socioeconomic categories, pricing type, competition extent, subawards, and unexercised ceiling.

## `maxResults` (type: `integer`):

Maximum number of federal contract awards to retrieve, score, and output.

## `sortBy` (type: `string`):

Primary sorting dimension for contract results.

## `sortOrder` (type: `string`):

Sort direction.

## `concurrency` (type: `integer`):

Number of contracts to enrich with deep award details in parallel.

## Actor input object example

```json
{
  "keywords": [
    "artificial intelligence",
    "cloud"
  ],
  "naicsCodes": [
    "541512",
    "541511"
  ],
  "agencies": [
    "Department of Defense"
  ],
  "awardTypeCodes": [
    "A",
    "B",
    "C",
    "D"
  ],
  "recompeteWindowMonths": 18,
  "includeRecentlyExpired": true,
  "minAwardAmount": 250000,
  "fetchDeepAwardDetails": true,
  "maxResults": 25,
  "sortBy": "Award Amount",
  "sortOrder": "desc",
  "concurrency": 5
}
```

# Actor output Schema

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

JSON/table dataset containing all enriched records and per-record mcpMarkdownBrief fields.

## `mcpPrompt` (type: `string`):

Token-optimized Markdown brief stored in the default Key-Value Store for direct LLM/MCP consumption.

# 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": [
        "artificial intelligence",
        "cloud"
    ],
    "naicsCodes": [
        "541512",
        "541511"
    ],
    "agencies": [
        "Department of Defense"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapesmart/federal-contract-recompete-radar").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": [
        "artificial intelligence",
        "cloud",
    ],
    "naicsCodes": [
        "541512",
        "541511",
    ],
    "agencies": ["Department of Defense"],
}

# Run the Actor and wait for it to finish
run = client.actor("scrapesmart/federal-contract-recompete-radar").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": [
    "artificial intelligence",
    "cloud"
  ],
  "naicsCodes": [
    "541512",
    "541511"
  ],
  "agencies": [
    "Department of Defense"
  ]
}' |
apify call scrapesmart/federal-contract-recompete-radar --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapesmart/federal-contract-recompete-radar"
        }
    }
}
```

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/QmDZ5Nk5id3HQab4M/builds/Yf3jE1J0AdNDzeyTi/openapi.json
