Search 18M+ legal documents worldwide — case law, legislation, and doctrine across 110+ countries.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent — or use 1-click editor setup below.
💡 Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
Open-source collection scripts for open legal data from 110+ countries.
Every country publishes its laws, court decisions, and regulations online -- but in different formats, behind different APIs, with different access rules. World Wide Law is building the open infrastructure to collect, normalize, and make all of it searchable.
All sources in this repository are open data -- publicly available legal information from official government portals, APIs, and bulk download endpoints. We always prefer API and bulk access over web extraction.
This repository contains 960+ collection scripts across 110+ countries that download and normalize open legal data from government portals worldwide. Each script follows a standard interface so that any developer can run, test, or improve it. Some sources are marked as blocked (CAPTCHA, IP restrictions, etc.) -- their scripts are included so developers can review and potentially contribute fixes.
Every source lives in sources/{COUNTRY_CODE}/{SourceName}/ and contains:
| File | Purpose |
|---|---|
bootstrap.py | Collection script -- implements fetch_all(), fetch_updates(), normalize() |
config.yaml | Source metadata, access method, rate limits, schema |
sample/ | 10+ sample documents for validation |
README.md | Documentation about the data source |
.env.template | Required API keys or credentials (if any) |
retrieve.py | Reference resolver (e.g., "article 1240 code civil" -> document) |
Legislation (mutable): Laws get amended. Same ID, new content. Strategy: upsert with version tracking.
Case law (immutable): Court decisions don't change after publication. Strategy: append-only with dedup.
Every script normalizes documents to a common schema:
_id -- Unique identifier_source -- Source identifier (e.g., FR/LegifranceCodes)_type -- legislation or case_lawtitle -- Document titletext -- Full text contentdate -- Publication or decision dateurl -- Link to the original source| Region | Countries | Sources |
|---|---|---|
| EU Member States | AT, BE, BG, CY, CZ, DE, DK, EE, ES, FI, FR, GR, HR, HU, IE, IT, LT, LU, LV, MT, NL, PL, PT, RO, SE, SI, SK | 130+ |
| EFTA / EEA | CH, NO, IS, LI | 10+ |
| Council of Europe | UK, TR, UA, GE, AM, AZ, MD | 20+ |
| Western Balkans | RS, BA, ME, AL, MK, XK | 15+ |
| Latin America | AR, BR, CL, CO, MX, PE | 25+ |
| Asia-Pacific | AU, JP, KR, NZ, SG, TW, IN | 30+ |
| Middle East & Africa | EG, MA, ZA, NG, KE, TN | 20+ |
| Other | US, CA, and more | 15+ |
Track live progress on the dashboard.
We welcome contributions from developers, legal researchers, and especially governments who want their open legal data included.
| You are... | How you can help |
|---|---|
| Developer | Build or fix collection scripts, add retrieve scripts, improve tooling |
| Government official / jurisdiction lead | Tell us about your country's legal data portals — no coding needed |
| Lawyer / legal researcher | Validate data quality, improve legal reference resolution, flag coverage gaps |
| Anyone | Report data quality issues, broken sources, or coverage gaps |
Submit a data source (no coding required):
Fix or improve a collection script:
Report a problem:
Good first issues: Browse label:good-first-issue for approachable starting points.
This project is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0). You are free to use, modify, and distribute this software, provided that any modified versions made available over a network also make their source code available under the same license.
Commercial Licensing: If you wish to use this software without the AGPL-3.0 obligations (e.g., in a proprietary product or SaaS), commercial licenses are available. Contact zacharie@goodlegal.fr for details.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/legal-data-hunter)<a href="https://allmcps.com/mcp/legal-data-hunter"><img src="https://allmcps.com/api/badge/legal-data-hunter?style=directory" alt="Legal Data Hunter on AllMCPs" /></a>