fr-eli-mcp
Click on "Deploy 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., "@fr-eli-mcp Search CODE for Article L. 1234-5"
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.
fr-eli-mcp
Install (one command)
Published on PyPI + MCP Registry (io.github.matematicsolutions/fr-eli-mcp). Run without cloning:
uvx fr-eli-mcpRequires PISTE credentials in env: PISTE_CLIENT_ID, PISTE_CLIENT_SECRET (Legifrance/PISTE).
Configure your MCP client (stdio):
{ "mcpServers": { "fr-eli-mcp": { "command": "uvx", "args": ["fr-eli-mcp"] } } }Windows 11 with Smart App Control
Smart App Control blocks unsigned executables, which covers uvx.exe, pip.exe
and the fr-eli-mcp.exe launcher that pip writes at install time. The python.exe and
py.exe from the python.org installer are signed by the Python Software
Foundation, so running the module through the interpreter works:
python -m pip install fr-eli-mcp
python -m fr_eli_mcppip.exe is blocked for the same reason, so install with python -m pip, not
pip install. If python is not on PATH, use the Windows launcher: py -3 -m fr_eli_mcp.
{ "mcpServers": { "fr-eli-mcp": { "command": "python", "args": ["-m", "fr_eli_mcp"] } } }Do not turn Smart App Control off to work around this - it cannot be re-enabled without reinstalling Windows.
Building from source: see Install.
An MCP server for the French Legifrance API via PISTE. It searches French legislation (LODA laws & decrees, codes), case law from three jurisdictions - Cour de cassation / cours d'appel (JURI), the Conseil constitutionnel (CONSTIT - QPC/DC decisions) and the administrative courts (CETAT - Conseil d'Etat, cours administratives d'appel, tribunaux administratifs) - plus CNIL deliberations (CNIL), collective labour agreements (KALI) and company-level agreements (ACCO), and returns verbatim text with verifiable citations. Part of the eu-legal-mcp line of national legal connectors by MateMatic.
Every response carries the citation contract: a stable eli_uri, a human_readable_citation
(French convention) and a resolvable source_url.
Read-only. The server only queries Legifrance and writes a local audit log. It never modifies official text and never sends anything beyond your query / document id.
Related MCP server: mpc-legifrance
Tools
Tool | What it does |
| Keyword search a |
| Consult a LODA law/decree by |
| Verbatim text of a single article by |
| A court decision by |
| A CNIL deliberation by |
| A collective labour agreement text by |
| A company-level agreement by |
| Declare what this connector covers, when each family was captured, and - explicitly - what it does NOT cover. Every gap carries a fallback. |
Fonds covered (live totals, sandbox, 2026-07-08)
Fond | Corpus | Verified total |
| CNIL deliberations | >= 26 759 ( |
| Collective labour agreements (conventions collectives) | >= 35 790 |
| Company-level agreements | >= 387 656 |
Jurisdictions covered
Fond | Court(s) | Id prefix | Native ECLI |
| Cour de cassation, cours d'appel |
| Yes |
| Conseil constitutionnel (QPC + DC decisions, ~7 400+ live on PISTE) |
| Yes ( |
| Conseil d'Etat, cours administratives d'appel (CAA), tribunaux administratifs (TA) |
| Yes for Conseil d'Etat; frequently |
Conseil constitutionnel decisions get the French citation convention: Cons. const., decision n° 2025-1173 QPC du 7 novembre 2025 - [case name]. JURI/CETAT decisions cite the Legifrance titre
(court, formation, date, dossier number) verbatim.
Judilibre (
api.piste.gouv.fr/cassation/judilibre) was evaluated as an alternative Cour de cassation source but requires its own PISTE API subscription beyond the Legifrance one already held by this connector. Re-verified 2026-07-08: a valid Legifrance token (granted scopeopenid resource.READ) gets403on the sandbox host for every endpoint and auth shape tried (Bearer,KeyId, no-auth ->400), and the sandbox application is rejected outright by the production OAuth endpoint (invalid_client). Subscribing the Judilibre API to the PISTE application is a dashboard action outside this connector. Not integrated -JURIalready covers Cour de cassation case law through the existing Legifrance subscription.
A note on ELI vs ECLI
France has an official ELI scheme, but the PISTE lf-engine-app consult API returns the native
ELI field null for the legislation we tested. Following this line's rule - say what you do not
have, never fabricate an ELI - eli_uri carries the stable, resolvable Legifrance resource URL
(CID-keyed), not a /eli/... string parsed from prose. Each response repeats this in eli_note.
Case law is different: the API returns a native, authoritative ECLI for Cour de cassation (e.g.
ECLI:FR:CCASS:2025:C100399), Conseil constitutionnel (e.g. ECLI:FR:CC:2025:2025.1173.QPC) and
Conseil d'Etat (e.g. ECLI:FR:CECHR:2026:506507.20260529), surfaced verbatim in fr_get_decision.
CAA/TA decisions under CETAT frequently have no ECLI - the field is null, never fabricated.
Configuration
Legifrance requires OAuth2 application credentials from a free PISTE account
(piste.gouv.fr → Applications → subscribe to the Legifrance API → OAuth Credentials).
Credentials are read from the environment only:
Variable | Meaning |
| OAuth token endpoint (sandbox default shown in |
| Legifrance |
| Your PISTE application client id (required). |
| Your PISTE application client secret (required). |
| Disk cache dir (default |
| Audit log dir (default |
Copy .mcp.json.example to .mcp.json (gitignored) and fill in your credentials, or set the
variables in your host environment. The OAuth token is cached in memory and refreshed automatically.
Install
py -3.13 -m venv .venv
.\.venv\Scripts\python.exe -m pip install -e ".[dev]" # Windows
# or: python -m pip install -e ".[dev]" # POSIXTests
pytest tests/test_instructions_drift.py tests/test_parse.py # offline, no creds
pytest tests/test_smoke.py -v # live, needs PISTE creds in .envDistribution
Because Legifrance requires a PISTE key, this connector is distributed through the PATRON / appliance channel (governed), not casual drop-in download. See the eu-legal-mcp line notes.
Licence
Apache-2.0. Legifrance content is © the French Republic / DILA and subject to the Legifrance / PISTE terms of use; this software only retrieves and cites it.
Available Tools
8 toolsfr_coverageARead-onlyIdempotent
Declare what this connector covers, how it is sourced, and what it does NOT cover.
Call this before telling a user that the law "does not contain" something, and whenever a search comes back empty: the absence may be a gap in this connector rather than in the law. Every gap carries a fallback saying where to look instead.
Returns:
Coverage with families, an as-of note, and a non-empty list of known gaps.
Inputs: no named parameters. Returns: What this connector covers, how it is sourced, and what it does not cover.
fr_get_actBRead-onlyIdempotent
Consult a LODA law or decree by its LEGITEXT... id.
Inputs: text_id (required), date. Returns: Result of ``fr_get_act`` - a consolidated LODA law or decree.
fr_get_company_agreementARead-onlyIdempotent
Consult a company-level agreement by its ACCOTEXT... id - METADATA ONLY.
Legifrance distributes the full text of ACCO agreements only as a .docx
attachment, so this tool returns the agreement metadata (company, SIRET, IDCC,
sector, themes, signatory unions, dates) plus the resolvable source_url.
Inputs: agreement_id (required). Returns: Result of ``fr_get_company_agreement`` - ACCO metadata (text is a docx attachme…
fr_get_conventionARead-onlyIdempotent
Consult a collective labour agreement text by its KALITEXT... id.
Inputs: convention_id (required). Returns: Result of ``fr_get_act`` - a consolidated LODA law or decree.
fr_get_decisionARead-onlyIdempotent
Consult a court decision by its id (returns the native ECLI).
Covers three jurisdictions via the same Legifrance consult/juri endpoint:
JURITEXT...- Cour de cassation / cours d'appel (fondJURI).CONSTEXT...- Conseil constitutionnel QPC/DC decisions (fondCONSTIT).CETATEXT...- Conseil d'Etat, CAA, TA administrative case law (fondCETAT).
Inputs: decision_id (required). Returns: Result of ``fr_get_decision`` - a JURI court decision with a native ECLI.
fr_get_deliberationARead-onlyIdempotent
Consult a CNIL deliberation by its CNILTEXT... id.
Inputs: deliberation_id (required). Returns: Result of ``fr_get_deliberation`` - a CNIL deliberation (fond CNIL).
fr_get_textARead-onlyIdempotent
Fetch the verbatim text of a single article (LEGIARTI... or KALIARTI...).
Inputs: article_id (required). Returns: Result of ``fr_get_text`` - a single article's verbatim text.
fr_searchARead-onlyIdempotent
Keyword-search French legislation or case law on Legifrance.
Inputs: query (required), fond, page_size. Returns: Result of ``fr_search``.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
Each tool targets a distinct document type or action: search, acts, articles, decisions, deliberations, collective agreements, company agreements, and coverage. The ID-prefix distinctions (LEGITEXT, LEGIARTI, JURITEXT, CNILTEXT, KALITEXT, ACCOTEXT) remove ambiguity.
The fr_ prefix and get_<object> pattern are used consistently across retrieval tools, with fr_search as a clear verb. The only slight deviation is fr_coverage, which uses a noun instead of a verb, but the pattern remains predictable.
With 8 tools, the server is well-scoped for a French legal research connector. Each tool covers a meaningful retrieval need without unnecessary overlap or bloat.
The surface covers search, full acts, individual articles, court decisions across multiple jurisdictions, CNIL deliberations, collective agreements, and company agreement metadata. The explicit coverage tool also handles known gaps, making the read-only legal domain feel complete.
Maintenance
Related MCP Connectors
French case law (Judilibre) and codes (Légifrance) from official sources, with citation checking.
MCP server for Chinese law lookup: statutes, regulations and articles by keyword or law name.
Official MCP connector for Legalize: read and search its whole open corpus, at any point in time.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA 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.65MIT
- AlicenseNot gradedqualityFmaintenanceMCP server covering French law via the PISTE platform: 62 tools wrapping the full Légifrance API (legislation, codes, Journal Officiel, jurisprudence…)4AGPL 3.0
- AlicenseNot gradedqualityFmaintenanceMCP server covering French law via the PISTE platform: 8 tools wrapping the JUDILIBRE API (open data judicial decisions from Cour de cassation, courts of appeal and civil courts).2AGPL 3.0
- AlicenseNot gradedqualityFmaintenanceEnables AI assistants to search and retrieve French legislation, case law, and EU law integrations from official sources via MCP.99 npm1Apache 2.0