Global law
com.lexifina/global-law · 2.2k stars · HTML
MCP server The law of nearly every country on earth, any date: read it, see what changed it, check citations.
Install
The repo has no one-line install. Follow its README.
Published as
- Remote
https://global-law.lexifina.com/mcpStreamable HTTP
From the server's entry in the official MCP Registry.
Files
Git for Global Law
The world's law in one git history. Every word traced to the law that wrote it for any country and any date.
An expansion of the same for the US Code, #1 on Hacker News (28/10/26). Semantic, searchable law on a global scale.
us-code-tools-film-v3.mp4
Free to use: CC0. Fork it, build on it, ship it in a product: no permission or credit needed. The law text sits in each country's repository, under that repository's own terms.
Each body of law is its own repository: a country's law (lexifina/germany-law), a state's or a city's
(lexifina/germany-brandenburg-law), or a court's decisions (lexifina/germany-bgh-caselaw). In a dated history every
commit is one law taking effect, written by that law; in case law, one decision on the day it was decided. Where the
publisher keeps only today's text, or each law as first enacted, the corpus says so (history in manifest.json).
This repository holds them all as submodules, arranged by jurisdiction, and moves each one forward to its latest
commit. The tools read the In-force date of every commit, so they give the law of any country on any date that its
record covers.
global-law/
├── manifest.json every corpus: path, repository, history, coverage and dates
├── jurisdiction.json the world, and the jurisdictions in it
├── germany/bund/acts/ a country's law (submodule: lexifina/germany-law)
├── germany/brandenburg/acts/ a state's
├── argentina/buenos-aires/salto/acts/ a city's
├── germany/bgh/caselaw/ a court's decisions
├── tools/ law.py, the MCP server, countries.py
└── …
Questions as commands
| Question | Command |
|---|---|
| Every change to 11 U.S.C. §1182, with the law that made each | python3 tools/law.py log united-states/federal/usc/title-11/1182.md |
| Which law wrote each line of it today? | python3 tools/law.py blame 2026-01-01 united-states/federal/usc/title-11/1182.md |
| §1182 as in force on 1 May 2022 | python3 tools/law.py show 2022-05-01 united-states/federal/usc/title-11/1182.md |
| What changed between two dates | python3 tools/law.py diff 2022-05-01 2022-07-01 united-states/federal/usc/title-11/1182.md |
| The last law in force in every country on a day | python3 tools/law.py world 1990-10-03 |
Each corpus is also a plain git repository (git -C united-states/federal/usc log -- title-11/1182.md); the tools order
versions by their In-force date, which matters where a record was not committed in that order.
Outside git, we also host this record publicly, for free:
- Ask Claude about the law: opens Claude with a first question ready.
- Ask ChatGPT: the same question in ChatGPT.
- Search the law on our site: a search of US law for "small business debtor", with each provision's text and its versions, no account needed; choose any country there.
- Developer REST API: the same search as JSON, with no key. See the documentation here.
Both assistants read the record through the free Global law connector (MCP, https://global-law.lexifina.com/mcp);
the first time, the chat gives you the link that adds it. Ask in any language; for one country, add ?country=romania
to either link.
Host it yourself easily. All it takes is git and Python, and the tools run on your machine:
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.md
Opened in Claude Code, Cursor, VS Code or Codex, the clone also starts a local MCP server with the same tools (MCP.md). FEATURES.md lists every command and FAQ.md how to clone.
Case law
Court decisions sit beside the law, one commit per decision on the day it was decided
(switzerland/bund/caselaw), and are added on their own: python3 tools/countries.py add switzerland/caselaw. A decision is a ruling, not a law (Kind: court), so the tools leave it
out of everything about law unless you name it. check_precedent says
whether the text a decision applied is still in force, and
resolve_citations reads citations in each country's usual form
(§ 823 Abs. 1 BGB, article 1240 du code civil). manifest.json gives each court's coverage.
More
- FEATURES.md: every feature, and what every corpus here must support (
git blame,law.py, the MCP tools) - FAQ.md: questions and answers · CONTRIBUTING.md: proposing changes · MCP.md: the MCP server · REPRODUCE.md: how it was built · CHANGELOG.md
- FRESHNESS.md: how current each corpus is · Monitoring: whether updates are running · WATCHING.md: how each official source is watched for changes
- Performance: how fast the tools answer on your own clone, a one-time indicator · Tests: what is checked, run with
python -m unittest discover -s tests - Visualisations: charts and bridges across the world's law
- Vulnerabilities: mistakes in legislation as published
- Videos: every video demonstrating what global-law does, from its features and one country's law to the archive on one date and how updates are checked
Videos
global-law-film-3-showcase-v3-readme.mp4
global-law-monitoring.mp4
License
This repository is CC0. The law text is in each country's repository, under that repository's own terms.
Facts
- Kind
- MCP server
- Group
- Uncategorized
- Stars
- 2.2k
- Language
- HTML
- Last push
- 2026-11-15
- Forks
- 190
- MCP Registry
- com.lexifina/global-law
- Homepage
- lexifina.com
- Topics
- git, law, legal-tech, legislation, mcp, open-data
Next on this shelf
- 196Filesystemmodelcontextprotocol/mcpbLet Claude access your filesystem to read and write files.2.2k
- 197Model Context Protocol for Unreal Enginechongdashu/unreal-mcpEnable AI assistant clients like Cursor, Windsurf and Claude Desktop to control Unreal Engine through natural language using the Model Context Protocol (MCP).2.1k
- 198Ui.Vision MCPio.github.A9T9/uivision-mcpMCP server for browser and desktop automation: OCR, image recognition, real mouse and keyboard input2.1k
- 199DevDocs by CyberAGI 🚀cyberagiinc/DevDocsCompletely free, private, UI based Tech Documentation MCP server. Designed for coders and software developers in mind. Easily integrate into Cursor, Windsurf, Cline, Roo Code, Claude Desktop App2.1k
- 200Jshookmcpvmoranv/jshookmcpjs hook toolkit that all you need2.1k
- 201Gitlab Mcpzereight/gitlab-mcpFirst gitlab mcp for you, building together2.1k