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.
cites | Only passages that cite this document or article: an id, id#element, or a citation. |
court | Words from the court's name, e.g. "Hoge Raad", "Bundesgerichtshof", "Grand Chamber". |
date_from | Earliest document date, YYYY-MM-DD. |
date_to | Latest document date, YYYY-MM-DD. |
doc_type | A document type as shown in results, e.g. regulation, directive, act, judgment, opinion. |
facets | Also count the passages that hold every word by jurisdiction, source and year. |
jurisdiction | One or more of: eu, coe (European Court of Human Rights), nl, fr, de, at, ch, lu, gb. Comma-separated. |
kind | Only laws, only court decisions, or only treaties. (legislation | decision | treaty) |
lang | Two-letter language to match and answer in (texts that exist in several languages). Default: the query's language. |
limit | Passages to return, 1–20. Default 5. |
max_tokens | Size of the answer in tokens, 200–8000. Default 1500. |
mode | hybrid (default) matches words and meaning; text only words; meaning only meaning. (hybrid | text | meaning) |
offset | Results to skip, for the next page: the answer says the offset of the next one. |
query | Words, a question, or a citation. Put a phrase in double quotes to require it literally. |
sort | relevance (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) |
source | Source ids from list_sources, comma-separated. |
within | Only 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.
at | Read the text in force on this day, YYYY-MM-DD. Default: the current text. |
cases | With one article of a law: the leading decisions on it. Default true. |
element | The 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"). |
from | Continue reading from this element id (given by a previous answer). |
history | With element: also list the periods of every version of it. |
id | An id from a result, or an identifier or citation: an ECLI, a CELEX number, "BGB", "art. 6:162 BW". |
lang | Two-letter language, for texts that exist in several. |
max_tokens | Size 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.
at | The structure as it stood on this day, YYYY-MM-DD. |
id | An id from a result, or an identifier or citation. |
lang | Two-letter language, for texts that exist in several. |
max_tokens | Size of the answer in tokens, 200–8000. Default 1500. |
under | Only 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.
direction | in (default): documents that cite it. out: what it cites. (in | out) |
element | Only citations of, or from, this element. |
id | An id from a result, or an identifier or citation. |
limit | Lines to return, 1–60. Default 15. |
max_tokens | Size of the answer in tokens, 200–8000. Default 1500. |
order | For direction in. leading (default): those the other citing documents cite most. newest: by date. (leading | newest) |
relation | Only 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.
jurisdiction | Only these jurisdictions, comma-separated. |
HTTP
The same five operations as JSON. Add ?format=text for the text a model gets.
| Request | Body or query |
|---|---|
POST /v1/search | the arguments of search (also GET with a query string) |
POST /v1/document | the arguments of get_document |
POST /v1/outline | the arguments of get_outline |
POST /v1/citations | the arguments of get_citations |
GET /v1/sources | ?jurisdiction=nl |
GET /v1/register | what 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.