Fedlex MCP

:de: Deutsche Version fedlex-mcp connects AI assistants (Claude) with three official Swiss SPARQL data sources. Its 12 documented tools cover fedlex, law, consultations, termdat. It runs locally over stdio via the published package.

People connecting this server to Claude, Cursor, VS Code, or another MCP client. The project is written in Python.

VERIFIED ACTIVE

LAST COMMIT 2026-08-24 · ★ 3 · #303 OF 848 MAINTAINED OTHER · VERIFIED 2026-08-25

MIT · Python servers · how we verify → /methodology

01 · Install Fedlex MCP

before you install - you'll need

The README does not document required environment variables for a basic install.

Claude Code

claude mcp add malkreide-fedlex-mcp -- uvx fedlex-mcp

Claude Desktop / Cursor / VS Code - add to config

{
  "mcpServers": {
    "malkreide-fedlex-mcp": {
      "command": "uvx",
      "args": [
        "fedlex-mcp"
      ]
    }
  }
}

Same JSON for Cursor. For VS Code, rename the top-level key from `mcpServers` to `servers`.

Using another client? Same JSON, different key

Claude Desktop · mcpServers

Cursor · mcpServers

VS Code · servers

Windsurf · mcpServers

Zed · context_servers

Cline · mcpServers

Roo Code · mcpServers

Continue · mcpServers

LibreChat · mcpServers

Gemini CLI · mcpServers

Codex CLI · mcp_servers

Full setup guides: every client.

02 · Evidence

Security posture

What to check before giving this server access to your agent - from the registry, GitHub, and our own probes. We don't score safety; we show what's verifiable.

runs as local process (stdio) - runs on your machine with your user's permissions

license MIT - declared in the repository

pypi package fedlex-mcp - check the name against the project README before installing (PyPI has no namespace ownership)

registry namespace io.github.malkreide is GitHub-verified and matches the repo owner

03 · What Fedlex MCP can do

Prose above is summarized from the project's README and registry record - no invented capabilities.

What you can build

With this server connected, an agent can search the Systematic Compilation (SR) by keyword in title, get a law by its SR number (e.g. 235.1 = Data Protection Act), and search the Federal Gazette (BBl).

Capability map

Tools grouped from the project's README - what Fedlex MCP lets an agent do.

Fedlex

10 tools - e.g. Search the Systematic Compilation (SR) by keyword in title; Get a law by its SR number (e.g. 235.1 = Data Protection Act); Latest publications from the Official Compilation (AS)

fedlex_search_laws · fedlex_get_law_by_sr · fedlex_get_recent_publications · fedlex_get_upcoming_changes · fedlex_search_gazette · fedlex_get_law_history…

Termdat

2 tools - e.g. Term → equivalents in de/fr/it/rm/en incl. definition; Full TERMDAT entry for a URI or ID

termdat_lookup_term · termdat_get_concept

Latest releases

v2.0.1 · 2026-08-02

[2.0.1] - 2026-08-02 · Behoben · structlog hatte keine Obergrenze, und der Index fuehrt bereits einen Major · oberhalb der Untergrenze. Deklariert war structlog>=25.5.0; auf PyPI liegt · 26.1.0. Das Artefakt aendert…

v2.0.0 · 2026-08-01

[2.0.0] - 2026-08-01 · > Sammelrelease. Diese Version liefert alles aus, was seit 1.0.3 auf main · > aufgelaufen ist - 22 Commits, darunter die beiden Stände, die bis zum · > 01.08.2026 fälschlich als [1.1.0] und…

v1.0.3 · 2026-08-01

Fixed · mcp-name im README deklariert, damit die MCP Registry die PyPI-Ownership · auflösen kann. Der Marker muss in der Datei stehen, die pyproject.toml als · readme deklariert - in pyproject.toml allein genügt er…

04 · Who maintains Fedlex MCP

fedlex-mcp is maintained by malkreide. We track 43 MCP servers from malkreide - 42 actively maintained, 36 combined GitHub stars, oldest repo from Feb 2026. Full record: all servers from malkreide.

  1. zurich-opendata-mcp City of Zurich weather, air quality, parking, geodata, Gemeinderat, tourism ★ 8
  2. swisstopo-mcp Swiss federal geodata: geocoding, height, STAC, WMTS, OEREB and more ★ 8
  3. swiss-statistics-mcp BFS STAT-TAB PxWeb API for official Swiss statistics ★ 2
  4. swiss-transport-mcp OJP 2.0 journey planning, SIRI-SX disruptions, occupancy, fares, train formation ★ 4
  5. swiss-democracy-mcp Parliament OData, Swissvotes, referendums, voting results ★ 2

05 · Facts

category
other - ranked #303 of 848 actively-maintained other servers as of 2026-08-25.
release cadence
5 releases in the last 90 days (latest 2026-08-02)
registry
io.github.malkreide/fedlex-mcp (active, first published 2026-06-07 · 3 versions)
packages
pypi:fedlex-mcp

06 · Fedlex MCP FAQ

Is Fedlex MCP still maintained?

Yes - as of 2026-08-25, its last commit was 2026-08-24 and it shipped 5 releases in the last 90 days. We re-verify nightly.

What can Fedlex MCP do?

With this server connected, an agent can search the Systematic Compilation (SR) by keyword in title, get a law by its SR number (e.g. 235.1 = Data Protection Act), and search the Federal Gazette (BBl).

How do I install Fedlex MCP?

Run `uvx fedlex-mcp`. The README does not document required environment variables for a basic install. You can also paste the ready-made client config above.

Does Fedlex MCP run locally?

Yes - it's a stdio server: it runs on your machine (via uvx) with your user's permissions. Your data stays local unless the server itself calls external APIs.

07 · Alternatives to Fedlex MCP