boe_search_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_search_law for the schema, then POST the same URL with its arguments for the data.

Search Spain’s consolidated legislation (Legislación Consolidada) by words in the title — e.g. “Código Civil”, “ley de propiedad horizontal”. Returns matching laws/decrees with their BOE id, rank (ley/real decreto/…), issuing department, dates, and the official BOE page URL for each. Source: Agencia Estatal Boletín Oficial del Estado (BOE), Legislación Consolidada open-data API. Pass the returned id to boe_law for the full record or one article’s text.

Parameters

NameTypeRequiredDescription
querystringyesWords to match in the title, e.g. “Código Civil”.
ambitostringnoOptional: “estatal” (national) or “autonomico” (regional) to restrict scope.
limitnumbernoMax results, 1-50 (default 20).
offsetnumbernoPagination offset (default 0) — the upstream does not report a total match count.

Example call

Arguments

{
  "query": "Código Civil",
  "limit": 5
}

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_search_law","arguments":{"query":"Código Civil","limit":5}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('boe_search_law', {
  "query": "Código Civil",
  "limit": 5
});

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