Labsco
MCP SERVER

Legifrance

by rdassignies

Search French statutes, code articles and court decisions on Legifrance from inside a conversation.

Government, Legal & Legislative Records
Summary
Grounded in the official texts, which is exactly where a model asked about French law otherwise invents.

Article numbers that look right and are not are the characteristic failure here, and every answer through these tools is anchored to a Legifrance lookup instead. Nothing is cached, so each question is a live query. The corpora stop at statutes, codes and judicial case law — the other Legifrance collections are not covered yet.

What it is

An experimental MCP server over the Legifrance API, covering three French legal corpora: statutes and regulations, the articles of the legal codes, and judicial case law.

What you get
  • rechercher_dans_texte_legal — search inside a named statute or regulation by keywords or article number, choosing which field to search and how the terms combine
  • rechercher_code — search the articles of a named French code, with sorting, field selection and an option to retrieve every result
  • rechercher_jurisprudence_judiciaire — search judicial case law by terms or case number, filtered by court, by whether the decision was published in the bulletin, and by which response fields to return
  • A packaged prompt, agent_juridique_expert, which sets up a legal assistant that cites its sources, works step by step and links back to the official texts
Requirements

Python and a local checkout — the server is started from the repository. It needs an API key for the maintainer's Legifrance gateway, requested from him directly, placed in a local environment file alongside the gateway address.

Setup effort

One command plus a key — pip install git+https://github.com/rdassignies/mcp-server-legifrance.git, then supply credentials