MCP

Connect AI tools such as Claude or ChatGPT to Onlinekommentar and search and read commentaries from inside them. The endpoint is public and needs no account or key. Add https://onlinekommentar.ch/mcp as a remote MCP server in your tool of choice.

Tools

  • search_commentaries - Full text search across titles, authors, editors, legal text and commentary content, returning a page of matching commentaries with a snippet of the matching passage

  • get_commentary - Retrieve one commentary in full by its ID, including its content, the legal text it comments on and its suggested citations

search_commentaries Parameters

  • search - Full text query. Omit to list commentaries without searching

  • language - Language edition to search: de, en, fr or it. Defaults to en. Each language is a separate commentary with its own text

  • legislative_act - Restrict results to one legislative act, given as the ID returned in a result's legislative_act

  • sort - Sort order: title, -title, date or -date. Defaults to -date

  • page - Page of results to return, 50 per page

get_commentary Parameters

  • id - The commentary's ID, as returned in a search_commentaries result

Notes

  • The server implements MCP revisions 2026-07-28, 2025-11-25 and 2025-06-18

  • Requests are limited to 60 per minute per client, shared with the JSON API

  • Repeat searches are cached briefly, so a newly published commentary may take a few minutes to appear