News for hackers. Stuff that matters.
Re:Pandex – Official European Law for AI Agents, over MCP by vasie on Saturday November 21, 2026 @03:47PM (#50593482)
Hi HN. AI models often get European law wrong, quoting old versions or making up text. Pandex gives them the official text instead.

It covers EU, Germany, France, Netherlands, UK, Austria, Switzerland, Luxembourg and ECHR case law, with every past version of each law. Updated every night.

Works as an MCP server, no key needed: claude mcp add --transport http pandex https://api.pandex.io/mcp

Which countries should we add next?

Re:Pandex – Official European Law for AI Agents, over MCP by jwr on Saturday November 21, 2026 @07:04PM (#50594890)
Poland would be useful to me, if you did it right (I would need to be sure you are getting the latest and correct data).
Re:Pandex – Official European Law for AI Agents, over MCP by therealalexz on Saturday November 21, 2026 @07:15PM (#50594944)
This is a great service for EU companies working with AI agents but also want to try to stay compliant in early stages. Please add Sweden next.
Re:Pandex – Official European Law for AI Agents, over MCP by sebmellen on Saturday November 21, 2026 @09:23PM (#50595596)
It would be really cool to have something like this for individual US states as well.
Re:Pandex – Official European Law for AI Agents, over MCP by yoaviram on Sunday November 22, 2026 @03:58AM (#50597618)
And Italy please
Re:Pandex – Official European Law for AI Agents, over MCP by sublimefire on Sunday November 22, 2026 @06:27AM (#50598626)
Why say EU and then list specific EU countries? Super confusing. So does it support all EU countries or not?
Re:Pandex – Official European Law for AI Agents, over MCP by nani8ot on Sunday November 22, 2026 @06:44AM (#50598732)
There's EU law and there's EU member countries with their own laws.
Re:Pandex – Official European Law for AI Agents, over MCP by Timwi on Sunday November 22, 2026 @07:01AM (#50598841)
Exactly, just as there is US federal law and also state laws.
Re:Pandex – Official European Law for AI Agents, over MCP by Longhanks on Sunday November 22, 2026 @08:09AM (#50599371)
Exactly, and if you were talking about state law, you wouldn’t call it "US law", "law of the US", "USA law" and so on - you’d specifically mention that it applies to only some specific states.

Also the EU is not a federation and whether the countries' constitutions are "below" EU regulations is "a heated discussion" (whereas US federal law basically always tops state law, they have the Supremacy Clause). If any member state would disagree with EU regulations, it can "just" leave the EU - unilaterally, a state leaving the US on the other hand is unconstitutional.

Re:Pandex – Official European Law for AI Agents, over MCP by layer8 on Sunday November 22, 2026 @07:41AM (#50599142)
The site lacks an imprint which is legally required in a number of EU countries.

Also, why is this .io and not .eu?

Re:Pandex – Official European Law for AI Agents, over MCP by gumby on Saturday November 21, 2026 @07:26PM (#50595005)
This is great! I can see good ways to find inconsistencies In national implementations.

As well, there was recently a post on HN on using Lean to look for loopholes in US laws — this will make the same thing possible in Europe.

Re:Pandex – Official European Law for AI Agents, over MCP by rafram on Saturday November 21, 2026 @10:29PM (#50595944)
That is a ridiculous idea, I’m sorry. Laws aren’t programs or mathematical statements, and they are interpreted by courts using much more than the words on the page. You can’t feed them into a program and “look for loopholes.”
Re:Pandex – Official European Law for AI Agents, over MCP by evujumenuk on Saturday November 21, 2026 @10:56PM (#50596090)
You're absolutely right! This is precisely why loopholes in tax systems, which come into being as a result of legislature, have remained a purely theoretical threat to government budgets, all over the world.
Re:Pandex – Official European Law for AI Agents, over MCP by nonethewiser on Sunday November 22, 2026 @01:58AM (#50596996)
Can you be more specific? What loophole do you have in mind?
Re:Pandex – Official European Law for AI Agents, over MCP by Timwi on Sunday November 22, 2026 @07:07AM (#50598880)
The comment said, “Laws aren’t programs or mathematical statements”, not, “Laws don't exist”.
Re:Pandex – Official European Law for AI Agents, over MCP by mik1998 on Sunday November 22, 2026 @07:42AM (#50599154)
[delayed]
Re:Pandex – Official European Law for AI Agents, over MCP by bradknowles on Sunday November 22, 2026 @03:27AM (#50597468)
My wife is a lawyer. She has specialized in international law as it relates to financial institutions for decades. She gets really bent out of shape by people who’ve just read the law books and think that they know everything there is to know. These are the same type of people who are usually stupid enough to try to defend themselves in court. Her sister’s ex-husband is one of those.

My wife always says that the law is like a tripod. There is one leg that is formed by the laws as they are written down. There is a second leg that is formed by the precedents and case law that have developed around the written law. And then there is the third leg which is formed by the courts as they apply the law to individual cases.

And exactly how this works out is different by country and locality within that country. That’s why each state in the US has their own bar exam, and their own bar associations. That’s why most cities and other localities have their own bar associations, and they may have their own additional bar exams.

For example, in China, if all you did was read the laws as written in the books, you might think they have a very modern legal system, with lots of reasonable choices. But I am told that the law in China is actually whatever the judge says it is, and their judgement is final. So, you can ignore the other two legs of the tripod in China. And who appoints those judges? Who promotes those judges? To whom do those judges all kowtow?

In France, the official laws are written only in French. Anything you read in a different language is a translation, and not the actual law itself. There are other differences up in France as well.

So, having a system that lets you search the written laws and the precedents that have formed around them, that is a very useful thing. And it’s a very expensive service called LexisNexis. And it’s even more useful if it lets you look at the history of the way that a particular judge has ruled on specific cases. Which I believe that LexisNexis does.

If you can give me an API to the laws as they are written and nothing else, that might have some value for some people. But it’s hard to compete against LexisNexis or other legal research tools in this space.

Re:Pandex – Official European Law for AI Agents, over MCP by lokar on Sunday November 22, 2026 @11:37AM (#50601181)
And having a legal system that was as precise (and inflexible) as code (law as code) would be a nightmare.

Almost every legal outcome is, appropriately, a balance of the facts and the factors you listed.

Re:Pandex – Official European Law for AI Agents, over MCP by skwon816 on Saturday November 21, 2026 @08:25PM (#50595323)
Areas like laws, it's crucial to be accurate and avoid hallucinations. I'm curious if AI will do a good job at this.
Re:Pandex – Official European Law for AI Agents, over MCP by Muromec on Saturday November 21, 2026 @08:46PM (#50595426)
Law text alone aren't enough to know how the rules are applied. So it needs court decisions too. That wouldn't be enough either because ton of things aren't in either laws or courts.

You need to see stuff like refusals to issue a permit or licence, waiting times or what not.

A lot of things aren't in public record or any record at all

Re:Pandex – Official European Law for AI Agents, over MCP by namibj on Sunday November 22, 2026 @01:58AM (#50597003)
If your from the USA: European courts work differently in jurisprudence aspects from USA courts.
Re:Pandex – Official European Law for AI Agents, over MCP by ahartman00 on Sunday November 22, 2026 @11:43AM (#50601255)
No. Not at all.

"This database tracks legal decisions in cases where generative AI produced hallucinated content – typically fake citations, but also other types of AI-generated arguments. It does not track the (necessarily wider) universe of all fake citations or use of AI in court filings."

https://www.damiencharlotin.com/hallucinations/

Re:Pandex – Official European Law for AI Agents, over MCP by kaladin-jasnah on Saturday November 21, 2026 @10:02PM (#50595789)
A picture of the US Supreme Court seems a bit out of place for a product focused on European Law?
Re:Pandex – Official European Law for AI Agents, over MCP by etatester on Sunday November 22, 2026 @02:18AM (#50597093)
You're absolutely right! Let me fix that for you.
Re:Pandex – Official European Law for AI Agents, over MCP by holoduke on Sunday November 22, 2026 @01:15AM (#50596798)
How does it work internally? Is this agent to agent with a MCP in between? From my experience this domain is pretty hard to get right. Often multiple LLM passes are needed over different kinds of structured data. RAG, indices, raw texts, DB search, with extra validations and more. We have a similar internal systems. Each question takes about 2 to 5 minutes and costs about 1 to 2 dollars in tokens. Simply injecting raw law books into your LLM will not have enough reliability.
Re:Pandex – Official European Law for AI Agents, over MCP by terminalcommand on Sunday November 22, 2026 @03:20PM (#50603502)
The problem with law is that there is usually no machine readable collection to search. Parsing natural language is still an unsolved problem. We cannot formalize legal texts like computer programs. There are attempts, eurlex, akino ntoso etc. but these are not wide-spread.
Re:Pandex – Official European Law for AI Agents, over MCP by u1hcw9nx on Sunday November 22, 2026 @03:50AM (#50597567)
AI's that work with law can't work well with raw APIs like this (neither do lawyers). Just giving the latest text is not enough (you can get the latest directly from official free portals).

What you want is interfaces that retrieve official statutes/judgments and link every claim back to the exact paragraph. Otherwise your AI hallucinates those references and get them wrong.

Competition (European):

https://venato.ai

https://ovviously.com

https://digibeetle.eu

Re:Pandex – Official European Law for AI Agents, over MCP by ulrischa on Sunday November 22, 2026 @04:06AM (#50597665)
Should be offered by the EU itself
Re:Pandex – Official European Law for AI Agents, over MCP by totetsu on Sunday November 22, 2026 @04:07AM (#50597669)
The law, for -use by- agents.. not the law for -regulating- agents.
Re:Pandex – Official European Law for AI Agents, over MCP by est on Sunday November 22, 2026 @04:19AM (#50597750)
Reading the title makes me wonder why there's an MCP law introduced by EU.
Re:Pandex – Official European Law for AI Agents, over MCP by rcbdev on Sunday November 22, 2026 @04:31AM (#50597806)
I wonder how this deals with temporal edge cases, i.e. when an ordinance says "valid from 1st of January 2027" (happens when copy/pasting EU law into national), but the ordinance is promulgated after the 1st of January.

Countries deal with this differently, i.e. in Switzerland this means the law is in effect the day it was properly promulgated, in Austria its the day after. Who's going to be the poor shmuck dealing with the unavoidable hallucinations that come from naive slop interpretations of our laws?

Re:Pandex – Official European Law for AI Agents, over MCP by LiamPowell on Sunday November 22, 2026 @05:31AM (#50598260)
> The API without counting requests, up to 1 million a month

How can it not be counting requests yet also be limited to a million requests a month? Can we stop with this "unlimited" bullshit where there is actually a set limit? I suppose this is better than most services since the limit is stated in the same sentence that calls it unlimited.

Re:Pandex – Official European Law for AI Agents, over MCP by operaopera on Sunday November 22, 2026 @06:20AM (#50598586)
Related to this, this repo contains all Spanish law in markdown format: https://github.com/legalize-dev/legalize-es

It should be trivial to extend Pandex with this :).

Re:Pandex – Official European Law for AI Agents, over MCP by d1sxeyes on Sunday November 22, 2026 @02:59PM (#50603308)
In what way is this “official”?
Re:Pandex – Official European Law for AI Agents, over MCP by vasie on Monday November 23, 2026 @12:37PM (#50615814)
- d1sxeyes ("official"): "The text comes straight from the official publishers, like EUR-Lex, Légifrance and wetten.overheid.nl, not from a third party. Every answer links back to the source."