Open Legal Chile — Claude Code MCP server for Chilean law
Wires 55 legal tools into your agent: BCN, PJUD, doctrine, OCR. Useful when a project touches Chilean legislation.
claude mcp add open-legal-chile -- uvx openlegal-chileWhat Open Legal Chile 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.
What it helps with
- 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 for the agent
- Find article 1545 of the Código Civil and show the text
- Check what Corte Suprema says in rol 12.345-2023
- OCR
contrato.pdfand list the parties
How to install Open Legal Chile
Platform CLI
claude mcp add open-legal-chile -- uvx openlegal-chileuvx runs the command named after the package; if the README names another one, use uvx --from openlegal-chile <command>
Platform CLI
codex mcp add open-legal-chile -- uvx openlegal-chileuvx runs the command named after the package; if the README names another one, use uvx --from openlegal-chile <command>
Config file
{
"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>
Config file
{
"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>
Platform CLI
gemini mcp add open-legal-chile uvx openlegal-chileuvx runs the command named after the package; if the README names another one, use uvx --from openlegal-chile <command>
Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about Open Legal Chile
How do I install Open Legal Chile in Claude Code?
Run claude mcp add open-legal-chile -- uvx openlegal-chile. Make sure uv is available in PATH.
What does Open Legal Chile do?
It gives the agent tools for Chilean law: BCN search, PJUD cases, doctrine and OCR. All sources are public state repositories.
Do I need API keys?
No. Connections to BCN, CGR, DT, PJUD, CNE, CMF, SII, SMA and TDLC use public repositories with no registration or paid keys.