Search Swiss federal legislation: laws, articles, amendments via the Fedlex SPARQL endpoint.
Config is the same across clients — only the file and path differ.
{
"mcpServers": {
"ch-fedlex-connector-fedlex-connector": {
"command": "<see-readme>",
"args": []
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
A connector that gives Claude direct access to the official text of Swiss federal legislation on Fedlex, built on the Model Context Protocol (MCP). Covers all acts in the Classified Compilation (SR, RS) in German, French, and Italian.
No automated test available for this server. Check the GitHub README for setup instructions.
Five weighted categories — click any category to see the underlying evidence.
No known CVEs.
No package registry to scan.
Be the first to review
Have you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
Others in legal
87 tools for Korean law — statutes, precedents, ordinances, interpretations | MCP Server · CLI · npm
Proof primitive for AI agents on MultiversX. Anchor file hashes on-chain as verifiable proofs.
AFIP — Argentine tax authority, electronic invoicing (Factura Electrónica)
956k Swiss court decisions: full-text search, citation graph, statute lookup (DE/FR/IT)
MCP Security Weekly
Get CVE alerts and security updates for ch.fedlex-connector/fedlex-connector and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
Access Swiss Federal Law from Claude
A connector that gives Claude direct access to the official text of Swiss federal legislation on Fedlex, built on the Model Context Protocol (MCP). Covers all acts in the Classified Compilation (SR, RS) in German, French, and Italian.
Swiss federal law is published exclusively on Fedlex, but the frontend is a JavaScript single-page application that Claude's built-in web tools cannot render. However, Fedlex exposes two machine-readable interfaces that work without JavaScript:
fedlex.data.admin.ch/sparqlendpoint) for metadata queriesfedlex.admin.ch/filestore/...) serving consolidated legislationThis MCP server bridges the gap: it queries SPARQL for metadata (RS numbers, consolidation dates, amendment history), fetches and parses the HTML for the actual legislative text, and returns it to Claude in a structured format. No proprietary database, no cache -- just a stateless bridge to Fedlex's open data infrastructure.
The server supports two transports: stdio for local use (Claude Code, Claude Desktop) and HTTP for remote use (claude.ai). You can use one or both.
The server is hosted at:
https://mcp.fedlex-connector.ch
claude.ai / Claude Desktop:
https://mcp.fedlex-connector.chWe suggest naming it "Fedlex Connector".
Claude Code:
claude mcp add --transport http fedlex https://mcp.fedlex-connector.ch
Once connected, Claude can answer questions like "What does art. 1 of the Swiss Civil Code say?" by pulling the text directly from Fedlex.
The server includes a Dockerfile for deploying to any cloud platform that supports Docker containers (Railway, Fly.io, Render, etc.). Set the PORT environment variable and the server runs in HTTP mode. Without PORT, it runs in stdio mode for local use.
Your MCP endpoint will be at https://your-domain. Verify with:
curl https://your-domain/health
search_by_titleSearch Swiss federal legislation titles in the Classified Compilation (RS/SR). Returns only acts currently in force.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Keywords to match against act titles |
language | fr de it | No | Language for results (default: de) |
Example: Find the RS number for the data protection act.
search_by_title(query="protection des données")
→ RS 235.1 — Loi fédérale sur la protection des données (LPD)
get_articleRetrieve the official consolidated text of a specific article.
| Parameter | Type | Required | Description |
|---|---|---|---|
rs_number | string | Yes | RS number (e.g. "210" for CC, "220" for CO) |
article | string | Yes | Article number (e.g. "3", "28a", "260bis") |
language | fr de it | No | Language (default: de) |
date | string | No | Consolidation date (YYYY-MM-DD); defaults to latest |
Example: Retrieve art. 1 CC in German.
get_article(rs_number="210", article="1", language="de")
→ Art. 1: Das Gesetz findet auf alle Rechtsfragen Anwendung...
get_law_textRetrieve the full text of an act or a specific title/chapter. This is th