# MCP Leyes Chile

> MCP Leyes Chile is an open-source MCP server for legal and government. Chilean statutes with verifiable citations, notary fact sheets and draft documents. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/billibu-n/mcp-leyes-chile
- **MCP Registry name:** io.github.billibu-n/mcp-leyes-chile
- **Categories:** [legal and government](https://ai-powered.com/categories/legal-and-government)
- **Listing updated:** 2026-11-23

## About

A lawyer who cites an article that does not exist is the failure this server is designed to prevent. It builds a local SQLite full-text corpus from LeyChile, the national legal library, covering 9 legal texts, 6,246 articles and 556 versions, and returns each article with its in-force date, source and a notice. Historical versions can be requested by date.

Seven tools cover searching, fetching an article, version history (83 versions for DL 825), batch citation checking, 27 notary fact sheets, document generation and a coverage report. cl_documento writes an editable .odt and derives .pdf, .docx or .md, stamped as a draft with the template's legal basis. The README says it is not legal advice and does not cover case law, courts or current prices. Notary fees are nominal 1998 amounts and are shown with a warning.

It is installed from PyPI and ingests the corpus on your machine; the package does not redistribute it. Code is Apache-2.0 and fact sheets are CC BY 4.0. The README, in Spanish, reports 34 tests and a 66-task evaluation with no hallucinations.

## Features

- **Verifiable citations:** Returns article text with in-force date, source and notice.
- **Historical versions:** Fetches the text as it stood on a given date.
- **Batch citation check:** Classifies references as ok, missing or without verifiable source.
- **Notary fact sheets:** 27 sheets with procedure, fee schedule and status per field.
- **Document generation:** Writes draft .odt and derives .pdf, .docx or .md files.
- **Coverage report:** States what is and is not covered, and up to which date.

## Good for

- Check that a cited Chilean law article exists and was in force
- Prepare a draft sale or power-of-attorney document before a notary visit
- Look up how a rule read on a past date
- Find notary procedures and fee schedule entries

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add mcp-leyes-chile -- uvx mcp-leyes-chile
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "mcp-leyes-chile": {
      "command": "uvx",
      "args": [
        "mcp-leyes-chile"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp-leyes-chile": {
      "command": "uvx",
      "args": [
        "mcp-leyes-chile"
      ]
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "mcp-leyes-chile": {
      "command": "uvx",
      "args": [
        "mcp-leyes-chile"
      ]
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "mcp-leyes-chile": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "mcp-leyes-chile"
      ]
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add mcp-leyes-chile -- uvx mcp-leyes-chile
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.mcp-leyes-chile]
command = "uvx"
args = ["mcp-leyes-chile"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "mcp-leyes-chile": {
      "command": "uvx",
      "args": [
        "mcp-leyes-chile"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user mcp-leyes-chile uvx -- mcp-leyes-chile

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-leyes-chile": {
      "command": "uvx",
      "args": [
        "mcp-leyes-chile"
      ]
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "mcp-leyes-chile": {
      "command": "uvx",
      "args": [
        "mcp-leyes-chile"
      ]
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "mcp-leyes-chile": {
      "command": "uvx",
      "args": [
        "mcp-leyes-chile"
      ]
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "mcp-leyes-chile": {
      "command": "uvx",
      "args": [
        "mcp-leyes-chile"
      ]
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "mcp-leyes-chile": {
      "command": "uvx",
      "args": [
        "mcp-leyes-chile"
      ]
    }
  }
}
```

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "mcp-leyes-chile": {
      "command": "uvx",
      "args": [
        "mcp-leyes-chile"
      ]
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "mcp-leyes-chile": {
      "command": "uvx",
      "args": [
        "mcp-leyes-chile"
      ]
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "mcp-leyes-chile": {
      "command": "uvx",
      "args": [
        "mcp-leyes-chile"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 7 names don't say. From the server's own tool labels and tool names; not verified by us.

- `cl_buscar`: Searches articles by text in the local corpus.
- `cl_articulo`: Literal text and citation, optionally for a historical date or specific body.
- `cl_versiones`: Version history of a legal text.
- `cl_citar`: Verifies a batch of references.
- `cl_notaria`: 27 notary fact sheets with procedure and fee.
- `cl_documento`: Generates .odt and derived .pdf, .docx or .md drafts.
- `cl_cobertura`: States what the corpus covers and does not cover.

## FAQ

### Is this legal advice?

No. The README says it is a tool to arrive at the notary with a draft, not legal advice.

### Which laws are covered?

Nine texts including the Civil, Labour, Commerce and Penal codes, the Constitution, DL 825, Law 19.628, Law 19.496 and the notary fee schedule.

### Does MCP Leyes Chile need internet?

It downloads the corpus once at ingestion, then searches locally.

### How is MCP Leyes Chile installed?

pip install mcp-leyes-chile, then run the ingestion command.

### Is MCP Leyes Chile free?

Yes. MCP Leyes Chile is open source, so you can use and self-host it for free.

### How do I add MCP Leyes Chile to Claude Code?

Run this command in your terminal: claude mcp add mcp-leyes-chile -- uvx mcp-leyes-chile

### What are the best alternatives to MCP Leyes Chile?

The closest alternatives to MCP Leyes Chile are China Law MCP, x402 Micropayments MCP, Swiss Housing MCP, Lie Detector Test and Norman: Start a company.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [China Law MCP](https://ai-powered.com/mcp/china-law-mcp): China Law MCP is an open-source MCP server for legal and government.
- [x402 Micropayments MCP](https://ai-powered.com/mcp/x402-micropayments-mcp): x402 Micropayments MCP is a paid MCP server for finance and payments.
- [Swiss Housing MCP](https://ai-powered.com/mcp/swiss-housing-mcp): Swiss Housing MCP is an open-source MCP server for legal and government.
- [Lie Detector Test](https://ai-powered.com/mcp/lie-detector-test): Lie Detector Test is an MCP server for legal and government.
- [Norman: Start a company](https://ai-powered.com/mcp/norman-start-a-company): Norman: Start a company is an MCP server for legal and government.
- [Belgian Legal Lexicon Nl Fr](https://ai-powered.com/mcp/belgian-legal-lexicon-nl-fr): Belgian Legal Lexicon Nl Fr is a free MCP server for legal and government.
- [AllVisas](https://ai-powered.com/mcp/allvisas): AllVisas is an MCP server for relocation data.
- [TurkActuary](https://ai-powered.com/mcp/turkactuary): TurkActuary is an open-source MCP server for legal and government.

---
Source: https://ai-powered.com/mcp/mcp-leyes-chile
