Fedlex MCP server
Swiss federal law, consultations (Fedlex) & TERMDAT terminology (LINDAS) via SPARQL
7 stars650 downloads/wk
Reviews
Write oneNobody has reviewed Fedlex yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Fedlex tools
No tool declarations could be read from the package source. They show once the server is installed.
Public scan report
scanner v0.1.10 · 2026-11-05 · same rubric, same numbers if you re-run it
- Code scan21 source files scanned20/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 4 days ago15/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
Findings (1)
- mediumsubprocess with shell=True
exec.shell-truefedlex_mcp-2.1.0/audits/2026-06-03T085447-Z-fedlex-mcp/verification-results.json: …"evidence": ["Kein os.system/subprocess/shell=True/eval/exec/os.popen im Code"], "ga…
How Fedlex compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 85/100
- higher than 70% of 48,243 servers
- GitHub stars
- 7
- more than 86% of 28,706 servers
- Downloads a week
- 650
- more than 91% of 12,306 servers with a package
Release history: 2 versions in the registry since 2026-08-02, latest 2026-09-27, typically one every 56 days.
Install Fedlex in Claude Code, Cursor or VS Code
claude mcp add fedlex-mcp -- uvx fedlex-mcp
What the publisher says
From the Fedlex repository's README, as published. We do not edit it. Read it on GitHub
:switzerland: Part of the Swiss Public Data MCP Portfolio
:balance_scale: fedlex-mcp
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:
- Federal law via the Fedlex SPARQL endpoint — the Systematic Compilation (SR), Official Compilation (AS), Federal Gazette (BBl) and treaties.
- Consultations (Vernehmlassungen) via the same Fedlex endpoint (jolux:Consultation) — the pre-parliamentary phase in which anyone can comment on a draft.
- TERMDAT, the Federal Chancellery's terminology database, via the LINDAS SPARQL endpoint — official term equivalents across de/fr/it/rm/en.
All three are SPARQL-based, which is exactly why they live in one server rather than three: no new technology stack, only new queries against known patterns.
Metaphor: USB-C for federal law. Fedlex tells you what you have to respond to. TERMDAT tells you what it is called in the other national languages.
Features
- :balancescale: 12 tools, 2 resources** across federal law, consultations and terminology
- :mag: SPARQL-powered — two isolated endpoints (Fedlex + LINDAS), no shared failure mode
- :globewithmeridians: 5 languages — German, French, Italian, Romansh, plus English for terminology
- :unlock: No API key required — all data under open reuse licences
- :cloud: Dual transport — stdio (Claude Desktop) + Streamable HTTP (cloud)
Anchor demo query
"Which education-related consultations are currently open, until when does the deadline run, which office is in charge — and what are the key technical terms in French and Italian for the response?"
A single conversation chains three tools across two endpoints:
fedlex_get_open_consultations(topic="education")
→ fedlex_get_consultation(event_id="proj/2026/71/cons_1")
→ termdat_lookup_term(term="Volksschule", target_languages=["fr","it"])Every open consultation carries deadline, daysremaining (computed at request time in Europe/Zurich, 0 = deadline is today) and a derived status — an expired consultation never shows up as running. Fedlex says what you must respond to and by when; TERMDAT says how to name it* in the other national languages.
Use topic="education", not keyword="Volksschule". Fedlex consultations
have no subject taxonomy — filtering is free-text over the title, and the word
"Volksschule" appears in zero consultation titles. The topic filter
expands to a disclosed keyword union (Bildung, Schule, Berufsbildung,
Hochschule, …) and reports exactly which terms it searched.
Prerequisites
- Python 3.11+
- uv (recommended) or pip
<!-- BEGIN GENERATED: install -->
Installation
Run via uv's uvx — no clone or manual install needed. Add to your MCP client config (mcpServers for Claude Desktop, Cursor and Windsurf; use a top-level servers key for VS Code in .vscode/mcp.json):
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Fedlex: common questions
- Is Fedlex MCP server safe?
- Yes, by our scan: it is graded A (85/100). Read the Fedlex safety report
- How do I install Fedlex?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Fedlex need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is Fedlex maintained?
- The last commit was 4 days ago (2026-11-01). The latest release is v2.1.0.
- How does Fedlex compare with other MCP servers?
- safety score 85/100 (higher than 70% of 48,243 servers); github stars 7 (more than 86% of 28,706 servers); downloads a week 650 (more than 91% of 12,306 servers with a package). Full comparison.