Server data from the Official MCP Registry
Legislation for 32 jurisdictions (21 EU) as law-as-git, keyless, with ELI-style citations.
Legislation for 32 jurisdictions (21 EU) as law-as-git, keyless, with ELI-style citations.
This is a well-architected, security-conscious MCP server for reading public legislative data from GitHub. Authentication is properly optional (required only for rate-limited search), all operations are read-only and idempotent, and credentials are handled securely via environment variables. The codebase is clean with proper error handling and an audit logging system for compliance. Minor code quality suggestions exist but do not materially impact security. Supply chain analysis found 5 known vulnerabilities in dependencies (1 critical, 3 high severity). Package verification found 1 issue.
7 files analyzed · 10 issues found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
This plugin requests these system permissions. Most are normal for its category.
Set these up before or after installing:
Environment variable: LEGALIZE_AUDIT_DIR
Add this to your MCP configuration file:
{
"mcpServers": {
"io-github-matematicsolutions-legalize-mcp": {
"env": {
"LEGALIZE_AUDIT_DIR": "your-legalize-audit-dir-here"
},
"args": [
"legalize-mcp"
],
"command": "uvx"
}
}
}From the project's GitHub README.
One MCP server, 32 jurisdictions (21 EU). A read-only Model Context Protocol server over the legalize-dev corpus — national legislation stored as law-as-git: one law per Markdown file, every reform a Git commit, each with an 8-field ELI-style frontmatter (Legalize Format Spec v0.2). MIT-licensed source corpus; this connector is Apache-2.0.
Built by Matematic Solutions as part of the eu-legal-mcp line. Unlike the
single-country *-eli-mcp connectors, this one serves many jurisdictions from a single server,
because the underlying corpus is already normalised to one format.
Every response carries the citation contract the rest of the line uses:
source_url — the official government source from the law's own frontmatter
(e.g. boe.es, riigiteataja.ee, legifrance.gouv.fr). Never invented.github_url — the verifiable legalize-dev copy actually read.human_readable_citation — "<title> (<identifier>)".It is RODO/GDPR-safe and self-hostable: nothing leaves the user's machine except read-only GETs to GitHub.
EU: at be cz de ee es eu fi fr gr ie it lt lu lv nl pl pt ro se sk
· Other: ad ar ch cl co kr li no uk us uy
Call legalize_list_countries for the live list (add eu_only=true to filter).
| Tool | Keyless? | Purpose |
|---|---|---|
legalize_list_countries | ✅ | List jurisdictions (code, name, EU flag, repo). |
legalize_search_laws | needs GITHUB_TOKEN | Keyword search inside a country's laws → law_id + snippet. |
legalize_get_meta | ✅ | Frontmatter only (cheap citation check). |
legalize_get_law | ✅ | Full metadata + text by law_id; pass sha= for a historical version. |
legalize_list_reforms | ✅ | Reform timeline (commits) for a law; SHAs feed legalize_get_law. |
law_id is the Markdown filename stem (e.g. BOE-A-1978-31229 for the Spanish Constitution, a
numeric id for Estonia). Get it from legalize_search_laws or an official citation — there is no
fuzzy title lookup.
uvx legalize-mcp # run directly
# or
pip install legalize-mcp
Claude Code (.mcp.json):
{
"mcpServers": {
"legalize": { "command": "uvx", "args": ["legalize-mcp"] }
}
}
GITHUB_TOKEN (or GH_TOKEN) is optional — required only for legalize_search_laws, and it
lifts the GitHub rate limit on legalize_list_reforms.
| Env var | Default | Purpose |
|---|---|---|
GITHUB_TOKEN / GH_TOKEN | — | Enables code search; lifts rate limits. |
LEGALIZE_AUDIT_DIR | ~/.matematic/audit | JSONL audit log location (AI Act art. 12). |
Every tool call appends one line to ~/.matematic/audit/legalize-mcp.jsonl (input hash, duration,
status — no payloads). All tools are read-only and idempotent. See CONSTITUTION.md.
python -m venv .venv && .venv/Scripts/python -m pip install -e ".[dev]"
.venv/Scripts/python -m pytest -q # offline unit tests
.venv/Scripts/python -m ruff check src tests
Legislative data © the respective national authorities (see each law's source). Corpus
normalisation by the legalize-dev project under the MIT License.
This connector does not redistribute the corpus; it reads it on demand.
Be the first to review this server!
by Modelcontextprotocol · Developer Tools
Web content fetching and conversion for efficient LLM usage
by Modelcontextprotocol · Developer Tools
Read, search, and manipulate Git repositories programmatically
by Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.