# Company Due Diligence MCP Server (`taiw/company-due-diligence-mcp`) Actor

MCP server for AI agents: sanctions screening (OFAC, UK), LEI lookup, SEC EDGAR filings and UK Companies House checks, returned as structured JSON.

- **URL**: https://apify.com/taiw/company-due-diligence-mcp.md
- **Developed by:** [ThinkAIWorks](https://apify.com/taiw) (community)
- **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 lei lookups

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

## Company Due Diligence MCP Server

An MCP server that lets AI agents check a company in one call: sanctions screening (OFAC and UK lists), LEI records, SEC EDGAR filings and UK Companies House data, all returned as structured JSON with the source and freshness of every answer.

### What it does

AI agents (Claude, ChatGPT, Cursor, n8n and any other MCP client) connect to this Actor and call six tools:

| Tool | Use it to |
|---|---|
| `screen_sanctions` | Fuzzy-match a person, company or vessel name against the official OFAC SDN, OFAC Consolidated and UK Sanctions lists |
| `lookup_lei` | Get a company's legal identity, status, addresses and parents from the Global LEI Index (GLEIF) |
| `get_sec_company` | Get a US company's SEC profile (CIK, tickers, industry, state of incorporation) and its latest filings |
| `search_sec_filings` | List a company's 10-K, 10-Q, 8-K (or other) filings in a date range, with links |
| `lookup_uk_company` | Check a UK company on Companies House: status, officers, persons with significant control, insolvency |
| `company_due_diligence` | Run the checks above in parallel and get one report with red flags and an explicit list of data gaps |

Every result says which lists and sources were checked, when each list was downloaded, and links to the official record. **"No match" is never presented as "clean"**: results say exactly which sources had nothing, and why that is not a clearance.

### Who it's for

- **AI agent builders** who need reliable, typed company-check tools instead of scraping and prompt tricks.
- **Compliance, KYB and procurement teams** that want a fast first-pass screen before a full review.
- **Fintech and legal-tech developers** adding counterparty checks to workflows in n8n, Make or custom code.

### How to connect

The Actor runs in **Standby mode** as a remote MCP server using **streamable HTTP**. Your endpoint is:

```
https://<your-apify-username>--company-due-diligence-mcp.apify.actor/mcp
```

Authenticate with your Apify API token in the header `Authorization: Bearer <YOUR_APIFY_TOKEN>`. Keep the token private. Client menus change often, so check your client's current MCP documentation if a step looks different.

**Claude Code**

```bash
claude mcp add --transport http company-due-diligence https://<your-apify-username>--company-due-diligence-mcp.apify.actor/mcp --header "Authorization: Bearer <YOUR_APIFY_TOKEN>"
```

**Cursor** (`~/.cursor/mcp.json`)

```json
{
    "mcpServers": {
        "company-due-diligence": {
            "url": "https://<your-apify-username>--company-due-diligence-mcp.apify.actor/mcp",
            "headers": { "Authorization": "Bearer <YOUR_APIFY_TOKEN>" }
        }
    }
}
```

**n8n**: add an **MCP Client Tool** node, set the endpoint to the URL above, transport to **HTTP Streamable**, and add a header `Authorization: Bearer <YOUR_APIFY_TOKEN>`.

**Claude Desktop, ChatGPT and other clients**: use the same URL and header if the client supports remote MCP servers with a custom authorization header. If it only supports OAuth or a different sign-in, connect through Apify's hosted MCP server (`https://mcp.apify.com`, see the Apify MCP docs) and enable this Actor there.

**Try it without an MCP client:** in the Apify Console, open the **Input** tab, choose a **Tool**, fill in **Tool arguments** as JSON and press **Start**. The result is saved to the run's dataset and to the `OUTPUT` record.

### The tools

All results use the same envelope: `ok`, `tool`, `generated_at`, `charged_event`, and either `data` or `error` (`error_code`, `message`, `source`, `retryable`).

#### screen_sanctions

Inputs: `name` (required), `entity_type` (`person`, `company`, `vessel`, `any`; default `any`), `country`, `date_of_birth` (`yyyy`, `yyyy-mm` or `yyyy-mm-dd`), `min_score` (0.5 to 1; default 0.85).

How scores work: names are compared after normalising case, accents, punctuation and company suffixes (Ltd, LLC, GmbH, S.A. and others). `1.00` means identical after normalisation, `0.98` the same words in a different order, and lower scores spelling differences or one name containing the other. A country adds 0.02 on a match and subtracts 0.05 on a mismatch; a birth year adds 0.05 or subtracts 0.20. **A score is name similarity, not identity.**

Sample output (sample data from a test run on 2026-11-11 against public OFAC data, shortened):

```json
{
    "ok": true,
    "tool": "screen_sanctions",
    "charged_event": "sanctions-screen",
    "data": {
        "status": "possible_match",
        "matches": [
            {
                "list": "ofac_sdn",
                "entry_id": "ofac_sdn:306",
                "program": "CUBA",
                "matched_name": "BANCO NACIONAL DE CUBA",
                "aliases": ["BNC", "NATIONAL BANK OF CUBA"],
                "score": 1,
                "score_basis": "identical after normalisation",
                "entity_type": "company",
                "source_url": "https://sanctionssearch.ofac.treas.gov/Details.aspx?id=306"
            }
        ],
        "lists_checked": [
            { "list": "ofac_sdn", "entries": 19563, "source_published": "2026-11-09", "stale": false },
            { "list": "ofac_consolidated", "entries": 486, "source_published": "2026-11-04", "stale": false },
            { "list": "uk_sanctions", "entries": 6420, "source_published": "2026-11-10", "stale": false }
        ],
        "lists_not_checked": [],
        "lists_last_updated": "2026-11-11T18:47:16.453Z",
        "notes": ["Possible false positives: name similarity alone does not identify an entity. Verify every match against the official source (source_url) ..."]
    }
}
```

`status` is `possible_match`, `no_match_in_checked_lists` or `incomplete` (a list could not be checked, so do not rely on the result).

#### lookup_lei

Inputs: `lei` (exact) or `name` with an optional `country`. A name resolves to a single record only when one candidate is clearly the best; otherwise you get `candidates` and `resolution: "ambiguous"`. Output includes legal name, status, registration dates, legal and headquarters address, jurisdiction, legal form and direct and ultimate parents (or the reported `exception_reason`, such as `NATURAL_PERSONS`). Sample data, shortened: `{"lei":"HWUPKR0MPOU8FGXBT394","legal_name":"Apple Inc.","entity_status":"ACTIVE","registration_status":"ISSUED","jurisdiction":"US-CA","ultimate_parent":{"exception_reason":"NATURAL_PERSONS"}}`.

#### get_sec_company and search_sec_filings

`get_sec_company`: `ticker`, `cik` or `name`. Returns CIK, name, tickers, exchanges, SIC code and description, state of incorporation, fiscal year end and the 10 most recent filings. Name search covers companies in the SEC public ticker list (listed US issuers).

`search_sec_filings`: `ticker` or `cik`, `forms` (default `["10-K","10-Q","8-K"]`), `from_date`, `to_date` (`yyyy-mm-dd`), `limit` (default 10, maximum 50). Sample data, shortened: `{"form":"10-K","filing_date":"2026-11-03","report_date":"2026-09-26","accession_number":"0000320193-26-000026","primary_document_url":"https://www.sec.gov/Archives/edgar/data/320193/000032019326000026/aapl-20260926.htm"}`. The tool lists filings and links; it does not read them.

#### lookup_uk_company

`company_number` or `name`. Returns name, number, status, incorporation date, type, registered address, SIC codes, officers (**names and roles only**), persons with significant control (**names and nature of control only**) and insolvency cases. No dates of birth or home addresses. Needs a free Companies House API key set by the Actor owner; without one the tool returns `API_KEY_REQUIRED`.

#### company_due_diligence

Inputs: `company_name` (required), `country`, and `identifiers` (`lei`, `cik`, `ticker`, `uk_company_number`). Runs the sanctions screen, LEI, SEC and UK checks in parallel (SEC for US or unspecified countries, UK only for GB or a UK company number) and returns:

- `entity_summary`: the resolved legal name and identifiers
- `sanctions_screening`, `lei_record`, `sec_summary`, `registry_summary`
- `red_flags`: plain-language signals, each with its source (possible sanctions match, UK liquidation or insolvency, inactive LEI)
- `data_gaps`: every source that returned nothing, was skipped or failed
- `report_status`: `complete_for_sources_consulted`, `partial` or `incomplete`, plus `generated_at`

**Always read `data_gaps`.** A report with no red flags and several gaps is not a clean bill of health.

### Pricing

Pay per event. You pay only for successful results, and a result is charged once.

| Tool | Event | Price per call |
|---|---|---|
| `screen_sanctions` | `sanctions-screen` | $0.05 |
| `lookup_lei` | `lei-lookup` | $0.02 |
| `get_sec_company` | `sec-company` | $0.02 |
| `search_sec_filings` | `sec-filings-search` | $0.03 |
| `lookup_uk_company` | `uk-company` | $0.03 |
| `company_due_diligence` | `due-diligence-report` | $0.30 (one charge for the whole report, not per source) |

**Not charged:** invalid input, errors, a screening where any selected list could not be checked (`incomplete`), "not found" lookups (unknown LEI, SEC filer or UK company) and ambiguous name results that return candidates only. If you set a maximum charge, results beyond it are withheld and the call returns `CHARGE_LIMIT_REACHED`. Example: 100 sanctions screens cost $5.00; 100 full reports cost $30.00.

### Data sources and freshness

| Source | Used for | How current |
|---|---|---|
| OFAC SDN and Consolidated lists (US Treasury) | Sanctions screening | Downloaded and cached; refreshed after `cacheMaxAgeHours` (default 24). OFAC publishes on no fixed schedule; each result shows the file date |
| UK Sanctions List (FCDO) | Sanctions screening | Same cache; each result shows the file date |
| EU Consolidated Financial Sanctions List | Not enabled in this version | Planned once its reuse terms are confirmed and a reliable refresh is in place |
| GLEIF Global LEI Index (CC0) | LEI records | Live query |
| SEC EDGAR | Company profiles, filings | Live query (ticker list cached for hours) |
| UK Companies House | UK company records | Live query, needs an API key |

Not included: the EU list (planned), the UN Security Council list (its terms limit use to non-commercial), OpenSanctions (non-commercial license) and OpenCorporates (paid key). The UK list already reflects UN designations that the UK has implemented.

### Frequently asked questions

#### Do I need an Apify token to use it?

From an AI client (Claude, Cursor, n8n and others), yes: you send your Apify API token in the `Authorization: Bearer` header, and calls are billed to your account. To try a tool without a client, open the Actor in the Apify Console, choose a **Tool**, fill in **Tool arguments** and press **Start**. No token is needed for that.

#### Which sanctions lists are checked?

The OFAC SDN list, the OFAC Consolidated (non-SDN) list and the UK Sanctions List. Every result says which lists were checked, how many entries each had, and when each file was published and downloaded. The EU and UN lists are not part of this version.

#### Does "no match" mean a company is clean?

No. "No match" only means no listed name scored above the minimum score in the lists named in the result. The company may still be on a list we do not check, or listed under a very different name. `company_due_diligence` spells this out in `data_gaps`. Always read it.

#### Why did I get a match for a company with a similar name?

Matching is fuzzy, so similar names can score high. A score measures name similarity, not identity, and a one-letter difference in a surname can still score above the default threshold of 0.85. Open the `source_url` and check country, date of birth and other details before acting. You can raise `min_score` (for example to 0.92) and pass `country` or `date_of_birth` to reduce noise.

#### How is the score calculated?

Names are compared after normalising case, accents, punctuation and company suffixes such as Ltd, LLC, GmbH and S.A. A score of 1.00 means identical after normalisation, 0.98 the same words in a different order, and lower scores spelling differences or one name containing the other. A matching country adds 0.02 and a different one subtracts 0.05. A matching birth year adds 0.05 and a different one subtracts 0.20.

#### How fresh is the data?

Sanctions lists are downloaded and cached, and refreshed when they are older than `cacheMaxAgeHours` (24 hours by default). Sources publish on their own schedules, so check the file dates in each result. LEI, SEC and Companies House data is queried live.

#### What does it cost, and what is free?

You pay per successful result, once per call. Not charged: invalid input, errors, a screening where any selected list could not be checked, "not found" lookups (unknown LEI, SEC filer or UK company), and ambiguous name results that only return candidates. If you set a maximum charge and it is reached, the result is withheld and the call returns `CHARGE_LIMIT_REACHED`. See Pricing above.

#### What happens if a source is down?

The tool returns a structured error (`error_code`, `message`, `source`, `retryable`) instead of failing silently, and nothing is charged. If only some sanctions lists are unavailable, the result is marked `incomplete` and free. In `company_due_diligence`, the failed source appears in `data_gaps` and the rest of the report is still returned.

#### Does it cover companies outside the US and UK?

Partly. LEI records cover companies worldwide that have an LEI, but most companies have none. SEC data covers US-listed companies, and Companies House covers UK companies only. For other companies, expect gaps, which are listed in `data_gaps`.

#### Why does lookup_uk_company return API_KEY_REQUIRED?

The UK Companies House API needs a free API key, which the Actor owner sets on the server. Until one is configured, that tool returns the error and is not charged, and `company_due_diligence` skips the UK register and says so.

#### Does it return personal data?

Only what is in public company records: officers' names and roles, and persons with significant control (names and nature of control). It never returns dates of birth or home addresses.

#### Is this legal or compliance advice?

No. It is an information aggregator and not a substitute for official sanctions screening or a regulated compliance program. Verify every match with the official source before acting.

#### How do I report a problem or ask for a source?

Open the **Issues** tab of this Actor and include the tool name and the time of the call. Do not include secrets or tokens.

### Legal note

This tool aggregates publicly available data. It is not legal advice and is not a substitute for official sanctions screening or a regulated compliance program. Verify matches with the official source before acting. This Actor is not affiliated with or endorsed by OFAC, the UK government, GLEIF, the SEC or Companies House.

### Support

Report problems or request a source in the **Issues** tab of this Actor. Include the tool name and the time of the call. Do not include secrets or tokens.

# Actor input Schema

## `sanctionsLists` (type: `array`):

Which official lists screen_sanctions and company_due_diligence check. The default is the OFAC SDN, OFAC Consolidated and UK lists. The EU list is available here for the Actor owner but is not recommended yet: its reuse terms are unconfirmed and its server is slow (the file is about 26 MB).

## `cacheMaxAgeHours` (type: `integer`):

A downloaded list is reused until it is this old, then refreshed from the official source. Every screening result states when each list was downloaded.

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

Free API key from developer.company-information.service.gov.uk. Without it, lookup_uk_company returns the error API_KEY_REQUIRED and company_due_diligence skips the UK register.

## `contactEmail` (type: `string`):

SEC EDGAR asks every automated client to identify itself with a contact email in the User-Agent header. It is sent to the SEC only.

## `tool` (type: `string`):

Normal-run mode only: the single tool to call. Ignored in Standby mode, where AI agents choose tools themselves.

## `arguments` (type: `object`):

Normal-run mode only: the arguments for the chosen tool, as JSON. See the README for each tool's inputs.

## Actor input object example

```json
{
  "sanctionsLists": [
    "ofac_sdn",
    "ofac_consolidated",
    "uk_sanctions"
  ],
  "cacheMaxAgeHours": 24,
  "contactEmail": "",
  "tool": "screen_sanctions",
  "arguments": {
    "name": "Banco Nacional de Cuba",
    "entity_type": "company"
  }
}
```

# Actor output Schema

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

The result of the tool call: ok, tool, charged_event, generated_at, and the data or error.

## `output` (type: `string`):

The same result as a single JSON record, easy to read from the API.

# 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 = {
    "sanctionsLists": [
        "ofac_sdn",
        "ofac_consolidated",
        "uk_sanctions"
    ],
    "cacheMaxAgeHours": 24,
    "contactEmail": "",
    "tool": "screen_sanctions",
    "arguments": {
        "name": "Banco Nacional de Cuba",
        "entity_type": "company"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("taiw/company-due-diligence-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 = {
    "sanctionsLists": [
        "ofac_sdn",
        "ofac_consolidated",
        "uk_sanctions",
    ],
    "cacheMaxAgeHours": 24,
    "contactEmail": "",
    "tool": "screen_sanctions",
    "arguments": {
        "name": "Banco Nacional de Cuba",
        "entity_type": "company",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("taiw/company-due-diligence-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 '{
  "sanctionsLists": [
    "ofac_sdn",
    "ofac_consolidated",
    "uk_sanctions"
  ],
  "cacheMaxAgeHours": 24,
  "contactEmail": "",
  "tool": "screen_sanctions",
  "arguments": {
    "name": "Banco Nacional de Cuba",
    "entity_type": "company"
  }
}' |
apify call taiw/company-due-diligence-mcp --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,taiw/company-due-diligence-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/5HAMUFDDeEQteQ4OI/builds/P8KmENLsBGBCadrud/openapi.json
