Serveur MCP [Model Context Protocol](https://modelcontextprotocol.io/introduction) expérimental permettant d'interroger les bases juridiques
Most developer tooling work still happens through a UI a human drives. Legifrance MCP server moves it into the conversation instead. Serveur MCP Model Context Protocol expérimental permettant d'interroger les bases juridiques françaises via l'API Legifrance dans des LLMs compatibles comme Claude.
Ce projet implémente un serveur MCP qui permet d'accéder aux ressources juridiques françaises (textes légaux, codes, jurisprudence) directement depuis un Large Language Model. Il facilite les recherches juridiques en rendant les données de Legifrance accessibles via des outils interactifs.
git on PyPI is all you need. Most clients run it directly, so configuration is a few lines and a restart.
The server publishes 12 tools. What each one is for:
text_id — Identifiant du texte (ex: "78-17" pour la loi informatique et libertés)search — Mots-clés ou numéro d'articlechamp — Zone de recherche ("ALL", "TITLE", "TABLE", "NUM_ARTICLE", "ARTICLE")type_recherche — Mode de recherche ("TOUS_LES_MOTS_DANS_UN_CHAMP", "EXPRESSION_EXACTE", "AU_MOINS_UN_MOT")page_size — Nombre de résultats (max 100)code_name — Nom du code (ex: "Code civil", "Code du travail")sort — Tri des résultatsfetch_all — Si tous les résultats doivent être récupéréspublication_bulletin — Si publiée au bulletin ["T"] ou non ["F"]juri_keys — Champs de réponse à extrairejuridiction_judiciaire — Liste des juridictionsagent_juridique_expert — Crée un agent juridique expert qui: - Cite systématiquement ses sources - Utilise les outils pertinents pour rechercher des informations - FournitConfiguration is passed through the environment: DASSIGNIES_API_KEY, DASSIGNIES_API_URL. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.
Plenty of developer tooling servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Legifrance's toolset — text_id, search, champ and 9 more — is a fair guide to whether it matches your workflow. It is maintained by rdassignies; worth a glance at recent repository activity before you build anything load-bearing on it.
SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.
| Tool | What it does |
|---|---|
| text_id | Identifiant du texte (ex: "78-17" pour la loi informatique et libertés) |
| search | Mots-clés ou numéro d'article |
| champ | Zone de recherche ("ALL", "TITLE", "TABLE", "NUM_ARTICLE", "ARTICLE") |
| type_recherche | Mode de recherche ("TOUS_LES_MOTS_DANS_UN_CHAMP", "EXPRESSION_EXACTE", "AU_MOINS_UN_MOT") |
| page_size | Nombre de résultats (max 100) |
| code_name | Nom du code (ex: "Code civil", "Code du travail") |
| sort | Tri des résultats |
| fetch_all | Si tous les résultats doivent être récupérés |
| publication_bulletin | Si publiée au bulletin ["T"] ou non ["F"] |
| juri_keys | Champs de réponse à extraire |
| juridiction_judiciaire | Liste des juridictions |
| agent_juridique_expert | Crée un agent juridique expert qui: - Cite systématiquement ses sources - Utilise les outils pertinents pour rechercher des informations - Fournit des analyses étape par étape - Inclut les liens officiels vers les textes |
{
"mcpServers": {
"server-legifrance": {
"command": "uvx",
"args": ["git"],
"env": {
"DASSIGNIES_API_KEY": "your-value",
"DASSIGNIES_API_URL": "your-value"
}
}
}
}Add to claude_desktop_config.json, then restart Claude Desktop.
| Variable | Description | Required |
|---|---|---|
| DASSIGNIES_API_KEY | Credential the server authenticates with. | Yes |
| DASSIGNIES_API_URL | Endpoint or connection string the server talks to. | Yes |
Kill hallucinated APIs — version-accurate, up-to-date library documentation injected straight into context.
Microsoft's official browser automation server — drive a real browser through the accessibility tree, no screenshots needed.
GitHub's official server — repos, issues, pull requests, Actions and code security, straight from your assistant.
Issue tracking at the speed of conversation — Linear's official hosted server with OAuth and zero install.
Local repository surgery — status, diffs, commits, branches and history for any repo on disk.
Timezone sanity for AI — current time anywhere and correct conversions, without the model doing date math.