io.github.billibu-n/mcp-leyes-chile
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
mcp-leyes-chile
mcp-name: io.github.billibu-n/mcp-leyes-chile
Servidor MCP de leyes chilenas con cita verificable (v0.2.0), fichas notariales curadas y
generación de documentos .odt (editable), .pdf y .docx.
No es asesoría legal. Es una herramienta para que una persona llegue a la notaría con el borrador hecho y para que un abogado no presente una cita que no exista.
Qué hace
Tool | Para qué |
| Busca artículos por texto en el corpus local (SQLite FTS5) |
| Texto literal + cita con |
| Historial de versiones de una norma (83 en el DL 825) |
| Verifica un lote: |
| 27 fichas: trámite, arancel y estado por campo (24 generadas del Decreto 587) |
| Genera |
| Qué cubre, hasta cuándo, y qué no cubre |
Related MCP server: chilean-legal-mcp
Instalación
python3 -m venv .venv && . .venv/bin/activate
pip install -e .
python -m mcp_leyes --ingesta # ~21 s: 8 normas, 6.098 artículos, 538 versiones
python -m mcp_leyes --notaria-generar # crea fichas desde el arancel (idempotente)
python -m mcp_leyes --selftest # lista las 7 tools
python -m mcp_leyes --smoke # genera .odt + .pdf de prueba
python -m mcp_leyes # sirve por stdioConfiguración en un host MCP (ejemplo):
{"mcpServers": {"leyes-chile": {"command": "python", "args": ["-m", "mcp_leyes"],
"env": {"MCP_LEYES_DB": "/ruta/a/corpus.db"}}}}Formulario HTML
python -m mcp_leyes --formulario 8801
# http://127.0.0.1:8801/ -> pregunta los campos -> .odt + .pdfPublicación (pendiente de autorización)
server.json está listo y cumple el esquema del registro:
io.github.billibu-n/mcp-leyes-chile v0.2.0, registryType: pypi, transport: stdio.
Publicar requiere mcp-publisher login github y autorización del dueño.
Cobertura y límites
8 cuerpos legales (DL 825, Código del Trabajo, Código Civil, Comercio, Penal, Constitución, Ley 19.628, Arancel de notarios).
No cubre jurisprudencia, tribunales, SII más allá de las normas, competencia territorial notarial estructurada, precios actuales ni firma de documentos.
Los montos del arancel son nominales de 1998: el servidor los muestra y advierte, no calcula el precio final.
Datos y licencias
Código: Apache-2.0 (
LICENSE).Fuente: LeyChile / BCN. El paquete no redistribuye el corpus: lo descarga en la máquina del usuario. Los términos de LeyChile no se pudieron verificar (2026-11-06).
Fichas notariales: CC BY 4.0, con fuente y fecha por campo.
Pruebas
python -m pytest -q # 23 tests
python -m eval.correr --banco 60 # 66 tareas: exactitud 1.0, 0 alucinaciones, p95 14 ms
python -m mcp_leyes --notaria # 27 fichas, 0 fallosThis server cannot be deployed
Maintenance
Related MCP Connectors
Resolve, search and verify legal citations against the official sources, with provenance.
French case law (Judilibre) and codes (Légifrance) from official sources, with citation checking.
Temporal search and comparison for official Luxembourg and reviewed EU law, with provenance.
Search and read UK legislation at any date, resolve citations, list amendments, track changes.
Related MCP Servers
- AlicenseBqualityFmaintenanceConnects AI assistants to Chilean legal sources, enabling citation of official legal texts, search of doctrine, jurisprudence, and rulings.18MIT
- FlicenseNot gradedqualityCmaintenanceEnables Chilean legal research via 15 MCP tools that search and cite official sources, retrieve full legal texts, perform hybrid semantic searches, and export results to Word or PDF.-
- AlicenseCqualityAmaintenanceExposes 55 forensic tools over the Model Context Protocol so agents can query Chilean statutes, jurisprudence, administrative dicta and doctrine from official state sources such as BCN, PJUD, CGR and DT, while running locally for confidential casework. It also supports citation-validated drafting, deadline and docket monitoring, judgment deconstruction, OCR dossier compilation and legal knowledge-graph analysis for civil-law practice, teaching and research.8730 PyPI5Apache 2.0
- AlicenseBqualityBmaintenanceEnables citation-safe legal research and document drafting over official Turkish case law and legislation, searching a local 11-million-decision corpus with full-text and semantic retrieval or querying live sources like Bedesten, AYM, Danıştay and mevzuat.gov.tr. It also supports citation verification, petition and bundle preparation, change reports, privacy redaction, and source health checks through core and loadable extended tool sets.1130 PyPI3AGPL 3.0