Search Swiss federal legislation: laws, articles, amendments via the Fedlex SPARQL endpoint.
{
"mcpServers": {
"ch-fedlex-connector-fedlex-connector": {
"command": "<see-readme>",
"args": []
}
}
}No install config available. Check the server's README for setup instructions.
Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
Search Swiss federal legislation: laws, articles, amendments via the Fedlex SPARQL endpoint.
Is it safe?
No package registry to scan.
No authentication — any process on your machine can connect.
License not specified.
Is it maintained?
Commit history unknown.
Will it work with my client?
Transport: . Compatibility not confirmed.
No automated test available for this server. Check the GitHub README for setup instructions.
No known vulnerabilities.
This server is missing a description. Tools and install config are also missing.If you've used it, help the community.
Add informationHave you used this server?
Share your experience — it helps other developers decide.
Sign in to write a review.
956k Swiss court decisions: full-text search, citation graph, statute lookup (DE/FR/IT)
Cameroon legislation via MCP -- full-text search across statutes and provisions
Scan codebases for AI usage, classify risk, generate EU AI Act compliance reports.
Chilean legislation via MCP — full-text search across statutes and provisions
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, mobile). You can use one or both.
The server is hosted at:
https://mcp.fedlex-connector.ch
claude.ai / Claude Desktop / Claude mobile:
https://mcp.fedlex-connector.chThe connector syncs across claude.ai, Claude Desktop, and the Claude mobile app.
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 the primary tool for