openlex-mcp
v0.3.0Canton Zurich legislation via ZH-Lex with full-text search and article extraction
PyPI (uvx) discovery passed
Requires uv (https://docs.astral.sh/uv/)
Run in a terminal
claude mcp add openlex-mcp -- uvx openlex-mcp==0.3.0Add to
claude_desktop_config.json{
"mcpServers": {
"openlex-mcp": {
"args": [
"openlex-mcp==0.3.0"
],
"command": "uvx"
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"openlex-mcp": {
"args": [
"openlex-mcp==0.3.0"
],
"command": "uvx"
}
}
}Add to
.vscode/mcp.json{
"servers": {
"openlex-mcp": {
"args": [
"openlex-mcp==0.3.0"
],
"command": "uvx",
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.openlex-mcp]
command = "uvx"
args = ["openlex-mcp==0.3.0"]For AI agents
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: openlex__zhlaw_search_laws, openlex__zhlaw_get_law, openlex__zhlaw_get_article, openlex__zhlaw_list_laws, openlex__zhlaw_find_education_laws, openlex__zhlaw_search_articles, openlex__zhlaw_get_law_metadata, openlex__zhlaw_update_cache.
- If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.
Machine-readable: install.md · manifest.json