Fedlex MCP Server

MCP server for Swiss federal legislation via Fedlex (fedlex.data.admin.ch)

Local serverstdio

What is the Fedlex MCP Server?

MCP server for Swiss federal legislation via Fedlex (fedlex.data.admin.ch)

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
search_legislationSearch by keyword in law titles and abbreviations
list_legislationList all in-force legislation (paginated)
get_legislationGet metadata for a law by SR number or ELI URI
get_legislation_textFetch the full text of a law (HTML or XML)
get_versionsList all historical consolidation versions
get_citationsLaw-to-law citation graph (which laws cite which)
search_provisionsFTS5 full-text search across all article texts (~100k provisions)
lookup_definitionFind formal legal definitions by term across all legislation
find_eu_referencesSwiss laws that implement or reference specific EU directives/regulations
get_article_citationsArticle-to-article citation graph (which specific articles cite which)
get_db_statsDatabase statistics: counts, size, and last ingestion timestamp

How to install the Fedlex MCP Server

{
  "mcpServers": {
    "fedlex": {
      "command": "node",
      "args": [
        "/path/to/fedlex-mcp/dist/index.js"
      ]
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.

Example prompts to try

  • “Use Fedlex MCP to search legislation.”
  • “Use Fedlex MCP to list legislation.”
  • “Use Fedlex MCP to get legislation.”

Frequently asked questions

MCP server for Swiss federal legislation via Fedlex (fedlex.data.admin.ch) Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.