What’s new here
This repo keeps law in git history. In a dated history, each law that takes effect is a commit, written by that law, so you can ask what a provision said on a given day and which law wrote each line. Where a publisher only keeps current text, the corpus says so in manifest.json.
What it does
Each body of law is its own repository: a country, a state or city, or a court’s decisions. This repo holds them all as submodules arranged by jurisdiction, and keeps each one at its latest commit. manifest.json lists every corpus with its path, history and coverage.
The tools in tools/ read the In-force date of each commit. law.py has log, blame, show and diff, plus world, which gives the last law in force in every country on a given day. Case law sits beside the law, one commit per decision, and is left out of law queries unless you name it.
There is also a hosted version: a free MCP connector at https://global-law.lexifina.com/mcp, a search page on lexifina.com, and a keyless REST API. Opened in Claude Code, Cursor, VS Code or Codex, a local clone starts the same tools as a local MCP server.
Who it’s for
Anyone who needs the text of a provision as of a past date, not just today’s, and which law wrote each line. The README also invites builders: fork it, build on it or ship it in a product, with no permission or credit needed. People using Claude or ChatGPT can reach the same record through the free Global law connector.
Try it
The README says all you need is git and Python. Clone it, add a corpus, then ask for a provision on a date:
git clone --depth 1 https://github.com/lexifina/global-law && cd global-law
python3 tools/countries.py add united-states/federal/usc
python3 tools/law.py show 2022-05-01 united-states/federal/usc/title-11/1182.mdOther commands from the README:
python3 tools/law.py log united-states/federal/usc/title-11/1182.md
python3 tools/law.py blame 2026-01-01 united-states/federal/usc/title-11/1182.md
python3 tools/law.py diff 2022-05-01 2022-07-01 united-states/federal/usc/title-11/1182.md
python3 tools/law.py world 1990-10-03To skip the install, use the hosted MCP connector at https://global-law.lexifina.com/mcp or the links in the README that open Claude or ChatGPT with a first question ready.
How mature is it
Very new and moving fast. The repo was created on 2026-10-28 and last pushed on 2026-11-19. It has 2,105 stars, 191 forks, 1 open issue and 1 open PR. GitHub counted 100 commits in the last 90 days, and that count is capped, so the real number may be higher. There are no tagged releases. The repo itself is CC0, while the law text lives in each country’s repository under that repository’s own terms.