AI News
All projects
Tool

global-law: the world's law as one git history, readable by AI assistants

global-law is a set of git repositories holding national, regional and court law, with command-line tools and an MCP server that let people and AI assistants look up what a law said on any date and which law wrote each line.

global-law by lexifina · 2,327 GitHub stars when we found it · added

The README says global-law collects the law of many countries as git repositories. Each law is recorded as a commit dated by its 'In-force' date. Each body of law is a separate repository, such as lexifina/germany-law, and the top-level repository brings them together as submodules. The tools in tools/law.py can show a provision as it stood on a given date, diff two dates, blame a text line by line, and list the law in force in every country on one day. Court decisions are added separately, one commit per ruling, and the README marks them as rulings rather than laws. The tools are CC0, but the law text stays under each country's own terms.

The author writes that Claude and ChatGPT read the record through a connector at global-law.lexifina.com/mcp. A clone opened in Claude Code, Cursor, VS Code or Codex starts a local MCP server with the same tools. Running it yourself needs only git and Python. The hosted search and developer REST API need no account or key. The README also says some publishers keep only today's text or only the original enactments. Each corpus's history is noted in manifest.json, so the record is not complete everywhere.

In the author's words

Both assistants read the record through the free Global law connector (MCP, `https://global-law.lexifina.com/mcp`);

From the README or the author's post. We checked that the sentence is there, not that it is true.

When to reach for it

If you build an assistant over legal text, the useful pattern here is to version each provision by its effective date and expose that history through MCP, so the model can answer 'what did this say then' as well as 'what does it say now'.

Works with

Claude CodeCursorCodexClaudeChatGPT

See it

AI wrote this entry from the project's own README or its author's post. What the project does, and that AI built it where the entry says so, are the author's statements, quoted here. Nobody at IKANGAI ran or tested it. How this list is made