Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.Prototype · updated every 30 min
PopNx MCPMCP servers for people who use AI · explained in plain words

Légifrance (unofficial)

by muchinyversion 1.4.1i★ 0iRuns on your computerRepository ↗
Registry nameio.github.muchiny/mcp-legifrance

How to install

What it does

Unofficial MCP server for French law via the Légifrance API (PISTE): search, read and cite texts.

  • Connects Runs on your computer
  • Account or key Needs LF_PISTE_CLIENT_ID, LF_PISTE_CLIENT_SECRET
  • Category Law & government data

Why it ranks here

Lists are ordered by a usage score (out of 100) built from these parts

Popularity0/80GitHub stars or weekly downloads: the larger counts 60, the smaller 20
Freshness12/12Full marks for a release or code change within 30 days
Still answering0/8The cloud endpoint answered at the last check
Usage score12/100

Quality: Passed 3/3 basic checks (shown, not used for ordering) · Momentum: No data yet (Used only on the Trending tab)

Install

Pick the AI app you use, then copy the settings.

Let your AI install it with one sentence

Please install Légifrance (unofficial). Follow https://mcp.popnx.com/i/muchiny-mcp-legifrance.md, show me the commands and wait for my OK before running them.

Paste it into an AI that can work on your computer (such as Claude Code or Cursor). It reads our steps, shows you the commands and waits for your OK. No key, no sign-up. · See the full text your AI reads

Passed 3/3 checks · Runs on your computer · ✓ Commands checked Nov 17, 2026

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude, with some setup first

You need a Légifrance (unofficial) key (create it on the maker’s site) · Only the Claude desktop app (Windows or Mac), not the web or phone

  1. Download the maker’s installer

    Download the maker’s .mcpb file

    The .mcpb file comes straight from the maker; we do not change it

  2. Double-click the file, then click Install in the Claude desktop app

  3. Try it

    Use Légifrance (unofficial) and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using Légifrance (unofficial) or shows a Légifrance (unofficial) tool in the answer, you are connected

1 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • LF_PISTE_ENV PISTE environment; credentials are environment-specific. · default sandbox

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

ChatGPT cannot connect Légifrance (unofficial) yet

Légifrance (unofficial) runs on your computer, but ChatGPT can only connect servers that run on the web

What you can do instead

A · Use an app that can connect Légifrance (unofficial)

  • You need a Légifrance (unofficial) key (create it on the maker’s site) · Only the Claude desktop app (Windows or Mac), not the web or phone
  • You need a Légifrance (unofficial) key (create it on the maker’s site) · Install Docker on your computer first (one time)
  • You need a Légifrance (unofficial) key (create it on the maker’s site) · Install Docker on your computer first (one time)
  • You need a Légifrance (unofficial) key (create it on the maker’s site) · Install Docker on your computer first (one time)

B · Others in Law & government data that work with ChatGPT

Picked from the most used in the same category, only ones that connect by address with no key

Works with Claude Code, with some setup first

You need a Légifrance (unofficial) key (create it on the maker’s site) · Install Docker on your computer first (one time)

Let AI install it

Copy this message into a Claude Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Légifrance (unofficial) for Claude Code on this computer, in this order: 1) Check Docker with docker --version. If it is missing, tell me to install it from https://www.docker.com/products/docker-desktop/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): claude mcp add --scope user legifrance --env LF_PISTE_CLIENT_ID=your-value --env LF_PISTE_CLIENT_SECRET=your-value -- docker run -i --rm -e LF_PISTE_CLIENT_ID -e LF_PISTE_CLIENT_SECRET ghcr.io/muchiny/mcp-legifrance:1.4.1 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For LF_PISTE_CLIENT_ID, LF_PISTE_CLIENT_SECRET, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the Légifrance (unofficial) tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Docker (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    docker --version
    • A version number such as Docker version … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Install Docker Desktop: on Mac open Docker.dmg and drag the icon to Applications (pick Apple silicon or Intel to match your Mac) · on Windows double-click Docker Desktop Installer.exe · then open the Docker Desktop app and leave it running. No curl command needed

    Open the Docker download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: docker --version

    Install once; it works for everything that needs Docker

  2. Sign up and create a Légifrance (unofficial) key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    Open the Légifrance (unofficial) site ↗

  3. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  4. Paste this command and press Enter

    claude mcp add --scope user legifrance --env LF_PISTE_CLIENT_ID=your-value --env LF_PISTE_CLIENT_SECRET=your-value -- docker run -i --rm -e LF_PISTE_CLIENT_ID -e LF_PISTE_CLIENT_SECRET ghcr.io/muchiny/mcp-legifrance:1.4.1

    Replace “your-value” with your key before pressing Enter

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Type /mcp in Claude Code

    You should see Légifrance (unofficial) listed as connected

  6. Try it

    Use Légifrance (unofficial) and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using Légifrance (unofficial) or shows a Légifrance (unofficial) tool in the answer, you are connected

1 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • LF_PISTE_ENV PISTE environment; credentials are environment-specific. · default sandbox

Descriptions are as written by the maker.

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor, with some setup first

You need a Légifrance (unofficial) key (create it on the maker’s site) · Install Docker on your computer first (one time)

Let AI install it

Copy this message into a Cursor chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Légifrance (unofficial) for Cursor on this computer, in this order: 1) Check Docker with docker --version. If it is missing, tell me to install it from https://www.docker.com/products/docker-desktop/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "mcpServers": { "legifrance": { "command": "docker", "args": [ "run", "-i", "--rm", "-e", "LF_PISTE_CLIENT_ID", "-e", "LF_PISTE_CLIENT_SECRET", "ghcr.io/muchiny/mcp-legifrance:1.4.1" ], "env": { "LF_PISTE_CLIENT_ID": "your-value", "LF_PISTE_CLIENT_SECRET": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For LF_PISTE_CLIENT_ID, LF_PISTE_CLIENT_SECRET, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the Légifrance (unofficial) tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Docker (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    docker --version
    • A version number such as Docker version … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Install Docker Desktop: on Mac open Docker.dmg and drag the icon to Applications (pick Apple silicon or Intel to match your Mac) · on Windows double-click Docker Desktop Installer.exe · then open the Docker Desktop app and leave it running. No curl command needed

    Open the Docker download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: docker --version

    Install once; it works for everything that needs Docker

  2. Sign up and create a Légifrance (unofficial) key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    Open the Légifrance (unofficial) site ↗

  3. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  4. Fill in your key

    In the Légifrance (unofficial) settings, LF_PISTE_CLIENT_ID, LF_PISTE_CLIENT_SECRET is empty; add your key and save

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Open the AI chat in Cursor in Agent mode

  6. Try it

    Use Légifrance (unofficial) and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using Légifrance (unofficial) or shows a Légifrance (unofficial) tool in the answer, you are connected

1 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • LF_PISTE_ENV PISTE environment; credentials are environment-specific. · default sandbox

Descriptions are as written by the maker.

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code, with some setup first

You need a Légifrance (unofficial) key (create it on the maker’s site) · Install Docker on your computer first (one time)

Let AI install it

Copy this message into a VS Code chat. The AI checks your computer, tells you which file it will change, and waits for your OK every time.

Please install the MCP server Légifrance (unofficial) for VS Code on this computer, in this order: 1) Check Docker with docker --version. If it is missing, tell me to install it from https://www.docker.com/products/docker-desktop/; do not install it yourself. 2) Use only this config (already checked by PopNx MCP): { "servers": { "legifrance": { "type": "stdio", "command": "docker", "args": [ "run", "-i", "--rm", "-e", "LF_PISTE_CLIENT_ID", "-e", "LF_PISTE_CLIENT_SECRET", "ghcr.io/muchiny/mcp-legifrance:1.4.1" ], "env": { "LF_PISTE_CLIENT_ID": "your-value", "LF_PISTE_CLIENT_SECRET": "your-value" } } } } 3) Tell me the full path of the file you will change, or the command you will run, and wait for my OK. 4) For LF_PISTE_CLIENT_ID, LF_PISTE_CLIENT_SECRET, leave "your-value" in place and tell me to paste the real value myself into the file or the app’s field. Never ask me to type a key in chat. 5) Do what we agreed, then check that the Légifrance (unofficial) tools really show up.

This message has no key in it. If a key is needed, the AI will ask you to paste it yourself into the file or the app’s field.

  1. Install Docker (if you don’t have it)

    Already installed? Check first · Open Terminal, type this command and press Enter

    docker --version
    • A version number such as Docker version … = installed, skip this step
    • "command not found" (on Windows: "is not recognized") = not installed yet, or installed but Terminal needs to be closed and reopened
    How to open Terminal

    Mac: press ⌘ + Space, type Terminal, press Enter

    Windows: open Start, type Windows PowerShell, then Open

    Not installed: Install Docker Desktop: on Mac open Docker.dmg and drag the icon to Applications (pick Apple silicon or Intel to match your Mac) · on Windows double-click Docker Desktop Installer.exe · then open the Docker Desktop app and leave it running. No curl command needed

    Open the Docker download page ↗

    When it’s done, close Terminal, open it again and run the same command. You should see a version number: docker --version

    Install once; it works for everything that needs Docker

  2. Sign up and create a Légifrance (unofficial) key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    Open the Légifrance (unofficial) site ↗

  3. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

  4. Fill in your key

    In the Légifrance (unofficial) settings, LF_PISTE_CLIENT_ID, LF_PISTE_CLIENT_SECRET is empty; add your key and save

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Open the AI chat in VS Code in Agent mode

  6. Try it

    Use Légifrance (unofficial) and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using Légifrance (unofficial) or shows a Légifrance (unofficial) tool in the answer, you are connected

1 optional setting(s) (works without them)

The command above works without these. Add them only if you want to change something, following the maker’s description.

  • LF_PISTE_ENV PISTE environment; credentials are environment-specific. · default sandbox

Descriptions are as written by the maker.

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

JSON settings are under “For developers” below

Stuck? Ask people who use Légifrance (unofficial)💬 Discussion →
For developers: Terminal commands and JSON settings

Installed on your computer

Claude Code

claude mcp add --scope user legifrance --env LF_PISTE_CLIENT_ID=your-value --env LF_PISTE_CLIENT_SECRET=your-value -- docker run -i --rm -e LF_PISTE_CLIENT_ID -e LF_PISTE_CLIENT_SECRET ghcr.io/muchiny/mcp-legifrance:1.4.1

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "legifrance": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "LF_PISTE_CLIENT_ID",
        "-e",
        "LF_PISTE_CLIENT_SECRET",
        "ghcr.io/muchiny/mcp-legifrance:1.4.1"
      ],
      "env": {
        "LF_PISTE_CLIENT_ID": "your-value",
        "LF_PISTE_CLIENT_SECRET": "your-value"
      }
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "legifrance": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "LF_PISTE_CLIENT_ID",
        "-e",
        "LF_PISTE_CLIENT_SECRET",
        "ghcr.io/muchiny/mcp-legifrance:1.4.1"
      ],
      "env": {
        "LF_PISTE_CLIENT_ID": "your-value",
        "LF_PISTE_CLIENT_SECRET": "your-value"
      }
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "legifrance": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "LF_PISTE_CLIENT_ID",
        "-e",
        "LF_PISTE_CLIENT_SECRET",
        "ghcr.io/muchiny/mcp-legifrance:1.4.1"
      ],
      "env": {
        "LF_PISTE_CLIENT_ID": "your-value",
        "LF_PISTE_CLIENT_SECRET": "your-value"
      }
    }
  }
}

Values you fill in

  • LF_PISTE_CLIENT_ID secret required env
    OAuth client ID of your own Légifrance application on piste.gouv.fr. Never share it.
  • LF_PISTE_CLIENT_SECRET secret required env
    OAuth client secret of the same PISTE application.
  • LF_PISTE_ENV env
    PISTE environment; credentials are environment-specific.

Descriptions are as written by the maker.

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

Downloads per weeki
Not on npm/PyPI
Licencei
Apache-2.0
Connection
Runs on your computer
Latest versioni
1.4.1
Published to registryi
Nov 17, 2026
Code last changedi
Nov 18, 2026
Maker
muchiny
Packages
mcpb: …/mcp-legifrance-1.4.1.mcpb
oci: ghcr.io/muchiny/mcp-legifrance:1.4.1
Website
github.com
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Run on your computer in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

All apps, with pros and cons →

Related guides

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 19, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account muchiny, which owns the repo

  • ✓ Pass

    Still maintained

    Code last changed yesterday

  • ✓ Pass

    Has a licence

    Uses Apache-2.0

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Published vulnerabilities (OSV.dev)

Not checked: only npm and PyPI packages with a version can be checked

What we check → · JSON

Makers: ask for a re-check or report wrong info
For makers: add a badge to your README

If you made this, paste this code into your README. The badge links back to this page.

[![Featured on PopNx MCP](https://mcp.popnx.com/badge/muchiny-mcp-legifrance.svg)](https://mcp.popnx.com/en/servers/muchiny-mcp-legifrance)

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in to post

User reviews

No reviews yet

Sign in to write a review

Compared with others in Law & government datai

  • More stars than 0% of the other 1945 servers in this category
  • Published to the registry more recently than 95% of the other 1945 servers in this category
  • Basic checks equal to or better than 99% of the other 1945 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is Légifrance (unofficial) safe?

It passed 3 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

You need to fill in: LF_PISTE_CLIENT_ID, LF_PISTE_CLIENT_SECRET

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed yesterday, and the latest version (1.4.1) reached the registry 2 days ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need MCPB, Docker on your computer.

What can I use instead?

In the same category: Global law, Open Legal Data (Germany), LibreJustice, InfraNode, Fedlex Connector

Similar alternatives

Same category, other makers, commands already checked. Official ones first, then by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

Global law

The law of nearly every country on earth, any date: read it, see what changed it, check citations.

by lexifinaWidely used★ 2.1KUpdated 9 days ago

Runs in the cloud✓ lexifina.com

LibreJustice

Search French-language and European case law and French legal texts (codes, statutes, treaties).

by librejusticeEarly★ 36Updated 2 months ago

Runs in the cloud✓ service owner · librejustice.fr

InfraNode

Keyless open data for 84 German cities: 12 lean read-only MCP tools covering 67 data types.

by street1983nkEarly★ 18Updated 5 months ago

Runs in the cloud✓ service owner · infranode.dev

Fedlex Connector

Search Swiss federal legislation: laws, articles, amendments via the Fedlex SPARQL endpoint.

by JayTheSkierEarly★ 8Updated 7 months ago

Runs in the cloud✓ service owner · fedlex-connector.ch
Compared with similar ones
This one
Légifrance (unofficial)
Global lawOpen Legal Data (Germany)LibreJusticeInfraNodeFedlex Connector
Runs whereInstalls on your computerRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to installRuns in the cloud, nothing to install
Needs a keyYesNoNoNoNoNo
Add with + in ClaudeNoNoNoNoNoNo
Basic checks3/34/44/44/44/44/4
LicenseApache-2.0NOASSERTIONMITApache-2.0Apache-2.0MIT
PriceNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registryNo cost listed in the registry

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

mcp-legifrance

Projet non officiel, sans lien avec la DILA. *Not affiliated with or endorsed by DILA.*

Dépôt : https://github.com/muchiny/mcp-legifrance

Serveur MCP en Rust pour interroger le droit français officiel (lois, codes, jurisprudence, conventions collectives) : il lit l'API Légifrance du portail PISTE, en lecture seule, et renvoie le texte tel que Légifrance le publie, avec une citation et l'adresse de la source. Il cible la spécification MCP 2026-07-28 et reste compatible avec les clients en 2025-11-25 et 2025-06-18.

Ce qu'il fait en plus de chercher et de lire un texte :

  • Vérifier les citations. fr_verify_citations contrôle contre Légifrance toutes les citations d'un texte, par exemple un brouillon de réponse ; fr_resolve transforme une citation écrite en toutes lettres en identifiant officiel, avec un niveau de confiance. Rien n'est deviné ni inventé.
  • Lire le droit à une date. Un texte ou un article tel qu'il était en vigueur un jour donné (fr_search, fr_get_act, fr_resolve), et la comparaison de deux versions d'un article (fr_diff_article).
  • Sans intermédiaire. Le serveur tourne sur votre machine et parle à PISTE avec vos propres identifiants : aucun service tiers ne voit vos requêtes (voir Hôtes contactés).
  • Hors ligne, en option. Les codes, lois et décrets peuvent être lus dans une copie locale, sans compte PISTE ni réseau (voir Mode hors ligne).
  • Doctrine fiscale (BOFiP). fr_search_bofip et fr_get_bofip lisent le Bulletin officiel des finances publiques, c'est-à-dire la lecture que l'administration fiscale fait de la loi, sur le portail de données ouvertes de la DGFiP, sans compte (voir Doctrine fiscale).

Binaires non signés. Les binaires et le bundle MCPB ne sont signés par aucun certificat (ni Authenticode sous Windows, ni notarisation sous macOS). Sous Windows, Smart App Control peut bloquer l'exécutable : ne le désactivez pas, utilisez l'image Docker ou WSL. Sous macOS, Gatekeeper peut demander une confirmation. Les sommes SHA-256 et les attestations de provenance GitHub permettent de contrôler ce que vous installez (voir Vérifier un téléchargement).

Statut. Cette page décrit la version 1.3.2, dont la recherche du BOFiP demande d'abord les mots exacts (voir le CHANGELOG). La 1.2.0 n'a pas été publiée : la 1.3.0 la contient. Les commandes d'installation citent l'étiquette v1.3.2 : elles s'appliquent dès que sa release figure sur la page des releases ; pour une autre version publiée, remplacez le numéro. La première version publiée est la 1.0.0 (2026-10-31).

Depuis la 1.3.0. Les deux outils du BOFiP (fr_search_bofip, fr_get_bofip) et la variable LF_BOFIP décrits ci-dessous arrivent avec la 1.3.0 (voir le CHANGELOG). Un binaire plus ancien sert treize outils.

Sommaire

  1. Ce que fait le serveur
  2. Avant d'installer : une application PISTE
  3. Installation par canal
  4. Configuration des clients
  5. Variables d'environnement
  6. Mode hors ligne (index local DILA)
  7. Hôtes contactés
  8. Attribution, licence des données et non-affiliation
  9. Migrer depuis fr-eli-mcp
  10. Confidentialité et sécurité
  11. Ce qui n'est pas encore vérifié
  12. Développer et contribuer

Ce que fait le serveur

Quinze outils, tous en lecture seule (readOnlyHint), qui interrogent le réseau (openWorldHint) : treize lisent Légifrance, deux lisent le BOFiP.

OutilRôle
fr_searchRecherche par mots-clés dans un fonds : LODA (lois et décrets), CODE, JURI (Cour de cassation et cours d'appel), CONSTIT, CETAT, CNIL, KALI (conventions collectives) ou ACCO (accords d'entreprise). Pagination, filtres de dates, version en vigueur à une date.
fr_get_actTable des matières d'un texte (loi, décret, code) à une date donnée.
fr_get_textTexte d'un article, avec lecture progressive (voir ci-dessous).
fr_get_decisionDécision de justice (Cour de cassation, Conseil constitutionnel, Conseil d'État, cours d'appel, tribunaux administratifs).
fr_get_deliberationDélibération de la CNIL.
fr_get_conventionConvention collective : métadonnées et table des matières.
fr_get_company_agreementAccord d'entreprise : métadonnées seules (le texte est une pièce jointe).
fr_coverageCe que le serveur couvre et ne couvre pas, l'environnement PISTE, l'état de la configuration, la source et la date de consultation.
fr_resolveTransforme une citation en texte libre (« article 1240 du code civil », « Cass. civ. 1re, 4 juin 2025, n° 24-13.470 », un ECLI) en identifiants Légifrance, avec un niveau de confiance. Rien n'est deviné ni inventé.
fr_verify_citationsVérifie toutes les citations juridiques d'un texte (jusqu'à 20 000 caractères, par exemple un brouillon de réponse) contre Légifrance : codes, lois, décrets, décisions, ECLI, délibérations de la CNIL, conventions.
fr_get_relatedLiens juridiques d'un article ou d'une décision : textes cités, textes qui le citent, jurisprudence mentionnée.
fr_diff_articleCompare les versions d'un article à deux dates : passages retirés et ajoutés, avec un peu de contexte.
fr_search_allRecherche dans plusieurs fonds à la fois : les meilleurs résultats de chacun, groupés par fonds, avec leurs totaux.
fr_search_bofipRecherche dans le BOFiP (doctrine de l'administration fiscale) par quelques mots simples, avec un filtre de série (ENR, IR, RFPI…) et de nature (doctrine, actualités). Rend des titres et des identifiants, jamais le texte.
fr_get_bofipTexte d'une publication du BOFiP par son identifiant (BOI-…, ACTU-…), avec la même lecture progressive que fr_get_text.

Retour progressif. Pour économiser le contexte du modèle, un texte de plus de 1 200 caractères est d'abord rendu en résumé. Pour le lire en entier, demandez detail: "full" et enchaînez avec offset = next_offset ; focus extrait les passages qui correspondent à des mots donnés. Une réponse ne dépasse jamais 45 000 caractères de JSON compact.

Doctrine fiscale (BOFiP)

Le BOFiP (Bulletin officiel des finances publiques, impôts) est la doctrine de l'administration fiscale : ce que la Direction générale des finances publiques (DGFiP) écrit pour dire comment elle lit la loi fiscale. Ce n'est pas la loi : un article du code général des impôts se lit avec fr_get_text, le commentaire que l'administration en donne se lit avec fr_get_bofip.

  • Aucun compte. Les deux outils lisent le jeu ouvert bofip-vigueur du portail data.economie.gouv.fr. Ils marchent sans identifiants PISTE, et même si la configuration PISTE est absente ou invalide.
  • En vigueur seulement. Le jeu ne porte que les publications en vigueur aujourd'hui : aucune version passée n'est servie, alors que la doctrine applicable à une situation est celle du jour des faits (l'article L. 80 A du livre des procédures fiscales protège le contribuable qui a suivi l'interprétation publiée et non rapportée « à la date des opérations en cause »). Chaque réponse le rappelle (doctrine_note) et donne la date de début de validité (valid_from) et l'adresse de la page sur le site du BOFiP (source_url), où les versions passées se consultent.
  • Chercher. Chaque mot de query doit figurer dans la publication tel qu'il est écrit, accents et majuscules mis à part : pas de début de mot, ni opérateur, ni expression entre guillemets. Employez quelques mots simples, et essayez le singulier comme le pluriel. Si aucune publication ne porte tous les mots, la recherche admet des mots approchants (une ou deux lettres de différence) et le dit dans note.
  • Lire. Quelques identifiants désignent deux publications : la réponse les liste alors, et publication_id en choisit une.
  • Débit. Le serveur envoie au plus 2 requêtes par seconde au portail et 10 000 par jour et par processus ; après un refus 429 du portail, il attend sans réessayer et répond [rate_limited].
  • Couper la source. LF_BOFIP=off : les deux outils répondent [config_error] sans appel réseau. Voir Variables d'environnement.

Resources, prompts et complétions. En plus des outils, le serveur expose la resource legifrance://coverage, quatre modèles de resources (legifrance://act/{text_id}, legifrance://article/{article_id}, legifrance://code/{code}/article/{num}, legifrance://decision/{decision_id}), trois prompts en français (analyser_decision, etat_du_droit, verifier_citations) et la complétion de leurs arguments.

Option de compilation, absente des binaires publiés. Le transport Streamable HTTP local (--features http, sous-commande serve-http, boucle locale seulement, jeton dans LF_MCP_HTTP_TOKEN) existe dans le code et se compile à la demande, mais n'est pas livré dans les binaires, l'image Docker et le bundle MCPB.

Mode hors ligne, inclus dans les binaires publiés à partir de la 1.0.0. L'index local DILA (fonctionnalité dila, fonds LEGI seul, activé par LF_DILA_DIR) se construit avec la sous-commande build-dila-index, voir Mode hors ligne. L'index local est un instantané : il peut être en retard sur Légifrance et ne prouve donc jamais qu'un texte n'existe pas. Le CHANGELOG dit, version par version, ce que livre chaque release.

Protocole. MCP 2026-07-28 (« moderne »), ainsi que 2025-11-25 et 2025-06-18 (« legacy ») dans le même binaire. La version 2025-03-26 n'est pas servie. Le démarrage ne fait aucun appel réseau : l'authentification PISTE se fait au premier appel d'outil.

Avant d'installer : une application PISTE

Chaque utilisateur apporte ses propres identifiants : le projet n'en fournit aucun, et les conditions d'utilisation de PISTE interdisent de partager les vôtres. Étapes, à faire une seule fois :

  1. Créer un compte nominatif sur https://piste.gouv.fr et accepter les conditions d'utilisation de PISTE.
  2. Dans le catalogue, choisir l'API Légifrance et accepter ses conditions (l'accès est gratuit).
  3. Créer une application par environnement : une pour le bac à sable (sandbox), une pour la production. Relever le client_id et le client_secret dans la section « OAuth Credentials » de l'application.

Les identifiants du bac à sable ne sont pas valables en production (PISTE répond invalid_client). Le serveur démarre en sandbox par défaut ; le bac à sable peut renvoyer d'autres données que la production et n'offre aucun engagement de service. Pour la production, voir Passer en production.

Si vos clés sont divulguées, réinitialisez-les sur PISTE sans attendre, puis prévenez la DILA et l'AIFE.

Installation par canal

CanalPour quiCommande ou actionIntégrité
Installeur (archives de la release)juristes et développeurs à l'aise en terminal`curl … \sh (Linux, macOS) ; irm … \iex` (Windows)HTTPS ; sommes SHA-256 et attestations, non signé
Bundle MCPBClaude Desktopdouble-clic sur mcp-legifrance-1.3.2.mcpbfileSha256 vérifié par le client ; non signé
Image Dockerisolation, VS Code (galerie), Docker Desktopdocker run -i --rm …digest, attestation

| `cargo install --git` | développeurs Rust | compilation locale depuis le dépôt, à l'étiquette | Cargo.lock imposé par --locked ;

Only the beginning is shown; read the rest in the repo