About validalatam-mcp
validalatam-mcp is an MCP server for applications and agents that need to validate Latin American tax IDs, identity numbers, and bank accounts. It forwards requests to the hosted ValidaLatam API rather than implementing validation algorithms locally.
Key features
- 01Validate individual documents
- 02Validate batches of up to 1,000
- 03Generate fake test values
- 04List supported document types
- 05Normalize and format identifiers
Use cases
- 01Check an entered tax or identity number
- 02Validate many records in a batch
- 03Generate test data for development
MCP support
Exposes tools for document validation, batch validation, test-data generation, and listing document types to MCP clients. Calls are forwarded over HTTP to the hosted ValidaLatam API.
Configuration
Local server config is the same for every client. Copy it into your client’s MCP config file.
uvx validalatam-mcpRAPIDAPI_KEYSecretOptional RapidAPI key; routes calls through RapidAPIVALIDALATAM_BASE_URLOverride API base URLLocal servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.
Tools
4Saved tool list · updated 2d ago
| Parameter | Type | Required | Description |
|---|---|---|---|
| type | string | Yes | |
| value | string | Yes | |
| country | any | No |
Details
From the project READMEvalidalatam-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 --from git+https://github.com/elmatis172/validalatam-mcp validalatam-mcp
# or
pip install git+https://github.com/elmatis172/validalatam-mcp
validalatam-mcp
(Once published to PyPI: uvx validalatam-mcp / pip install validalatam-mcp.)
Claude Desktop (claude_desktop_config.json) / Cursor (~/.cursor/mcp.json)
{
"mcpServers": {
"validalatam": {
"command": "uvx",
"args": ["--from", "git+https://github.com/elmatis172/validalatam-mcp", "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 |
|---|---|---|
RAPIDAPI_KEY | – | Recommended. If set, calls go through RapidAPI (validalatam.p.rapidapi.com) and use your plan's quota (free Basic plan available). Without it, the public endpoint allows a small free number of validations per day per IP (a batch counts each document). |
VALIDALATAM_BASE_URL | https://validalatam.ia-latam.app | Override API base URL |
Docker
docker build -t validalatam-mcp . && docker run -i --rm validalatam-mcp
Client SDKs
Zero-dependency clients in sdks/python/validalatam_client.py and sdks/js/index.mjs.
Development
pip install -e ".[test]" && pytest
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 --from git+https://github.com/elmatis172/validalatam-mcp validalatam-mcp
# o
pip install git+https://github.com/elmatis172/validalatam-mcp
Claude 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 permite unas pocas validaciones gratis por día y por IP (un batch cuenta cada documento). 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
Comments
New to MCP?
From what the protocol is to installing your first server, these answers cover most first questions.
An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.