Skip to content
verify mcp Beta VerifyMCP is currently in beta. If you notice any issues, get in touch and we’ll put it right.

io.github.malkreide/fedlex-mcp

PYPI · FEDLEX-MCP · SCANNED SEP 20

Swiss federal law, consultations (Fedlex) & TERMDAT terminology (LINDAS) via SPARQL

Available components

0 this week 78 Trust /100
Trust breakdown (7 categories)

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 Security100
  • No malware found by supply-chain analysis.Pass
  • No known CVEs affecting this package version or its production dependencies.Pass
  • Runs hatchling.build at install time, a recognised native-build step with no shell scripting around it. View diagnostics → Pass
  • 1 of 35 dependencies flagged as unhealthy. View diagnostics → Partial
Provenance & Transparency35
  • Source repository is publicly reachable at the declared URL. View diagnostics → Pass
  • Provenance check failed: no build-provenance attestation is published. See how to fix → View diagnostics → Fail
  • License check failed: the license (MIT License) isn't a recognized OSI-approved license. See how to fix → Fail
  • Actively maintained (last published 48 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 Management87
  • Stability observed for 26 of 30 days with no destabilising changes; credit accrues until the full window elapses.Partial
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
Install

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

# add to Claude Code
claude mcp add malkreide-fedlex-mcp -- uvx fedlex-mcp
// .cursor/mcp.json
{
  "mcpServers": {
    "malkreide-fedlex-mcp": {
      "command": "uvx",
      "args": [
        "fedlex-mcp"
      ]
    }
  }
}
// .vscode/mcp.json
{
  "servers": {
    "malkreide-fedlex-mcp": {
      "command": "uvx",
      "args": [
        "fedlex-mcp"
      ]
    }
  }
}
# add to Codex CLI
codex mcp add malkreide-fedlex-mcp -- uvx fedlex-mcp
// opencode.json
{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "malkreide-fedlex-mcp": {
      "type": "local",
      "command": [
        "uvx",
        "fedlex-mcp"
      ],
      "enabled": true
    }
  }
}
# add to OpenClaw
openclaw mcp add malkreide-fedlex-mcp --command uvx --arg fedlex-mcp
# ~/.hermes/config.yaml
mcp_servers:
  malkreide-fedlex-mcp:
    command: "uvx"
    args: ["fedlex-mcp"]
// ~/.netclaw/config/netclaw.json
{
  "McpServers": {
    "malkreide-fedlex-mcp": {
      "Transport": "stdio",
      "Command": "uvx",
      "Arguments": [
        "fedlex-mcp"
      ]
    }
  }
}
# add to Vellum
assistant mcp add malkreide-fedlex-mcp -t stdio -c uvx -a fedlex-mcp
// mcp.json
{
  "mcpServers": {
    "malkreide-fedlex-mcp": {
      "command": "uvx",
      "args": [
        "fedlex-mcp"
      ]
    }
  }
}
Changelog

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.

  • 19 Sept 26 +1

    No change was recorded against any check on this day. Stability & Change Management went from 80 to 83. That category is still filling its 30-day observation window: 24 days of observed history at the previous scan, 25 at this one. The score rises as the window fills, whether or not the server changes.

  • 18 Sept 26 −3
    • Stability: pass → 0.80 functional
  • 17 Sept 26 0
    • Stability: 0.97 → pass security
  • 16 Sept 26 +1

    No change was recorded against any check on this day. Stability & Change Management went from 93 to 97. That category is still filling its 30-day observation window: 28 days of observed history at the previous scan, 29 at this one. The score rises as the window fills, whether or not the server changes.

  • 14 Sept 26 +1

    No change was recorded against any check on this day. Stability & Change Management went from 87 to 90. That category is still filling its 30-day observation window: 26 days of observed history at the previous scan, 27 at this one. The score rises as the window fills, whether or not the server changes.

  • 12 Sept 26 −2
    • Stability: pass → 0.83 functional
  • 11 Sept 26 0
    • Stability: 0.97 → pass security
  • 10 Sept 26 +1

    No change was recorded against any check on this day. Stability & Change Management went from 93 to 97. That category is still filling its 30-day observation window: 28 days of observed history at the previous scan, 29 at this one. The score rises as the window fills, whether or not the server changes.

Diagnostics

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 20 Sept 2026 · Analysed pypi/fedlex-mcp@2.0.1

Provenance No attestation

The registry publishes no build provenance for this version, so there is nothing to verify.

Result No attestation
Ecosystem pypi

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 35 packages
Packages resolved 35
No linked repository 1
Tree resolution Complete

Background: SBOMs and build attestations, explained →

MCP tools · 12 exposed · ~1,790 tokens

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 →

Tool Tokens
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>

NameTypeReqDescription
paramsyes
NameTypeReqDescription
countintegeryes
licensestring
markdownstringyes
match_typestringyes
message
resultsarrayyes
sourcestring
toolstringyes

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>

NameTypeReqDescription
paramsyes
NameTypeReqDescription
countintegeryes
licensestring
markdownstringyes
match_typestringyes
message
resultsarrayyes
sourcestring
toolstringyes

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>

NameTypeReqDescription
paramsyes
NameTypeReqDescription
countintegeryes
licensestring
markdownstringyes
match_typestringyes
message
resultsarrayyes
sourcestring
toolstringyes

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>

NameTypeReqDescription
paramsyes
NameTypeReqDescription
countintegeryes
licensestring
markdownstringyes
match_typestringyes
message
resultsarrayyes
sourcestring
toolstringyes

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>

NameTypeReqDescription
paramsyes
NameTypeReqDescription
countintegeryes
licensestring
markdownstringyes
match_typestringyes
message
resultsarrayyes
sourcestring
toolstringyes

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>

NameTypeReqDescription
paramsyes
NameTypeReqDescription
countintegeryes
licensestring
markdownstringyes
match_typestringyes
message
resultsarrayyes
sourcestring
toolstringyes

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>

NameTypeReqDescription
paramsyes
NameTypeReqDescription
countintegeryes
licensestring
markdownstringyes
match_typestringyes
message
resultsarrayyes
sourcestring
toolstringyes

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>

NameTypeReqDescription
paramsyes
NameTypeReqDescription
countintegeryes
licensestring
markdownstringyes
match_typestringyes
message
resultsarrayyes
sourcestring
toolstringyes

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>

NameTypeReqDescription
paramsyes
NameTypeReqDescription
countintegeryes
licensestring
markdownstringyes
match_typestringyes
message
resultsarrayyes
sourcestring
toolstringyes

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>

NameTypeReqDescription
paramsyes
NameTypeReqDescription
countintegeryes
licensestring
markdownstringyes
match_typestringyes
message
resultsarrayyes
sourcestring
toolstringyes

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>

NameTypeReqDescription
paramsyes
NameTypeReqDescription
countintegeryes
licensestring
markdownstringyes
match_typestringyes
message
resultsarrayyes
sourcestring
toolstringyes

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>

NameTypeReqDescription
paramsyes
NameTypeReqDescription
countintegeryes
licensestring
markdownstringyes
match_typestringyes
message
resultsarrayyes
sourcestring
toolstringyes

No examples provided.

Common questions

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 20 September 2026. 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 20 September 2026. Those dates come from our own scans of the registry and the channel itself, not from anything the publisher announced.