# EU TED v3 & UK Contracts Finder Procurement MCP Actor (`autonomycorp/eu-uk-procurement-tenders-mcp-actor`) Actor

Python stdlib unified public procurement search and dual-transport MCP server querying EU TED API v3 and UK Contracts Finder OCDS with deterministic CPV/sector screening and SQLite TTL caching.

- **URL**: https://apify.com/autonomycorp/eu-uk-procurement-tenders-mcp-actor.md
- **Developed by:** [Kenz Labs](https://apify.com/autonomycorp) (community)
- **Categories:** MCP servers, Business, Developer tools
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $20.00 / 1,000 procurement searches

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

## EU TED v3 & UK Contracts Finder Procurement MCP Actor

[![Apify Actor](https://img.shields.io/badge/Apify-Pay--Per--Event%20%240.02-blue.svg)](https://apify.com/autonomyCorp/eu-uk-procurement-tenders-mcp-actor)
[![Model Context Protocol](https://img.shields.io/badge/MCP-Stdio%20%26%20HTTP-green.svg)](https://modelcontextprotocol.io)
[![Zero Dependencies](https://img.shields.io/badge/Runtime-Python%203.10%2B%20Stdlib-brightgreen.svg)]()

> **Unified European & UK Public Procurement Intelligence for AI Agents**: Query live **EU Tenders Electronic Daily (TED API v3)** and **UK Contracts Finder (OCDS)** via normalized JSON-RPC 2.0 MCP (`stdio` + HTTP Standby) with zero third-party runtime dependencies and zero browser overhead.

***

### Value Proposition & Transparent Pricing

Scraping government tender portals directly requires brittle pagination logic and multi-MB HTML parsing. This Actor speaks directly to official public procurement APIs with bounded reads (`524,288` byte cap) and deterministic SQLite TTL caching (`300s`).

- **EU TED API v3**: Issues `POST https://api.ted.europa.eu/v3/notices/search` with structured expert queries and field projections.
- **UK Contracts Finder OCDS**: Issues `GET https://www.contractsfinder.service.gov.uk/Published/Notices/OCDS/Search` with bounded page limits.
- **Unified Schema**: Normalizes both feeds into `source`, `notice_id`, `title`, `buyer_name`, `country`, `published_at`, `deadline_at`, `cpv_codes`, `estimated_value`, `currency`, `notice_type`, and `url`.
- **Transparent Pay-Per-Event Pricing**: **$0.02 per event** (`procurement-search`, `uk-contracts-finder-search`, `eu-ted-search`) — zero monthly lock-in, zero proxy surcharges.

***

### Copy-Paste MCP Client Configs (Claude Desktop, Cursor, Antigravity)

Install locally (`pip install .`) to run via `stdio`, or connect directly to the hosted Apify MCP Standby endpoint (`https://mcp.apify.com/?actors=autonomycorp/eu-uk-procurement-tenders-mcp-actor`) or run locally (`python3 -m eu_uk_procurement_mcp.mcp_server --transport http --port 8080`).

#### Claude Desktop (`claude_desktop_config.json`) — Stdio

```json
{
  "mcpServers": {
    "eu-uk-procurement-tenders": {
      "command": "python3",
      "args": [
        "-m",
        "eu_uk_procurement_mcp.mcp_server",
        "--transport",
        "stdio"
      ]
    }
  }
}
```

#### Cursor (`.cursor/mcp.json`) — Stdio & Hosted Apify MCP

```json
{
  "mcpServers": {
    "eu-uk-procurement-tenders": {
      "command": "python3",
      "args": [
        "-m",
        "eu_uk_procurement_mcp.mcp_server",
        "--transport",
        "stdio"
      ]
    },
    "eu-uk-procurement-tenders-apify": {
      "url": "https://mcp.apify.com/?actors=autonomycorp/eu-uk-procurement-tenders-mcp-actor"
    }
  }
}
```

#### Antigravity (`mcp_config.json`) — Stdio

```json
{
  "mcpServers": {
    "eu-uk-procurement-tenders": {
      "command": "python3",
      "args": [
        "-m",
        "eu_uk_procurement_mcp.mcp_server",
        "--transport",
        "stdio"
      ]
    }
  }
}
```

***

### Sample Input & Verified JSON Output

#### Sample Input

```json
{
  "action": "search_public_tenders",
  "keyword": "software",
  "sources": ["uk", "eu"],
  "active_only": true,
  "limit": 3,
  "use_cache": true,
  "timeout_seconds": 12
}
```

#### Verified Sample Output

```json
{
  "status": "SUCCEEDED",
  "keyword": "software",
  "sources_requested": ["uk", "eu"],
  "sources_succeeded": ["uk", "eu"],
  "total_returned": 2,
  "filtered_out_sharia_count": 0,
  "tenders": [
    {
      "source": "uk_contracts_finder",
      "notice_id": "ocds-b5fd17-36bc6e2d-bc47-4982-b541-03d4cc29a814",
      "title": "The Surrey Spatial Development Strategy programme is seeking to engage with the market for the development of a comprehensive, evidence led digital platform",
      "buyer_name": "Surrey County Council",
      "country": "GBR",
      "published_at": "2026-11-13T16:00:00Z",
      "deadline_at": "2026-12-01T12:00:00Z",
      "cpv_codes": ["48326100"],
      "estimated_value": null,
      "currency": null,
      "notice_type": "tender",
      "url": "https://www.contractsfinder.service.gov.uk/Published/Notices/OCDS/ocds-b5fd17-36bc6e2d-bc47-4982-b541-03d4cc29a814"
    },
    {
      "source": "eu_ted_v3",
      "notice_id": "756436-2026",
      "title": "Romania – License management software package – Achizitie licente.",
      "buyer_name": "Ministerul Justitiei",
      "country": "ROU",
      "published_at": "2026-11-02+01:00",
      "deadline_at": "2026-12-09+02:00",
      "cpv_codes": ["48218000"],
      "estimated_value": 1881155.9,
      "currency": "RON",
      "notice_type": "cn-standard",
      "url": "https://ted.europa.eu/en/notice/-/detail/756436-2026"
    }
  ]
}
```

***

### Exposed MCP Tools & Apify Cloud Usage

1. `search_public_tenders` — Unified UK Contracts Finder + EU TED v3 search.
2. `search_uk_contracts_finder` — Dedicated UK Contracts Finder OCDS search.
3. `search_eu_ted_notices` — Dedicated EU TED API v3 search with ISO3 country & CPV filtering.

#### Apify Cloud cURL Example

```bash
curl -X POST "https://api.apify.com/v2/acts/autonomyCorp~eu-uk-procurement-tenders-mcp-actor/runs?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "action": "search_public_tenders",
    "keyword": "software",
    "sources": ["uk", "eu"],
    "limit": 3
  }'
```

#### Python SDK Example

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("autonomyCorp/eu-uk-procurement-tenders-mcp-actor").call(
    run_input={
        "action": "search_public_tenders",
        "keyword": "software",
        "sources": ["uk", "eu"],
        "limit": 3,
    }
)

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["source"], item["notice_id"], item["title"])
```

***

### CPV Exclusion Scope & Honest Error Handling

- **CPV Exclusions**: Filters out notices matching CPV prefixes `353` (weapons and ammunition), `354` (military vehicles), and `357` (military electronic systems).
- **Sector Exclusions**: Rejects queries and notices tied to weapons, alcohol, tobacco, pork, gambling, adult content, or interest-bearing debt instruments.
- **Upstream Errors & Rate Limits**: UK Contracts Finder ignores server-side keyword query parameters, so keyword matching runs locally on bounded OCDS pages (`<=2` pages). If one upstream returns HTTP `4xx`/`5xx` or times out, `errors` records the message and `status` becomes `PARTIAL_SUCCEEDED`. If all requested upstreams fail, the client raises `RuntimeError` with zero fabricated records.

***

### Maintainer, Engineering Suite & License

- **License**: MIT
- **Maintainer**: Kenz Labs (`kenzailab@gmail.com`)
- **Engineering Suite**: [iktisad Token & Bandwidth Efficiency MCP](https://shiny-apricot.github.io/iktisad/) | [GitHub](https://github.com/shiny-apricot) | [Apify Actor](https://apify.com/autonomyCorp/eu-uk-procurement-tenders-mcp-actor)

# Actor input Schema

## `action` (type: `string`):

Search operation to execute

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

Search keyword (e.g. software, cloud, cybersecurity)

## `sources` (type: `array`):

Upstream sources for unified search ('uk', 'eu')

## `cpv_prefix` (type: `string`):

Optional Common Procurement Vocabulary prefix (e.g. 72 or 48)

## `country` (type: `string`):

Optional 3-letter ISO country code filter (e.g. GBR, DEU, FRA, ROU)

## `active_only` (type: `boolean`):

Filter for active open tender notices

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

Maximum number of normalized tenders to return (1-50)

## `use_cache` (type: `boolean`):

Reuse cached search results within the 300s TTL window

## `timeout_seconds` (type: `number`):

Per-upstream HTTP timeout in seconds (1-30)

## Actor input object example

```json
{
  "action": "search_public_tenders",
  "keyword": "software",
  "sources": [
    "uk",
    "eu"
  ],
  "cpv_prefix": "48",
  "country": "GBR",
  "active_only": true,
  "limit": 10,
  "use_cache": true,
  "timeout_seconds": 12
}
```

# Actor output Schema

## `resultsDataset` (type: `string`):

Dataset containing normalized UK Contracts Finder OCDS and EU TED v3 tender notices plus run summary.

# 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 = {
    "action": "search_public_tenders",
    "keyword": "software",
    "sources": [
        "uk",
        "eu"
    ],
    "active_only": true,
    "limit": 10,
    "use_cache": true,
    "timeout_seconds": 12
};

// Run the Actor and wait for it to finish
const run = await client.actor("autonomycorp/eu-uk-procurement-tenders-mcp-actor").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 = {
    "action": "search_public_tenders",
    "keyword": "software",
    "sources": [
        "uk",
        "eu",
    ],
    "active_only": True,
    "limit": 10,
    "use_cache": True,
    "timeout_seconds": 12,
}

# Run the Actor and wait for it to finish
run = client.actor("autonomycorp/eu-uk-procurement-tenders-mcp-actor").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 '{
  "action": "search_public_tenders",
  "keyword": "software",
  "sources": [
    "uk",
    "eu"
  ],
  "active_only": true,
  "limit": 10,
  "use_cache": true,
  "timeout_seconds": 12
}' |
apify call autonomycorp/eu-uk-procurement-tenders-mcp-actor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,autonomycorp/eu-uk-procurement-tenders-mcp-actor"
        }
    }
}
```

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/Lb317p6GK7jOUw3XG/builds/52lvHhfOCzPFg4Hcg/openapi.json
