French Codes (LEGI)

liveLegalGovernment

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).

4tools
0msauth
free tier50 calls/day

Tools

fr_code_article

Read 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 arti

No parameters required.

▶Try it
fr_code_toc

Table 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_versions

Version 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. Pas

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.

List available tools
bash
curl -X POST https://gateway.pipeworx.io/france-legi/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
Call a tool
bash
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.

TypeScript
import { Pipeworx } from '@pipeworx/sdk';
const px = new Pipeworx();
const result = await px.call("fr_code_article", {});
ask_pipeworx
// 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)");