get_document

Pack: eur-lex · Endpoint: https://gateway.pipeworx.io/eur-lex/mcp

Plain-text of a whole act (recitals + enacting terms), paged. Use for short acts or to read recitals/definitions; for a specific Article prefer get_article. Returns up to max_chars from offset.

Parameters

NameTypeRequiredDescription
celexstringyesCELEX id or a known alias.
langstringnoISO 639-2/B language code (default “eng”).
max_charsnumbernoMax characters to return (default 8000, max 40000).
offsetnumbernoCharacter offset to start from, for paging (default 0).

Example call

Arguments

{
  "celex": "GDPR"
}

curl

curl -X POST https://gateway.pipeworx.io/eur-lex/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_document","arguments":{"celex":"GDPR"}}}'

TypeScript (@pipeworx/sdk)

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

const result = await pipeworx.call('get_document', {
  "celex": "GDPR"
});

More examples

{
  "celex": "32022R0868",
  "max_chars": 16000,
  "offset": 0
}

Connect

Add this to your MCP client config, or use one-click install buttons:

{
  "mcpServers": {
    "eur-lex": {
      "url": "https://gateway.pipeworx.io/eur-lex/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build September 10, 2026