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
An MCP server exposing an offline corpus of French law (Legifrance / DILA, full text)
in a local SQLite FTS5 database, with tools for search and citation grounding. Snippets are
returned verbatim from the database (zero-LLM), each with a document_id, a provision_ref and a
Legifrance URL. Anti-hallucination by mechanism, not by trust in the model.
Scope: consolidated LEGI codes and statutes (Code civil, Code du travail, Code penal, Code de commerce, Code de la defense, Code de la securite interieure, ...) - 3,953 documents / 193,681 provisions in the bundled snapshot. No case law (jurisprudence) and no full JORF.
Part of the MateMatic law-connector family: mcp-saos
(PL case law), mcp-eu-compliance
(EU law), mcp-eu-sparql (live EUR-Lex).
Installation
npm install # Node 22.5+ (node:sqlite built in, FTS5)
npm run fetch-corpus # downloads database.db (~303 MB) from the DILA/Ansvar artifact (Apache-2.0 + Etalab)
npm run build
npm startAir-gapped / fully offline: point FR_LEGAL_DB at a local copy of database.db.
MCP client configuration:
{ "name": "fr-legal", "command": "node", "args": ["/path/to/mcp-fr-legal/dist/index.js"] }Related MCP server: French Law MCP Server
Tools
Tool | Description |
| Full-text (FTS5) over provisions, verbatim snippets + citations. |
| Full verbatim text of a provision (tolerant |
| Grounding: whether the citation exists (fail-closed) - anti-hallucination. |
| List documents (discovery of |
Every tool returns structuredContent.citations (document_id, provision_ref, Legifrance URL,
source_authority DILA, license Etalab v2.0, snapshot, age_days, and a staleness_advisory
when the snapshot is older than the FR_STALENESS_DAYS threshold (365 by default) - provenance and
staleness modelled on russellbrenner/jurisd, Apache-2.0).
Grounding (anti-hallucination)
fr_validate_citation is a grounding primitive: it mechanically checks whether document_id + provision_ref exists in the corpus. Fail-closed - a missing document or provision yields
provision_exists=false (not "probably ok"). It plugs into
citation-grounding-pl
as the anchor resolver for French law (EXISTENCE level).
Zero-cloud / GDPR
No network calls at runtime (the database is opened read-only). Corpus bootstrap (fetch-corpus) is
the only moment a network is used. Text is returned verbatim (grounding). For currency, check
Legifrance (a snapshot is not the authoritative source - the Journal officiel is).
License and attribution
Code: MIT (MateMatic Solutions).
Corpus: the
database.dbartifact from Ansvar-Systems/French-law-mcp (Apache-2.0); the legal text is under the Licence Ouverte v2.0 (Etalab), DILA/Legifrance, commercial reuse with attribution. Full attribution: THIRD_PARTY_INSPIRATIONS.md.
Citation: MateMatic Solutions (2026), mcp-fr-legal - an offline MCP corpus of French law (Legifrance/DILA), MIT. Data: DILA, Licence Ouverte v2.0.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Alicense-qualityDmaintenanceA server implementing the Model Context Protocol to allow direct access to French legal resources (laws, codes, case law) from compatible Large Language Models like Claude, enabling interactive legal research through the Legifrance API.Last updated61MIT
- Alicense-qualityDmaintenanceProvides access to official French legal databases (Légifrance and JudiLibre) to search and retrieve French legislation, legal codes, case law, and judicial decisions through authenticated APIs.Last updated27MIT
- Alicense-qualityDmaintenanceProvides access to official French legal databases (Légifrance and JudiLibre) for searching and consulting French legislation, judicial codes, case law, official journal publications, and court decisions.Last updated27MIT
- Alicense-qualityDmaintenanceProvides access to French legal databases (Judilibre and Légifrance) and a structured legal reasoning skill for analyzing civil cases like a French magistrate.Last updated9MIT
Related MCP Connectors
Search French and European case law and French legal texts (codes, statutes, treaties).
Verified, citable German & EU law for any LLM. Daily updates from official sources, hosted in DE.
Legal research: US primary law, Indian case law (31M+ judgments), and citation graph traversal.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- 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