# Open Legal Chile

Wires 55 legal tools into your agent: BCN, PJUD, doctrine, OCR. Useful when a project touches Chilean legislation.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 5
- Author: elpabloultron
- License: Apache-2.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/elpabloultron/open-legal-chile
- Updated: 2026-10-19
- HTML: https://affpapa.org/en/nevibecode/mcp/open-legal-chile

## What it does

The server exposes Chilean public sources to your agent: BCN, PJUD, CGR, DT, SII, CMF, SMA and TDLC. Every connector talks to open state repositories, so no signup or paid key is involved.

For confidential case files you can route work through Ollama and open models. Contracts and court papers then stay on your own machine.

Installation runs through `uvx`, which means `uv` has to sit in `PATH` — without it `claude mcp add` fails. The README also covers manual JSON setup for Cursor and GitHub Copilot.

## Requirements
- Needs: Python and uv (commands run via uvx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add open-legal-chile -- uvx openlegal-chile
```
uvx runs the command named after the package; if the README names another one, use uvx --from openlegal-chile <command>

### Codex

**Platform CLI**
```bash
codex mcp add open-legal-chile -- uvx openlegal-chile
```
uvx runs the command named after the package; if the README names another one, use uvx --from openlegal-chile <command>

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "open-legal-chile": {
            "command": "uvx",
            "args": [
                "openlegal-chile"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from openlegal-chile <command>

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "open-legal-chile": {
            "type": "stdio",
            "command": "uvx",
            "args": [
                "openlegal-chile"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from openlegal-chile <command>

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add open-legal-chile uvx openlegal-chile
```
uvx runs the command named after the package; if the README names another one, use uvx --from openlegal-chile <command>

## When to use it
- pull a specific article from Código Civil or Ley Karin
- check Corte Suprema rulings by case number
- OCR a scanned filing
- cross-reference doctrine on a point of law
- drop a CMF or SII norm into a draft

## Example prompts
- Find article 1545 of the Código Civil and show the text
- Check what Corte Suprema says in rol 12.345-2023
- OCR `contrato.pdf` and list the parties

## Similar
- [MinerU Open MCP](https://affpapa.org/en/nevibecode/mcp/mineru-open-mcp.md) — MCP server · ★ 230
- [legal-page-generator](https://affpapa.org/en/nevibecode/skills/legal-page-generator.md) — skill · 1600 installs
- [legal-writing](https://affpapa.org/en/nevibecode/skills/legal-writing.md) — skill · 1300 installs
- [legal](https://affpapa.org/en/nevibecode/skills/legal.md) — skill · 484 installs
- [legal-compliance](https://affpapa.org/en/nevibecode/skills/legal-compliance.md) — skill · 377 installs
- [Open Agreements](https://affpapa.org/en/nevibecode/mcp/open-agreements.md) — MCP server · ★ 61

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
