Integraciones

Latinfo unifica 18 fuentes oficiales (SUNAT, OSCE, OECE/SEACE, OEFA, SBS) en una sola API. Conéctala desde un agente AI vía MCP, o desde tu código con REST y el SDK. Plan gratis: 5,000 consultas/mes.

MCP — para agentes AI

El Model Context Protocol deja que Claude, ChatGPT y Cursor llamen a Latinfo como una herramienta nativa. Una vez conectado, le pides en lenguaje natural ("¿esta empresa tiene sanciones de OSCE y deuda coactiva?") y el agente orquesta las llamadas.

El MCP de Latinfo expone 34 tools (lookup por RUC/DNI/NIT, búsqueda por nombre y KYB cross-source) sobre las 18 fuentes. Se autentica con tu API key. Para una prueba sin cuenta, está también el MCP anónimo de OpenRUC.

ServidorURLAuthTools
Latinfoapi.latinfo.dev/mcpAPI key34 (todo)
OpenRUCopenruc.com/mcpsin auth1 (identidad RUC)

Claude

Claude Code / CLI

# MCP completo de Latinfo (necesita API key) claude mcp add --transport http latinfo https://api.latinfo.dev/mcp \ --header "Authorization: Bearer lat_xxxxxxxxxx" # O la prueba gratis sin key (solo identidad RUC) claude mcp add --transport http openruc https://openruc.com/mcp

Claude Desktop (config manual)

{ "mcpServers": { "latinfo": { "type": "http", "url": "https://api.latinfo.dev/mcp", "headers": { "Authorization": "Bearer lat_xxxxxxxxxx" } } } }
¿No tienes API key? Crea una gratis en api.latinfo.dev/account (5,000 consultas/mes, sin tarjeta).

ChatGPT

En ChatGPT, los MCP remotos se agregan como connector/app. Con Developer Mode activado (Settings → Connectors), agrega un connector apuntando a la URL del servidor:

# Connector remoto (Settings → Connectors → Add) URL: https://api.latinfo.dev/mcp Auth: Bearer lat_xxxxxxxxxx # tu API key de Latinfo

Para una demo sin credenciales, usa https://openruc.com/mcp (sin auth). La búsqueda por nombre y el KYB completo viven en el MCP de Latinfo con key.

Cursor

En ~/.cursor/mcp.json (o Settings → MCP):

{ "mcpServers": { "latinfo": { "url": "https://api.latinfo.dev/mcp", "headers": { "Authorization": "Bearer lat_xxxxxxxxxx" } } } }

REST API

Cualquier lenguaje. Una API key en el header Authorization. Documentación completa de endpoints en API Docs.

# Identidad SUNAT + KYB cross-source de una empresa curl https://api.latinfo.dev/pe/kyb/20100047218 \ -H "Authorization: Bearer lat_xxxxxxxxxx"

SDK (npm)

Cliente JS/TS con tipos y búsqueda offline (MPHF). Funciona en Node, navegador, Workers y React Native.

npm install @carrerahaus/latinfo
import { createClient } from '@carrerahaus/latinfo'; const client = createClient({ apiKey: 'lat_xxxxxxxxxx' }); const kyb = await client.pe.kyb('20100047218'); const results = await client.pe.search('interbank');

OpenRUC — gratis y sin cuenta

OpenRUC es la cara abierta de Latinfo: identidad del RUC de SUNAT (razón social, estado, domicilio), sin API key, sin registro. Solo personas jurídicas. Patrocinado por Latinfo.

# Sin auth, JSON, CORS abierto curl https://openruc.com/api/ruc/20100047218 # O como MCP anónimo claude mcp add --transport http openruc https://openruc.com/mcp

Las sanciones, deuda coactiva, contratación pública y el score KYB están en Latinfo con una API key gratis (5,000 consultas/mes). Crear key →