# EU & France Public Tenders + Contracts Lead Engine (MCP) (`b2b-telemetry-labs/eu-public-tenders-enriched-mcp`) Actor

Extract live BOAMP public tenders and DECP awarded contracts enriched with SIRENE company executives and contract renewal dates.

- **URL**: https://apify.com/b2b-telemetry-labs/eu-public-tenders-enriched-mcp.md
- **Developed by:** [Arthur Vatel](https://apify.com/b2b-telemetry-labs) (community)
- **Categories:** Lead generation, Business, MCP servers
- **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 $20.00 / 1,000 enriched public tender / contract leads

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

## France & EU Public Tenders + Awarded Contracts Lead Engine (MCP)

High-signal B2B public procurement intelligence Actor and native **Model Context Protocol (MCP)** server combining **open BOAMP tenders**, **awarded DECP v3 contracts**, and **official French SIRENE company & executive enrichment** — running in **128–256 MB RAM** with zero headless browser overhead.

***

### Why This Actor Outperforms Raw BOAMP Scrapers

Most public-tender scrapers only dump raw notice titles from BOAMP. This Actor turns public procurement data into actionable B2B sales and subcontracting leads:

1. **Open Tenders + Incumbent Radar (`BOAMP` + `DECP v3`)**
   - **BOAMP Official API**: Captures live open tenders across France & EU (`JOUE` / `Marchés européens` / national notices) with buyer name, publication date, response deadline, department codes, and direct notice URL.
   - **DECP v3 Awarded Contracts (`decp-v3-marches-valides`)**: Identifies **who won past contracts**, contract amount (`montant`), duration (`dureemois`), subcontracting declarations (`soustraitancedeclaree`), CPV code, and execution location.
2. **Automatic Renewal End-Date Estimation**
   - Computes `estimated_end_date` from `datenotification + dureemois` (with calendar-accurate month arithmetic) and flags contracts entering their `imminent_renewal` window — ideal for displacing incumbents or pitching subcontracting partnerships 3–12 months before re-tendering.
3. **Automatic SIRENE Company & Executive Enrichment**
   - Queries `recherche-entreprises.api.gouv.fr` using the incumbent SIRET/SIREN or buyer name (critical because DECP v3 often omits `titulaire_denominationsociale_1` while providing `titulaire_id_1`).
   - Attaches `siren`, `nom_complet`, `activite_principale` (NAF/APE), `tranche_effectif_salarie`, headquarters (`siege`: city, postal code, department, address), and public **`dirigeants`** (executives & corporate officers).
4. **Deterministic B2B Lead Scoring (`0–100`)**
   - Ranks every opportunity by contract value, deadline/renewal urgency, and SIRENE enrichment completeness.
5. **Native Standby MCP Server (`/mcp`)**
   - Exposes `search_open_public_tenders` and `find_awarded_contracts_and_incumbents` over HTTP JSON-RPC 2.0 so AI agents (Claude, Cursor, LangGraph, CrewAI, custom workflows) can query live French/EU procurement data on demand.

***

### Input Parameters

| Field | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `mode` | `string` | `"combined_lead_radar"` | `"open_tenders"` (BOAMP), `"awarded_contracts_decp"` (DECP v3), or `"combined_lead_radar"` (both). |
| `keywords` | `string[]` | `["logiciel", "cybersécurité"]` | Business keywords used to filter notices and contracts. |
| `maxItems` | `integer` | `10` | Maximum number of enriched leads to return (`1` to `100`). |
| `enrichWithSirene` | `boolean` | `true` | Automatically enrich buyers and incumbents via the official French SIRENE API. |

#### Example Input

```json
{
  "mode": "combined_lead_radar",
  "keywords": ["cybersécurité", "cloud"],
  "maxItems": 10,
  "enrichWithSirene": true
}
```

***

### Example Output Record (DECP Awarded Contract + SIRENE)

```json
{
  "source": "DECP_V3",
  "record_type": "awarded_contract",
  "id": "20230030100",
  "objet": "FOURN. MATERIELS-LOGICIELS INFORMATIQUE",
  "montant": 145000.0,
  "datenotification": "2023-12-31",
  "dureemois": 36,
  "estimated_end_date": "2026-12-31",
  "renewal_signal": "imminent_renewal",
  "acheteur_id": "21750001600019",
  "acheteur_nom": "VILLE DE PARIS",
  "titulaire_id_1": "34975207100036",
  "titulaire_denomination_sociale_1": "COM6",
  "incumbent_sirene": {
    "siren": "349752071",
    "nom_complet": "COM6",
    "activite_principale": "62.02A",
    "tranche_effectif_salarie": "00",
    "siege": {
      "ville": "VOIRON",
      "code_postal": "38500",
      "departement": "38",
      "adresse": "1556 BOULEVARD DE CHARAVINES 38500 VOIRON"
    },
    "dirigeants": [
      {
        "type": "personne_physique",
        "nom": "GILLES",
        "prenoms": "MARC PHILIPPE",
        "nom_complet": "MARC PHILIPPE GILLES",
        "qualite": "Directeur Général"
      }
    ]
  },
  "lead_score": 88
}
```

***

### Using the Native MCP Server (Apify Standby Mode)

When deployed in Standby mode (`usesStandbyMode: true`), the Actor serves:

- `GET /` — Health & Apify readiness probe (`200 OK`)
- `POST /mcp` — JSON-RPC 2.0 MCP endpoint

#### Exposed MCP Tools

| Tool Name | Purpose |
| :--- | :--- |
| `search_open_public_tenders` | Searches live open BOAMP tenders by keywords with SIRENE buyer enrichment and lead scoring. |
| `find_awarded_contracts_and_incumbents` | Searches DECP v3 awarded contracts to identify incumbents, amounts, renewal dates, and SIRENE executive profiles. |

#### Connecting an MCP Client

Point your MCP-compatible client to your Apify Standby Actor URL at `/mcp` with your Apify API token (`Authorization: Bearer <APIFY_TOKEN>`):

```json
{
  "mcpServers": {
    "eu-public-tenders": {
      "url": "https://<your-actor-standby-url>/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_APIFY_TOKEN>"
      }
    }
  }
}
```

***

### Architecture & Resource Footprint

- **Runtime**: Python 3.12 (`apify/actor-python:3.12`)
- **HTTP Client**: `httpx.AsyncClient` (12s timeouts, bounded SIRENE concurrency & per-run deduplication cache)
- **Memory**: `128 MB` minimum / `256 MB` maximum (no Chromium or Playwright)
- **Pay-Per-Event Pricing**: Bills per delivered lead (`enriched-tender-lead`) and stops cleanly when `event_charge_limit_reached` is signaled.

# Actor input Schema

## `mode` (type: `string`):

Choose whether to fetch live open tenders (BOAMP), awarded contracts & incumbents (DECP v3), or both in a combined lead radar.

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

Keywords used to filter public tenders and awarded contracts (e.g. logiciel, cybersécurité, cloud, maintenance).

## `maxItems` (type: `integer`):

Maximum number of enriched tender/contract leads to return (1 to 100).

## `enrichWithSirene` (type: `boolean`):

Automatically enrich buyers and contract incumbents via the official French SIRENE API (company details, headcount bracket, headquarters, and public executives).

## Actor input object example

```json
{
  "mode": "combined_lead_radar",
  "keywords": [
    "logiciel",
    "cybersécurité"
  ],
  "maxItems": 10,
  "enrichWithSirene": true
}
```

# Actor output Schema

## `leads` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("b2b-telemetry-labs/eu-public-tenders-enriched-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("b2b-telemetry-labs/eu-public-tenders-enriched-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 '{}' |
apify call b2b-telemetry-labs/eu-public-tenders-enriched-mcp --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,b2b-telemetry-labs/eu-public-tenders-enriched-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/2DjrFly3cmcocVyvT/builds/eF3EbOpIBii8pflsi/openapi.json
