Listed from the MCP registry; nobody on Odel publishes it.
Is this yours? Claim itSpain consolidated legislation — Agencia Estatal Boletín Oficial del Estado (BOE), open-data API.
One address for any MCP client. No sign-in needed on this server.
13 read5 act29 other
Grouped by tool name.
Odel charges nothing per call. The publisher may charge for its own service.
Spain's consolidated legislation — every Spanish statute and royal decree kept up to date with every amendment folded in, plus the daily table of contents of the state gazette, from the Agencia Estatal Boletín Oficial del Estado (BOE).
Part of Pipeworx — an MCP gateway connecting AI agents to 1863+ live data sources. This is an independent, unofficial integration — not affiliated with, endorsed by, or published by the upstream provider.
boe_search_law(query, ambito?, limit?, offset?) — search consolidated
legislation by words in the title (e.g. "Código Civil", "ley de propiedad
horizontal"). Returns matching laws with their BOE id, legal rank, issuing
department, scope (national/regional), key dates, and the official BOE page
URL for each. Pass the returned id to boe_law.boe_law(id, article?) — one consolidated law by its BOE id. Without
article: metadata (rank, department, consolidation status, dates), subject
tags, notes, and a table of contents of its articles/sections ("bloques") —
capped at 200 entries and marked truncated for large codes. With
article (a block id from that table of contents, e.g. "a1" for Artículo
1): the actual text of that one article across every historical version it
has had, each dated, with the current one flagged.boe_daily_summary(date) — table of contents of one day's BOE issue: every
disposition and announcement published that day, grouped by section and
issuing department, with each item's BOE id and title. BOE does not publish
every day (no Sunday issue, some holidays); those dates come back
found: false, never an empty list.Keyless. The upstream open-data API requires no registration, key, or
click-through terms — it is served to anyone with Accept: application/json.
Accept: application/json entirely and always answers
a fixed small XML envelope (status code + text, empty data) regardless of
what was requested. Every call here reads the body as text first and only
parses it as JSON when it looks like JSON, so an error message is never
lost to a failed res.json()."data": "" — an empty string, not [] or {} — while a populated
list and a single-record lookup are both array-wrapped ("data": [...],
even for exactly one record). boe_search_law and boe_law normalise this
and report found: false with plain wording on a genuine miss, never an
empty array dressed as success.texto/indice) is available as JSON; the actual block text is
XML-only. There is no XML parser in the Workers runtime, so boe_law with
article extracts paragraphs with targeted regex over BOE's fixed
one-block, one-or-more-versions, paragraph-per-version XML shape — reliable
for real statute text, not a general-purpose XML parser.boe_law without article caps what it inlines and reports
articles.total / articles.truncated rather than ever returning the whole
thing — use article to read one block at a time.limit /
offset paginate, and shown tells you how many came back this call.Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):
{
"mcpServers": {
"boe-legislacion": {
"url": "https://gateway.pipeworx.io/boe-legislacion/mcp"
}
}
}
tools/list at https://gateway.pipeworx.io/boe-legislacion/mcp returns the tools in the table
above plus the shared Pipeworx meta-tools — ask_pipeworx,
discover_tools, search_within, remember/recall and the rest of the
gateway-wide set. So the tool count you see is larger than this table: a
single-pack endpoint currently lists roughly 30 shared tools alongside the
pack's own. The connection's initialize response states its exact scope, and
is the authoritative answer for a given day.
This is deliberate, not multiplexing by accident. The meta-tools are what let a
scoped connection answer a question this pack does not cover — via
ask_pipeworx, which routes across the whole catalog — without you adding a
second MCP server. There is currently no way to mount a pack endpoint without
them; if the extra schemas cost you more context than the routing is worth,
connect to the full gateway once rather than to several pack endpoints.
Or connect to the full Pipeworx gateway to get every pack's tools listed directly, instead of just this one's:
{
"mcpServers": {
"pipeworx": {
"url": "https://gateway.pipeworx.io/mcp"
}
}
}
Both URLs reach the same gateway and the same 1863+ data sources. The
only difference is which pack's tools are listed directly; ask_pipeworx
reaches all of them from either one.
curl -X POST https://gateway.pipeworx.io/v1/tools/boe_search_law \
-H 'Content-Type: application/json' \
-d '{"query":"Código Civil","limit":5}'
No account needed for the first calls. Inspect any tool: GET https://gateway.pipeworx.io/v1/tools/boe_search_law. Find one: POST https://gateway.pipeworx.io/v1/tools/search_packs with {"query":"..."}.
@pipeworx/mcp-boe-legislacion is a local stdio bridge to the Pipeworx gateway: your MCP client
starts it with npx, and it forwards every call to the same
https://gateway.pipeworx.io/boe-legislacion/mcp endpoint shown above. It needs network access;
there is no offline mode.
{
"mcpServers": {
"boe-legislacion": {
"command": "npx",
"args": ["-y", "@pipeworx/mcp-boe-legislacion"]
}
}
}
Without a key it calls anonymously, capped at 50 calls a day. A free account
raises that to 200 a day: get a key at https://pipeworx.io/signup and add
"env": { "PIPEWORX_API_KEY": "<your key>" } to the server entry.
The key is sent as a Bearer token, the same way a hosted connection sends it,
so calls are metered and billed exactly as they are there.
It lists only this pack's tools by default. Set PIPEWORX_META_TOOLS=1 to
also list ask_pipeworx and the other gateway-wide tools.
Behind an HTTPS proxy: Node's built-in fetch does not read HTTPS_PROXY by
default. Newer Node releases honour it when NODE_USE_ENV_PROXY=1 is set; check
your Node version's documentation.
Instead of calling tools directly, you can ask questions in plain English — this works on the pack endpoint above as well as on the full gateway:
ask_pipeworx({ question: "your question about Boe Legislacion data" })
The gateway picks the right tool and fills the arguments automatically.
MIT