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.
- zurich-opendata-mcp City of Zurich weather, air quality, parking, geodata, Gemeinderat, tourism ★ 8
- swisstopo-mcp Swiss federal geodata: geocoding, height, STAC, WMTS, OEREB and more ★ 8
- swiss-statistics-mcp BFS STAT-TAB PxWeb API for official Swiss statistics ★ 2
- swiss-transport-mcp OJP 2.0 journey planning, SIRI-SX disruptions, occupancy, fares, train formation ★ 4
- swiss-democracy-mcp Parliament OData, Swissvotes, referendums, voting results ★ 2
05 · Facts
- repository
- github.com/malkreide/fedlex-mcp
- 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
Alternatives to Fedlex MCP
Maintained other servers if Fedlex MCP isn't the fit.
- Heyputer MCP Server Puter MCP enables AI tools to interact with Puter: manage files, websites, workers, and more ★ 43,204 · 2026-08-24
- Server Commands An MCP server to run arbitrary commands ★ 38,704 · 2026-08-05
- Zotero MCP (54yyyu) Search, read, annotate, and add to your Zotero research library, local or web. ★ 4,780 · 2026-08-25
- Firebase MCP Gives AI development tools Firebase-specific capabilities and expertise. ★ 4,460 · 2026-08-25
- Microsoft Fabric MCP Server MCP tools for interacting with Microsoft Fabric ★ 3,598 · 2026-08-21
- Ship Swift 40+ production-ready SwiftUI recipes for building full-stack iOS apps via MCP. ★ 2,968 · 2026-08-09
More MCP servers to compare · Swiss Democracy MCP · Swiss Transport MCP · Icp Fit Scorer · Publish MCP Server · Agentdomain MCP
More Python MCP servers · Swiss Statistics MCP · Swisstopo MCP · Zurich Opendata MCP · see all