# EU VIES VAT, Sanctions & LEI Verification MCP Server (`eurobridge-labs/eu-vies-sanctions-lei-mcp`) Actor

Check an EU VAT registration, screen one entity, or screen a batch.

- **URL**: https://apify.com/eurobridge-labs/eu-vies-sanctions-lei-mcp.md
- **Developed by:** [EuroBridge Labs](https://apify.com/eurobridge-labs) (community)
- **Categories:** MCP servers, Developer tools, AI
- **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 $2.00 / 1,000 vat checks

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/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 VIES VAT, Sanctions & LEI Verification MCP Server

Verify EU VAT registrations and screen counterparties using official European Commission and GLEIF sources. The Actor supports batch input and exposes three Streamable HTTP MCP tools at `/mcp`. The upstream services require no API keys.

| Batch mode and MCP tool | PPE event | Price |
| --- | --- | --- |
| `check_eu_vat` | `vat-check` | $0.002 per completed check |
| `screen_entity_kyb` | `sanctions-lei-check` | $0.005 per completed screen |
| `batch_kyb_screen` | `kyb-batch-screen` | $0.05 per completed batch of 1–50 |

A confirmed invalid VAT result is a completed check. An invalid input or failed upstream check incurs zero operation events. If any batch item fails upstream, the batch returns the error and its zero-based item index. A charge with an uncertain outcome returns `BILLING_UNCERTAIN` and stops further charging for that Actor execution.

### Batch input

Use `mode` for Actor runs. In MCP clients, select the tool by name and pass the other fields as arguments. These examples use illustrative business data.

```json
{"mode": "check_eu_vat", "vat": "BE 0123.456.749"}
```

```json
{
  "mode": "screen_entity_kyb",
  "name": "Harbor Example BV",
  "country": "BE",
  "vat": "BE0123456749",
  "threshold": 90
}
```

```json
{
  "mode": "batch_kyb_screen",
  "counterparties": [
    {"name": "Harbor Example BV", "country": "BE", "vat": "BE0123456749"},
    {"name": "North Quay Example SAS", "country": "FR", "vat": "FRAB123456789"}
  ],
  "threshold": 93
}
```

Single-entity KYB requires `name`. Its `country`, `vat`, and `lei` fields are optional. Each batch entry requires `name`, `country`, and `vat`, with an optional `lei`. Use a 20-character, checksum-valid LEI for an exact lookup. Without an LEI, GLEIF searches by legal name and returns up to five records. VIES IDs use `EL` for Greece and `XI` for Northern Ireland. If present, the country field accepts two letters and helps compare VAT and LEI evidence.

### Output

Batch Actor runs write one record to the default dataset. Batch screening includes a verdict count for every status and a result for each input in order. MCP tools return the same structured record.

```json
{
  "valid": true,
  "countryCode": "BE",
  "vatNumber": "0123456749",
  "name": "Harbor Example BV",
  "address": "Teststraat 1, 8900 Ieper",
  "requestDate": "2026-10-01",
  "requestIdentifier": "EXAMPLE-REQUEST",
  "billing": {"status": "charged", "eventName": "vat-check", "chargedCount": 1}
}
```

```json
{
  "error": {"source": "VIES", "code": "MS_UNAVAILABLE", "index": 0},
  "billing": {"status": "notCharged", "chargedCount": 0}
}
```

| KYB verdict | Evidence |
| --- | --- |
| `SANCTIONS_MATCH` | At least one subject alias met the configured threshold. Confirm identity against the returned EU reference and regulation. |
| `INVALID_VAT` | VIES returned a completed negative result and no sanctions alias met the threshold. |
| `REVIEW_REQUIRED` | The LEI is missing, ambiguous, mismatched or inactive, the VAT identity evidence differs, or a sanctions score fell within five points below the threshold. |
| `CLEAR` | The completed checks produced no sanctions match or review flag for the submitted evidence. |

Sanctions matching folds case and diacritics, removes common legal-form suffixes, and scores exact names, reordered tokens and fuzzy similarities. The threshold is an integer from 50 to 100 and defaults to 90. The response includes the total number of matched subjects and details for the ten highest-ranked matches. Review the result alongside your other KYB evidence.

### MCP integrations

After deployment, copy the Actor's Standby MCP URL into `KYB_MCP_URL`. Where access requires authentication, provide an Apify token using your client's secret storage.

#### Claude Code

```bash
claude mcp add --transport http eurobridge-kyb "$KYB_MCP_URL" \
  --header "Authorization: Bearer $APIFY_TOKEN"
```

#### Cursor

Add this entry to your MCP configuration and set the two environment variables before launching Cursor.

```json
{
  "mcpServers": {
    "eurobridge-kyb": {
      "url": "${env:KYB_MCP_URL}",
      "headers": {"Authorization": "Bearer ${env:APIFY_TOKEN}"}
    }
  }
}
```

#### n8n

Attach an **MCP Client Tool** to an AI Agent and configure the connection as follows.

```text
Server Transport    HTTP Streamable
MCP Endpoint URL    ={{ $vars.KYB_MCP_URL }}
Authentication      Header Auth
Header name         Authorization
Header value        Bearer <Apify token from your n8n credential>
Tools to include    check_eu_vat, screen_entity_kyb, batch_kyb_screen
```

#### GitHub Actions

This manual workflow starts a billable Actor run after deployment. Store the token in the repository's Actions secrets and replace the example input.

```yaml
name: Screen counterparty
on: workflow_dispatch
jobs:
  screen:
    runs-on: ubuntu-latest
    steps:
      - name: Run KYB
        env:
          APIFY_TOKEN: ${{ secrets.APIFY_TOKEN }}
        run: |
          curl --fail-with-body --silent --show-error --max-time 180 \
            -H "Authorization: Bearer $APIFY_TOKEN" \
            -H "Content-Type: application/json" \
            --data '{"mode":"screen_entity_kyb","name":"Harbor Example BV","country":"BE"}' \
            "https://api.apify.com/v2/acts/eurobridge-labs~eu-vies-sanctions-lei-mcp/run-sync-get-dataset-items"
```

### Official upstreams

- [European Commission VIES](https://ec.europa.eu/taxation_customs/vies/)
- [European Commission EU Financial Sanctions Database](https://webgate.ec.europa.eu/fsd/fsf)
- [GLEIF LEI API](https://www.gleif.org/en/lei-data/gleif-api)

# Actor input Schema

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

Select a VAT check, an entity screen, or a batch screen.

## `vat` (type: `string`):

VAT with its VIES prefix, for example BE0123456749. Required in VAT mode and optional for single-entity KYB.

## `name` (type: `string`):

Required for single-entity KYB.

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

Optional two-letter country code for single-entity KYB.

## `lei` (type: `string`):

Optional 20-character, checksum-valid identifier for single-entity KYB.

## `threshold` (type: `integer`):

For KYB modes. Range 50 to 100. Defaults to 90.

## `counterparties` (type: `array`):

Batch only. Supply 1 to 50 objects, each with name, country and vat, plus optional lei.

## Actor input object example

```json
{
  "mode": "check_eu_vat"
}
```

# Actor output Schema

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

Structured results in the default dataset.

# 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("eurobridge-labs/eu-vies-sanctions-lei-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("eurobridge-labs/eu-vies-sanctions-lei-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 eurobridge-labs/eu-vies-sanctions-lei-mcp --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,eurobridge-labs/eu-vies-sanctions-lei-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/Bug8t2kV31xogQnK0/builds/g9aGEBFembf8DdKfJ/openapi.json
