Swiss Federal Law MCP Server (Fedlex)
Pricing
from $10.00 / 1,000 tool calls
Swiss Federal Law MCP Server (Fedlex)
MCP server for AI agents: search the Classified Compilation of Swiss federal law (SR) and fetch the in-force text of an article in German, French, Italian or English (where an English translation exists), from the Federal Chancellery's Fedlex linked data.
Pricing
from $10.00 / 1,000 tool calls
Rating
0.0
(0)
Developer
DARIKAMI GmbH
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
10 hours ago
Last modified
Categories
Security
Limited permissionsShare
An MCP server that gives AI agents the in-force text of Swiss federal law, from the Federal Chancellery's Fedlex data. It searches the Classified Compilation (SR) and returns an article in German, French, Italian or English (where a translation exists). USD 0.01 per answered tool call. A call that finds nothing is free. Apify also bills the server's Standby usage. Works with MCP clients such as Claude, ChatGPT, Cursor and n8n.
| Tool call | What comes back |
|---|---|
search_law("MWSTG") | SR 641.20, the Value Added Tax Act, in force |
search_law("OR") | SR 220, the Code of Obligations, as the first hit |
get_article("641.20", "1", "en") | Art. 1 "Subject and principles", version 2025-03-31, with footnotes |
get_article("641.20", "10", "de") | the German text of Art. 10 in force, with the version date |
search_law("<nonsense>") | a free error result: nothing found |
The calls come from the live smoke test against Fedlex (03.11.2026). The full answer is under Example.
Who uses it
- Legal and tax assistants for Swiss users: quote the exact article instead of the model's memory.
- Compliance agents: look up the data-protection act (DSG), the VAT act (MWSTG) or the Code of Obligations (OR).
- Developers of Swiss legal products: one MCP endpoint instead of a SPARQL and XML parser of their own.
What it does not do
- Federal law only: no cantonal law, no case law.
- The main text only: no transitional provisions, no annexes.
- The English text is a translation without legal force. This is not legal advice.
- It is independent: not affiliated with or endorsed by the Swiss Federal Chancellery.
Tools
Two tools:
| Tool | What it does |
|---|---|
search_law(query, language?, includeRepealed?) | Find acts by words of the title, the abbreviation (MWSTG, OR, DSG, StGB) or the SR number (641.20, also written SR 641.20). Up to 20 acts with SR number, title, abbreviation, in-force status and a link. All words must match; an exact abbreviation or SR number ("OR") comes first; in-force acts only unless includeRepealed. |
get_article(srNumber, article, language?) | The text of one article - 641.20 + 10, 220 + 41, 101 + 8, also 10a, 10bis, 663bbis - with the version date and the footnotes (the amendment history: "Fassung gemäss Ziff. I des BG vom ..., in Kraft seit ..."). Main text only: transitional provisions and annexes are not supported. |
Connect
The actor runs in Apify's Standby mode; the MCP endpoint (Streamable HTTP) is
https://darikami--swiss-federal-law-mcp.apify.actor/mcp, authenticated with your Apify API token as a bearer token:
{"mcpServers": {"swiss-federal-law": {"url": "https://darikami--swiss-federal-law-mcp.apify.actor/mcp","headers": { "Authorization": "Bearer <your Apify token>" }}}}
Input (optional): defaultLanguage - de (default), fr, it, en - used when a call does not name a language.
Example
get_article with { "srNumber": "641.20", "article": "1", "language": "en" } returns, abridged:
{"srNumber": "641.20","language": "en","title": "Federal Act of 12 June 2009 on Value Added Tax (Value Added Tax Act, VAT Act)","shortTitle": "VAT Act","versionDate": "2025-03-31","article": { "number": "Art. 1", "heading": "Subject and principles", "text": "Art. 1 Subject and principles\n1 The Confederation shall levy a general consumption tax ...", "footnotes": ["..."], "truncated": false },"url": "https://www.fedlex.admin.ch/eli/cc/2009/615","source": "Fedlex, Swiss Federal Chancellery (fedlex.admin.ch) - Classified Compilation of Federal Legislation (SR)","notice": "Only the texts published by the Confederation in the Official Compilation are legally binding; ..."}
Pricing (pay per event)
| Event | Price | When |
|---|---|---|
tool-call | USD 0.01 | one answered call of either tool |
Calls that find nothing (unknown act, unknown article, no English version), calls with bad input and calls the source fails are free: they return an error result with the reason. Apify also bills the platform usage of the Standby run, in addition to the tool-call price. We do not set that charge. That usage runs while the server waits for requests, until the idle timeout stops it. Apify's documents describe a maximum cost per run for standard runs, not for a Standby call.
Data source and terms
- Source: the Federal Chancellery's Fedlex linked data - SPARQL
https://fedlex.data.admin.ch/sparqlendpointfor search and for the version that applies today, and the consolidated text as the Akoma Ntoso XML file that Fedlex publishes for each version (https://www.fedlex.admin.ch/filestore/...). Each answer names its source and the act's page on fedlex.admin.ch. - Terms (read 03.11.2026): acts, ordinances and official decisions of the Confederation are not protected by copyright (Art. 5 URG).
- Only the official publication is legally binding. The text served is Fedlex's consolidated version - a
convenience copy; the English version is a translation without legal force. The answer says so (
notice). This is not legal advice. - When more calls arrive than the actor reads at once, the surplus gets a free "busy" error result.
- The text comes as Fedlex publishes it, without warranty.
More official-data actors by darikami: Swiss UID & VAT validator · Swiss electricity tariffs · SEC company fundamentals · German public tenders.