malkreide avatar

Openlex Mcp

malkreide/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 tools

Public 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

Version License: MIT Python 3.11+ MCP No Auth Required

MCP Server for Canton Zurich legislation (ZH-Lex) β€” full-text search, article extraction, and education law tools for ~970 cantonal laws

πŸ‡©πŸ‡ͺ Deutsche Version

Demo: Claude searches Zurich education law via MCP tool call


Overview


View the full README on GitHub

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

Related Search & Web Crawling MCP servers

View all
1mambalabsdev avatarMcp Ai List Extractor Any Websitemambalabsdev/mcp-ai-list-extractor-any-websiteExtract item lists from public web pages on your own LLM API key0stars
2mambalabsdev avatarMcp Google Maps Places Scrapermambalabsdev/mcp-google-maps-places-scraperSearch Google Maps and get one row per place: phone, website, address, rating, and hours.0stars
3mambalabsdev avatarMcp Youtube Video Channel Scrapermambalabsdev/mcp-youtube-video-channel-scraperYouTube channels, playlists, and search lists as flat rows, with no login0stars
4markusvankempen avatarZendesk MCPmarkusvankempen/zendesk-mcpZendesk MCP: 14 tools for AI agents β€” create, search, assign, comment, and close support tickets.0stars
5mattlsmith avatarNavmdsmattlsmith/navmdsResearch 7,400+ US doctors: search, semantic search, profiles, reviews & procedure pricing.0stars
6maverick0351a avatarrapidbm25maverick0351a/rapidbm25Fast local BM25 keyword search over texts or a code/docs folder. Rust core, no network.0stars