# Counterparty Due Diligence MCP (`red.cars/counterparty-due-diligence-mcp`) Actor

18-source counterparty risk screening for AI agents. OFAC sanctions, Interpol, FBI, corporate registries, SEC filings, CFPB complaints, WHOIS, EU VAT. FATF-aligned 5-dimension risk scoring.

- **URL**: https://apify.com/red.cars/counterparty-due-diligence-mcp.md
- **Developed by:** [AutomateLab](https://apify.com/red.cars) (community)
- **Categories:** MCP servers, AI
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-usage

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Counterparty Due Diligence MCP — AI Agent Compliance Screening

> **18 public data sources. 5-dimension FATF-aligned risk scoring. $0.05–$0.10 per tool call.**

Screen companies and individuals against OFAC sanctions, Interpol Red Notices, FBI Most Wanted, global corporate registries (UK, Canada, Australia, NZ), GLEIF LEI, SEC EDGAR, Form 4 insider trades, CFPB complaints, WHOIS, tech stack fingerprinting, and EU VAT validation — all from a single MCP tool call.

Built for AI agents performing AML/KYC onboarding, vendor risk assessment, and regulatory compliance due diligence.

---

### MCP Endpoint

````

https://counterparty-due-diligence-mcp.apify.actor/mcp

````

**Transport:** HTTP POST + JSON-RPC 2.0  
**Protocol:** MCP 2024-11-05  
**Auth:** Apify API token (free tier available)

---

### Tools

| Tool | Price | Description |
|------|-------|-------------|
| `comprehensive_company_screening` | $0.10 | Full 18-source screening in one call — primary onboarding entry point |
| `sanctions_watchlist_check` | $0.07 | OFAC SDN + OpenSanctions + Interpol + FBI simultaneous search |
| `corporate_structure_analysis` | $0.08 | UK Companies House, Canada Corps, Australia ABN, NZBN, OpenCorporates, GLEIF LEI |
| `regulatory_exposure_report` | $0.08 | SEC EDGAR filings, Form 4 insider trades, CFPB complaints |
| `political_influence_map` | $0.07 | PEP screening, sanctions adjacency, political affiliation detection |
| `digital_presence_verification` | $0.05 | WHOIS domain age, privacy flags, EU VAT VIES validation |
| `counterparty_risk_score` | $0.10 | Weighted 5-dimension scoring engine with FATF grades |
| `jurisdiction_risk_assessment` | $0.05 | FATF blacklist/greylist, EU/OECD tax haven classification |

---

### 5-Dimension Risk Scoring Model

Risk score = 100 − weighted points across 5 dimensions:

| Dimension | Max Points | Data Sources |
|-----------|-----------|-------------|
| **Sanctions & Watchlists** | 30 | OFAC SDN, OpenSanctions (100+ programs), Interpol Red Notices, FBI Most Wanted |
| **Corporate Hygiene** | 25 | UK Companies House, Canada Corps, Australia ABN, NZBN, OpenCorporates (140+ jurisdictions), GLEIF LEI |
| **Regulatory Exposure** | 20 | SEC EDGAR filings, Form 4 insider trades, CFPB complaints |
| **Jurisdiction Risk** | 15 | FATF blacklist, greylist, high-risk third nations, EU/OECD tax haven lists |
| **Digital Presence** | 10 | WHOIS domain age, privacy protection, tech stack fingerprinting |

**Grades:** `LOW RISK (90–100)` · `MODERATE RISK (70–89)` · `ELEVATED RISK (50–69)` · `HIGH RISK (25–49)` · `CRITICAL RISK (0–24)`

---

### Data Sources (18 Total)

#### Tier 1 — Direct Public APIs (no API key required)
- **OFAC SDN** — U.S. Treasury sanctions list
- **OpenSanctions** — Aggregated sanctions (100+ programs)
- **Interpol Red Notices** — International wanted persons
- **FBI Most Wanted** — U.S. federal fugitives
- **GLEIF LEI** — Global Legal Entity Identifier
- **SEC EDGAR** — Company filings (10-K, 10-Q, 8-K, DEF 14A)
- **SEC Form 4** — Insider trading transactions
- **CFPB Complaints** — Consumer financial complaints database
- **EU VAT VIES** — VAT number validation

#### Tier 2 — Corporate Registries (public, no auth)
- **UK Companies House** — GB entity registration
- **Canada Corporations** — Federal + provincial
- **Australia ABN** — Australian Business Number lookup
- **NZ Companies Office** — New Zealand NZBN registry
- **OpenCorporates** — 140+ jurisdictions

#### Tier 3 — Domain & Technology (public)
- **WHOIS Lookup** — Domain registration, age, privacy flags
- **Tech Stack Fingerprinting** — Server software, frameworks, analytics detection

---

### Usage Examples

#### Comprehensive Company Screening

```json
{
  "method": "tools/call",
  "params": {
    "name": "comprehensive_company_screening",
    "arguments": {
      "entity_name": "Acme Corp Ltd",
      "jurisdiction": "GB",
      "entity_type": "company"
    }
  },
  "id": 1
}
````

#### Sanctions Watchlist Check

```json
{
  "method": "tools/call",
  "params": {
    "name": "sanctions_watchlist_check",
    "arguments": {
      "name": "John Doe",
      "search_type": "fuzzy"
    }
  },
  "id": 2
}
```

#### Compute Risk Score from Previous Results

```json
{
  "method": "tools/call",
  "params": {
    "name": "counterparty_risk_score",
    "arguments": {
      "entity_name": "Vendor Corp",
      "sanctions_hits": 0,
      "corporate_registrations": 2,
      "has_lei": true,
      "sec_enforcement_count": 0,
      "insider_trade_count": 3,
      "cfpb_complaint_count": 0,
      "jurisdiction_codes": ["GB"],
      "domain_age_days": 2000,
      "domain_privacy": false
    }
  },
  "id": 3
}
```

#### Jurisdiction Risk Assessment

```json
{
  "method": "tools/call",
  "params": {
    "name": "jurisdiction_risk_assessment",
    "arguments": {
      "country_codes": ["RU", "CY", "GB"],
      "include_tax_havens": true
    }
  },
  "id": 4
}
```

***

### Risk Score Output Schema

```json
{
  "entity": "Acme Corp Ltd",
  "riskScore": {
    "total": 78,
    "grade": "MODERATE RISK",
    "recommendation": "Proceed with enhanced monitoring. Review corporate structure and ownership within 90 days.",
    "dimensions": {
      "sanctionsWatchlist": { "score": 0, "risk": "LOW", "findings": ["No sanctions hits"] },
      "corporateHygiene": { "score": 18, "risk": "ELEVATED", "findings": ["Found in UK Companies House: Acme Corp Ltd"] },
      "regulatoryExposure": { "score": 3, "risk": "LOW", "findings": [] },
      "jurisdictionRisk": { "score": 1, "risk": "LOW", "findings": ["GB is not a tax haven"] },
      "digitalPresence": { "score": 5, "risk": "MODERATE", "findings": ["Domain 1200 days old"] }
    }
  },
  "dataSources": {
    "ofac": 0,
    "opensanctions": 0,
    "interpol": 0,
    "fbi": 0,
    "corporateRegistries": 1,
    "lei": 0,
    "secFilings": 0,
    "insiderTrades": 0,
    "cfpbComplaints": 0
  },
  "sources": ["OFAC SDN", "OpenSanctions", "Interpol", "FBI", "UK Companies House", "GLEIF", "SEC EDGAR"]
}
```

***

### Pricing (Pay-Per-Event)

All 8 tools use Apify PPE (Pay-Per-Event) billing. No subscription required.

| Tool | PPE Price |
|------|-----------|
| `comprehensive_company_screening` | $0.10 |
| `sanctions_watchlist_check` | $0.07 |
| `corporate_structure_analysis` | $0.08 |
| `regulatory_exposure_report` | $0.08 |
| `political_influence_map` | $0.07 |
| `digital_presence_verification` | $0.05 |
| `counterparty_risk_score` | $0.10 |
| `jurisdiction_risk_assessment` | $0.05 |

**Typical cost for full onboarding screening:** ~$0.40 (4 tool calls: screening + sanctions + corporate + risk score)

***

### Use Cases

- **AML/KYC Onboarding** — Screen new customers, vendors, and partners before engagement
- **Vendor Risk Management** — Assess third-party risk using FATF-aligned grades
- **Regulatory Compliance** — Satisfy SAR (Suspicious Activity Report) pre-screening requirements
- **Pre-Merger Due Diligence** — Corporate structure analysis + sanctions screening before M\&A
- **Know Your Counterparty** — Real-time risk scoring for financial institutions and fintech

***

### Integration

#### Claude Desktop

```json
{
  "mcpServers": {
    "counterparty-due-diligence": {
      "command": "npx",
      "args": ["-y", "@apify/counterparty-due-diligence-mcp"]
    }
  }
}
```

#### Other MCP Clients

Any MCP-compatible client can connect to `https://counterparty-due-diligence-mcp.apify.actor/mcp` using HTTP POST with JSON-RPC 2.0.

***

### Technical Details

- **Runtime:** Node.js 20+ (ES modules)
- **Mode:** Apify Standby (zero cold-start latency)
- **Memory:** 512 MB
- **Timeout:** 300 seconds
- **Protocol:** MCP 2024-11-05 with JSON-RPC 2.0
- **Auth:** Apify API token (set `APIFY_TOKEN` environment variable)

***

### Related Actors

- [compliance-intelligence-mcp](https://apify.com/red-cars/compliance-intelligence-mcp) — SEC EDGAR enforcement actions and sanctions screening
- [sec-edgar-intelligence-mcp](https://apify.com/red-cars/sec-edgar-intelligence-mcp) — Full SEC EDGAR API access
- [company-intelligence-mcp](https://apify.com/red-cars/company-intelligence-mcp) — Business information and company data

***

*Built for AI agent compliance workflows. 18 public data sources, no subscriptions required.*

# Actor input Schema

## Actor input object example

```json
{}
```

# 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("red.cars/counterparty-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("red.cars/counterparty-due-diligence-mcp").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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 red.cars/counterparty-due-diligence-mcp --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=red.cars/counterparty-due-diligence-mcp",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Counterparty Due Diligence MCP",
        "description": "18-source counterparty risk screening for AI agents. OFAC sanctions, Interpol, FBI, corporate registries, SEC filings, CFPB complaints, WHOIS, EU VAT. FATF-aligned 5-dimension risk scoring.",
        "version": "1.0",
        "x-build-id": "eeCTBVfPrZpKaP3ry"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/red.cars~counterparty-due-diligence-mcp/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-red.cars-counterparty-due-diligence-mcp",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/red.cars~counterparty-due-diligence-mcp/runs": {
            "post": {
                "operationId": "runs-sync-red.cars-counterparty-due-diligence-mcp",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/red.cars~counterparty-due-diligence-mcp/run-sync": {
            "post": {
                "operationId": "run-sync-red.cars-counterparty-due-diligence-mcp",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {}
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
