French Codes (LEGI)
liveLegalGovernmentFrench law: the official consolidated legal codes — Code civil, Code du travail, Code pénal, Code général des impôts and every other code in force — by article, with full version history and full-text search (DILA LEGI).
Tools
fr_code_articleRead an article of an official French code — Code civil, Code pénal, Code du travail, Code de commerce, Code général des impôts, Code de la santé publique and the other codes in force — by code and ar
No parameters required.
Try it
fr_legi_searchFull-text search across the articles in force of the French codes (DILA LEGI consolidated text) — find which article of French law deals with a subject, in French: "responsabilité du fait des choses",
No parameters required.
Try it
fr_code_tocTable of contents of a French code in force (parties, livres, titres, chapitres, sections) with the article numbers under each heading, from DILA's LEGI consolidated base. `depth` controls how many le
No parameters required.
Try it
fr_article_versionsVersion history of an article of a French code: every consolidated version with its dates of entry into force and end, its status (VIGUEUR, MODIFIE, ABROGE…) and its text, from DILA's LEGI base. Pass
No parameters required.
Try it
Test with curl
The gateway speaks JSON-RPC 2.0 over HTTP POST. You can test any pack directly from the terminal.
curl -X POST https://gateway.pipeworx.io/france-legi/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'curl -X POST https://gateway.pipeworx.io/france-legi/mcp \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":2,"method":"tools/call","params":{"name":"fr_code_article","arguments":{}}}'Use with the SDK
Install @pipeworx/sdk to call tools from any TypeScript/Node project.
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("fr_code_article", {});// Or ask in plain English:
const answer = await px.ask("french law: the official consolidated legal codes — code civil, code du travail, code pénal, code général des impôts and every other code in force — by article, with full version history and full-text search (dila legi)");