io.github.malkreide/fedlex-mcp
PYPI · FEDLEX-MCP
Swiss federal law, consultations (Fedlex) & TERMDAT terminology (LINDAS) via SPARQL
Available components
Last scanned (32 minutes ago)
Scores higher than 76% of PyPI servers
Category Education and Research
Recent critical change
GHSA-6q48-6c7w-9gw2 affects this package (21 Oct 2026). See the changelog before you install this server.
How this component scores in each security and reliability category. Every signal is checked automatically from public evidence about the published package, including repeated runs of it in an isolated sandbox, and we only credit what we can confirm. How we score → Why this is hard to score →
Supply Chain Security50
- Malware scan not yet available for this package.Unverified
- No known CVEs affecting this package version or its production dependencies.Pass
- Runs hatchling.build at install time, a recognised build step with no custom scripting around it. View diagnostics → Pass
- 1 of 34 dependencies flagged as unhealthy. View diagnostics → Partial
Provenance & Transparency100
- Source repository is publicly reachable at the declared URL. View diagnostics → Pass
- Cryptographically verified build provenance (signed, bound to malkreide/fedlex-mcp). View diagnostics → Pass
- Clear OSI-approved license (MIT).Pass
- Actively maintained (last published 38 days ago).Pass
- Publishes a security disclosure policy (SECURITY.md).Pass
Schema Quality & AI Usability75
- 100% of prompts and resources have a non-trivial description (not blank, and not just the item's name).Pass
- AI-judged instruction clarity (good).Pass
- Context-footprint check failed: tool/resource definitions use about 1883 tokens (~144/item across 13 items; 12 tools + 1 resources), over budget; trim descriptions and params. See how to fix → Fail
- Usage-examples check failed: none of the tools include examples. See how to fix → Fail
Stability & Change Management100
- No destabilizing schema changes in the last 30 days.Pass
Tool Coverage71
- 100% of tools have a non-trivial description (not blank, and not just the tool's name).Pass
- 0% of tool parameters carry a description.Fail
- Structured output schemas are declared (100% of tools); any adoption earns full credit.Pass
Tool Safety100
- No prompt-injection markers were found in the server instructions, tool names or descriptions we captured.Pass
- We read all 12 captured tool definition(s), and no name or description among them implies an irreversible operation.Pass
- An AI judge read all 14 captured unit(s) of tool text and found none that tries to manipulate the model reading it.Pass
Capabilities100
- Implements a current MCP spec version (2026-07-28).Pass
Every change we have recorded for this component, newest first. Security-relevant changes are always shown. ▲ marks a change for the better, ▼ a change for the worse; unmarked changes are neutral.
- 5 Nov 26 −15
- Malware scan: pass → unverified ▼ security
- 3 Nov 26 0
- Stability: 0.97 → pass security
- 2 Nov 26 0
- Stability: pass → 0.97 functional
- 1 Nov 26 +15
- Malware scan: unverified → pass ▲ security
- 30 Oct 26 −15
- Malware scan: pass → unverified ▼ security
- 29 Oct 26 +15
- Malware scan: unverified → pass ▲ security
- 25 Oct 26 −15
- Malware scan: pass → unverified ▼ security
- 23 Oct 26 +15
- Malware scan: unverified → pass ▲ security
Diagnostic detail from the automated scan of this channel: what the scanner observed at each step, so you can see exactly where a check passed or failed. It is informational only and never changes the trust score.
Captured 5 Nov 2026 · Analysed pypi/fedlex-mcp@2.1.0
Provenance Verified
A signed build attestation was found and verified, binding this exact artifact to the source repository it claims to come from.
| Result | Verified |
|---|---|
| Ecosystem | pypi |
| Reason | Verified |
| Discovered via | Registry attestation endpoint |
| Source repo | malkreide/fedlex-mcp |
| Certificate issuer | https://token.actions.githubusercontent.com |
| Certificate SAN | https://github.com/malkreide/fedlex-mcp/.github/workflows/publish.yml@refs/tags/v2.1.0 |
| Rekor log index | 2977744281 |
| Predicate type | PyPI publish attestation https://docs.pypi.org/attestations/publish/v1 |
| Subject digest | sha256:8e4ec2cd62d3bc0e63d7ae7cc4ad882b5b846fb93411b1d636948feda9e3b8fc |
Background: How many MCP packages publish verified provenance →
Install scripts 1 script
| Hook | Tier | Command |
|---|---|---|
| build_backend | allowlisted | hatchling.build |
Background: Why install scripts are a supply-chain risk →
Dependencies 34 packages
| Packages resolved | 34 |
|---|---|
| No linked repository | 1 |
| Tree resolution | Complete |
Background: SBOMs and build attestations, explained →
The tools this component advertises to a client, with an estimated token cost for each. Expand a tool to see its parameters and schema. The per-tool counts are indicative and are not scored directly; the schema's total context footprint is one signal in Schema Quality & AI Usability. A tool's description is untrusted text the model reads on every call, which is what makes this list a security surface and not just an inventory: how tool poisoning works →
fedlex_get_consultation ~175
Detail zu einer Vernehmlassung anhand ihrer eventId. <use_case>Vollbild zu einem Verfahren: Fristen, federführendes Amt, Status, Vernehmlassungsunterlagen und verknüpfte Rechtsressource — Grundlage für eine Stellungnahme.</use_case> <important_notes>Führt deadline, days_remaining (zur Laufzeit, Europe/Zurich) und einen abgeleiteten status (Frist gewinnt). Ohne hasSubTask: deadline=null mit Hinweis (wirft nicht). status_conflict markiert einen Widerspruch zwischen Quell-Status und Frist. eventId z.B. aus fedlex_get_open_consultations.</important_notes> <example>event_id='proj/2026/71/cons_1'</example>
| Name | Type | Req | Description |
|---|---|---|---|
| params | – | yes | – |
| Name | Type | Req | Description |
|---|---|---|---|
| count | integer | yes | – |
| license | string | – | – |
| markdown | string | yes | – |
| match_type | string | yes | – |
| message | – | – | – |
| results | array | yes | – |
| source | string | – | – |
| tool | string | yes | – |
No examples provided.
fedlex_get_law_by_sr ~147
Ruft einen Bundeserlass anhand seiner SR-Nummer ab (Detailansicht mit Titel, Abkürzung, Status, Inkrafttreten, Link). <use_case>Wenn die SR-Nummer bekannt ist (z.B. aus fedlex_search_laws) und vollständige Metadaten zu einem Erlass gebraucht werden.</use_case> <important_notes>Bei aufgehobenen Erlassen wird — sofern auffindbar — der Nachfolge-Erlass mitgeliefert. SR-Nummer mit Punkt trennen (235.1).</important_notes> <example>sr_number='235.1'</example>
| Name | Type | Req | Description |
|---|---|---|---|
| params | – | yes | – |
| Name | Type | Req | Description |
|---|---|---|---|
| count | integer | yes | – |
| license | string | – | – |
| markdown | string | yes | – |
| match_type | string | yes | – |
| message | – | – | – |
| results | array | yes | – |
| source | string | – | – |
| tool | string | yes | – |
No examples provided.
fedlex_get_law_history ~130
Ruft die Versionsgeschichte (alle konsolidierten Fassungen) eines Erlasses ab. <use_case>Nachvollziehen, wann welche Fassung galt — z.B. alte vs. revidierte Gesetzesfassung (DSG 235.1: 1992 vs. nDSG 2020).</use_case> <important_notes>Sortiert nach Inkrafttreten absteigend, max. 50 Fassungen. SR-Nummer mit Punkt trennen.</important_notes> <example>sr_number='235.1'</example>
| Name | Type | Req | Description |
|---|---|---|---|
| params | – | yes | – |
| Name | Type | Req | Description |
|---|---|---|---|
| count | integer | yes | – |
| license | string | – | – |
| markdown | string | yes | – |
| match_type | string | yes | – |
| message | – | – | – |
| results | array | yes | – |
| source | string | – | – |
| tool | string | yes | – |
No examples provided.
fedlex_get_open_consultations ~218
Listet aktuell OFFENE Vernehmlassungen des Bundes (Fristen-Monitoring). <use_case>«Auf welche Vorlagen kann man jetzt noch Stellung nehmen, und bis wann?» — vorparlamentarisches Verfahren, Frist-Überwachung.</use_case> <important_notes>Filtert über die Frist (eventEndDate >= heute in Europe/Zurich, Fristtag inklusive), NICHT über den Status — die Frist ist massgebend. Jeder Treffer führt deadline, days_remaining (zur Laufzeit berechnet, 0 = Frist heute) und einen abgeleiteten status; bei Widerspruch zum Quell-Status status_conflict=true. Sortiert nach kürzester Restfrist. Thema via topic='education' (ausgewiesene Stichwort-Union) oder exaktem keyword. Leeres Resultat = «nichts offen», NICHT «nichts kommt».</important_notes> <example>topic='education'</example>
| Name | Type | Req | Description |
|---|---|---|---|
| params | – | yes | – |
| Name | Type | Req | Description |
|---|---|---|---|
| count | integer | yes | – |
| license | string | – | – |
| markdown | string | yes | – |
| match_type | string | yes | – |
| message | – | – | – |
| results | array | yes | – |
| source | string | – | – |
| tool | string | yes | – |
No examples provided.
fedlex_get_recent_publications ~112
Ruft die neuesten Publikationen der Amtlichen Sammlung (AS) ab. <use_case>Regelmässiges Monitoring von Rechtsänderungen — was wurde in den letzten N Tagen neu publiziert oder geändert?</use_case> <important_notes>Liefert Erstpublikationen (AS), nicht den konsolidierten Stand. Zeitfenster über `days` (1–365).</important_notes> <example>days=30, language='de'</example>
| Name | Type | Req | Description |
|---|---|---|---|
| params | – | yes | – |
| Name | Type | Req | Description |
|---|---|---|---|
| count | integer | yes | – |
| license | string | – | – |
| markdown | string | yes | – |
| match_type | string | yes | – |
| message | – | – | – |
| results | array | yes | – |
| source | string | – | – |
| tool | string | yes | – |
No examples provided.
fedlex_get_upcoming_changes ~116
Ruft Erlasse ab, die in den nächsten N Tagen in Kraft treten. <use_case>Proaktives Rechtsmonitoring für Verwaltung und Schulen: welche Gesetze werden bald wirksam (Datenschutz, Bildung, Regulierung)?</use_case> <important_notes>Berücksichtigt nur künftige Inkraftsetzungen (dateEntryInForce > heute). Fenster über `days_ahead` (1–365).</important_notes> <example>days_ahead=90</example>
| Name | Type | Req | Description |
|---|---|---|---|
| params | – | yes | – |
| Name | Type | Req | Description |
|---|---|---|---|
| count | integer | yes | – |
| license | string | – | – |
| markdown | string | yes | – |
| match_type | string | yes | – |
| message | – | – | – |
| results | array | yes | – |
| source | string | – | – |
| tool | string | yes | – |
No examples provided.
fedlex_search_consultations ~169
Volltextsuche über Vernehmlassungen (Titel und Beschreibung), mit Filtern. <use_case>Recherche im vorparlamentarischen Verfahren — auch abgeschlossene Vernehmlassungen, nach Status, Zeitraum oder federführendem Amt.</use_case> <important_notes>Filter: topic (Stichwort-Union, ausgewiesen), keyword (Titel+Beschreibung), status (Kurzcode), from_date/to_date auf die Frist, institution (Teilstring im Amt). status ist abgeleitet (Frist gewinnt), days_remaining zur Laufzeit. Für reines Fristen-Monitoring offener Verfahren `fedlex_get_open_consultations` nutzen.</important_notes> <example>topic='education', status='closed'</example>
| Name | Type | Req | Description |
|---|---|---|---|
| params | – | yes | – |
| Name | Type | Req | Description |
|---|---|---|---|
| count | integer | yes | – |
| license | string | – | – |
| markdown | string | yes | – |
| match_type | string | yes | – |
| message | – | – | – |
| results | array | yes | – |
| source | string | – | – |
| tool | string | yes | – |
No examples provided.
fedlex_search_gazette ~123
Durchsucht das Bundesblatt (BBl) nach amtlichen Publikationen. <use_case>Politisches Frühwarnsystem: Botschaften des Bundesrates, Parlaments- und Volksinitiativen, Vernehmlassungen.</use_case> <important_notes>BBl ≠ konsolidiertes Recht — für geltende Gesetze `fedlex_search_laws` nutzen. Optional auf ein Jahr einschränken.</important_notes> <example>keywords='Berufsbildung', year=2024</example>
| Name | Type | Req | Description |
|---|---|---|---|
| params | – | yes | – |
| Name | Type | Req | Description |
|---|---|---|---|
| count | integer | yes | – |
| license | string | – | – |
| markdown | string | yes | – |
| match_type | string | yes | – |
| message | – | – | – |
| results | array | yes | – |
| source | string | – | – |
| tool | string | yes | – |
No examples provided.
fedlex_search_laws ~149
Durchsucht die Systematische Rechtssammlung (SR) des Bundes nach Erlasstiteln und liefert SR-Nummer, Abkürzung, Status und Link. <use_case>Juristische/verwaltungsbezogene Recherche: konsolidiertes Bundesrecht (Gesetze, Verordnungen, Vereinbarungen) per Stichwort finden.</use_case> <important_notes>Sucht nur im Titel, nicht im Volltext. Standardmässig nur in Kraft stehende Erlasse (in_force_only=true). Liefert einen strukturierten Envelope (results + markdown).</important_notes> <example>keywords='Datenschutz', language='de'</example>
| Name | Type | Req | Description |
|---|---|---|---|
| params | – | yes | – |
| Name | Type | Req | Description |
|---|---|---|---|
| count | integer | yes | – |
| license | string | – | – |
| markdown | string | yes | – |
| match_type | string | yes | – |
| message | – | – | – |
| results | array | yes | – |
| source | string | – | – |
| tool | string | yes | – |
No examples provided.
fedlex_search_treaties ~114
Sucht internationale Staatsverträge der Schweiz (SR-Nummern beginnen mit '0.'). <use_case>Recherche zu bi-/multilateralen Abkommen: EU-Bilaterale, Doppelbesteuerung, Europarats-Konventionen (Datenschutz, Menschenrechte).</use_case> <important_notes>Ohne Suchbegriff werden die neuesten Verträge gelistet. Sucht nur im Titel.</important_notes> <example>keywords='Datenschutz'</example>
| Name | Type | Req | Description |
|---|---|---|---|
| params | – | yes | – |
| Name | Type | Req | Description |
|---|---|---|---|
| count | integer | yes | – |
| license | string | – | – |
| markdown | string | yes | – |
| match_type | string | yes | – |
| message | – | – | – |
| results | array | yes | – |
| source | string | – | – |
| tool | string | yes | – |
No examples provided.
termdat_get_concept ~143
Ruft den vollständigen TERMDAT-Eintrag zu einer ID oder URI ab. <use_case>Vollbild eines Terminologie-Konzepts: alle Sprachbenennungen, Definitionen, Synonyme und Quellenangaben.</use_case> <important_notes>Akzeptiert ID ('40109'), Konzept-URI oder Term-URI mit Sprachsuffix ('…/40109/3/de') und normalisiert intern (Quirk 3). Quelle ist der LINDAS-Teilbestand (77'692 von ~400'000 Einträgen).</important_notes> <example>concept='40109'</example>
| Name | Type | Req | Description |
|---|---|---|---|
| params | – | yes | – |
| Name | Type | Req | Description |
|---|---|---|---|
| count | integer | yes | – |
| license | string | – | – |
| markdown | string | yes | – |
| match_type | string | yes | – |
| message | – | – | – |
| results | array | yes | – |
| source | string | – | – |
| tool | string | yes | – |
No examples provided.
termdat_lookup_term ~194
Schlägt einen Fachbegriff in TERMDAT nach und liefert die Entsprechungen in den anderen Landessprachen (de/fr/it/rm/en) samt Definition. <use_case>«Wie heisst dieser Begriff auf Französisch/Italienisch?» — amtliche Terminologie der Bundeskanzlei, z.B. für mehrsprachige Stellungnahmen.</use_case> <important_notes>Datenquelle ist der LINDAS-Teilbestand von TERMDAT: 77'692 von ~400'000 Einträgen. Ein Negativtreffer heisst NICHT, dass der Begriff in TERMDAT fehlt, sondern nur, dass er nicht im publizierten Linked-Data-Teil liegt. 'rm' ist im Teilbestand praktisch leer.</important_notes> <example>term='Volksschule', target_languages=['fr','it']</example>
| Name | Type | Req | Description |
|---|---|---|---|
| params | – | yes | – |
| Name | Type | Req | Description |
|---|---|---|---|
| count | integer | yes | – |
| license | string | – | – |
| markdown | string | yes | – |
| match_type | string | yes | – |
| message | – | – | – |
| results | array | yes | – |
| source | string | – | – |
| tool | string | yes | – |
No examples provided.
How do I install the io.github.malkreide/fedlex-mcp server?
io.github.malkreide/fedlex-mcp runs locally as a PyPI package, launched with uvx fedlex-mcp. Ready-made configuration for Claude, Cursor, VS Code, Codex and 5 more is on this page, copied from each client's own documentation.
pypi · fedlex-mcp
claude mcp add malkreide-fedlex-mcp -- uvx fedlex-mcp
What is the io.github.malkreide/fedlex-mcp server?
io.github.malkreide/fedlex-mcp is listed in the public MCP registry as io.github.malkreide/fedlex-mcp. Swiss federal law, consultations (Fedlex) & TERMDAT terminology (LINDAS) via SPARQL. This page covers its PyPI package (fedlex-mcp).
Is the io.github.malkreide/fedlex-mcp server safe to use?
io.github.malkreide/fedlex-mcp scores 78 out of 100 on VerifyMCP. We found no known CVEs affecting it as of 5 November 2026. Its build provenance is signed and verified. That is a record of what we were able to check automatically, not an endorsement. The category breakdown on this page shows every signal behind the number, including the ones we could not confirm.
What tools does the io.github.malkreide/fedlex-mcp server expose?
io.github.malkreide/fedlex-mcp exposes 12 tools: fedlex_search_laws, fedlex_get_law_by_sr, fedlex_get_recent_publications, fedlex_get_upcoming_changes, fedlex_search_gazette, and 7 more. Their descriptions and schemas cost roughly 1,790 tokens of context every time the server is loaded.
Is the io.github.malkreide/fedlex-mcp server still maintained?
io.github.malkreide/fedlex-mcp is still listed as active in the MCP registry. We last reached this channel on 5 November 2026. Those dates come from our own scans of the registry and the channel itself, not from anything the publisher announced.
What licence is the io.github.malkreide/fedlex-mcp server under?
io.github.malkreide/fedlex-mcp declares the MIT licence, which is OSI-approved. That covers the source only, and says nothing about the cost of any service it calls.