mcp-fr-legal

mcp-fr-legal

Provides offline access to the French legal corpus (Legifrance/DILA) with full-text search, verbatim article retrieval, and citation grounding to prevent hallucinations.

Category
Visit Server

README

<!-- mcp-name: io.github.matematicsolutions/mcp-fr-legal -->

mcp-fr-legal

Serwer MCP udostepniajacy offline korpus prawa francuskiego (Legifrance/DILA, pelny tekst) w lokalnym SQLite FTS5, z narzedziami do wyszukiwania i groundingu cytatu. Snippety zwracane verbatim z bazy (zero-LLM) - kazdy z document_id, provision_ref i URL do Legifrance. Anti-halucynacja przez mechanike, nie przez zaufanie do modelu.

Zakres: kody i ustawy skonsolidowane LEGI (Code civil, Code du travail, Code penal, Code de commerce, Code de la defense, Code de la securite interieure, ...) - 3 953 dokumenty / 193 681 przepisow w bundlowanym snapshocie. Bez orzecznictwa (jurisprudence) i bez pelnego JORF.

Rodzina konektorow prawa MateMatic: mcp-saos (orzecznictwo PL), mcp-eu-compliance (prawo UE), mcp-eu-sparql (live EUR-Lex).

Instalacja

npm install            # Node 22.5+ (node:sqlite wbudowane, FTS5)
npm run fetch-corpus   # pobiera database.db (~303 MB) z artefaktu DILA/Ansvar (Apache-2.0 + Etalab)
npm run build
npm start

Air-gap / pelny offline: ustaw FR_LEGAL_DB na lokalna kopie database.db.

Konfiguracja w kliencie MCP:

{ "name": "fr-legal", "command": "node", "args": ["/sciezka/mcp-fr-legal/dist/index.js"] }

Narzedzia

Tool Opis
fr_search(query, documents?, limit?) Pelnotekstowo (FTS5) po przepisach, snippety verbatim + citations.
fr_article(document_id, provision_ref) Pelny verbatim tekst przepisu (tolerancyjny provision_ref).
fr_validate_citation(document_id, provision_ref) Grounding: czy cytat istnieje (fail-closed) - anti-halucynacja.
fr_list_documents(type?, query?) Lista dokumentow (discovery document_id).

Kazde narzedzie zwraca structuredContent.citations (document_id, provision_ref, URL Legifrance, source_authority DILA, license Etalab v2.0, snapshot, age_days oraz staleness_advisory gdy snapshot starszy niz prog FR_STALENESS_DAYS (domyslnie 365) - provenance/staleness wzorowane na russellbrenner/jurisd, Apache-2.0).

Grounding (anti-halucynacja)

fr_validate_citation to prymityw groundingu: sprawdza mechanicznie, czy document_id + provision_ref istnieje w korpusie. Fail-closed - brak dokumentu/przepisu => provision_exists=false (nie "prawdopodobnie ok"). Spina sie z citation-grounding-pl jako resolver kotwicy dla prawa FR (poziom ISTNIENIE).

Zero-cloud / RODO

Zero wywolan sieciowych w runtime (baza otwierana read-only). Bootstrap korpusu (fetch-corpus) to jedyny moment sieci. Tekst zwracany verbatim (grounding). Swiezosc: sprawdzaj na Legifrance (snapshot != zrodlo autentyczne = Journal officiel).

Licencja i atrybucja

Cytowanie: MateMatic Solutions (2026), mcp-fr-legal - offline MCP korpus prawa francuskiego (Legifrance/DILA), MIT. Dane: DILA, Licence Ouverte v2.0.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured