mcp-fr-legal
The mcp-fr-legal server provides offline full-text access to a French legal corpus (codes and statutes from Legifrance/DILA), enabling verbatim search, article retrieval, and citation grounding with no network calls at runtime.
fr_search: Full-text (FTS5) search across French legal provisions using keywords or phrases (e.g., 'licenciement'), with optional filtering bydocument_idand up to 25 results returned as verbatim snippets with citations.fr_article: Retrieve the complete verbatim text of a specific provision bydocument_id(e.g., 'code-travail') andprovision_ref(e.g., 'L1233-15'), with tolerance for formatting variations.fr_validate_citation: Mechanically verify whether adocument_id+provision_refexists in the corpus — a fail-closed anti-hallucination primitive returningdocument_exists,provision_exists, andin_forcestatus.fr_list_documents: Discover available legal documents (codes and statutes) with optional filtering by type or title keyword.
Every tool returns structured citations including document_id, provision_ref, Legifrance URL, source_authority (DILA), license (Etalab v2.0), snapshot date, and a staleness_advisory if applicable. All operations run fully offline against a local SQLite database — suitable for air-gapped or privacy-sensitive environments.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-fr-legalShow me article 1240 of the French Civil Code"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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 startAir-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"] }Related MCP server: French Law MCP Server
Narzedzia
Tool | Opis |
| Pelnotekstowo (FTS5) po przepisach, snippety verbatim + citations. |
| Pelny verbatim tekst przepisu (tolerancyjny |
| Grounding: czy cytat istnieje (fail-closed) - anti-halucynacja. |
| Lista dokumentow (discovery |
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
Kod: MIT (MateMatic Solutions).
Korpus: artefakt
database.dbz Ansvar-Systems/French-law-mcp (Apache-2.0); tekst prawny = Licence Ouverte v2.0 (Etalab), DILA/Legifrance, reuzycie komercyjne z atrybucja. Pelna atrybucja: THIRD_PARTY_INSPIRATIONS.md.
Cytowanie: MateMatic Solutions (2026), mcp-fr-legal - offline MCP korpus prawa francuskiego (Legifrance/DILA), MIT. Dane: DILA, Licence Ouverte v2.0.
Maintenance
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/matematicsolutions/mcp-fr-legal'
If you have feedback or need assistance with the MCP directory API, please join our Discord server