Skip to content
MCP server

MCP Leyes Chile

Chilean statutes with verifiable citations, notary fact sheets and draft documents

Runs locally

MCP Leyes Chile is an open-source MCP server for legal and government. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, Self-hosted
Runs
Locally
Version
0.2.4
Listing updated

Similar MCP servers

Install

Add with the CLI

Run in a terminal

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.

Or share it with your project

Add to .mcp.json

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

Claude Code setup guide

Add to claude_desktop_config.json

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

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

Claude Desktop setup guide

Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

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

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

Cursor setup guide

Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to ~/.copilot/mcp-config.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.

VS Code setup guide

Add with the CLI

Run in a terminal

codex mcp add mcp-leyes-chile -- uvx mcp-leyes-chile

Or add to config.toml

Add to ~/.codex/config.toml

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

Codex setup guide

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "mcp-leyes-chile": {
      "command": "uvx",
      "args": [
        "mcp-leyes-chile"
      ]
    }
  }
}
  • Gemini CLI and Antigravity

    Gemini CLI

    Add to ~/.gemini/settings.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

    Antigravity

    Add to ~/.gemini/config/mcp_config.json

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

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

    Gemini CLI and Antigravity setup guide

  • Devin Desktop (formerly Windsurf)

    Add to ~/.config/devin/mcp_config.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.

    Devin Desktop setup guide

  • Cline

    Add to cline_mcp_settings.json

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

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

    Cline setup guide

  • Zed

    Add to Zed settings.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.

    Zed setup guide

  • JetBrains AI Assistant and Junie

    AI Assistant

    Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add

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

    Junie

    Add to ~/.junie/mcp/mcp.json

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

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

    JetBrains AI Assistant and Junie setup guide

  • Kiro

    Add to ~/.kiro/settings/mcp.json

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

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

    Kiro setup guide

Using several servers? Build one config file with the MCP config generator.

About MCP Leyes Chile

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.

Tools this server provides (7)

Taken from the project documentation; the running server may differ.

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.

What it does

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

Pricing

Open source

Apache-2.0 code; notary sheets CC BY 4.0

MCP Leyes Chile 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.

How AIPoweredBot checks servers