Ch MCP Server

MCP server for Swiss federal legislation via Fedlex (native ELI), verifiable citations.

Local serverstdioPython

What is the Ch MCP server?

If you already use Ch, the ch mcp server is the piece that lets your assistant work with it directly. MCP server for Swiss federal legislation via Fedlex (native ELI), verifiable citations.

What the server does

MCP server for Swiss federal legislation via Fedlex, the Federal Chancellery's official publication platform. Fedlex is genuinely ELI-native (European Legislation Identifier) even though Switzerland is not an EU member. Multilingual: German, French, Italian, English.

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

  • ch_search_acts — Full-text search over act titles, in one of four languages
  • ch_get_act — Full detail for one act by its Fedlex ELI URI

Credentials and setup notes

Configuration is passed through the environment: CH_ELI_BASE_URL. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

Installation

The server ships on PyPI as ch-eli-mcp, so your MCP client can launch it on demand — there is no separate build step. Add the server block to your client's configuration, restart it, and the tools register themselves.

Where it fits

This sits in the developer tooling group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. Ch's toolset — ch_search_acts, ch_get_act — is a fair guide to whether it matches your workflow. It is maintained by matematicsolutions; worth a glance at recent repository activity before you build anything load-bearing on it.

This entry was verified against Ch's own documentation before publication; SyncDev keeps the directory reviewed rather than auto-generated.

Worth knowing first

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Missing credentials fail quietly in some clients — if no tools show up, check the environment block first.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Available tools

ToolWhat it does
ch_search_actsFull-text search over act titles, in one of four languages
ch_get_actFull detail for one act by its Fedlex ELI URI

How to install the Ch MCP server

{
  "mcpServers": {
    "ch-eli": {
      "command": "uvx",
      "args": ["ch-eli-mcp"],
      "env": {
        "CH_ELI_BASE_URL": "your-value"
      }
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

VariableDescriptionRequired
CH_ELI_BASE_URLEndpoint or connection string the server talks to.Yes

Example prompts to try

  • Use Ch to ch search acts.
  • Use Ch to ch get act.

Frequently asked questions

It connects Ch to MCP-compatible AI assistants such as Claude and Cursor, exposing 2 tools (ch_search_acts, ch_get_act) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Ch directly.