validalatam-mcp
This MCP server lets you validate, normalize, and format Latin American tax IDs, national IDs, and bank accounts through the hosted ValidaLatam API.
Validate a single document with
validate_document, using explicit type codes ortype="AUTO"for auto-detection.Validate batches of up to 1,000 items with
validate_batch(requires RapidAPI access).Generate clearly fake, check-digit-valid test values with
generate_test_data(requires RapidAPI access).List supported document type codes with
list_document_types.Work with IDs such as AR CUIT/CUIL/DNI/CBU/CVU, BR CPF/CNPJ, MX RFC/CURP/CLABE, CL RUT, CO NIT, PE RUC, UY CI/RUT, EC Cédula/RUC, PY RUC, and IBAN.
Use a hosted HTTP client only; no validation algorithms are included locally. Without
RAPIDAPI_KEY, calls use a demo limited to 10 requests per IP per day and exclude batch/test-data tools.
Routes ValidaLatam document validation, normalization, and formatting requests through RapidAPI when RAPIDAPI_KEY is configured, enabling use of RapidAPI keys and plans.
validalatam-mcp
MCP server for the ValidaLatam API — validate, normalize and format Latin American tax IDs, national IDs and bank accounts: AR CUIT/CUIL/DNI/CBU/CVU, BR CPF/CNPJ, MX RFC/CURP/CLABE, CL RUT, CO NIT, PE RUC, UY CI/RUT, EC Cédula/RUC, PY RUC, IBAN.
This is a thin client: every tool call is an HTTP request to the hosted API. No validation algorithms are included here.
API key / plans on RapidAPI: https://rapidapi.com/MatiasPengue/api/validalatam
English
Install
uvx validalatam-mcp
# or
pip install validalatam-mcp
validalatam-mcpPublished on PyPI. Step-by-step guide for AI agents (Cline, etc.): llms-install.md.
Claude Desktop (claude_desktop_config.json) / Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"validalatam": {
"command": "uvx",
"args": ["validalatam-mcp"],
"env": { "RAPIDAPI_KEY": "optional-your-key" }
}
}
}Tools
validate_document(type, value, country?)—type="AUTO"auto-detectsvalidate_batch(items)— up to 1000{type, value, country?}generate_test_data(type, count, seed)— clearly fake, check-digit-valid valueslist_document_types()
Configuration
Env var | Default | Purpose |
| – | Recommended. If set, calls go through RapidAPI ( |
|
| Override API base URL |
Docker
docker build -t validalatam-mcp . && docker run -i --rm validalatam-mcpClient SDKs
Zero-dependency clients in sdks/python/validalatam_client.py and sdks/js/index.mjs.
Development
pip install -e ".[test]" && pytestRelated MCP server: LATAM Intelligence MCP
Español
Servidor MCP para la API ValidaLatam: valida, normaliza y formatea CUIT/CUIL, DNI, CBU/CVU, CPF, CNPJ, RFC, CURP, CLABE, RUT, NIT, RUC, CI, cédulas e IBAN. Es un cliente liviano: cada herramienta llama por HTTP a la API alojada; no incluye los algoritmos de validación.
Clave de API y planes en RapidAPI: https://rapidapi.com/MatiasPengue/api/validalatam
Instalación
uvx validalatam-mcp
# o
pip install validalatam-mcpClaude Desktop / Cursor
Usá el mismo bloque JSON de arriba en claude_desktop_config.json o ~/.cursor/mcp.json. RAPIDAPI_KEY es opcional pero recomendado: sin clave, el endpoint público es una demo limitada a 10 requests por día y por IP, y validate_batch / generate_test_data requieren RapidAPI (Pro 9 USD/mes, https://rapidapi.com/MatiasPengue/api/validalatam/pricing). Con clave se usa la cuota de tu plan en RapidAPI (hay un plan Basic gratis).
Herramientas
validate_document, validate_batch, generate_test_data (datos FALSOS de prueba), list_document_types.
License / Licencia
MIT
Available Tools
4 toolsgenerate_test_dataC
Generate clearly FAKE, check-digit-valid test values for a document type.
Inputs: type (required), seed, count.
list_document_typesA
List supported document type codes.
Inputs: no named parameters.
validate_batchC
Validate up to 1000 items, each {type, value, country?}.
Inputs: items (required).
validate_documentB
Validate/normalize/format a LatAm document (AR_CUIT, BR_CPF, BR_CNPJ, MX_RFC, MX_CURP, CL_RUT, CO_NIT, PE_RUC, IBAN...). type='AUTO' auto-detects.
Inputs: type (required), value (required), country.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a clearly distinct purpose: single validation, batch validation, test data generation, and listing supported types. There is no overlap in functionality or ambiguity about when to use each tool.
All tool names follow a consistent verb_noun pattern: validate_document, validate_batch, generate_test_data, list_document_types. The pattern is predictable and easy to understand.
With only 4 tools, the set is well-scoped and each tool serves a clear, non-redundant purpose. The count is appropriate for a focused validation service.
The tools cover the full lifecycle of document validation: discovery of types, single validation with normalization/formatting, batch validation for bulk needs, and generation of test data. No obvious gaps exist for the stated purpose.
Maintenance
Related MCP Connectors
LatAm Validate MCP — validate Latin-American banking and tax identifiers.
Validate/decode LATAM tax & bank IDs (MX, AR, CL, CO, PE, UY, BR) + FX, pay-per-call x402 USDC.
Validates Luhn, IBAN, ISBN, EAN/UPC, SWIFT/BIC, and EU VAT checksums and formats.
Argentina CUIT/CUIL validation and AFIP fiscal QR generation. Pure, no-auth MCP tools.
Related MCP Servers
- AlicenseAqualityDmaintenanceLatin American business compliance suite — 28 tools for tax ID validation (CPF, CNPJ, RFC, RUT, CUIT, NIT), banking (PIX, CLABE, CBU), VAT rules, e-invoicing (NF-e, CFDI, DTE), holidays, and labor calendar across Brazil, Mexico, Chile, Argentina, and Colombia.28MIT
- FlicenseNot gradedqualityCmaintenanceProvides business intelligence, compliance tools, and economic data for Latin America, including Brazilian company lookups, tax ID validation for multiple countries, and economic indicators from official government sources.-
- AlicenseNot gradedqualityCmaintenanceValidates LatAm banking and tax IDs (Mexican CLABE, Brazilian CNPJ/CPF checksums) and performs BrasilAPI company, CEP, and bank lookups, enabling AI agents to verify financial and tax information in Latin America.52 npmMIT
- AlicenseAqualityBmaintenanceEnables AI agents to validate Mexican RFC, CURP, CLABE and NSS identifiers with real check digits, parse CFDI 4.0 invoices with labelled SAT catalogue codes and verified totals, and query the SAT's public status service to see whether an invoice is still valid. It also generates coherent test people and companies, all read-only and without API keys, certificates or PAC contracts.9342 npm1MIT