MCP servers · Law and regulation
Légifrance MCP server: connect AI agents to French law from the EU
Légifrance has no official MCP server, but its content is available through the official Légifrance API on the PISTE portal. The open-source fr-eli-mcp server builds on that API and returns verbatim legal texts with citations you can check. inference.eu agents use it with your PISTE credentials for legal research in French law.
- 01Authentication: API key
- 02Community server
- 03EU data centres
What agents can do with it
- 1
Search legislation and case law
`fr_search` searches one collection at a time: laws and decrees (LODA), codes, Cour de cassation case law, Conseil constitutionnel and Conseil d'État decisions, CNIL deliberations and collective agreements.
- 2
Read texts and decisions verbatim
`fr_get_text`, `fr_get_act` and `fr_get_decision` return the exact text of an article, a law with its table of contents, or a court decision with its native ECLI where the API provides one.
- 3
Agreements, deliberations and coverage
`fr_get_convention`, `fr_get_company_agreement` and `fr_get_deliberation` read collective and company agreements and CNIL deliberations; `fr_coverage` states what the server does not cover.
What Légifrance and this MCP server are
Légifrance is the French government's official legal information service, published by the DILA. It covers codes, laws and decrees, the Journal officiel, case law from the courts, CNIL decisions and collective agreements. Developers can reach it for free through the Légifrance API on PISTE, the state's API portal.
fr-eli-mcp by MateMatic is an Apache-licensed MCP server for that API, published on PyPI and the MCP registry. It is read-only, runs over stdio, and every answer carries a stable source URL and a human-readable French citation.
What agents can do with Légifrance
An in-house lawyer can ask for the current wording of an article of the Code du travail, then for recent Cour de cassation decisions applying it, each with an ECLI and a link to verify. An HR team can look up the collective agreement for an IDCC code and read the clauses on notice periods.
Compliance teams use it to find CNIL deliberations on a topic, such as video surveillance, and to quote them precisely in an internal note. Legal researchers can build a list of sources before drafting, instead of relying on the model's memory.
Setup and authentication
Create a free account on piste.gouv.fr, create an application, subscribe it to the Légifrance API and copy its OAuth client ID and secret. On inference.eu, add the Légifrance connector to an agent and enter these two values as the server's credentials.
The credentials are stored encrypted in the EU and only reach the agents you allow. The server fetches and refreshes its access token automatically. PISTE applies quotas per token, so a shared research agent may need its own application.
Data protection and where the data goes
The server sends your search terms and document IDs to the Légifrance API run by the French administration, and nothing else. It keeps a local cache and an audit log of queries. The legal texts themselves are public data under the Licence Ouverte.
On inference.eu, the model that reads the texts runs in EU data centres, and your PISTE credentials are stored encrypted in the EU. Avoid putting client names or case facts into search queries, because queries leave your environment to reach the API.
Approvals and safe use
Every tool is read-only, so an agent cannot change anything. The real risk in legal work is a wrong or outdated citation. The server reduces it by returning verbatim text, the version date and a link, and by never inventing identifiers it does not have.
Ask agents to quote the text and link every source, and have a lawyer check citations before advice leaves the firm. On inference.eu you can require approval for calls that send results to clients through email or document connectors.
Légifrance: common questions
The questions buyers, developers and legal teams ask us most. Something missing? Ask us directly.
Related
- data.gouv.frConnect inference.eu agents to the official data.gouv.fr MCP server. Search French open datasets, query tables and explore public APIs, with no key needed.Public data
- PappersConnect inference.eu agents to the official Pappers MCP server. Look up French companies, accounts, directors, beneficial owners and legal notices.Company data
- INSEE SireneConnect inference.eu agents to INSEE's Sirene register through an open-source MCP server. Look up SIREN and SIRET numbers, NAF codes and economic series.Company data
Move your AI workloads to EU infrastructure
Tell us which models you use and roughly how much traffic you have. We reply within one working day with pricing and next steps.
- Reply within one working day
- Pricing for your volume
- DPA ready to sign