# UK Companies House Registry API & MCP Server (`data-goose/uk-companies-house-registry-mcp`) Actor

Fast 256MB pure-HTTP Hybrid Actor (Batch PPE, Multi-Tenant Standby REST API, and MCP Server) for the official UK Companies House REST API. Search companies, fetch profiles, officers, and filing histories with BYOK key isolation, 600 req/5min throttling, and short-TTL caching.

- **URL**: https://apify.com/data-goose/uk-companies-house-registry-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 $3.50 / 1,000 companies house 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

## UK Companies House Registry API & MCP Server (`uk-companies-house-registry-mcp`)

> **UK Companies House API rate limit bypass** via per-key token buckets & TTL caching, **UK company officers & filing history scraper**, **Companies House MCP server**, and **UK KYB due diligence API** in a `256 MB` pure-HTTP Hybrid Apify Actor.

Query official **UK Companies House** (`api.company-information.service.gov.uk`) entities, directors, officers, and statutory filing histories through **Multi-Tenant Standby REST**, **Streamable HTTP MCP**, or **Pay-Per-Event Batch runs** — with zero browsers or proxies.

***

### Why Use This UK KYB Due Diligence API?

- **Built-In UK Companies House API Rate Limit Protection:** Enforces per-key `600 req / 5 min` async token-bucket throttling (keyed by SHA-256 hash) with automatic `429 Retry-After` exponential backoff and a 5-minute shared TTL response cache so repeat queries resolve immediately without consuming quota.
- **Strict Multi-Tenant BYOK Key Isolation:** Pass your own Companies House REST API key per request via `X-Companies-House-API-Key` (Standby/MCP) or `companiesHouseApiKey` (Batch) inside an isolated async `ContextVar`, or rely seamlessly on the Actor's managed key — zero global client state mutation across concurrent callers.
- **Deep Normalization:** Zero-pads numeric registration numbers (e.g., `445790` → `00445790`), merges company profiles + active/resigned officers + accounts/confirmation due dates, and exposes direct document metadata links.
- **Cost-Efficient Pricing:** Undercuts legacy `\$4.00 / 1k` incumbents at **$0.0035 / record** (`ukch-record`).

***

### Quick Integration Snippets

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

Add to `claude_desktop_config.json` or `.cursor/mcp.json`:

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

Optional: include `"X-Companies-House-API-Key": "<YOUR_CH_API_KEY>"` in `headers` for isolated Bring-Your-Own-Key throttling.

**Exposed MCP Tools:**

1. `search_uk_companies(query: str, company_status: str | None = None, limit: int = 20)`
2. `get_uk_company_profile(company_number: str, include_officers: bool = True)`
3. `get_uk_company_filings(company_number: str, category: str | None = None, limit: int = 25)`

***

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

**Batch Run (`apify-client`):**

```python
from apify_client import ApifyClient

client = ApifyClient("<APIFY_TOKEN>")
run = client.actor("data-goose/uk-companies-house-registry-mcp").call(
    run_input={
        "mode": "company_profile",
        "companyNumbers": ["00048839", "00445790"],
        "includeOfficers": True,
        "includeFilings": True,
        "maxItems": 50,
    }
)
records = list(client.dataset(run["defaultDatasetId"]).iterate_items())
print(f"Fetched {len(records)} UK company profiles")
```

**Direct Standby REST Lookup (`httpx`):**

```python
import httpx

resp = httpx.get(
    "https://data-goose--uk-companies-house-registry-mcp.apify.actor/v1/company/00048839",
    headers={
        "Authorization": "Bearer <APIFY_TOKEN>",
        # Optional BYOK header:
        # "X-Companies-House-API-Key": "<YOUR_CH_API_KEY>",
    },
    params={"include_officers": "true"},
    timeout=30.0,
)
resp.raise_for_status()
print(resp.json())
```

***

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

Configure an **HTTP Request** node (n8n or Make HTTP module):

- **Method:** `GET`
- **URL:** `https://data-goose--uk-companies-house-registry-mcp.apify.actor/v1/search`
- **Headers:**
  - `Authorization`: `Bearer {{ $env.APIFY_TOKEN }}` (or `Bearer <APIFY_TOKEN>` in Make)
  - `X-Companies-House-API-Key`: *(Optional BYOK Companies House API key)*
- **Query Parameters:**
  - `q`: `Barclays`
  - `company_status`: `active`
  - `limit`: `5`

***

### REST Endpoints & Batch Input Reference

#### Standby REST Endpoints (`/v1/*`)

- `GET /v1/search` — Query parameters: `q` (required), `company_status` (optional), `limit` (`1..100`).
- `GET /v1/company/{company_number}` — Path parameter `company_number`, query `include_officers` (default `true`).
- `GET /v1/company/{company_number}/filings` — Path parameter `company_number`, query `category` (e.g. `accounts`, `confirmation-statement`, `officers`), `limit` (`1..100`).

#### Batch Input Fields

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | `string` | `"search"` | Extraction mode: `"search"`, `"company_profile"`, or `"filing_history"`. |
| `query` | `string` | `null` | Search keyword when `mode="search"` (or auto-discovers company numbers when `companyNumbers` is empty). |
| `companyNumbers` | `string[]` | `[]` | Registration numbers (e.g. `["00048839", "SC123456"]`). Auto zero-pads numeric strings. |
| `companyStatus` | `string` | `null` | Optional status filter (`"active"`, `"dissolved"`, etc.). |
| `includeOfficers` | `boolean` | `true` | Fetch active and resigned directors/officers when `mode="company_profile"`. |
| `includeFilings` | `boolean` | `false` | Attach recent statutory filings when `mode="company_profile"`. |
| `filingCategory` | `string` | `null` | Filter filing history by category (e.g. `"accounts"`). |
| `maxItems` | `integer` | `50` | Maximum records to stream to dataset (`1..5000`). |
| `companiesHouseApiKey` | `string` | `null` | Secret optional BYOK Companies House REST API key overriding server key. |

***

### Pricing (Pay-Per-Event)

- `ukch-record`: **$0.0035** per returned search result, company profile, or filing record (`\$3.50 / 1k`).
- `ukch-query`: **$0.0015** per zero-match search or unknown company 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

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

Batch extraction mode: search by keyword, fetch company profiles (+ optional officers/filings), or extract filing history.

## `query` (type: `string`):

Company name or keyword when mode='search' (or used to discover company numbers when companyNumbers is omitted).

## `companyNumbers` (type: `array`):

List of 8-character UK Companies House numbers (e.g. \["00000006", "04444444"]). Automatically zero-padded when numeric.

## `companyStatus` (type: `string`):

Optional status filter for search results (e.g. active, dissolved, liquidation).

## `includeOfficers` (type: `boolean`):

When mode='company_profile', also fetch active and resigned directors/officers.

## `includeFilings` (type: `boolean`):

When mode='company_profile', attach recent filing history entries to each company profile.

## `filingCategory` (type: `string`):

Optional Companies House filing category (e.g. accounts, confirmation-statement, officers, capital).

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

Maximum number of company or filing records to emit to the dataset.

## `companiesHouseApiKey` (type: `string`):

Optional UK Companies House REST API key overriding the server fallback key for this run.

## Actor input object example

```json
{
  "mode": "search",
  "companyNumbers": [],
  "includeOfficers": true,
  "includeFilings": false,
  "maxItems": 50
}
```

# Actor output Schema

## `records` (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-companies-house-registry-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-companies-house-registry-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-companies-house-registry-mcp --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,data-goose/uk-companies-house-registry-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/t8Xx7GDxBlBL6N4SK/builds/CHXuWVptNPgS6jOZs/openapi.json
