# UK Public Tenders API & MCP (Contracts Finder + Find a Tender) (`data-goose/uk-public-tenders-ocds-mcp`) Actor

Fast 256MB pure-HTTP Hybrid Actor unifying UK Contracts Finder and Find a Tender (Procurement Act 2023 OCDS APIs) into one deduplicated tender & award schema via Batch PPE, Multi-Tenant REST API, and MCP.

- **URL**: https://apify.com/data-goose/uk-public-tenders-ocds-mcp.md
- **Developed by:** [Data Goose](https://apify.com/data-goose) (community)
- **Categories:** Business, Developer tools, MCP servers
- **Features:** Limited permissions, Multi-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 uk public tender notices

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

## UK Public Tenders API & MCP — Contracts Finder + Find a Tender (`uk-public-tenders-ocds-mcp`)

> **UK government tenders scraper**, **Contracts Finder OCDS API**, **Find a Tender Procurement Act 2023 API**, and **UK B2G procurement MCP server** running in `256 MB` pure HTTP (no API keys, no headless browsers).

***

### Why Use This Unified UK Procurement Actor?

Under the **UK Procurement Act 2023**, contracting authorities split low-threshold notices across **Contracts Finder** and above-threshold / central digital platform notices across **Find a Tender (FTS)**. Instead of maintaining two incompatible scrapers:

- Queries both official **OCDS JSON APIs** concurrently (`contractsfinder.service.gov.uk` + `find-tender.service.gov.uk`).
- Normalizes both into a single deduplicated 22-field `UnifiedUkTender` schema (`ocid`, CPV code, GBP value, submission deadline, buyer email/region, procurement method, and awarded suppliers).
- Filters cleanly by CPV prefix (`72` IT/software, `79` business services), minimum GBP contract value, buyer name, stage (`planning`/`tender`/`award`), and keyword.

***

### Quick Integration Snippets

#### 1. Claude Desktop / Cursor MCP Server

```json
{
  "mcpServers": {
    "uk-public-tenders": {
      "type": "streamable-http",
      "url": "https://data-goose--uk-public-tenders-ocds-mcp.apify.actor/mcp",
      "headers": {
        "Authorization": "Bearer <APIFY_TOKEN>"
      }
    }
  }
}
```

Exposed MCP tools: `search_uk_public_tenders`, `get_uk_tenders_market_summary`, `lookup_uk_tender_by_ocid`.

#### 2. Python (`apify-client` Batch + Direct REST `httpx`)

```python
from apify_client import ApifyClient

client = ApifyClient("<APIFY_TOKEN>")
run = client.actor("data-goose/uk-public-tenders-ocds-mcp").call(
    run_input={
        "portals": ["contracts_finder", "find_a_tender"],
        "cpvPrefixes": ["72", "48"],
        "minValueGbp": 50000,
        "daysBack": 7,
        "maxItems": 100,
    }
)
tenders = list(client.dataset(run["defaultDatasetId"]).iterate_items())
```

```python
import httpx

r = httpx.get(
    "https://data-goose--uk-public-tenders-ocds-mcp.apify.actor/v1/tenders",
    headers={"Authorization": "Bearer <APIFY_TOKEN>"},
    params={"cpv_prefix": "72", "days_back": 7, "limit": 20},
    timeout=30.0,
)
print(r.json()["items"])
```

#### 3. n8n / Make HTTP Request Node

- **Method:** `GET`
- **URL:** `https://data-goose--uk-public-tenders-ocds-mcp.apify.actor/v1/tenders`
- **Headers:** `Authorization: Bearer {{ $env.APIFY_TOKEN }}`
- **Query Params:** `cpv_prefix=72`, `min_value_gbp=25000`, `days_back=3`, `limit=25`

***

### Pricing (Pay-Per-Event)

- `uk-tender`: **$0.005** per deduplicated UK tender notice (`\$5.00 / 1k`, 37.5% under legacy $8.00/1k 4GB tender scrapers).
- `uk-tender-query`: **$0.002** per market summary or zero-match lookup.
- `apify-actor-start`: **$0.005** one-time batch run startup event.

***

### More APIs & MCP Servers by data-goose

| Actor | Use Case | Standby / MCP URL | Primary PPE Rate |
|---|---|---|---|
| [Spain BORME Registry](https://apify.com/data-goose/spain-borme-registry-mcp) | Daily Spanish corporate filings (BOE PDF -> JSON) | `https://data-goose--spain-borme-registry-mcp.apify.actor/mcp` | `$0.004 / act` |
| [UK Companies House](https://apify.com/data-goose/uk-companies-house-registry-mcp) | UK companies, officers & filings (rate-limited + BYOK) | `https://data-goose--uk-companies-house-registry-mcp.apify.actor/mcp` | `$0.0035 / record` |
| [France SIRENE + BODACC](https://apify.com/data-goose/france-sirene-bodacc-mcp) | French directors, financials & insolvency alerts | `https://data-goose--france-sirene-bodacc-mcp.apify.actor/mcp` | `$0.0045 / record` |
| [UK Public Tenders OCDS](https://apify.com/data-goose/uk-public-tenders-ocds-mcp) | Unified Contracts Finder + Find a Tender (Procurement Act 2023) | `https://data-goose--uk-public-tenders-ocds-mcp.apify.actor/mcp` | `$0.005 / tender` |
| [Wayback & Archive Intel](https://apify.com/data-goose/wayback-archive-intel-mcp) | CDX timelines, Common Crawl WARC diffs & Archive.org | `https://data-goose--wayback-archive-intel-mcp.apify.actor/mcp` | `$0.0025 / record` |

# Actor input Schema

## `portals` (type: `array`):

Official UK OCDS portals to query: contracts_finder and/or find_a_tender.

## `stages` (type: `array`):

Optional OCDS stage filter: planning, tender, and/or award.

## `keyword` (type: `string`):

Case-insensitive keyword matched against tender title, description, and buyer name.

## `cpvPrefixes` (type: `array`):

Optional CPV prefixes to filter (e.g. \["72", "48"] for IT/software tenders).

## `buyerQuery` (type: `string`):

Optional substring matched against the public buyer / authority name.

## `minValueGbp` (type: `number`):

Optional minimum contract value filter.

## `daysBack` (type: `integer`):

Number of days back to scan from UTC now (1..90).

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

Maximum deduplicated tender records to emit.

## Actor input object example

```json
{
  "portals": [
    "contracts_finder",
    "find_a_tender"
  ],
  "stages": [],
  "cpvPrefixes": [],
  "daysBack": 7,
  "maxItems": 100
}
```

# Actor output Schema

## `tenders` (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("data-goose/uk-public-tenders-ocds-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("data-goose/uk-public-tenders-ocds-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 data-goose/uk-public-tenders-ocds-mcp --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,data-goose/uk-public-tenders-ocds-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/RDBKA66itZom5Moeu/builds/vhI3VtgCnW27Q9Pwr/openapi.json
