fr_code_article

Pack: france-legi · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/fr_code_article for the schema, then POST the same URL with its arguments for the data.

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 article number, from DILA’s consolidated LEGI base (the text Légifrance publishes). Returns the text in force today (or on date), its dates of entry into force and end, its place in the code (livre/titre/chapitre), the NOTA, and every version of the article with dates. Use for “what does article 1240 of the Code civil say”, “Code du travail L1221-1”, “article 121-3 du Code pénal”.

Parameters

NameTypeRequiredDescription
articlestringyesArticle number as cited: “1240”, “L1221-1”, “L. 1221-1”, “R214-117”, “121-3”.
datestringnoOptional YYYY-MM-DD: return the version in force on that date instead of today.

Example call

Arguments

{
  "code": "Code civil",
  "article": "1240"
}

curl

curl -X POST https://gateway.pipeworx.io/france-legi/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"fr_code_article","arguments":{"code":"Code civil","article":"1240"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('fr_code_article', {
  "code": "Code civil",
  "article": "1240"
});

Connect

Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the france-legi pack
{
  "mcpServers": {
    "france-legi": {
      "url": "https://gateway.pipeworx.io/france-legi/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build October 11, 2026