global-law
global-law is an MCP server (a connector that lets AI apps like Claude use another tool) that finds the law in force on any date for lawyers and researchers.
What it is good for
- Finding what a law said on a specific past date
- Tracing which law changed a given provision
- Checking a legal brief or case against the law in force
- Comparing the text of a law between two dates
At a glance
- Who it is for
- Setup difficulty
- Technical ยท Guided command-line setup
Level 4 of 5. You copy and paste commands into a terminal by following the instructions. Comfortable territory for vibe coders.
- Cost
- Free and open source
- Type
- MCP server or connector
- Tasks
- Works with
- Claude Code, Cursor, VS Code, Codex, Git
How to get started with global-law
- Clone the repository with
git clone --depth 1 https://github.com/lexifina/global-lawand open the folder. - Add one country's law, for example
python3 tools/countries.py add united-states/federal/usc. - Open the folder in Claude Code, Cursor, VS Code or Codex, where the server starts from the included setup.
- Ask a question such as what a provision said on a given date and which law last changed it.
From the project's own documentation. If a step does not match what you see, the official pages have the latest instructions.
Before you try it
- Needs Python 3.9 or newer and git installed on your machine.
- Every country's law is several GB, so add one corpus at a time.
- The first read of a corpus builds an index of its history once.
- The server runs locally with read-only tools and makes no network calls.
Momentum
- Rank this week
- #71
- Best rank
- #71 week 46, 2026
- Stars gained last week
- +165
- GitHub stars
- 2,059
GitHub numbers as of Nov 16, 2026. Updated weekly.
On Hacker News
- Formalizing US Tax Code (Using Lean) 154 points, 106 comments, Nov 14, 2026
- Git for the US Code 456 points, 267 comments, Oct 28, 2026
Ranking history
Official links
Questions
- Is global-law free?
- Yes. It is free and open source.
- Do I need to know how to code to use global-law?
- You do not need to write code, but setup means copying and pasting commands into a terminal by following its instructions.
- What does global-law work with?
- According to its own documentation, it works with Claude Code, Cursor, VS Code, Codex, and Git.
- How do I get started with global-law?
- 1. Clone the repository with git clone --depth 1 https://github.com/lexifina/global-law and open the folder. 2. Add one country's law, for example python3 tools/countries.py add united-states/federal/usc. 3. Open the folder in Claude Code, Cursor, VS Code or Codex, where the server starts from the included setup. 4. Ask a question such as what a provision said on a given date and which law last changed it.
- What should I know before trying global-law?
- Needs Python 3.9 or newer and git installed on your machine. Every country's law is several GB, so add one corpus at a time. The first read of a corpus builds an index of its history once. The server runs locally with read-only tools and makes no network calls.
- What is global-law good for?
- Finding what a law said on a specific past date, tracing which law changed a given provision, checking a legal brief or case against the law in force, and comparing the text of a law between two dates.
Similar agents to global-law
- korean-law-mcp
Covers Korean statutes and court precedents, while this one spans many countries with date-based versions of each law.
- leis-mcp
Focuses on Brazilian laws only, without this project's history of changes by date.
- arxiv-mcp-server
Reads academic papers from arXiv instead of legal texts.
- zotero-mcp
Works on your own Zotero research library rather than a public body of law.
- CaseCite
CaseCite is a self-hosted legal research platform that answers questions over a firm's documents and case law for law firms.
- xerj
xerj is a local search engine and MCP server (a connector for AI apps) that helps coding agents find code, docs and memory without reading every file.