🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@codespar/mcp-unico

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@codespar/mcp-unico

MCP server for Unico — Brazilian identity verification & KYC (IDCloud, IDPay, IDCheck, Sign). CPF/CNPJ, document OCR, face match, liveness, PEP/watchlists, processes, webhooks, Unico Score.

latest
npmnpm
Version
0.2.0-alpha.3
Version published
Maintainers
2
Created
Source

@codespar/mcp-unico

MCP server for Unico — the Brazilian identity verification leader. CPF/CNPJ validation, document OCR, face biometrics, liveness, PEP / watchlist / court-records screening.

First entry in the CodeSpar identity category. Commerce agents onboarding sellers (marketplaces), running high-value transactions, or operating KYC-regulated flows need identity verification — Unico is the BR standard. Paired with @codespar/mcp-onfido for BR-first + global coverage.

Products

Unico sells three separately-contracted products. This server exposes tools for all three; agents should call only what's enabled on your contract (disabled products return 403).

ProductWhat it does
IDCloudCPF/CNPJ validation with Receita Federal, document OCR, authenticity
IDPayFace match + liveness for login and payment authentication
IDCheckPEP, sanctions watchlists, Brazilian court records

Tools (18)

ToolPurpose
validate_cpfIDCloud: validate a Brazilian CPF with Receita Federal.
validate_cnpjIDCloud: validate a Brazilian CNPJ with Receita Federal.
extract_documentIDCloud: OCR + structured field extraction from a Brazilian ID document image.
verify_document_authenticityIDCloud: tamper / forgery detection on a document image.
face_matchIDPay: biometric 1:1 comparison between a live selfie and a document photo.
liveness_checkIDPay: passive liveness detection.
check_pepIDCheck: Politically Exposed Person screening.
check_watchlistsIDCheck: global sanctions / adverse-media screening.
court_records_searchIDCheck: Brazilian judicial-records search.
get_process_statusIDCheck: poll the status of a verification process previously created via the Unico Web/Mobile SDK or API.
batch_get_process_statusIDCheck: batch status lookup.
upload_process_documentIDCheck: upload a captured image to a running verification process.
get_extracted_dataIDCheck: fetch the structured OCR result for a finished process — typed fields (name, document number, issu...
get_unico_scoreIDCheck: Unico Score — Brazil's identity-fraud risk score (0-1000, higher = lower risk) computed from Unico...
connect_portability_checkConnect: cross-tenant portability check.
register_webhookWebhooks: subscribe a callback URL to receive Unico process events (process.created, process.finished, proc...
list_webhooksWebhooks: list all webhook subscriptions registered for this tenant.
delete_webhookWebhooks: remove a webhook subscription.

Install

npm install @codespar/mcp-unico@alpha

Environment

UNICO_CLIENT_ID="..."       # OAuth client_id
UNICO_CLIENT_SECRET="..."   # OAuth client_secret
UNICO_ENV="sandbox"         # Optional. 'sandbox' | 'production'. Default: sandbox
UNICO_BASE_URL="..."        # Optional. Default: https://api.unico.co
UNICO_AUTH_URL="..."        # Optional. Default: https://auth.unico.co

Authentication

OAuth 2.0 Client Credentials. The server posts client_id:client_secret as Basic auth to Unico's token endpoint and caches the bearer token in memory until 60 s before expiry. Unico's docs require server-side integration only — never expose these credentials to a browser or mobile client.

Run

# stdio (default)
npx @codespar/mcp-unico

# HTTP
MCP_HTTP=true MCP_PORT=3000 npx @codespar/mcp-unico

Status

Shipped as 0.1.0-alpha.1. Unico's REST contract lives behind the devcenter.unico.io portal and is gated by merchant account. Tool names and argument shapes are stable, but exact endpoint paths may shift once we validate against live credentials — override UNICO_BASE_URL / UNICO_AUTH_URL if your account is served from a different host. PRs welcome once you've seen the real payloads.

Enterprise

Need governance, budget limits, and audit trails for agent payments? CodeSpar Enterprise adds policy engine, payment routing, and compliance templates on top of these MCP servers.

License

MIT

Keywords

mcp

FAQs

Package last updated on 22 Jun 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts