
Openlex Mcp
Connects Claude to the entire legal code of Canton Zurich through the ZH-Lex system. Eight tools expose full-text search across 970 cantonal laws with FTS5 indexing, article extraction with paragraph parsing, and live metadata from zh.ch. Built originally for Zurich's school department but covers all cantonal law from tax code to building regulations. Hybrid architecture caches full legal text locally from HuggingFace while pulling current validity status and PDF links from the official site. Ships with education law shortcuts for the LS 412.x series. No API keys needed. Reach for this when working with Swiss cantonal legislation, parsing specific articles, or building tools that need structured access to Zurich's Gesetzessammlung.
- tools
- 8
- transport
- STDIO
- last updated
- Sep 27, 2026
Tools
8 toolsPublic tool metadata for what this MCP can expose to an agent.
openlex__zhlaw_search_lawsFull-text search across all ~970 ZH laws (FTS5 + BM25 ranking)
Full-text search across all ~970 ZH laws (FTS5 + BM25 ranking)
No parameter schema in public metadata yet.
openlex__zhlaw_get_lawRetrieve a law by LS number (e.g. `412.100`) or abbreviation (e.g. `VSG`)
Retrieve a law by LS number (e.g. `412.100`) or abbreviation (e.g. `VSG`)
No parameter schema in public metadata yet.
openlex__zhlaw_list_lawsList and filter laws by legal area prefix
List and filter laws by legal area prefix
No parameter schema in public metadata yet.
openlex__zhlaw_find_education_lawsSpecialized search in education law (LS 412.x series)
Specialized search in education law (LS 412.x series)
No parameter schema in public metadata yet.
openlex__zhlaw_get_articleExtract a specific article from a law (e.g. Art. 28 VSG)
Extract a specific article from a law (e.g. Art. 28 VSG)
No parameter schema in public metadata yet.
openlex__zhlaw_search_articlesSearch within all articles of a specific law
Search within all articles of a specific law
No parameter schema in public metadata yet.
openlex__zhlaw_get_law_metadataGet live metadata from zh.ch (PDF links, validity status)
Get live metadata from zh.ch (PDF links, validity status)
No parameter schema in public metadata yet.
openlex__zhlaw_update_cacheRefresh the local data cache from HuggingFace
Refresh the local data cache from HuggingFace
No parameter schema in public metadata yet.
Sponsors
Readme
π¨π Part of the Swiss Public Data MCP Portfolio
βοΈ openlex-mcp
MCP Server for Canton Zurich legislation (ZH-Lex) β full-text search, article extraction, and education law tools for ~970 cantonal laws
Demo: Claude searches Zurich education law via MCP tool call
Overview
Details
- Repository
- github.com/malkreide/openlex-mcp
- Website
- github.com/malkreide/openlex-mcp
- Category
- Search & Web Crawling
- Package
openlex-mcp- Transport
- STDIO
- Registry
- MCP registry, active
More from malkreide
- Swiss Cultural Heritage Mcp
- Swiss Electricity Mcp
- Swiss Energy Mcp
- Swiss Food Safety Mcp
- Wsl Envidat Mcp
- Zh Education Mcp
- Eth Library Mcp1
- Swiss Ip Mcp
- Swisstopo Mcp12
- Zurich Opendata Mcp8
- Fedlex Mcp7
- Swiss Transport Mcp7
- Swiss Democracy Mcp2
- Hn Tech Signal Mcp1
- Swiss Academic Libraries Mcp1
- Parlament Mcp2
- Swiss Statistics Mcp2
- Global Education Mcp1
- Srgssr Mcp1
- Swiss Courts Mcp1
- Swiss Culture Mcp1
- Swiss Environment Mcp1
- Swiss Road Mobility Mcp1
- Register Mcp