verifik
Officialby Open-Verifik
README.md
# @verifik/mcp
Connect your AI assistant to **Verifik** — identity verification, document checks, vehicle lookups, business validation, and background screening across Latin America and worldwide. This package is a [Model Context Protocol](https://modelcontextprotocol.io) (MCP) server that exposes the Verifik APIs your account already has access to as tools in Cursor, Claude Desktop, or any MCP client.
Each paid tool call goes straight to the Verifik REST API with your API token. Credits are charged on your Verifik account the same way as a direct API call.
## Quick start
1. **Get an API token** — sign in to [Smart-Agent](https://ai.verifik.co), open **Settings → API Tokens**, and create a token.
2. **Add the MCP server** to your client (examples below).
3. **Restart** your MCP client, then ask your assistant to verify an identity, run a background check, or look up a vehicle.
No install step is required. MCP clients run the server with:
```bash
npx -y @verifik/mcp
```
On Windows, if `npx` is not on the command path the client uses, call it through `cmd`:
```json
{
"command": "cmd",
"args": ["/c", "npx", "-y", "@verifik/mcp"]
}
```
### Cursor (`mcp.json`)
```json
{
"mcpServers": {
"verifik": {
"command": "npx",
"args": ["-y", "@verifik/mcp"],
"env": {
"VERIFIK_API_TOKEN": "YOUR_API_TOKEN",
"VERIFIK_API_BASE": "https://api.verifik.co"
}
}
}
}
```
### Claude Desktop
`~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) or the equivalent config file on your OS:
```json
{
"mcpServers": {
"verifik": {
"command": "npx",
"args": ["-y", "@verifik/mcp"],
"env": {
"VERIFIK_API_TOKEN": "YOUR_API_TOKEN",
"VERIFIK_API_BASE": "https://api.verifik.co"
}
}
}
}
```
### CLI (stdio MCP server)
```bash
export VERIFIK_API_TOKEN="YOUR_API_TOKEN"
export VERIFIK_API_BASE="https://api.verifik.co"
npx -y @verifik/mcp
```
The server speaks MCP over stdio and reports its name as `verifik`. Point any MCP-compatible client at the same `npx` command and environment variables. An older config key named `verifik-smartcheck` still works; it is only a local label.
### Hosted (`https://mcp.verifik.co/mcp`)
Claude Code, Cursor, and VS Code can connect to the hosted Streamable HTTP server. The token is a request header, not an environment variable on the server:
```bash
claude mcp add --transport http verifik https://mcp.verifik.co/mcp \
--header "Authorization: Bearer $VERIFIK_API_TOKEN"
```
`GET /healthz` is public. `/mcp` returns HTTP 401 when the token is missing or rejected. Until OAuth exists, every hosted request needs an `Authorization: Bearer` header. There is no browser sign-in on this URL. Run the same process yourself with `npm run start:http` or the included `Dockerfile`. Environment variables, CORS, rate limits, and the log format are in [docs/hosted.md](docs/hosted.md). Client snippets: [Claude Code](docs/clients/claude-code.md), [Cursor](docs/clients/cursor.md), [VS Code](docs/clients/vscode.md).
## Integrate in 5 minutes
1. Create a token in [Smart-Agent](https://ai.verifik.co) → **Settings → API Tokens**.
2. Run one cédula call, or connect the MCP server and call `colombia_api_identity_lookup`.
3. The full walkthrough is [docs/quickstart.md](docs/quickstart.md).
Install pages: [Claude Code](docs/clients/claude-code.md), [Claude Desktop](docs/clients/claude-desktop.md), [Cursor](docs/clients/cursor.md) (includes an Add to Cursor link), [VS Code](docs/clients/vscode.md), [Windsurf](docs/clients/windsurf.md), [Codex](docs/clients/codex.md), [Zed](docs/clients/zed.md). [ChatGPT](docs/clients/chatgpt.md) needs a browser sign-in, which this server does not provide yet. Claude Code, Cursor, and VS Code connect to `https://mcp.verifik.co/mcp` with an `Authorization: Bearer` header until OAuth exists.
Field shapes, document types, and synthetic examples are in [docs/field-formats.md](docs/field-formats.md).
The copyable agent instructions are [docs/integration-prompt.md](docs/integration-prompt.md) (English and Spanish, versioned). The MCP server exposes the same text as the prompt `integrate_verifik`. The agent skill is [skills/verifik/SKILL.md](skills/verifik/SKILL.md), in the Agent Skills format, ready to move to a future `Open-Verifik/skills` repo.
`server.json` is the official MCP Registry manifest for `co.verifik/mcp`. It is not published. Making this repository public, publishing to npm with provenance, and submitting the registry entry are maintainer decisions.
## How tools are discovered
You do **not** need to upgrade this package when Verifik adds new API endpoints. The server builds its tool list from your live account catalog at startup.
### 1. Catalog load (`lib/catalog.js`)
The stdio server connects as soon as it starts. It does not wait for the full catalog. A fresh on-disk cache (`~/.cache/verifik-mcp`, keyed by a hash of the token and the non-secret filters, never the token itself) makes a restart list tools immediately. Otherwise `tools/list` returns the core tools (`verifik_list_catalog`, `verifik_get_feature`) after a short wait, then the server sends `notifications/tools/list_changed` when the live catalog is ready.
The catalog call is `GET /v2/app-features/my-list` on `VERIFIK_API_BASE` (default `https://api.verifik.co`), 500 features per page, with later pages fetched a few at a time. `VERIFIK_API_TOKEN` is sent as a `Bearer` token. The hosted server does the same for each request token, keeps that catalog in memory for about five minutes, and can use Redis when `REDIS_URL` is set.
Each item in the response is an **AppFeature** with fields such as `code`, `name`, `description`, `url`, `method`, `country`, `baseCategory`, `smartCheckEnabled`, `dependencies[]`, and pricing metadata.
### 2. Filtering (`lib/filters.js`)
Features are kept or dropped based on your environment:
| Filter | Source | Default / behavior |
| --- | --- | --- |
| SmartCheck only | `VERIFIK_MCP_SMARTCHECK_ONLY` | `false` — expose every catalog feature your account can access; set `true` to limit to SmartCheck-enabled features |
| Country | `VERIFIK_MCP_COUNTRY` | Optional comma-separated list (see [accepted country values](#verifik_mcp_country-values) below) |
| Category | `VERIFIK_MCP_BASE_CATEGORY` | Optional comma-separated `baseCategory` values |
| Code allowlist | `VERIFIK_MCP_CODES` | Optional comma-separated feature `code` values |
| Client access | `clientHasAccess` on catalog items | When present on `my-list`, preferred over the `/v2/client-features` grant check |
A feature must have both `code` and `url`, and must not be marked `legacy`, to become a tool.
### Narrowing a large tool list
The tool count depends on the account. The bundled snapshot (`data/catalog-snapshot.json`, generated 2026-10-08) has **183** non-legacy proxy tools, plus the 2 catalog helpers. A fully entitled production account listed **417** tools on 2026-11-19 (415 proxy tools plus `verifik_list_catalog` and `verifik_get_feature`). Some MCP clients struggle with large tool lists. Narrow what is registered at startup:
```bash
# Colombia only
VERIFIK_MCP_COUNTRY=Colombia
# Multiple countries by catalog name
VERIFIK_MCP_COUNTRY=Colombia,Mexico,world
# ISO 3166-1 alpha-2 codes also work
VERIFIK_MCP_COUNTRY=CO,MX,world
# SmartCheck subset only
VERIFIK_MCP_SMARTCHECK_ONLY=true
# Category filter (identity, transit, business, background_check, …)
VERIFIK_MCP_BASE_CATEGORY=identity,transit
# Explicit feature codes
VERIFIK_MCP_CODES=colombia_api_identity_lookup,colombia_api_vehicle
```
Filters can be combined. Use the free meta tools `verifik_list_catalog` and `verifik_get_feature` to search the in-memory catalog before spending credits — pass the same `country`, `baseCategory`, `code`, or `smartCheckOnly` arguments to preview what would match.
### 3. Tool schema (`lib/tool-schema.js`)
Each eligible feature becomes one MCP tool:
- **Tool name** — sanitized from the feature `code` (letters, digits, `.`, `_`, `-`; max 128 characters).
- **Description** — what the check returns, the country, the inputs, and the credit cost. Maintained copy in `data/descriptions.json` is merged over the live catalog text.
- **Input schema** — built from `dependencies[]`:
- `String` → JSON Schema `string`
- `Number` / `Integer` → `number`
- `Boolean` → `boolean`
- `enum`, `min`, `max`, `description`, and `required` are preserved when present.
Endpoints that accept images expose an `image` field (or similar) as a **base64 JPEG/PNG string** or a public **`https://` image URL** — see [Images](#images) below. Unsupported binary upload types (multipart file fields) are still skipped.
### 4. Meta tools (`lib/meta-tools.js`) — free, no credits
Two helper tools are always available and do **not** call paid endpoints:
| Tool | Purpose |
| --- | --- |
| `verifik_list_catalog` | List features available in the in-memory catalog, with optional `country`, `baseCategory`, `code`, and `smartCheckOnly` filters |
| `verifik_get_feature` | Return full metadata and the input JSON Schema for one feature by `code` |
Use these to search what your account can access before spending credits.
### 5. Tool calls (`lib/proxy.js`)
When the assistant calls a feature tool, the server proxies an HTTP request to `${VERIFIK_API_BASE}/${feature.url}` using the feature's `method` (usually `GET`). Arguments become query parameters (GET) or a JSON body (POST/PUT). Your token is sent as `Authorization: Bearer …`.
The catalog can optionally refresh in memory when `VERIFIK_MCP_CATALOG_REFRESH_MS` is set to a positive interval (milliseconds).
**New Verifik endpoints appear automatically** the next time the catalog loads — no package update required.
## Response format
MCP tool results are JSON text. Paid feature calls are wrapped so your assistant always sees the HTTP status and the Verifik body together:
```json
{
"httpStatus": 200,
"statusText": "OK",
"durationMs": 312,
"request": {
"method": "GET",
"url": "https://api.verifik.co/v2/co/cedula?documentType=CC&documentNumber=1234567890"
},
"body": { }
}
```
### Verifik success envelope (`body` on HTTP 2xx)
Successful Verifik API responses use a consistent envelope:
| Field | Description |
| --- | --- |
| `data` | Main result — identity fields, vehicle record, background-check payload, etc. |
| `signature` | Certification block: `message` (e.g. `"Certified by Verifik.co"`) and `dateTime` |
| `id` | Short reference id for the certified response |
| `billing` | Optional — present on some endpoints when dynamic pricing applies (`dynamicQueryApplied`, `chargedCredits`, etc.) |
The examples below show the **full MCP tool result** (wrapper + `body`). All names and document numbers are fictional.
---
### Example 1 — Colombian national ID (cédula)
**Tool:** `colombia_api_identity_lookup` (or the sanitized name for `v2/co/cedula` in your catalog)
**Arguments:**
```json
{
"documentType": "CC",
"documentNumber": "1234567890"
}
```
**MCP result (HTTP 200):**
```json
{
"httpStatus": 200,
"statusText": "OK",
"durationMs": 284,
"request": {
"method": "GET",
"url": "https://api.verifik.co/v2/co/cedula?documentType=CC&documentNumber=1234567890"
},
"body": {
"data": {
"documentType": "CC",
"documentNumber": "1234567890",
"firstName": "María",
"lastName": "Gómez López",
"fullName": "María Gómez López"
},
"signature": {
"message": "Certified by Verifik.co",
"dateTime": "January 16, 2024 3:44 PM"
},
"id": "AB123"
}
}
```
---
### Example 2 — Peruvian DNI
**Tool:** feature for `v3/pe/cedula`
**Arguments:**
```json
{
"documentType": "DNI",
"documentNumber": "87654321"
}
```
**MCP result (HTTP 200):**
```json
{
"httpStatus": 200,
"statusText": "OK",
"durationMs": 410,
"request": {
"method": "GET",
"url": "https://api.verifik.co/v3/pe/cedula?documentType=DNI&documentNumber=87654321"
},
"body": {
"data": {
"documentType": "DNI",
"documentNumber": "87654321",
"firstName": "Carlos",
"lastName": "Vega Mendoza",
"fullName": "Carlos Vega Mendoza",
"dateOfBirth": "19-12-1995",
"civilStatus": "SOLTERO",
"sex": "M",
"address": "Av. Ejemplo 100"
},
"signature": {
"message": "Certified by Verifik.co",
"dateTime": "April 16, 2025 2:43 PM"
},
"id": "FHBCC"
}
}
```
---
### Example 3 — Mexico CURP
**Tool:** feature for `v2/mx/curp`
**Arguments:**
```json
{
"documentType": "CURP",
"documentNumber": "GOML900101HDFRNS09"
}
```
**MCP result (HTTP 200):**
```json
{
"httpStatus": 200,
"statusText": "OK",
"durationMs": 356,
"request": {
"method": "GET",
"url": "https://api.verifik.co/v2/mx/curp?documentType=CURP&documentNumber=GOML900101HDFRNS09"
},
"body": {
"data": {
"documentType": "CURP",
"documentNumber": "GOML900101HDFRNS09",
"firstName": "Luis",
"lastName": "Ramírez",
"fullName": "Luis Ramírez",
"dateOfBirth": "1990-01-01",
"nationality": "Mexican"
},
"signature": {
"message": "Certified by Verifik.co",
"dateTime": "January 16, 2024 3:44 PM"
},
"id": "MX001"
}
}
```
---
### Example 4 — Chile RUN / RUT
**Tool:** feature for `v2/cl/cedula`
**Arguments:**
```json
{
"documentType": "RUN",
"documentNumber": "123456789"
}
```
**MCP result (HTTP 200):**
```json
{
"httpStatus": 200,
"statusText": "OK",
"durationMs": 298,
"request": {
"method": "GET",
"url": "https://api.verifik.co/v2/cl/cedula?documentType=RUN&documentNumber=123456789"
},
"body": {
"data": {
"documentType": "RUN",
"documentNumber": "123456789",
"firstName": "Valentina",
"lastName": "Soto",
"fullName": "Valentina Soto"
},
"signature": {
"message": "Certified by Verifik.co",
"dateTime": "January 16, 2024 3:44 PM"
},
"id": "CL001"
}
}
```
---
### Example 5 — Colombia vehicle by plate
**Tool:** feature for `v2/co/runt/vehicle-by-plate`
**Arguments:**
```json
{
"plate": "ABC123"
}
```
**MCP result (HTTP 200):**
```json
{
"httpStatus": 200,
"statusText": "OK",
"durationMs": 520,
"request": {
"method": "GET",
"url": "https://api.verifik.co/v2/co/runt/vehicle-by-plate?plate=ABC123"
},
"body": {
"data": {
"plate": "ABC123",
"brand": "Toyota",
"model": "Corolla",
"year": 2019,
"color": "Blanco",
"status": "Activo"
},
"signature": {
"message": "Certified by Verifik.co",
"dateTime": "March 10, 2025 11:20 AM"
},
"id": "RUNT01"
}
}
```
---
### Example 6 — Brazil background check (CPF)
**Tool:** feature for `v2/br/background-check`
**Arguments:**
```json
{
"documentType": "CPF",
"documentNumber": "123.456.789-00",
"dateOfBirth": "17/02/1990"
}
```
**MCP result (HTTP 200):**
```json
{
"httpStatus": 200,
"statusText": "OK",
"durationMs": 1840,
"request": {
"method": "GET",
"url": "https://api.verifik.co/v2/br/background-check?documentType=CPF&documentNumber=123.456.789-00&dateOfBirth=17%2F02%2F1990"
},
"body": {
"data": {
"documentType": "CPF",
"documentNumber": "123.456.789-00",
"firstName": "Ana",
"lastName": "Oliveira",
"fullName": "Ana Oliveira",
"dateOfBirth": "17/02/1990",
"status": "clear",
"canIssueReports": true
},
"signature": {
"message": "Certified by Verifik.co",
"dateTime": "April 11, 2023 12:25 PM"
},
"id": "BR001"
}
}
```
---
### Images
Several tools accept a face or document photo via MCP text arguments:
| Input | Accepted formats |
| --- | --- |
| **Base64** | Raw base64, or a `data:image/jpeg;base64,…` / `data:image/png;base64,…` prefix |
| **URL** | Public `https://` links only (`http://` is rejected). The server downloads the image (max **8 MB**, image content-type check, request timeout) and forwards base64 to Verifik. |
Invalid or oversized images return a local `InvalidParameter` error before any credits are charged.
Tools with image fields include face liveness, face detection, face search (live/active user), OCR document scan, and document liveness. See [docs/endpoints.md](docs/endpoints.md) for the full list.
---
### Document / face / KYC endpoints
Verifik offers document validation, face comparison, liveness, OCR, and enrollment flows (e.g. `v2/face-recognition/*`, `v2/ocr/*`, `v2/document-liveness`). Image-dependent tools are exposed via base64 or HTTPS URL as described above. Enrollment flows that require multipart file uploads are not yet available through MCP.
---
### Error responses
Non-2xx responses are still returned as structured JSON (marked as MCP errors) so agents can handle them:
**404 — record not found:**
```json
{
"httpStatus": 404,
"statusText": "Not Found",
"durationMs": 198,
"request": {
"method": "GET",
"url": "https://api.verifik.co/v2/co/cedula?documentType=CC&documentNumber=9999999999"
},
"body": {
"code": "DOCUMENT_NOT_FOUND",
"message": "Document not found"
}
}
```
**409 — validation / missing parameter:**
```json
{
"httpStatus": 409,
"statusText": "Conflict",
"durationMs": 142,
"request": {
"method": "GET",
"url": "https://api.verifik.co/v2/co/cedula?documentType=CC"
},
"body": {
"code": "MissingParameter",
"message": "documentNumber is required"
}
}
```
## Country coverage
The exact tools you see depend on **your Verifik plan and enabled features**. The catalog snapshot lists **183** non-legacy endpoints. A fully entitled account can see several hundred tools (417 on 2026-11-19). Endpoints such as `colombia_api_runt_vehicle_by_plate_only` appear in the snapshot but may not be enabled on your plan. `verifik_get_started` appears only when the token is missing or rejected.
See the full generated catalog in [docs/endpoints.md](docs/endpoints.md) — tool name, description, method, path, and price per call.
| Country / region | Endpoints | Full list |
| --- | ---: | --- |
| Argentina | 9 | [docs/endpoints.md#argentina](docs/endpoints.md#argentina) |
| Bolivia | 5 | [docs/endpoints.md#bolivia](docs/endpoints.md#bolivia) |
| Brazil | 4 | [docs/endpoints.md#brazil](docs/endpoints.md#brazil) |
| Canada | 3 | [docs/endpoints.md#canada](docs/endpoints.md#canada) |
| Chile | 12 | [docs/endpoints.md#chile](docs/endpoints.md#chile) |
| **Colombia** | **70** | [docs/endpoints.md#colombia](docs/endpoints.md#colombia) |
| Costa Rica | 5 | [docs/endpoints.md#costa-rica](docs/endpoints.md#costa-rica) |
| Ecuador | 6 | [docs/endpoints.md#ecuador](docs/endpoints.md#ecuador) |
| El Salvador | 1 | [docs/endpoints.md#el-salvador](docs/endpoints.md#el-salvador) |
| Guatemala | 2 | [docs/endpoints.md#guatemala](docs/endpoints.md#guatemala) |
| Honduras | 2 | [docs/endpoints.md#honduras](docs/endpoints.md#honduras) |
| India | 2 | [docs/endpoints.md#india](docs/endpoints.md#india) |
| Mexico | 5 | [docs/endpoints.md#mexico](docs/endpoints.md#mexico) |
| Panama | 2 | [docs/endpoints.md#panama](docs/endpoints.md#panama) |
| Paraguay | 3 | [docs/endpoints.md#paraguay](docs/endpoints.md#paraguay) |
| Peru | 8 | [docs/endpoints.md#peru](docs/endpoints.md#peru) |
| República Dominicana | 1 | [docs/endpoints.md#republica-dominicana](docs/endpoints.md#republica-dominicana) |
| Spain | 3 | [docs/endpoints.md#spain](docs/endpoints.md#spain) |
| United States | 4 | [docs/endpoints.md#united-states](docs/endpoints.md#united-states) |
| Uruguay | 1 | [docs/endpoints.md#uruguay](docs/endpoints.md#uruguay) |
| Venezuela | 2 | [docs/endpoints.md#venezuela](docs/endpoints.md#venezuela) |
| Worldwide | 25 | [docs/endpoints.md#world](docs/endpoints.md#world) |
Representative Colombia paths: `v2/co/cedula`, `v2/co/runt/vehiculo`, `v2/co/procuraduria`, `v3/co/rues`, `v2/co/simit/consultar`.
<details>
<summary><strong>All 70 Colombia endpoints</strong> (click to expand)</summary>
| Tool | Description | Method & path | Price |
| --- | --- | --- | --- |
| `colombia_api_identity_lookup` | Colombia - Colombian Citizen | `GET` `v2/co/cedula` | $0.30 |
| `colombia_api_identity_lookup_extra` | Colombia - Colombian Citizen (Extra) | `GET` `v2/co/cedula/extra` | $0.40 |
| `colombia_api_identity_lookup_vigencia` | Colombia - Colombian Citizen (Vigencia) | `GET` `v2/co/cedula/vigencia` | $0.10 |
| `colombia_api_identity_lookup_premium` | Colombia - Colombian Citizen (Premium) | `GET` `v2/co/cedula/premium` | $2.00 |
| `colombia_api_identity_lookup_by_name` | Colombia - Colombian Citizen (By Name) | `GET` `v2/co/cedula/by-name` | $0.30 |
| `colombia_api_identity_lookup_procuraduria` | Colombia - Procuraduría | `GET` `v2/co/procuraduria` | $0.30 |
| `colombia_api_criminal_history` | Colombia - Criminal History | `GET` `v2/co/procuraduria/antecedentes` | $0.30 |
| `colombia_api_rues_v3` | Colombia - RUES Business | `GET` `v3/co/rues` | $0.30 |
| `colombia_api_rues_full_v3` | Colombia - RUES Complete | `GET` `v3/co/rues-complete` | $0.40 |
| `colombia_api_vehicle` | Colombia - RUNT Vehicle | `GET` `v2/co/runt/vehiculo` | $0.30 |
| `colombia_api_vehicle_complete_by_plate` | Colombia - RUNT Vehicle by Plate | `GET` `v2/co/runt/vehicle-by-plate` | $0.40 |
| `colombia_api_simit_complete` | Colombia - SIMIT Complete | `GET` `v2/co/simit/consultar` | $0.30 |
| `colombia_api_simit_plate` | Colombia - SIMIT by Plate | `GET` `v2/co/simit/consultar/placa` | $0.30 |
| `colombia_api_driver` | Colombia - RUNT Driver | `GET` `v2/co/runt/conductor` | $0.60 |
| `colombia_api_driver_basic` | Colombia - RUNT Driver (Basic) | `GET` `v3/co/runt/conductor` | $0.30 |
| `colombia_api_dian` | Colombia - DIAN Business | `GET` `v2/co/company/dian` | $0.30 |
| `colombia_api_judicial_processes` | Colombia - Judicial Processes | `GET` `v2/co/rama/procesos` | $0.30 |
| `colombia_api_judicial_process_details` | Colombia - Judicial Process Details | `GET` `v2/co/rama/proceso` | $0.30 |
| `colombia_api_adres` | Colombia - ADRES Affiliation | `GET` `v2/co/adres` | $0.30 |
| `colombia_api_affiliations` | Colombia - Affiliations | `GET` `v2/co/afiliaciones` | $0.30 |
*…and 50 more — see [docs/endpoints.md#colombia](docs/endpoints.md#colombia) for the complete list.*
</details>
Run `verifik_list_catalog` in your MCP client to see the live list for your token. Filter by country with `VERIFIK_MCP_COUNTRY` or the `country` argument on the meta tool.
## Configuration
These variables configure the local stdio server. The hosted process uses the same filters and ignores `VERIFIK_API_TOKEN`; its listen port, CORS allow-list, and rate limit are in [docs/hosted.md](docs/hosted.md).
| Variable | Required | Default | Description |
| --- | --- | --- | --- |
| `VERIFIK_API_TOKEN` | Yes, for live lookups | — | API token from Smart-Agent → Settings → API Tokens. If it is missing or rejected, the server still starts and `verifik_get_started` explains how to set it |
| `VERIFIK_API_BASE` | No | `https://api.verifik.co` | API base URL. Use the production host. |
| `VERIFIK_MCP_SMARTCHECK_ONLY` | No | `false` | When `true`, only expose SmartCheck-enabled features |
| `VERIFIK_MCP_COUNTRY` | No | — | Comma-separated country filter — see [accepted values](#verifik_mcp_country-values) |
| `VERIFIK_MCP_BASE_CATEGORY` | No | — | Comma-separated `baseCategory` filter |
| `VERIFIK_MCP_CODES` | No | — | Comma-separated feature code allowlist |
| `VERIFIK_MCP_CATALOG_REFRESH_MS` | No | `0` | In-memory catalog refresh interval in ms (`0` = load once at startup). After a refresh that changes the tool set, the server sends `notifications/tools/list_changed` |
| `VERIFIK_MCP_CATALOG_TIMEOUT_MS` | No | `15000` | Overall deadline for each catalog and client-feature request, including one retry. If the live catalog cannot be loaded, the server uses the bundled snapshot |
| `VERIFIK_MCP_CATALOG_PAGE_CONCURRENCY` | No | `5` | How many catalog or client-feature pages are fetched at once |
| `VERIFIK_MCP_CATALOG_LIST_WAIT_MS` | No | `1500` | How long `tools/list` waits for an in-flight catalog load before returning the core tools |
| `VERIFIK_MCP_DISK_CACHE` | No | on for the local server | Set to `0` to skip the on-disk catalog cache |
| `VERIFIK_MCP_CACHE_DIR` | No | `~/.cache/verifik-mcp` | Directory for the on-disk catalog cache |
| `VERIFIK_MCP_CATALOG_DISK_TTL_MS` | No | `86400000` | How long a disk cache entry is reused. `0` disables reuse |
| `VERIFIK_MCP_REQUEST_TIMEOUT_MS` | No | `90000` | Per-call HTTP timeout in ms (some endpoints can take 40–60s; increase if you see timeout errors) |
| `VERIFIK_MCP_MAX_RESULT_CHARS` | No | `45000` | Tool results are cut off at this size so Claude Code can keep them inline. Large base64 images are replaced with a short note first |
| `VERIFIK_MCP_READ_ONLY` | No | `false` | When `true`, only read-only tools are listed. POST and DELETE tools are refused even if called by name. DELETE tools such as `face_recognition_persons_delete` also require `confirm: true` |
## Security
- For the local server, the API token stays in environment variables or your MCP client's secure config. The server never logs the token.
- Local tool calls go from your machine to `api.verifik.co` (or your configured base URL).
- The hosted server at `https://mcp.verifik.co/mcp` forwards each request to the same API with that request's bearer token. It does not log the token, the request body, or lookup arguments. The catalog cache is keyed by the SHA-256 of the token.
- Use a dedicated API token with the minimum access your workflow needs. Rotate tokens from the Smart-Agent dashboard if compromised.
- Handle personal data according to your privacy policy and applicable regulations. Verifik responses contain sensitive identity information.
## Troubleshooting
| Symptom | What to check |
| --- | --- |
| Client shows `verifik_get_started`, or the assistant says the token is missing | The server stays up without a token. Set `VERIFIK_API_TOKEN` in your MCP config `env` block. Create the token in [Smart-Agent](https://ai.verifik.co) → Settings → API Tokens, then restart the client. See [docs.verifik.co](https://docs.verifik.co) |
| Client shows `verifik_get_started` and mentions HTTP 401 or 403 | The token was rejected. Generate a new one on the same Settings → API Tokens page and replace `VERIFIK_API_TOKEN` |
| No tools / empty catalog | Confirm the token is valid, your account has features enabled, and `VERIFIK_MCP_SMARTCHECK_ONLY` / country filters are not too restrictive. If the live catalog timed out, the tool list is the bundled snapshot (`source: "snapshot"` from `verifik_list_catalog`) |
| `401` / authentication errors on a lookup | Regenerate the token in Smart-Agent → Settings → API Tokens |
| `402` / insufficient credits | Top up credits in your Verifik dashboard |
| `404` on a lookup | The document or record was not found — normal for invalid or non-existent identifiers |
| `409` on a lookup | Missing or invalid parameters — call `verifik_get_feature` with the feature `code` to see required fields |
| Expected tool missing | It may not be SmartCheck-enabled, may not be on your plan, or may use an unsupported multipart upload — use `verifik_list_catalog` to inspect |
| Stale tool list after Verifik adds endpoints | Restart the MCP server, or set `VERIFIK_MCP_CATALOG_REFRESH_MS` to refresh periodically |
## Links
- [Verifik documentation](https://docs.verifik.co) — API reference, guides, and endpoint index
- [Smart-Agent dashboard](https://ai.verifik.co) — API tokens, SmartCheck catalog, Check Lists
- [Verifik website](https://verifik.co) — product overview and contact
- [Model Context Protocol](https://modelcontextprotocol.io) — MCP specification
## Requirements
- Node.js 18+
- A Verifik account with API access and available credits
## License
MIT. See [LICENSE](LICENSE).
## Install as a Claude Code plugin
The repository is a Claude Code plugin and a marketplace. From a shell:
```bash
claude plugin marketplace add Open-Verifik/verifik-mcp
claude plugin install verifik@verifik
```
Claude Code asks for an API token and stores it as a secret (`userConfig.api_token`, `sensitive: true`). The plugin then runs `npx -y @verifik/mcp` with `VERIFIK_API_TOKEN` set from that value. The bundled skill is [skills/verifik/SKILL.md](skills/verifik/SKILL.md).
The hosted URL is separate. It still needs `Authorization: Bearer` on every request until OAuth exists.
## Changelog
### 0.1.5
- Stdio connects immediately. The catalog loads in the background, pages are fetched with limited concurrency, and `notifications/tools/list_changed` fires when the tool list changes. A disk cache under `~/.cache/verifik-mcp` makes the next start instant. The hosted server can use `REDIS_URL`; memory remains the default.
- Tool descriptions in `data/descriptions.json` say what each check returns, the country, the inputs, and when to use it. They are merged over the live catalog text.
- Default tool-result limit is 45,000 characters (`VERIFIK_MCP_MAX_RESULT_CHARS`). Tools set `_meta["anthropic/maxResultSizeChars"]`. Large base64 images are omitted from the payload.
- Criminal-search and marriage-search input schemas no longer use top-level `anyOf`. The one-of rule stays in the description and in runtime validation.
- Claude Code plugin manifest (`.claude-plugin/plugin.json`, `.mcp.json`, `.claude-plugin/marketplace.json`).
- npm publish uses `--provenance`. `mcp-publisher publish` runs only when DNS auth for the MCP registry is configured.
### Unreleased
- Hosted stateless Streamable HTTP at `https://mcp.verifik.co/mcp` (`npm run start:http`), with per-request bearer tokens, `GET /healthz`, and the same tool registry as stdio
- The server stays up when `VERIFIK_API_TOKEN` is missing or rejected and explains how to fix it (`verifik_get_started`)
- Catalog loads time out (`VERIFIK_MCP_CATALOG_TIMEOUT_MS`, default 15s), retry once, and fall back to the bundled snapshot
- Tool errors use distinct codes with a `retryable` flag, and a catalog refresh sends `notifications/tools/list_changed`
- Image URL downloads reject unsafe redirects and private addresses
- Tools carry MCP annotations. `VERIFIK_MCP_READ_ONLY=true` hides writes. Destructive tools require `confirm: true`
- Server name is `verifik`. Registry manifest is `server.json` (`co.verifik/mcp`), not yet published
- Integration prompt, agent skill, and per-client install docs
### 0.1.4
- Face, OCR, and document-liveness tools accept a base64 image or an `https://` image URL
### 0.1.3
- Default `VERIFIK_MCP_SMARTCHECK_ONLY` to `false` — expose the full catalog your account can access (typically 182 Verifik tools + 2 meta tools)
- Add `docs/endpoints.md` generated from `data/catalog-snapshot.json` with every non-legacy endpoint
- Country filter accepts catalog names (case/accent-insensitive) and ISO 3166-1 alpha-2 aliases
- Prefer `clientHasAccess` from `my-list` when present; exclude `legacy` features from tools and docs
- Document narrowing filters for large MCP tool lists
### 0.1.2
- Agent-ready tool schemas, local validation, and clean error responses
### 0.1.1
- Initial npm release with SmartCheck catalog support
## `VERIFIK_MCP_COUNTRY` values
`VERIFIK_MCP_COUNTRY` uses the **catalog country names** stored on each AppFeature (the same values Smart-Agent writes, e.g. `Colombia`). Matching is **case-insensitive** and **accent-insensitive** (`republica dominicana` matches `República Dominicana`).
You may also use **ISO 3166-1 alpha-2** codes as aliases. Separate multiple values with commas.
| Catalog name | ISO alias |
| --- | --- |
| `Argentina` | `AR` |
| `Bolivia` | `BO` |
| `Brazil` | `BR` |
| `Canada` | `CA` |
| `Chile` | `CL` |
| `Colombia` | `CO` |
| `Costa Rica` | `CR` |
| `Ecuador` | `EC` |
| `El Salvador` | `SV` |
| `Guatemala` | `GT` |
| `Honduras` | `HN` |
| `India` | `IN` |
| `Mexico` | `MX` |
| `Panama` | `PA` |
| `Paraguay` | `PY` |
| `Peru` | `PE` |
| `República Dominicana` | `DO` |
| `Spain` | `ES` |
| `United States` | `US` |
| `Uruguay` | `UY` |
| `Venezuela` | `VE` |
| `world` (global features) | `world` |
Examples:
```bash
VERIFIK_MCP_COUNTRY=Colombia
VERIFIK_MCP_COUNTRY=CO,MX,world
VERIFIK_MCP_COUNTRY=republica dominicana,peru
```
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues