MCP.Market

Fedlex Connector MCP server

online · 100% uptime
by fedlex-connector.ch·ch.fedlex-connector/fedlex-connector·v1.0.0·6 stars

Search Swiss federal legislation: laws, articles, amendments via the Fedlex SPARQL endpoint.

A89/100grade A
What users say
No reviews yet
Be the first
Safety scan
A89/100

full report

Adoption
Growing

6 stars

Reviews

Write one

Nobody has reviewed Fedlex Connector yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

Fedlex Connector tools (4)

write = sends, deletes, buys or posts
  • get_articleFree

    Retrieve a single article when you already know the EXACT article number (e.g. from a cross-reference). Do NOT call this tool repeatedly to search for provisions — use get_law_text instead to fetch the full act or a section and locate relevant articles in the text.

  • get_law_textFree

    Retrieve the official consolidated text of a Swiss federal act (or a specific title/chapter) directly from Fedlex (fedlex.admin.ch). This is the PRIMARY tool for answering Swiss law questions — always start here. Fetch the full act or a specific section, then locate relevant provisions in the returned text. Prefer this over get_article unless you already know the exact article number.

  • list_amendmentsFree

    List consolidation version dates for a Swiss federal act. Returns the dates each consolidated version took effect.

  • search_by_titleFree

    Search Swiss federal legislation titles in the Classified Compilation (RS/SR) on Fedlex. Use to find the RS number of a law when you know its name but not its number. Searches titles only, not article content. Returns only acts currently in force.

Public scan report

scanner v0.1.9 · 2026-09-27 · same rubric, same numbers if you re-run it

no findings
  • –Code scanremote-only server, no package to scann/a
  • Live reliabilityremote reachable in 624ms20/20
  • Tool poisoning4 tool descriptions checked15/15
  • Auth qualityopen endpoint, read-only tools10/15
  • Maintenancelast push 28 days ago15/15
  • Maintainer identitynamespace and repository owner differ; GitHub account older than a year; website matches verified namespace7/10
Overall 89/100. Components that don't apply are left out of the denominator. Any critical finding is an F.RubricAppeal a findingJSON

How Fedlex Connector compares

Against every graded Web search MCP server, from our own scans and uptime checks. Updated after each scan run.

Safety score
89/100
higher than 85% of 3,470 Web search servers
Tools
4
the typical Web search server has 5
Tools that change things
0%
typical: 0%. Fewer write tools means less an agent can break
Uptime
100%
of our recent checks; the typical remote Web search server answers 100%
Response time
1,187 ms
faster than 6% of 2,238 Web search servers
GitHub stars
6
more than 81% of 1,786 Web search servers

What its tools let an agent do: 4 read

Install Fedlex Connector in Claude Code, Cursor or VS Code

claude mcp add --transport http fedlex-connector https://mcp.fedlex-connector.ch/
Add to Cursor

What the publisher says

From the Fedlex Connector repository's README, as published. We do not edit it. Read it on GitHub

Fedlex Connector

Access Swiss Federal Law from Claude

A connector that gives Claude direct access to the official text of Swiss federal legislation on Fedlex, built on the Model Context Protocol (MCP). Covers all acts in the Classified Compilation (SR, RS) in German, French, and Italian.

Why This Exists

Swiss federal law is published exclusively on Fedlex, but the frontend is a JavaScript single-page application that Claude's built-in web tools cannot render. However, Fedlex exposes two machine-readable interfaces that work without JavaScript:

  • A SPARQL endpoint (fedlex.data.admin.ch/sparqlendpoint) for metadata queries
  • A static HTML filestore (fedlex.admin.ch/filestore/...) serving consolidated legislation

This MCP server bridges the gap: it queries SPARQL for metadata (RS numbers, consolidation dates, amendment history), fetches and parses the HTML for the actual legislative text, and returns it to Claude in a structured format. No proprietary database, no cache -- just a stateless bridge to Fedlex's open data infrastructure.

Setup

The server supports two transports: stdio for local use (Claude Code, Claude Desktop) and HTTP for remote use (claude.ai). You can use one or both.

The server is hosted at:

https://mcp.fedlex-connector.ch

claude.ai / Claude Desktop:

  1. Go to claude.ai
  2. Click Customize (Anpassen / Personnaliser / Personalizza) in the sidebar
  3. Click Connectors
  4. Click + → Add connector
  5. Click Add custom connector and paste the URL: https://mcp.fedlex-connector.ch

We suggest naming it "Fedlex Connector".

Claude Code:

claude mcp add --transport http fedlex https://mcp.fedlex-connector.ch

Once connected, Claude can answer questions like "What does art. 1 of the Swiss Civil Code say?" by pulling the text directly from Fedlex.

Deploying Your Own Instance

The server includes a Dockerfile for deploying to any cloud platform that supports Docker containers (Railway, Fly.io, Render, etc.). Set the PORT environment variable and the server runs in HTTP mode. Without PORT, it runs in stdio mode for local use.

Your MCP endpoint will be at https://your-domain. Verify with:

curl https://your-domain/health

Tools

searchbytitle

Search Swiss federal legislation titles in the Classified Compilation (RS/SR). Returns only acts currently in force.

Example: Find the RS number for the data protection act.

search_by_title(query="protection des données")
→ RS 235.1 — Loi fédérale sur la protection des données (LPD)

get_article

Retrieve the official consolidated text of a specific article.

Example: Retrieve art. 1 CC in German.

get_article(rs_number="210", article="1", language="de")
→ Art. 1: Das Gesetz findet auf alle Rechtsfragen Anwendung...

getlawtext

Shortened. The full README is on GitHub.

Nothing above is checked by us. What we check is on the safety report.

Fedlex Connector: common questions

Is Fedlex Connector MCP server safe?
Yes, by our scan: it is graded A (89/100). Read the Fedlex Connector safety report
How do I install Fedlex Connector?
It runs remotely at mcp.fedlex-connector.ch. Add it to Claude Code, Cursor, VS Code or Claude Desktop with the snippets above, or call it through the mcp.market gateway without installing anything.
Does Fedlex Connector need an API key?
Not as far as the registry entry and our scan can tell: no credentials are declared or required.
Is Fedlex Connector maintained?
The last commit was 66 days ago (2026-08-30). The latest release is v1.0.0.
Is Fedlex Connector up?
100% of our last 28 checks got an answer. We check remote servers about four times a day.
What can I use instead of Fedlex Connector?
Servers from other publishers that do the same job: Pubmed MCP server and Legal Data Hunter MCP server.
How does Fedlex Connector compare with other Web search MCP servers?
safety score 89/100 (higher than 85% of 3,470 Web search servers); tools 4 (the typical Web search server has 5); tools that change things 0% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.

Alternatives to Fedlex Connector

Same job from other publishers: the closest match first, then the best rated.

  • Pubmed
    Search PubMed/Europe PMC, fetch articles and full text (PMC/EPMC/Unpaywall), citations, MeSH terms.
    A
  • Legal Data Hunter
    Search 18M+ legal documents worldwide — case law, legislation, and doctrine across 110+ countries.
    A