Fedlex (Swiss law)

Key facts

Score
90/100
Tools
12
Token estimate
approx. 5,051 tokens
Auth
No key needed for the tools we called
Tool calls
Pass: 3 of 3 real calls passed (2026-12-03 UTC)
Functional tasks
not rated
Local-model runs
not rated
Last tested
2026-12-03 UTC on version 2.1.0
Low-token sort
not rated

From our recorded tests only. not rated = we have no recorded data for that field. Tool calls are direct calls with no model in the loop; functional tasks and local-model runs are separate, smaller test sets and are not scored. Evidence for each line is below (what we tested · methodology).

90/100
Last tested 2026-12-03 UTC (Fresh: tested within 30 days) Working (tool call tested 2026-12-03 UTC) No key needed for the tools we called

Advisories: not yet checked

Security review: not tested

Score = points from our five tests (install, handshake, maintenance, docs, license). Not a quality or security rating. Methodology

  • Install20/20
  • Handshake30/30
  • Maintenance15/25
  • Docs15/15
  • License10/10

Tested pypi fedlex-mcp 2.1.0 (MIT License; repo malkreide/fedlex-mcp). Installed pinned with scripts off (uv venv, Python 3.13) and launched: initialize and tools/list over stdio succeeded with no credentials and listed 12 tools (12 annotated by the server: 12 read-only, 0 destructive). Real calls: 3 of 3 real function calls passed.
Tool-call test (2026-12-03 UTC, direct MCP stdio client, no LLM): pass. 3 of 3 real function calls passed. Evidence: local test run, Dec 3, 2026 UTC.

Transport (tested 2026-12-03 UTC): stdio

Token cost (estimate): approx. 5051 tokens, cl100k estimate (12 tools, measured 2026-12-03 UTC, version 2.1.0). This is an estimate from our testing of the tool names, descriptions and input schemas, counted with cl100k_base.

Permissions: 12 read, 0 write (state-changing), 0 unclassified · Auth: none · Rate limit: unknown · Pricing unit: unknown

Auth: none. Rate limit: unknown. Pricing unit: unknown.

  • fedlex_get_consultation — read
  • fedlex_get_law_by_sr — read
  • fedlex_get_law_history — read
  • fedlex_get_open_consultations — read
  • fedlex_get_recent_publications — read
  • fedlex_get_upcoming_changes — read
  • fedlex_search_consultations — read
  • fedlex_search_gazette — read
  • fedlex_search_laws — read
  • fedlex_search_treaties — read
  • termdat_get_concept — read
  • termdat_lookup_term — read

handshake and tools listed without a recorded key or OAuth

Score 90/100 · Tools 12 · Token cost approx. 5,051 tokens · Compare · Last tested 2026-12-03 UTC · Version tested 2.1.0 · Package fedlex-mcp · Repo malkreide/fedlex-mcp

Summary: Fedlex (Swiss law) completed an MCP handshake without credentials and exposed 12 tools.

Evidence summary

Handshake
pass
Tools listed
12
Context cost
approx. 5051 tokens, cl100k estimate (12 tools, measured 2026-12-03 UTC, version 2.1.0; an estimate) ranking · add up your servers' context cost
API key
No key needed for the tools we called
Tested
2026-12-03 UTC

Test results

TestResultPointsEvidence
installpass20uv pip install fedlex-mcp (Python venv, Linux) succeeded in 0s.
handshakepass30MCP initialize + tools/list over stdio succeeded with no credentials; 12 tools listed in 1.3s.
maintenancepartial15Repo pushed 66 days before test.
docspass15README over 3,000 chars; install instructions present; mcpServers config example present. Check of the package's own README (PyPI long_description (package README)).
licensepass10MIT License (OSI-approved).

Local-model readiness

Token cost (estimate): approx. 5051 tokens, cl100k estimate for 12 tools · about 62% of an 8k context. This is an estimate from our testing (counted with cl100k_base).

Small-model friendly (schema heuristic, not a model result): unknown.

Not tested

Small-model task runs: Not yet tested.

What we tested and what we didn't

Tested on 2026-12-03 UTC

  • Install from the registry
  • We connected with no credentials and asked for its tool list: it listed 12 tools (Method details: MCP initialize then tools/list)
  • Maintenance signals (last push, archived/deprecated status)
  • Docs (README length, install and config example)
  • License (OSI-approved or not)
  • Tool-call test: 3 of 3 passed (2026-12-03 UTC)
  • Token cost (estimate)

Not tested

  • Security: not audited (no code review, no permission or data-flow analysis)
  • Real tasks (no functional task runs yet)
  • Behaviour with real credentials or a real account
  • Performance, rate limits or load
  • Correctness of results beyond the listed tasks
  • Small local-model task runs (not run for this server)

Methodology: how we test. A high score means it installs and responds, not that giving it access to your data carries no risk.

Known security issues

Not yet checked.

Monthly roundup: MCP security issues, October 2026.

Tool list changes

Baseline recorded from the 2026-12-03 UTC test run; changes appear after the next test.

Snapshot hash (fingerprint of the tool list)

d5c598d2677f: SHA-256 of the canonical tool names, descriptions and input schemas. If it changes, the tool list changed.

Feeds: RSS · JSON.

Raw test record (JSON)
{
  "name": "fedlex-mcp",
  "version": "2.1.0",
  "registry": "pypi",
  "status": "working",
  "tested": "2026-12-03",
  "tools_count": 12,
  "deprecated": false,
  "archived": false,
  "tests": {
    "install": [
      "pass",
      20,
      "`uv pip install fedlex-mcp` (Python venv, Linux) succeeded in 0s."
    ],
    "handshake": [
      "pass",
      30,
      "MCP `initialize` + `tools/list` over stdio succeeded with no credentials; 12 tools listed in 1.3s."
    ],
    "maintenance": [
      "partial",
      15,
      "Repo pushed 66 days before test."
    ],
    "docs": [
      "pass",
      15,
      "README over 3,000 chars; install instructions present; `mcpServers` config example present. Check of the package's own README (PyPI long_description (package README))."
    ],
    "license": [
      "pass",
      10,
      "MIT License (OSI-approved)."
    ]
  },
  "testedAt": "2026-12-03T07:07:38.147Z"
}

Install

uvx fedlex-mcp

Pin the version we tested

uvx fedlex-mcp==2.1.0

pip install fedlex-mcp==2.1.0

tested 2026-12-03 UTC. Newer versions may differ and were not tested by us.

{
  "mcpServers": {
    "fedlex-swiss-law": {
      "command": "uvx",
      "args": [
        "fedlex-mcp==2.1.0"
      ]
    }
  }
}

Tools listed

fedlex_search_laws, fedlex_get_law_by_sr, fedlex_get_recent_publications, fedlex_get_upcoming_changes, fedlex_search_gazette, fedlex_get_law_history, fedlex_search_treaties, fedlex_get_open_consultations, fedlex_search_consultations, fedlex_get_consultation, termdat_lookup_term, termdat_get_concept

Quick config

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

Add to config Opens the config generator with this server selected.

Setup

  1. Install. Run uv pip install fedlex-mcp (Python venv). This is the exact command we ran on 2026-12-03 UTC.
  2. Configure. Add the mcpServers entry below to your MCP client config.
  3. Verify. Restart the client and check that tools/list returns tools (12 in our test).
{
  "mcpServers": {
    "fedlex-swiss-law": {
      "command": "uvx",
      "args": [
        "fedlex-mcp"
      ]
    }
  }
}

Test history

Follow this server (RSS) · Monthly changelog

Related: Best read-only MCP servers

FAQ

Is Fedlex (Swiss law) deprecated?

No. Fedlex (Swiss law) was not deprecated or archived when we last tested it on 2026-12-03 UTC.

What replaces Fedlex (Swiss law)?

Nothing; Fedlex (Swiss law) is not deprecated as of 2026-12-03 UTC.

Does Fedlex (Swiss law) need an API key?

No. It completed an MCP handshake with no credentials and listed 12 tools.

Embed the badge

TestedMCP: 90/100, tested 2026-12-03 UTC

Every tested server gets a free embeddable badge. It shows the current score and test date and expires after 90 days. Testing is free; payment never changes a score.

Claim this listing · Report an issue