eu.ansvar/french-law-mcp

French legislation via MCP — full-text search across statutes and provisions

1Apache-2.0search

Install

Config snippet generator goes here (5 client tabs)

README

# French Law MCP Server

**The Légifrance alternative for the AI age.**

[![npm version](https://badge.fury.io/js/@ansvar%2Ffrench-law-mcp.svg)](https://www.npmjs.com/package/@ansvar/french-law-mcp)
[![MCP Registry](https://img.shields.io/badge/MCP-Registry-blue)](https://registry.modelcontextprotocol.io)
[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![GitHub stars](https://img.shields.io/github/stars/Ansvar-Systems/France-law-mcp?style=social)](https://github.com/Ansvar-Systems/France-law-mcp)
[![CI](https://github.com/Ansvar-Systems/France-law-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/Ansvar-Systems/France-law-mcp/actions/workflows/ci.yml)
[![Daily Data Check](https://github.com/Ansvar-Systems/France-law-mcp/actions/workflows/check-updates.yml/badge.svg)](https://github.com/Ansvar-Systems/France-law-mcp/actions/workflows/check-updates.yml)
[![Database](https://img.shields.io/badge/database-pre--built-green)](docs/EU_INTEGRATION_GUIDE.md)
[![Provisions](https://img.shields.io/badge/provisions-193%2C793-blue)](docs/EU_INTEGRATION_GUIDE.md)

Query **3,958 French statutes** -- from le RGPD (loi Informatique et Libertés), le Code pénal, and le Code civil to le Code du travail, le Code de commerce, and more -- directly from Claude, Cursor, or any MCP-compatible client.

If you're building legal tech, compliance tools, or doing French legal research, this is your verified reference database.

Built by [Ansvar Systems](https://ansvar.eu) -- Stockholm, Sweden

---

## Why This Exists

French legal research is scattered across Légifrance, the Journal Officiel, legistix, and EUR-Lex. Whether you're:
- A **lawyer** validating citations in a brief or contract
- A **compliance officer** checking RGPD obligations or sectoral regulations
- A **legal tech developer** building tools on French law
- A **researcher** tracing legislative history from projet de loi to code

...you shouldn't need dozens of browser tabs and manual cross-referencing between codes. Ask Claude. Get the exact provision. With context.

This MCP server makes French law **searchable, cross-referenceable, and AI-readable**.

---

## Quick Start

### Use Remotely (No Install Needed)

> Connect directly to the hosted version -- zero dependencies, nothing to install.

**Endpoint:** `https://french-law-mcp.vercel.app/mcp`

| Client | How to Connect |
|--------|---------------|
| **Claude.ai** | Settings > Connectors > Add Integration > paste URL |
| **Claude Code** | `claude mcp add french-law --transport http https://french-law-mcp.vercel.app/mcp` |
| **Claude Desktop** | Add to config (see below) |
| **GitHub Copilot** | Add to VS Code settings (see below) |

**Claude Desktop** -- add to `claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "french-law": {
      "type": "url",
      "url": "https://french-law-mcp.vercel.app/mcp"
    }
  }
}
```

**GitHub Copilot** -- add to VS Code `settings.json`:

```json
{
  "github.copilot.chat.mcp.servers": {
    "french-law": {
      "type": "http",
      "url": "https://french-law-mcp.vercel.app/mcp"
    }
  }
}
```

### Use Locally (npm)

```bash
npx @ansvar/french-law-mcp
```

**Claude Desktop** -- add to `claude_desktop_config.json`:

**macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`
**Windows:** `%APPDATA%\Claude\claude_desktop_config.json`

```json
{
  "mcpServers": {
    "french-law": {
      "command": "npx",
      "args": ["-y", "@ansvar/french-law-mcp"]
    }
  }
}
```

**Cursor / VS Code:**

```json
{
  "mcp.servers": {
    "french-law": {
      "command": "npx",
      "args": ["-y", "@ansvar/french-law-mcp"]
    }
  }
}
```

---

## Example Queries

Once connected, just ask naturally:

- *"Que dit l'article 6 de la loi Informatique et Libertés sur le consentement ?"*
- *"Recherche 'protection des données personnelles' dans le droit français (RGPD, loi Informatique et Libertés)"*
- *"Quelles dispositions du Code pénal concernent la fraude informatique ?"*
- *"Trouve les articles sur le droit du travail liés aux heures supplémentaires dans le Code du travail"*
- *"What EU directives does the loi Informatique et Libertés implement?"*
- *"Which French laws implement the NIS2 Directive?"*
- *"Valide la citation 'Article L. 226-1 du Code pénal'"*
- *"Compare les exigences de notification d'incident sous NIS2 et la loi française de transposition"*
- *"Recherche 'responsabilité civile' dans le Code civil"*
- *"Get the premium case law for RGPD enforcement decisions"*

---

## What's Included

| Category | Count | Details |
|----------|-------|---------|
| **Statutes** | 3,958 statutes | Comprehensive French legislation from Légifrance |
| **Provisions** | 193,793 articles | Full-text searchable with FTS5 |
| **Case Law** | 7,112 decisions | Premium tier -- judicial decisions |
| **Preparatory Works** | 3,411 documents | Premium tier -- projets de loi, rapports |
| **Agency Guidance** | 0 (f