Skip to content

About

Finds broken clause references, undefined terms and other slips in Estonian contracts (Word, PDF, DigiDoc). CLI and MCP server.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

lepinguparser logo

lepinguparser

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

A terminal running lepinguparser on a contract PDF: it finds two references to clauses that don't exist and one term that was never defined

Download  ·  Get started  ·  Full guide (Estonian)

Works with
 Claude Code  ·   MCP  ·   Go

What it does

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.

Get started

  1. 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.)
  2. Connect it to Claude Code: claude mcp add lepinguparser -- /path/to/lepinguparser mcp
  3. Ask in plain words, for example: “Check leping.pdf for broken references and undefined terms.”
  4. Or run it yourself in a terminal:
lepinguparser kontroll -t leping.pdf

What you need

  • 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.

What's inside

Preview media lives on the assets branch and translations on translations, so main holds only the tool.

Sister project

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

About

Finds broken clause references, undefined terms and other slips in Estonian contracts (Word, PDF, DigiDoc). CLI and MCP server.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages