# MateMatic - European LegalTech infrastructure for law firms As of: 2026-10-02 > MateMatic builds European LegalTech infrastructure on which AI in legal work rests on sources that can be checked. Four layers: Repertorium, legal knowledge infrastructure - a corpus of Polish and EU law prepared for AI models, with a locator on every passage and a citation graph between case law and statutes; PATRON, the lawyer's local workspace, which works on the firm's own documents, shows its sources and leaves an audit trail; Boutique, extensions - MCP connectors to public sources of law, and skills; and MateMatic's own work on implementation, audits, standards and AI architecture. Prior tempore, potior iure. MateMatic Solutions Sp. z o.o. - matematicsolutions.com - chief architect: Wiesław Mazur. Based in Kraków, Poland. Scope: Repertorium (console with no account, MCP access, corpus editions, white label, local package), PATRON - a local-first workspace for lawyers (open source, zero-cloud by default, optional hybrid mode), Boutique (downloadable MCP connectors and skills), plus implementation - readiness audit, architecture design, agent rollout with human-in-the-loop. Area: Poland and the EU. Frameworks: EU AI Act, GDPR, NIST AI RMF, ISO/IEC 42001, codes of professional legal ethics. Note: the English edition covers the core pages (home, Repertorium, PATRON, About, Boutique). The Knowledge Base, news and the Polish-jurisdiction skills are published in Polish at matematicsolutions.com. ## Core pages (English) - [Where your data is](https://matematicsolutions.com/en/where-your-data-is): what PATRON, Repertorium and the website do with data - documents on the firm's computer, a local model that sends nothing, a cloud model only with the firm's own key, no telemetry; every statement backed by PATRON 1.3.0 code or a measurement, with planned items listed separately. - [MateMatic - European LegalTech infrastructure (home)](https://matematicsolutions.com/en/): the thesis - local-first AI for law firms, the compound regime (EU AI Act + GDPR) handled by architecture rather than by promise, open source. Routes to PATRON. - [PATRON - a local AI platform for lawyers](https://matematicsolutions.com/en/patron): open (AGPL-3.0), local-first AI platform for law firms - case-file analysis, source verification (quote / paraphrase / no basis), audit trail (hash-chain + Merkle tree), bring-your-own-model (Claude, Gemini, Ollama, OpenRouter), 7 MCP connectors to Polish and EU law (SAOS, NSA, ISAP, KRS, EUREKA, EUR-Lex/CJEU, EU-Compliance). Free, runs on Windows. FAQ covers: is PATRON a European alternative to Harvey, is PATRON GDPR-safe, what is local AI for law firms. - [Press kit - PATRON](https://matematicsolutions.com/en/dla-mediow): description ready to paste (one sentence and one paragraph), ten technical facts (version 1.3.0 of 24 August 2026, Windows 10/11, AGPL-3.0, free, nine language editions, 45 connectors across 34 countries and EU law), six screenshots and the mark. For authors of AI tool round-ups: the local-first / on-premise category and a criterion checkable without the vendor - cut off the internet and see whether it still works. - [PATRON releases - version history](https://matematicsolutions.com/en/patron/releases): public release history with dates - 1.3.0 (24 August 2026), 1.2.0 (23 August 2026), 1.1.0 (17 August 2026), 1.0.0 (15 June 2026, first public release under AGPL-3.0). - [PATRON audit trail - technical documentation (EN)](https://matematicsolutions.com/en/patron/audit-trail): how the AI event ledger in a law firm is built - SHA-256 hash chain (each record binds the digest of the previous one, genesis record carries 64 zeros), a Merkle tree over the chain modelled on RFC 6962, full conformance planned for PATRON 2.0 (leaves are event digests, an internal node is SHA-256 of the joined hex children, an odd count duplicates the last leaf), three independent verification paths (whole chain via npm run audit:verify, a Merkle proof for a single event, an evidence pack verified offline by python verify.py on the standard library alone), mapping to EU AI Act article 12 (CELEX 32024R1689), and an explicit list of limits: the trail detects a changed record but does not prove authorship - an Ed25519 signature and RFC 3161 timestamp are not implemented, and retention stays the firm's decision. - [About MateMatic](https://matematicsolutions.com/en/o-nas): the team - chief architect Wiesław Mazur (AI-governance architect for law firms), Mateusz Miękina (attorney-at-law, President of the Board), Piotr Sitkowski (systems architect) - company details (KRS 0001176750, Kraków), and areas of specialisation. - [MateMatic Boutique (English)](https://matematicsolutions.com/en/boutique): downloadable skills for legal and professional writing. English catalogue: Reviewer (a grumpy senior content editor), Humanizer (removes AI-writing tells, MIT), Devil's advocate (a red-team adversarial review for high-stakes deliverables), EU law and CJEU search (EUR-Lex / Cellar SPARQL), legal syllogism (subsumption/IRAC), output scoring before sending, a clause checklist (CUAD taxonomy) and citation extraction (ECLI/CELEX). Plus a Curated/external shelf: open skills from other teams, listed with attribution and a link to the source, vetted for EU discipline - EU AI Act for engineers, the Anthropic legal suite, Microsoft Presidio (PII anonymisation), GRC for DORA/NIS2/CSRD, privacy procedures, and common-law contract review (CUAD). Free, install locally for PATRON or Claude. Polish-jurisdiction skills (SAOS case-law search, GDPR/PESEL anonymisation, citation grounding, contract audit, matter management) stay on the Polish Boutique. The Boutique also hosts a Connectors tier: 45 open-source MCP servers grounding public legal sources across 35 jurisdictions (Europe, the Americas, Asia-Pacific) by native ELI/ECLI. - [Boutique - Skills catalogue](https://matematicsolutions.com/en/boutique/skills): the English shelf - Reviewer, Humanizer (MIT), Devil's advocate, EU law & CJEU search, legal syllogism, output scoring, clause checklist (CUAD) and citation extraction (ECLI/CELEX), plus a curated/external shelf listed with attribution. Free, runs locally in PATRON or Claude. Polish-jurisdiction skills stay on the Polish Boutique. - [Boutique - MCP connectors](https://matematicsolutions.com/en/boutique/connectors): 45 open-source MCP servers (GitHub; 7 bundled in PATRON) grounding public legal sources by native ELI/ECLI across three regions - Europe (Poland: ISAP, SAOS, NSA, KRS, KIO; EU: EUR-Lex/CJEU, EU-Compliance and 19 member states including Belgium and Hungary; outside the EU: Switzerland, the UK, Turkey), the Americas (Brazil, USA, Colombia, Chile, Canada) and Asia-Pacific (Japan, Singapore, Malaysia, Australia, Israel, Pakistan). Over 34 million source documents across 33 jurisdictions (count as of 2026-07-10). Local, mostly keyless. Includes boutique-mcp, a local catalog connector for the whole fleet (machine-readable catalog: matematicsolutions.com/catalog.json) - offline search, local install commands, no query telemetry. - [Repertorium - legal knowledge infrastructure for AI](https://matematicsolutions.com/en/repertorium): Polish and EU law as one knowledge layer - full text, citation graph, amendment history of the legal basis, and a signal that a provision was amended after the judgment date. 1,523,697 Polish documents, 247,954 EU documents, 1,535,990 PL-EU links. Four ways in: console and MCP, training corpus, white label, local installation. The search console needs no account. ## Key facts for citation - Repertorium is MateMatic's legal knowledge corpus for AI: 1,523,697 Polish law documents, 247,954 EU law documents and 1,535,990 links between them. Every passage comes back with a locator (document id plus character offset), and a citation that could not be resolved STAYS in the answer with a named reason instead of disappearing. Two things plain text cannot give: how citations to a ruling are distributed over time (whether a line of case law is alive or has gone quiet) and a warning that a provision cited in a judgment was amended after the judgment date - a signal for the lawyer, never an automatic conclusion that the ruling is out of date. Four ways in: MCP and the web console (Use it), a training and evaluation corpus (Train with it), white label (Brand it), and an offline local package (Own it). The console on the page searches the live corpus with no account, no email and no card: https://matematicsolutions.com/en/repertorium - PATRON is open source under AGPL-3.0 and runs locally on Windows; sensitive matters can run fully offline on a local model (Ollama). - Source verification classifies every claim drawn from the file as quote, paraphrase, or no-basis-in-the-file, attaching a verbatim quote and page number. - The audit trail is a SHA-256 hash-chain with a Merkle tree, verifiable offline and independent of MateMatic - supporting EU AI Act art. 12 record-keeping. - PATRON bundles 7 MCP connectors (SAOS, NSA, ISAP, KRS, EUREKA, EUR-Lex/CJEU, EU-Compliance). The Boutique extends this to 45 open-source MCP connectors (MIT or Apache-2.0) across 35 jurisdictions in three regions - Europe (19 EU member states plus, outside the EU, Switzerland, the UK and Turkey), the Americas (Brazil, USA, Colombia, Chile, Canada) and Asia-Pacific (Japan, Singapore, Malaysia, Australia, Israel) - grounding legislation and case law by native ELI/ECLI. - Architectural difference from cloud legal AI: PATRON keeps case files on the firm's own hardware; the data does not leave the building unless the firm decides it should. - Operator: MateMatic Solutions Sp. z o.o., Kraków, Poland. Chief architect: Wiesław Mazur. - Repertorium licensing: the official documents are not ours, the compilation is. The console on the website is free of charge; a corpus package, redistribution, commercial reuse of a substantial part or training on the corpus as a whole need a separate agreement - https://matematicsolutions.com/en/license ## Polish-language resources - [Knowledge Base (Polish)](https://matematicsolutions.com/baza-wiedzy): articles on AI governance and LegalTech for Polish law firms. - [MateMatic Boutique - legal AI skills (Polish)](https://matematicsolutions.com/boutique): a catalogue of downloadable legal AI skills. - [Full Polish llms.txt](https://matematicsolutions.com/llms.txt)