be-justel
by pipeworx-io
README.md
# @pipeworx/be-justel
Belgian legislation from Justel, the consolidated-legislation database of the Moniteur belge (Belgisch Staatsblad): search acts, and fetch one by ELI, NUMAC or title with its Moniteur publication date and text.
Part of [Pipeworx](https://pipeworx.io) — an MCP gateway connecting AI agents to 2106+ live data sources. This is an independent, unofficial integration — not affiliated with, endorsed by, or published by the upstream provider.
## Tools
- `be_justel_search(query, title_only?, doc_type?, published_from?, published_to?, language?, sort?, page?)` — acts matching words in the title or text, 30 per page, each with NUMAC, title, issuing body, Moniteur publication date and a source link. An empty result says why.
- `be_justel_get_act(eli | numac | title, language?, max_chars?)` — one act: title, Moniteur publication date and page, promulgation date, entry into force, consolidated or not, ELI, source and PDF links, text. A bogus ELI or NUMAC returns `found: false` with the reason.
## Auth
Keyless.
## Data sources
- FOD Justitie, Belgisch Staatsblad / Moniteur belge — Justel consolidated legislation database. Public, no login. Terms: https://www.ejustice.just.fgov.be/
Things worth knowing: the pages are ISO-8859-1 HTML, not JSON. The server resets roughly every second new connection, so the pack retries with a pause between attempts. An act's ELI ends in its ten-digit NUMAC; the pack resolves an ELI by NUMAC and rejects it when the ELI's date differs from the act's promulgation date. For a consolidated version the Moniteur date is that of the original publication.
## Quick Start
Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):
```json
{
"mcpServers": {
"be-justel": {
"url": "https://gateway.pipeworx.io/be-justel/mcp"
}
}
}
```
### What this endpoint actually serves
`tools/list` at `https://gateway.pipeworx.io/be-justel/mcp` returns the tools in the table
above **plus five Pipeworx tools**: `ask_pipeworx`, `discover_tools`, `ask_pipeworx_grounded`, `company_register_search` and `company_facts`.
`ask_pipeworx` answers a question this pack does not cover by routing across the
whole catalog, without adding a second MCP server.
Add an option to the same URL:
- `https://gateway.pipeworx.io/be-justel/mcp?meta=1` lists this pack's tools plus **up to 48 shared Pipeworx tools** (48 when this README was
generated; a connection without an account lists fewer, and its own `tools/list` is the
exact answer on any given day).
- `https://gateway.pipeworx.io/be-justel/mcp?meta=0` lists this pack's tools alone.
Or connect to the full Pipeworx gateway to get every pack's tools listed
directly, instead of just this one's:
```json
{
"mcpServers": {
"pipeworx": {
"url": "https://gateway.pipeworx.io/mcp"
}
}
}
```
Both URLs reach the same gateway and the same 2106+ data sources. The
only difference is which pack's tools are listed **directly**; `ask_pipeworx`
reaches all of them from either one (it is not listed on a `?meta=0` connection).
## No MCP client? Call it over HTTP
```bash
curl -X POST https://gateway.pipeworx.io/v1/tools/be_justel_search \
-H 'Content-Type: application/json' \
-d '{"query":"protection des données","title_only":true}'
```
No account needed for the first calls. Inspect any tool: `GET https://gateway.pipeworx.io/v1/tools/be_justel_search`. Find one: `POST https://gateway.pipeworx.io/v1/tools/search_packs` with `{"query":"..."}`.
## Run it from npm
`@pipeworx/mcp-be-justel` 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/be-justel/mcp` endpoint shown above. It needs network access;
there is no offline mode.
```json
{
"mcpServers": {
"be-justel": {
"command": "npx",
"args": ["-y", "@pipeworx/mcp-be-justel"]
}
}
}
```
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.
## Using with ask_pipeworx
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 Be Justel data" })
```
The gateway picks the right tool and fills the arguments automatically.
## More
- [Docs and guides](https://pipeworx.io/docs)
- [pipeworx.io](https://pipeworx.io)
## License
MIT
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues