An MCP connector that gives Claude direct access to Swiss federal legislation on Fedlex.
Fedlex Connector gives Claude direct access to Fedlex, the official publication platform for Swiss federal law. It lets Claude query individual articles or whole acts from the Classified Compilation (SR, RS) in German, French, and Italian. The result is less wasted reasoning and greater accuracy when using Claude for legal research within Swiss federal law.
Fedlex Connector is free to use and open source. It is a private project, and it is not operated by the Federal Chancellery. Only the publications of the Federal Chancellery are authoritative.
Claude cannot access the legal acts published on Fedlex because the website relies on JavaScript, which Claude cannot execute. Without this connector, Claude resorts to workarounds (mirror sites, random PDFs, secondary sources), an approach that introduces potential inaccuracies and wastes reasoning power.
However, Fedlex does expose two machine-readable interfaces that work without JavaScript: a SPARQL endpoint for metadata and an HTML filestore serving the legislative texts. This connector queries those interfaces, extracts the relevant text, and returns it to Claude in a structured format.
It works as an MCP server, a lightweight protocol that lets Claude call external tools as part of its reasoning. Once connected, Claude can query Fedlex on its own whenever a conversation requires it.
The server is available at:
https://mcp.fedlex-connector.ch
On claude.ai or Claude Desktop: Customize(Anpassen / Personnaliser / Personalizza) → Connectors → Add connector→ Add custom connector, paste the URL. We suggest to name it “Fedlex Connector”.
On Claude Code: claude mcp add --transport http Fedlex-Connector https://mcp.fedlex-connector.ch
Searches laws by name and returns titles and SR/RS numbers.
Retrieves a full act or a specific title/chapter. Large acts are paginated automatically.
Retrieves a single article when Claude already knows the exact article number. Supports historical versions by consolidation date.
Lists amendments to an act over a given period.
The code is open source and available on GitHub.
Built by Jeremy Bacharach. jeremy@bacharach.ch · LinkedIn
Feedback and contributions are welcome.
Last updated on 18 May 2026.