# openlegi

The openlegi MCP server for Claude Code connects AI assistants to French legal databases, statutes, and case law over remote HTTP, without local runtimes.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · 1354 installs
- Author: rdassignies
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://smithery.ai/server/rdassignies/openlegi
- Updated: 2025-09-28
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/openlegi

## What it does

The server connects coding agents directly to French official legal repositories, covering Legifrance, Judilibre court filings, the RNE enterprise registry, and gazettes like BODACC and BOAMP. Models can query articles across specific codifications such as the Code civil or Code du travail alongside rulings from judicial courts.

Seven dedicated tools are included. They handle queries across statutory codes, JORF gazette notices, and court decisions, along with discovery helpers that list supported legal codes and public authorities. When citing historical legislation, the retrieval tools mandate referencing the official Legifrance source link.

Because the service runs on a remote endpoint at `https://openlegi--rdassignies.run.tools`, setups require zero local package installations. If the external hosting goes down or loses internet access, your assistant drops all French legal retrieval capabilities instantly.

## Requirements
- Remote server: `https://openlegi--rdassignies.run.tools`

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http openlegi https://openlegi--rdassignies.run.tools
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add openlegi --url https://openlegi--rdassignies.run.tools
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "openlegi": {
            "url": "https://openlegi--rdassignies.run.tools"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "openlegi": {
            "type": "http",
            "url": "https://openlegi--rdassignies.run.tools"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http openlegi https://openlegi--rdassignies.run.tools
```

## When to use it
- search French legal codes such as Code civil or Code du travail for specific articles
- retrieve judicial rulings from Judilibre by docket number or query terms
- look up decrees and notices published in the Journal Officiel
- inspect the complete list of law codes available on Legifrance

## Example prompts
- Search the `Code du travail` for statutory severance rules using `rechercher_code`.
- List every supported legal code with `lister_codes_juridiques`.
- Query Judilibre case law for recent decisions concerning contract termination.

## Similar
- [justicelibre](https://affpapa.org/en/nevibecode/mcp/justicelibre.md) — MCP server · ★ 15 repo stars
- [MCP Juridico Brasil](https://affpapa.org/en/nevibecode/mcp/mcp-juridico-brasil.md) — MCP server · ★ 143 repo stars
- [ris](https://affpapa.org/en/nevibecode/mcp/ris.md) — MCP server · ★ 22 repo stars
- [ris-austria-mcp-server](https://affpapa.org/en/nevibecode/mcp/ris-austria-mcp-server.md) — MCP server · 1751 installs
- [courtlistener-mcp-server](https://affpapa.org/en/nevibecode/mcp/courtlistener-mcp-server.md) — MCP server · 1420 installs
- [legal-risk-assessment](https://affpapa.org/en/nevibecode/skills/legal-risk-assessment.md) — skill · 5500 installs

---
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
