malkreide avatar

Fedlex Mcp

malkreide/fedlex-mcp

Connects Claude to the Swiss Federal Chancellery's Fedlex SPARQL endpoint for querying federal law. You get seven tools covering the Systematic Compilation (SR), Official Compilation (AS), Federal Gazette (BBl), and international treaties. Search laws by keyword, pull full text by SR number, monitor upcoming legal changes, or trace version history. Works in all four Swiss languages (German, French, Italian, Romansh) and requires no authentication since Fedlex publishes under an open reuse license. Ships with both stdio for Claude Desktop and SSE transport for browser deployment. Reach for this when you need to cite Swiss legislation, track regulatory changes, or analyze legal texts without manually navigating fedlex.admin.ch.

GitHub stars
7
tools
12
transport
STDIO
last updated
Sep 27, 2026

Tools

12 tools

Public tool metadata for what this MCP can expose to an agent.

fedlex_search_lawsSearch the Systematic Compilation (SR) by keyword in title

Search the Systematic Compilation (SR) by keyword in title

No parameter schema in public metadata yet.

fedlex_get_law_by_srGet a law by its SR number (e.g. `235.1` = Data Protection Act)

Get a law by its SR number (e.g. `235.1` = Data Protection Act)

No parameter schema in public metadata yet.

fedlex_get_recent_publicationsLatest publications from the Official Compilation (AS)

Latest publications from the Official Compilation (AS)

No parameter schema in public metadata yet.

fedlex_get_upcoming_changesLaws entering into force soon (legal monitoring)

Laws entering into force soon (legal monitoring)

No parameter schema in public metadata yet.

fedlex_search_gazetteSearch the Federal Gazette (BBl)

Search the Federal Gazette (BBl)

No parameter schema in public metadata yet.

fedlex_get_law_historyAll versions of a law (version history)

All versions of a law (version history)

No parameter schema in public metadata yet.

fedlex_search_treatiesInternational treaties (SR numbers starting with `0.`)

International treaties (SR numbers starting with `0.`)

No parameter schema in public metadata yet.

fedlex_get_open_consultationsDeadline monitoring — open consultations (`eventEndDate >= today`, Europe/Zurich); each with `days_remaining` + derived `status`, sorted by shortest deadline; optional `topic`/`keyword`

Deadline monitoring — open consultations (`eventEndDate >= today`, Europe/Zurich); each with `days_remaining` + derived `status`, sorted by shortest deadline; optional `topic`/`keyword`

No parameter schema in public metadata yet.

fedlex_search_consultationsFull-text search over consultation title/description, with filters (topic, status, deadline range, office)

Full-text search over consultation title/description, with filters (topic, status, deadline range, office)

No parameter schema in public metadata yet.

fedlex_get_consultationDetail for one `eventId`: deadline, `days_remaining`, office, derived status, documents

Detail for one `eventId`: deadline, `days_remaining`, office, derived status, documents

No parameter schema in public metadata yet.

termdat_lookup_termTerm → equivalents in de/fr/it/rm/en incl. definition

Term → equivalents in de/fr/it/rm/en incl. definition

No parameter schema in public metadata yet.

termdat_get_conceptFull TERMDAT entry for a URI or ID

Full TERMDAT entry for a URI or ID

No parameter schema in public metadata yet.

Sponsors

Readme

:switzerland: Part of the Swiss Public Data MCP Portfolio

:balance_scale: fedlex-mcp

Version License: MIT Python 3.11+ MCP No Auth Required CI

MCP Server for Swiss federal law, consultations & official terminology — search the SR, monitor consultation deadlines, and translate terms across the national languages via Claude Desktop or Claude.ai

:de: Deutsche Version


Overview

fedlex-mcp connects AI assistants (Claude) with three official Swiss SPARQL data sources:


View the full README on GitHub

Details

Repository
github.com/malkreide/fedlex-mcp
Website
github.com/malkreide/fedlex-mcp
Package
fedlex-mcp
Transport
STDIO
Registry
MCP registry, active

More from malkreide