Docs

Every request carries a key: Authorization: Bearer <key> (or X-API-Key, or ?key=). A key is free on the start page. Without a key the same requests are answered 50 times a day and 10 a minute for one address, to try it.

Connect

Claude Code

claude mcp add --transport http pandex https://api.pandex.io/mcp --header "Authorization: Bearer YOUR_KEY"

Any MCP client (streamable HTTP)

{ "mcpServers": { "pandex": { "type": "http", "url": "https://api.pandex.io/mcp", "headers": { "Authorization": "Bearer YOUR_KEY" } } } }

A client that takes an address only: https://api.pandex.io/mcp/YOUR_KEY

HTTP

curl -s https://api.pandex.io/v1/search -H "Authorization: Bearer YOUR_KEY" -H "content-type: application/json" \
  -d '{"query": "right to erasure personal data", "jurisdiction": "eu", "limit": 3}'

MCP

Streamable HTTP at https://api.pandex.io/mcp, five read-only tools. Every result carries an id in square brackets, written id#element: pass it to the other tools. Answers are the official wording with the address of the source, cut to max_tokens.

search

Find passages of legislation and court decisions. Answers with the passages themselves (an article, a paragraph of a judgment), each with its document, date, id and url. A query that names a text ("art. 6:162 BW", "§ 823 BGB", "ECLI:NL:HR:2019:2006", "32016R0679 art 17") is answered with that text first. Write the query in the language of the documents; set jurisdiction when you know it.

citesOnly passages that cite this document or article: an id, id#element, or a citation.
courtWords from the court's name, e.g. "Hoge Raad", "Bundesgerichtshof", "Grand Chamber".
date_fromEarliest document date, YYYY-MM-DD.
date_toLatest document date, YYYY-MM-DD.
doc_typeA document type as shown in results, e.g. regulation, directive, act, judgment, opinion.
facetsAlso count the passages that hold every word by jurisdiction, source and year.
jurisdictionOne or more of: eu, coe (European Court of Human Rights), nl, fr, de, at, ch, lu, gb. Comma-separated.
kindOnly laws, only court decisions, or only treaties. (legislation | decision | treaty)
langTwo-letter language to match and answer in (texts that exist in several languages). Default: the query's language.
limitPassages to return, 1–20. Default 5.
max_tokensSize of the answer in tokens, 200–8000. Default 1500.
modehybrid (default) matches words and meaning; text only words; meaning only meaning. (hybrid | text | meaning)
offsetResults to skip, for the next page: the answer says the offset of the next one.
queryWords, a question, or a citation. Put a phrase in double quotes to require it literally.
sortrelevance (default); date: newest first; date_asc: oldest first; cited: most cited first. The last three order the passages that hold every word. (relevance | date | date_asc | cited)
sourceSource ids from list_sources, comma-separated.
withinOnly passages of this document: an id or a citation.

get_document

Read a document or one part of it in its official wording: a whole short text, one article (element), everything under a chapter, or the text as it stood on a date. One article of a law comes with the leading decisions on it: those cited most by the decisions that cite the article. Long documents come in pieces; the answer says how to continue.

atRead the text in force on this day, YYYY-MM-DD. Default: the current text.
casesWith one article of a law: the leading decisions on it. Default true.
elementThe part to read: an element id from a result or outline (art_6:162, par_823, chp_2) or its number as written ("6:162", "823").
fromContinue reading from this element id (given by a previous answer).
historyWith element: also list the periods of every version of it.
idAn id from a result, or an identifier or citation: an ECLI, a CELEX number, "BGB", "art. 6:162 BW".
langTwo-letter language, for texts that exist in several.
max_tokensSize of the answer in tokens, 200–8000. Default 1500.

get_outline

The structure of a document: its parts, chapters and articles with their headings and element ids. Use it to find the right article of a long law before reading it.

atThe structure as it stood on this day, YYYY-MM-DD.
idAn id from a result, or an identifier or citation.
langTwo-letter language, for texts that exist in several.
max_tokensSize of the answer in tokens, 200–8000. Default 1500.
underOnly the structure below this element (a part or chapter).

get_citations

What cites a document or one of its articles (direction "in": the leading ones first, those the other citing documents cite most, each with the passage that cites it), or what it cites (direction "out"), with the places where. Targets we do not hold are listed as written. To search inside the citing passages, use search with cites.

directionin (default): documents that cite it. out: what it cites. (in | out)
elementOnly citations of, or from, this element.
idAn id from a result, or an identifier or citation.
limitLines to return, 1–60. Default 15.
max_tokensSize of the answer in tokens, 200–8000. Default 1500.
orderFor direction in. leading (default): those the other citing documents cite most. newest: by date. (leading | newest)
relationOnly one relation: cites, amends, repeals, implements, consolidates, appeals, joins.

list_sources

The sources that are loaded, per jurisdiction: what each one holds, its languages, how many documents and as of which day. With a jurisdiction: also its institutions (courts, legislators), what is held of each and what is not.

jurisdictionOnly these jurisdictions, comma-separated.

HTTP

The same five operations as JSON. Add ?format=text for the text a model gets.

RequestBody or query
POST /v1/searchthe arguments of search (also GET with a query string)
POST /v1/documentthe arguments of get_document
POST /v1/outlinethe arguments of get_outline
POST /v1/citationsthe arguments of get_citations
GET /v1/sources?jurisdiction=nl
GET /v1/registerwhat is held of every institution, as on the coverage page

Limits and the log

A key may ask 60 times a minute and 1,000 times a day; past that the answer is status 429, or for a tool call a message the model reads. Requests are logged under the key with their arguments and how long they took, to see what is asked for and what is missing.