boe_law

Pack: boe-legislacion · 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/boe_law for the schema, then POST the same URL with its arguments for the data.

Get one Spanish consolidated law by its BOE id (from boe_search_law, e.g. “BOE-A-1889-4763” = Código Civil). Without “article”: returns metadata (rank, department, dates, consolidation status), subject tags, notes, and a table of contents of its articles/sections (“bloques”) — capped and marked truncated for large codes. With “article” (a block id from that table of contents, e.g. “a1” for Artículo 1): returns the actual text of that one article across every historical version, each dated, with the current one flagged. Unknown id or article is refused with found:false, never an empty success. Source: Agencia Estatal Boletín Oficial del Estado (BOE), Legislación Consolidada open-data API.

Parameters

NameTypeRequiredDescription
idstringyesBOE identifier, e.g. “BOE-A-1889-4763”.
articlestringnoOptional block id from the law’s table of contents, e.g. “a1” (Artículo 1), “preambulo”.

Example call

Arguments

{
  "id": "BOE-A-1889-4763",
  "article": "a1"
}

curl

curl -X POST https://gateway.pipeworx.io/boe-legislacion/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"boe_law","arguments":{"id":"BOE-A-1889-4763","article":"a1"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('boe_law', {
  "id": "BOE-A-1889-4763",
  "article": "a1"
});

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 boe-legislacion pack
{
  "mcpServers": {
    "boe-legislacion": {
      "url": "https://gateway.pipeworx.io/boe-legislacion/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build October 14, 2026