Result: an assistant that answers over five acts (1,524 provisions) with article and paragraph numbers, and checks its citations before it answers. A local model extracted 949 obligations by role, each with a verbatim quote from the law. The code is open source under the MIT licence.
The companies, people and documents in the stories below are made up. The situations are typical of the Slovak manufacturers, distributors and service firms we work with. This is not legal advice: the binding text is the one in the Official Journal of the EU and the Slovak Collection of Laws.
The problem
From 20 January 2027 Regulation (EU) 2023/1230 on machinery applies. Directive 2006/42/EC, which declarations of conformity and instructions have followed since 2009, is repealed on the same day. In parallel the AI Act is phasing in, and in July 2026 the Digital Omnibus (Regulation 2026/1744) changed it: it moved dates and moved machinery to a different section of Annex I.
In our index the Machinery Regulation has 494 provisions and the AI Act 715. A company of 120 people has no legal department. “Which of this applies to us?” ends either with an expensive consultant or with a chatbot that answers confidently and without a source.
Three stories
1. The manufacturer: a line that ships in February
Peter runs engineering at a machinery company near Trenčín. The PL-200 palletising line ships to a customer in February 2027, under the new rules. Peter gives the assistant three documents: the EC declaration of conformity, the first page of the instructions, and a technical description of a camera system that replaces the fence around the robot and retrains itself every month on footage from the plant.
The assistant finds something in each:
- The declaration cites a directive that no longer applies from 20 January 2027. A line placed on the market in February needs an EU declaration of conformity under the Regulation (Art. 51(2), Art. 52(1), Art. 21(2)).
- The camera system is a safety function with self-evolving behaviour, a category in Annex I Part A. Internal production control is no longer enough; a notified body is needed (Art. 25(2)). Monthly retraining “without the manufacturer’s involvement” has to be checked against point 1.2.1 of Annex III: the system must not change in an uncontrolled way, even while learning, and safety-related decisions must be recordable.
- The instructions: a PDF on a USB stick is fine; “no printed version is provided” is not. On request at purchase the manufacturer must supply printed instructions free of charge within a month, and digital instructions must stay online for at least 10 years (Art. 10(7)).
We got this story wrong ourselves at first. The first version of our demo said the camera system triggers the AI Act’s high-risk provider obligations in Art. 16. An assistant that never saw our table corrected it in a blind test. After the Omnibus, the Machinery Regulation sits in Section B of AI Act Annex I, and for such products only Art. 6(1), Art. 60a and Arts. 102 to 112 of the AI Act apply (Art. 2(2)). AI requirements will come through the Machinery Regulation itself, by 2 August 2028 at the latest (Art. 8). Always read the whole provision, not just the snippet.
2. The importer: lathes from Asia under its own brand
Jana runs sales at a company that imports CNC lathes from an Asian manufacturer and sells them to Slovak workshops. Next year she wants to sell them under the company’s own brand. She asks what she has to do as an importer.
obligations_by_role for the importer role returns 24 obligations from the Machinery Regulation, each with a quote and paragraph number. The key ones:
- before placing on the market, make sure the manufacturer carried out the conformity assessment, has the technical documentation and the machine bears the CE marking (Art. 13(2));
- put the importer’s name, postal address and website or email on the machine, in an easily understood language (Art. 13(3));
- keep a copy of the EU declaration of conformity for 10 years (Art. 13(8)).
The finding that matters most is in Art. 17. Whoever places a machine on the market under their own name or trademark is the manufacturer, with all the manufacturer’s obligations under Art. 10. “Our own brand from January” is not a new sticker. It means technical documentation, conformity assessment and responsibility for the instructions. Slovak Act 56/2018 adds that the importer’s address must be given in Slovak (§ 7(2)).
3. The service firm: rebuilding a press, and a chatbot in the office
Tomáš runs a service company with 80 technicians. A customer wants a robotic feeder and new light curtains on an older press, wired to a new safety controller.
The assistant finds the definition of substantial modification (Art. 3(16)): a change the manufacturer did not plan, which creates a new hazard and requires adding protective devices that change the existing safety control system. That is exactly the job. Under Art. 18, whoever carries out a substantial modification is the manufacturer of the modified machine: they must ensure conformity, declare it on their own responsibility and apply the conformity assessment procedure under Art. 25. The quote for the rebuild has to cover the paperwork, not only the installation.
The second question came from the office: technicians draft service reports with a chatbot. That has an answer too. A company that uses an AI system at work is a deployer under the AI Act (Art. 3(4)). Since 2 February 2025 it must take measures for the AI literacy of its staff (Art. 4(1)). The law does not require a guaranteed level for every individual; it requires measures that fit who uses AI and for what.
What we built
pravo-mcp: a local MCP server that plugs into Claude, Cursor or another AI assistant and gives it seven tools over five acts:
| Tool | What it does in the stories |
|---|---|
search_law |
finds a provision by words, diacritics-insensitive |
get_provision, get_article |
the full text of a paragraph or article |
obligations_by_role |
obligations for manufacturer, importer, distributor, AI provider, deployer… |
applies_from |
what applies from when, with the source |
cite |
checks every citation before answering; an id that does not exist fails |
list_acts |
versions and sources of the acts |
Acts: Regulation (EU) 2023/1230 on machinery, the AI Act 2024/1689 as amended by the Omnibus 2026/1744 (both consolidated as of 27 July 2026), Slovak Act 56/2018 on conformity assessment, Government Regulation 436/2008, and Act 83/2025 on general product safety.
Out of scope on purpose: harmonised standards (not freely available), commentary and case law, interpretation. The assistant says what the law says and where. It does not advise what to do about it.
How it works
- We download the texts from official sources: EU acts from the EU Publications Office (Cellar, Formex format, Slovak language), Slovak acts from Slov-lex.
- Code splits them into articles, paragraphs, points and annex points. Each provision gets a stable id, for example
eu-2023-1230:art10.par7orsk-2018-56:§7.ods2. - Everything goes into SQLite with full-text search (FTS5), diacritics-insensitive.
- A local model (Qwen 3.6 35B via Ollama) reads every provision that imposes a duty and lists who must do what. Each obligation must come with a verbatim quote. If the quote is not found word for word in the law, code drops the obligation.
- The server is read-only, answers only from the local index and makes no network calls. With a local model (for example via Ollama) neither your questions nor your documents leave your machine. With Claude or another cloud assistant the question goes to that provider, as with any other chat.
What we measured
28–29 Nov 2026, one machine running Qwen 3.6 35B via Ollama, temperature 0.
- Index: 5 acts, 1,524 provisions. Building it from official sources takes about a minute.
- Obligations: 949 obligations from about 630 provisions. The Machinery Regulation took about an hour, the AI Act about two and a half. For a manufacturer under the Machinery Regulation that is 146 obligations; for an importer, 24.
- First AI Act pass: 10 of 296 provisions failed because the model’s answer exceeded the 900-token limit. Among them were Arts. 16 and 17 (provider obligations and the quality management system). After raising the limit, all passed.
- Blind test: an assistant that had not seen our answers got the three fictional documents from the first story. It found one factual error in our demo (AI Act, Section B) and 12 problems with the tools. We fixed them the same day.
What we learned
- Code must do the checking, not the model. A verbatim quote check is simple and it works. The model cannot invent an obligation the law does not contain, because it would find no quote for it.
- A blind test catches more than self-review. We would not have found our AI Act mistake ourselves, because we were looking for what we expected.
- Legal structure is treacherous. A definition with its own a), b) list was cut after a) on the first parse. Annex points without a heading got meaningless numbers. Three parser bugs affected dozens of provisions, and we found each of them only when a real question hit it.
- The model gets roles wrong. At first it filed “economic operator” under the AI Act’s deployer. A separate role and one sentence in the instructions fixed it.
- The law moves. The Omnibus moved machinery to a different part of the AI Act annex and so changed the answer to “what are my duties as a manufacturer using AI”. The index therefore records the consolidation date and every answer links the binding text.
Where else this works
The same approach works over the documents every company has and nobody reads in full:
- internal rules, safety regulations and work procedures: “what applies to this line?”;
- contracts with customers and suppliers: “where are our late-delivery penalties and how high?”;
- technical documentation, certificates and inspection reports: “which equipment is due for inspection this quarter?”;
- standards and customer requirements you hold a licence for.
AI searches and summarises, code checks the citation, a person decides. If the data must not leave the company, everything runs locally.
Who it’s for
Machinery manufacturers and line builders, importers and dealers of machines, service and installation firms that rebuild machines, and their safety and conformity consultants. And any company asking what the AI Act means for it.