eu.ansvar/chilean-law-mcp
Chilean legislation via MCP — full-text search across statutes and provisions
★ 1NOASSERTIONsearch
Install
Config snippet generator goes here (5 client tabs)
README
# Chilean Law MCP Server
**The BCN alternative for the AI age.**
[](https://www.npmjs.com/package/@ansvar/chilean-law-mcp)
[](https://registry.modelcontextprotocol.io)
[](https://opensource.org/licenses/Apache-2.0)
[](https://github.com/Ansvar-Systems/Chilean-law-mcp)
[](https://github.com/Ansvar-Systems/Chilean-law-mcp/actions/workflows/ci.yml)
[](https://github.com/Ansvar-Systems/Chilean-law-mcp/actions/workflows/check-updates.yml)
[](docs/INTEGRATION_GUIDE.md)
Query Chilean legislation -- from the Ley 19.628 de Protección de la Vida Privada and Código Penal to the Código Civil, Ley de Delitos Informáticos, and more -- directly from Claude, Cursor, or any MCP-compatible client.
Si estás construyendo herramientas legales, herramientas de cumplimiento normativo, o haciendo investigación jurídica chilena, esta es tu base de datos de referencia verificada.
Built by [Ansvar Systems](https://ansvar.eu) -- Stockholm, Sweden
---
## Por qué existe esto / Why This Exists
La investigación jurídica chilena está dispersa entre la Biblioteca del Congreso Nacional (BCN), el portal leychile.cl, y el Diario Oficial. Ya seas:
- Un **abogado** validando citas en un escrito o contrato
- Un **oficial de cumplimiento** verificando obligaciones bajo la Ley 19.628 o la nueva Ley 21.719 de protección de datos personales
- Un **desarrollador legal tech** construyendo herramientas sobre derecho chileno
- Un **investigador** trazando la evolución legislativa desde el BCN
...no deberías necesitar docenas de pestañas del navegador y referencias cruzadas manuales. Pregunta a Claude. Obtén la disposición exacta. Con contexto.
This MCP server makes Chilean law **searchable, cross-referenceable, and AI-readable**.
---
## Quick Start
### Use Remotely (No Install Needed)
> Connect directly to the hosted version -- zero dependencies, nothing to install.
**Endpoint:** `https://chilean-law-mcp.vercel.app/mcp`
| Client | How to Connect |
|--------|---------------|
| **Claude.ai** | Settings > Connectors > Add Integration > paste URL |
| **Claude Code** | `claude mcp add chilean-law --transport http https://chilean-law-mcp.vercel.app/mcp` |
| **Claude Desktop** | Add to config (see below) |
| **GitHub Copilot** | Add to VS Code settings (see below) |
**Claude Desktop** -- add to `claude_desktop_config.json`:
```json
{
"mcpServers": {
"chilean-law": {
"type": "url",
"url": "https://chilean-law-mcp.vercel.app/mcp"
}
}
}
```
**GitHub Copilot** -- add to VS Code `settings.json`:
```json
{
"github.copilot.chat.mcp.servers": {
"chilean-law": {
"type": "http",
"url": "https://chilean-law-mcp.vercel.app/mcp"
}
}
}
```
### Use Locally (npm)
```bash
npx @ansvar/chilean-law-mcp
```
**Claude Desktop** -- add to `claude_desktop_config.json`:
**macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`
**Windows:** `%APPDATA%\Claude\claude_desktop_config.json`
```json
{
"mcpServers": {
"chilean-law": {
"command": "npx",
"args": ["-y", "@ansvar/chilean-law-mcp"]
}
}
}
```
**Cursor / VS Code:**
```json
{
"mcp.servers": {
"chilean-law": {
"command": "npx",
"args": ["-y", "@ansvar/chilean-law-mcp"]
}
}
}
```
## Example Queries
Una vez conectado, pregunta de forma natural (consultas en español):
- *"¿Qué dice la Ley 19.628 sobre protección de datos personales?"*
- *"¿Está vigente la Ley 21.719 sobre protección de datos personales?"*
- *"Buscar disposiciones sobre 'responsabilidad civil' en el Código Civil chileno"*
- *"¿Qué dice el Código Penal sobre delitos informáticos?"*
- *"Buscar 'sociedad anónima' en el derecho societario chileno"*
- *"¿Qué dice la Ley de Defensa del Consumidor (Ley 19.496) sobre cláusulas abusivas?"*
- *"¿Cómo se cita correctamente el artículo 5 de la Ley 19.628?"*
- *"Buscar leyes chilenas que regulen la firma electrónica"*
---
## What's Included
| Category | Count | Details |
|----------|-------|---------|
| **Statutes** | Ingestion in progress | Laws from BCN (bcn.cl) and leychile.cl |
| **Provisions** | Ingestion in progress | Full-text searchable with FTS5 |
| **Language** | Spanish | Chile's official language |
| **Daily Updates** | Automated | Freshness checks against BCN / leychile.cl |
> **Coverage note:** The Chilean law database is actively being built. The MCP server infrastructure is production-ready. Provision counts will b