MCP Legal Chile
MCP Legal Chile is a comprehensive legal research tool for Chilean law, providing access to official legislation, jurisprudence, doctrine, and administrative opinions. Key capabilities include:
Legislation: Search Chilean laws (BCN/LeyChile), retrieve norm metadata, check norm status and history, find related norms, get official XML text (full body or index), and extract specific articles or clauses/literals.
Jurisprudence: Search general Chilean court rulings (PJUD/TC) or specifically the Tribunal Constitucional, retrieve TC ruling extracts, and resolve cases by ROL/RIT — note that most jurisprudence searches return links only, not full text.
Doctrine: Search Chilean legal doctrine (OpenAlex, Crossref, SciELO Chile) or Latin American doctrine (Peru, Brazil, Argentina, Mexico, Colombia), with formal Chilean/APA citations, abstracts, and PDFs where available; retrieve specific works by DOI or OpenAlex ID.
Administrative Opinions (Dictámenes): Search Contraloría General de la República (CGR) dictámenes (link-only) or resolve a specific dictamen by number.
Citation & Text: Generate formal Chilean legal citations, produce official blockquote text from legal articles, and format citations for norms, ROLs, dictámenes, or doctrine from already-retrieved identifiers (no fabrication).
Integrated Research: Run a unified fan-out search across all sources (
buscar_derecho_chileno), or orchestrate a full topic investigation into a structured anti-hallucination markdown memo (investigar_tema).System Info: Access the tool catalog, honesty matrix, and Service Level Objectives via
acerca_de.
Key limitation: Jurisprudence and dictamen searches provide links to official sources only — the system explicitly advises against affirming content based on link-only evidence.
Provides web search capabilities for legal content using Brave Search API as an optional search provider.
Used for durable caching and persistent API key quotas to improve performance and rate limiting.
Supports deployment on Render with a blueprint configuration and cron keep-alive for cold start mitigation.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Legal Chilecitar artículo 1 de la Constitución Política"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Legal Chile
Conector MCP de derecho chileno para Claude, Cursor y apps compatibles.
Producción: https://mcp-legal-chile.onrender.com/mcp
Versión: 1.7.3
Matriz de honestidad (qué trae cada tool)
Tool | Evidencia | Fuente |
| Texto íntegro + cita | XML LeyChile en blockquote |
| Metadata + abstract + citas Chile/APA | SciELO Chile (22 revistas) + OpenAlex + Crossref |
| Metadata + citas + enlaces por país | Catálogo PE / BR / AR / MX / CO (OpenAlex + SciELO/OJS) |
| Solo enlace (PJUD) | Búsqueda web → pjud.cl |
| Metadata + PDF | API |
| Enlaces + candidatos | TC API + portales PJUD/TC/TDLC… |
| Extracto + blockquote | API oficial Tribunal Constitucional |
| Solo enlace | Contraloría |
| Pack mixto (parcial OK) | Orquesta lo anterior con tope global ~12s |
Regla: si evidence=link_only, el asistente no debe afirmar el contenido del fallo/dictamen.
Cómo usarlo sin quedarse corto
Empieza con
investigar_tema(mapa rápido, no texto íntegro de todo).Extrae texto solo con tools de extracción:
citar_texto_legal,obtener_articulo,obtener_fallo_tc.No esperes contenido de PJUD/CGR vía
buscar_*— solo enlaces oficiales a verificar.
Related MCP server: saij-mcp
SLOs (objetivos P95)
Operación | Objetivo | Notas |
Artículo con cache hit | < 500 ms | |
Artículo cold (sin 429) | < 5 s | LeyChile puede rate-limitar |
| < 4 s | SPARQL BCN |
| < 8 s | |
| < 12 s | Tope duro |
Éxito XML LeyChile (24h, con caché) | > 95% |
Latencia variable (0.2–8s): típica en Render starter (arranque en frío / red). El keep-alive mitiga, no elimina.
Métricas en vivo: GET /metrics
Capacidades principales
Texto oficial LeyChile (artículos, índice/cuerpo, inciso/literal heurístico)
Errores tipados: artículo no encontrado, XML inválido y formato no soportado (sin respuestas vacías)
Catálogo de normas frecuentes (CPR, Códigos, 19.628, 19.496…)
investigar_tema— pack anti-alucinación con presupuesto global y salida acotada (~10k chars)formatear_cita— citas chilenas solo con IDs ya obtenidosJurisprudencia/TC con parsers ROL/RIT + catálogo de 18 tribunales/portales
Caché durable (Redis si
REDIS_URL) + singleflight + stale-if-errorRate limit / circuit breaker por proveedor (LeyChile, TC, OpenAlex, Crossref, SciELO…)
Concurrencia acotada por proveedor, sin serializar toda la operación (evita cascadas)
Búsquedas standalone con deadline duro de 15s (antes podían esperar 45–90s)
API keys + cuotas diarias persistentes en Redis (
MCP_API_KEYS+REDIS_URL)Warmup
/warmup+ cron keep-alive
Inicio rápido
npm install
npm run dev
npm test
# smoke local (server corriendo):
SMOKE_BASE=http://127.0.0.1:3000 npm run smokeMCP: http://localhost:3000/mcp
Variables de entorno
Variable | Descripción |
| Redis/Key Value: caché + cuotas diarias (si falta, solo memoria) |
|
|
|
|
| Búsqueda web |
|
|
| Intervalo mínimo entre requests LeyChile |
| Circuit breaker |
| Tope total de búsquedas standalone (default 15s) |
| Topes upstream (12s / 10s / 10s) |
| Concurrencia por proveedor (web 3; TC/OpenAlex/etc. 2; LeyChile 1) |
| Tope fan-out |
| Tope global |
| Tope por fuente dentro del pack (default ~6s) |
| Cap de salida del pack (default 10_000) |
| Cap de quote de artículo en pack (default 1_200) |
Deploy
Blueprint: render.yaml — plan starter, Key Value, cron keep-alive cada 10 min.
Aviso
No sustituye asesoría jurídica. PJUD/CGR no ofrecen API abierta de texto completo. El MCP es un puente: si BCN/PJUD/TC fallan, las tools degradan a warning/link o timeout parcial. En LeyChile, un artículo inexistente o XML no parseable se reporta como error explícito con enlaces oficiales de verificación.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/gabrielperezibacache/mcp-legal-chile'
If you have feedback or need assistance with the MCP directory API, please join our Discord server