Skip to content

v0.1.0 — Initial Release

Choose a tag to compare

@malkreide malkreide released this 12 Apr 12:19

openlex-mcp v0.1.0

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

Tools

  • zhlaw_search_laws — Full-text search across all ZH laws (FTS5 + BM25 ranking)
  • zhlaw_get_law — Retrieve law by LS number or abbreviation (e.g. 412.100 or VSG)
  • zhlaw_get_article — Extract a specific article from a law (e.g. Art. 28 VSG)
  • zhlaw_list_laws — List and filter laws by legal area prefix
  • zhlaw_find_education_laws — Specialized search in education law (LS 412.x series)
  • zhlaw_search_articles — Search within all articles of a specific law
  • zhlaw_get_law_metadata — Live metadata from zh.ch (PDF links, validity status)
  • zhlaw_update_cache — Refresh local cache from HuggingFace

Highlights

  • 974 Canton Zurich laws with full-text search (SQLite FTS5)
  • Article parser with paragraph detection (Art. / § / superscript digits)
  • Hybrid architecture: cached full-text (HuggingFace) + live metadata (zh.ch)
  • No API key required — all data under open licenses (CC-BY-SA 4.0)
  • Dual transport: stdio (Claude Desktop) + Streamable HTTP (cloud)

Install

pip install openlex-mcp