Finds broken clause references, undefined terms and other slips in Estonian contracts: in Word files, PDFs and signed DigiDoc containers.
A command-line tool and MCP server for lawyers and the AI assistants that help them. Your documents never leave your computer.
English · Eesti
Download · Get started · Full guide (Estonian)
Works with
Claude Code ·
Go
Give it a contract and it reads the structure the way a careful lawyer would: clause numbers, defined terms and every reference from one clause to another. It tells you what is broken, so you or your AI assistant can fix it before anyone signs.
- Catches references to clauses that don't exist, terms that are never defined and definitions nobody uses.
- Understands Estonian: it knows that „Lepingu“ and „Lepingus“ are the same defined term as „Leping“.
- Opens .docx, PDF and .asice/.bdoc signature containers as they are, without unpacking or uploading anything.
Note
It points out what looks wrong; it is not legal advice. An empty result does not prove a contract is flawless, and PDFs are read from the page layout, so check important places against the original.
- Download the program for your computer from the latest release and unzip it. (With Go installed you can also run
go install github.com/Ker102/lepinguparser/cmd/lepinguparser@latest.) - Connect it to Claude Code:
claude mcp add lepinguparser -- /path/to/lepinguparser mcp - Ask in plain words, for example: “Check leping.pdf for broken references and undefined terms.”
- Or run it yourself in a terminal:
lepinguparser kontroll -t leping.pdf- Windows, macOS or Linux. The program is a single file with nothing else to install.
- Claude Code, Claude Desktop or another MCP-capable assistant, if you want AI to use it for you.
- For scanned PDFs: run them through OCR first, because the tool needs real text, not pictures of text.
cmd/lepinguparser/· The program: command line and MCP server.internal/· Readers for Word, PDF and signature containers, and the contract checks.skills/lepinguparser/SKILL.md· Tells an AI agent when and how to use the tool.docs/juhend.md· The full guide in Estonian: every command, format and limit.
Preview media lives on the assets branch and translations on translations, so main holds only the tool.
oigusallikad
Fetches the exact section of an Estonian law, a court ruling or an EU act straight from the official source, so you can check what a contract refers to.
Apache 2.0 with Commons Clause: free to use, not to sell · Ker102
