MapleStats MCP
Canadian open data: StatCan, Census, PUMFs, Bank of Canada, CMHC and open-data portals (EN/FR).
作者による説明(英語の原文)
Search Swiss federal legislation: laws, articles, amendments via the Fedlex SPARQL endpoint.
この3つを1つのスコアにまとめることはしません。意見、測定、人気はそれぞれ別のものだからです。
このサーバーのやさしい解説はまだ書いていません。以下はレジストリから読み取った事実です。
使っているAIアプリを選んで、設定をコピーしてください。
必要なもの
どのアプリを使っていますか?
上でアプリを選んでください。選んだアプリを覚えておくので、次からはボタンに「…にインストール」と表示されます。
ウェブ、デスクトップ、モバイルのClaudeで使えます:
https://mcp.fedlex-connector.ch/ターミナルでこれを実行します
claude mcp add --transport http fedlex-connector https://mcp.fedlex-connector.ch/プロジェクトの .cursor/mcp.json、または ~/.cursor/mcp.json に貼り付けます
{
"mcpServers": {
"fedlex-connector": {
"url": "https://mcp.fedlex-connector.ch/"
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
プロジェクトの .vscode/mcp.json に貼り付けます
{
"servers": {
"fedlex-connector": {
"type": "http",
"url": "https://mcp.fedlex-connector.ch/"
}
}
}ブラウザがアプリを開いてよいか確認し、そのあとアプリが設定を表示して確認を求めます。キーの値は空欄のままなので、自分で入力してください。
ChatGPTがつなげるのは、インターネット上のサーバーだけです:
https://mcp.fedlex-connector.ch/メニューの名前は、プランや時期によって少し違うことがあります。
選んだアプリは、この端末のCookieに保存されます。アカウントは不要です。
この設定は、作者のレジストリ登録情報から作成しています。READMEと違う場合は、READMEに従ってください。
このサーバーのツール一覧はまだ読み取っていません。エンドポイントは順番にチェックしています。
誰でも見られる情報をチェックしており、コードは読んでいません。当てはまらない項目は数に入れていません。 · 2026年11月9日にチェック
レジストリ名はドメイン fedlex-connector.ch で確認済みです(レジストリがドメインの所有を確認しています)
このリポジトリはまだGitHubから読み取っていません
このリポジトリはまだGitHubから読み取っていません
まだチェックしていません。エンドポイントは順番にチェックしています
まだチェックしていません。エンドポイントは順番にチェックしています
まだチェックしていません。エンドポイントをチェックするときにツール一覧を読み取ります
レジストリでこのカテゴリにある有効なすべてのサーバーと比較しています。スターは、公開者がリポジトリの所有者である場合だけ数えます。
当てはまる基本チェック1項目のうち1項目に合格しました。コードは読んでいません。キーやトークンを追加する前に、サーバーがどんなアクセスを求めているかを確認し、必要な権限だけを持つキーを使ってください。
レジストリには必須のキーは載っていません。ただし、最初に使うときにサインインを求めるサーバーもあります。
作者のクラウドで動きます。インストール不要でインターネット経由でつながりますが、送った内容は作者のサーバーを通ります。
GitHubリポジトリの最終更新は–、最新バージョン(1.0.0)がレジストリに届いたのは7 か月前です。
Claude Desktop、Claude Code、Cursor、VS CodeなどのMCP対応アプリで使えます。URLでつながるので、リモートMCPサーバーに対応したアプリ(開発者モードのChatGPTなど)でも使えます。
同じカテゴリには:MapleStats MCP, Socrata MCP Server, OffshoreProz Agent Company
同じカテゴリで、ほかの作者が作ったサーバー。スターの多い順。
カードの見方:↓ 週あたりのダウンロードi★ GitHubスターi3つの柱:レビュー · チェック · 利用状況i更新=最新バージョンをレジストリに公開した日i
Canadian open data: StatCan, Census, PUMFs, Bank of Canada, CMHC and open-data portals (EN/FR).
A legal home for AI agents: Wyoming LLC US$299 + US$185/yr, or Nevis. Free diagnostic.
作者のリポジトリから書かれたとおりにコピーしたものです。PopNx MCPは内容を確認・推奨していません。HTML、画像、スクリプトは取り除いています。リンクはこのサイトの外へ移動します。
Access Swiss Federal Law from Claude
A connector that gives Claude direct access to the official text of Swiss federal legislation on Fedlex, built on the Model Context Protocol (MCP). Covers all acts in the Classified Compilation (SR, RS) in German, French, and Italian.
Swiss federal law is published exclusively on Fedlex, but the frontend is a JavaScript single-page application that Claude's built-in web tools cannot render. However, Fedlex exposes two machine-readable interfaces that work without JavaScript:
fedlex.data.admin.ch/sparqlendpoint) for metadata queriesfedlex.admin.ch/filestore/...) serving consolidated legislationThis MCP server bridges the gap: it queries SPARQL for metadata (RS numbers, consolidation dates, amendment history), fetches and parses the HTML for the actual legislative text, and returns it to Claude in a structured format. No proprietary database, no cache -- just a stateless bridge to Fedlex's open data infrastructure.
The server supports two transports: stdio for local use (Claude Code, Claude Desktop) and HTTP for remote use (claude.ai). You can use one or both.
The server is hosted at:
https://mcp.fedlex-connector.ch
claude.ai / Claude Desktop:
https://mcp.fedlex-connector.chWe suggest naming it "Fedlex Connector".
Claude Code:
claude mcp add --transport http fedlex https://mcp.fedlex-connector.ch
Once connected, Claude can answer questions like *"What does art. 1 of the Swiss Civil Code say?"* by pulling the text directly from Fedlex.
The server includes a Dockerfile for deploying to any cloud platform that supports Docker containers (Railway, Fly.io, Render, etc.). Set the PORT environment variable and the server runs in HTTP mode. Without PORT, it runs in stdio mode for local use.
Your MCP endpoint will be at https://your-domain. Verify with:
curl https://your-domain/health
search_by_titleSearch Swiss federal legislation titles in the Classified Compilation (RS/SR). Returns only acts currently in force.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | Yes | Keywords to match against act titles |
language | fr de it | No | Language for results (default: de) |
Example: Find the RS number for the data protection act.
search_by_title(query="protection des données")
→ RS 235.1 — Loi fédérale sur la protection des données (LPD)
get_articleRetrieve the official consolidated text of a specific article.
| Parameter | Type | Required | Description |
|---|---|---|---|
rs_number | string | Yes | RS number (e.g. "210" for CC, "220" for CO) |
article | string | Yes | Article number (e.g. "3", "28a", "260bis") |
language | fr de it | No | Language (default: de) |
date | string | No | Consolidation date (YYYY-MM-DD); defaults to latest |
Example: Retrieve art. 1 CC in German.
get_article(rs_number="210", article="1", language="de")
→ Art. 1: Das Gesetz findet auf alle Rechtsfragen Anwendung...
get_law_textRetrieve the full text of an act or a specific title/chapter. This is the primary tool for reading and analysing legislation from the source.
| Parameter | Type | Required | Description |
|---|---|---|---|
rs_number | string | Yes | RS number |
section | string | No | Limit to a title/chapter (e.g. "Titre huitième") |
language | fr de it | No | Language (default: de) |
page | number | No | Page for paginated results (default: 1) |
Large acts are paginated automatically (splitting at article boundaries). Each response includes the total page count.
Example: Retrieve Swiss tenancy law (CO, Title 8).
get_law_text(rs_number="220", section="Titre huitième", language="fr")
→ [Full text of tenancy provisions, art. 253 onwards]
list_amendmentsList recent amendments (consolidation versions) for a given act.
| Parameter | Type | Required | Description |
|---|---|---|---|
rs_number | string | Yes | RS number |
since | string | No | Start date, YYYY-MM-DD (default: 1 year ago) |
language | fr de it | No | Language for titles (default: de) |
Example: Check recent changes to the CO.
list_amendments(rs_number="220", since="2024-01-01")
→ 2026-01-01 — Version in force from 2026-01-01 (current) 2025-10-01 — Version in force from 2025-10-01 to 2025-12-31 ...
Claude ──MCP──> Fedlex Connector ──SPARQL──> fedlex.data.admin.ch
──HTTP───> fedlex.admin.ch/filestore/...
Metadata path (SPARQL): The server queries Fedlex's SPARQL endpoint (JOLux ontology) to resolve RS numbers to internal URIs, find the latest consolidation date, discover HTML file URLs, and list amendment history.
Text path (HTML filestore): Once the server knows which HTML file(s) to fetch, it retrieves them from the static filestore, parses the DOM with Cheerio, and extracts the requested article, section, or full text. Large acts (like the CO with 1,100+ articles) are split across multiple HTML files which the server discovers and stitches together automatically.
Data flow for a typical request:
get_article(rs_number="210", article="3")Every response includes a footer noting that only the Official Compilation (RO/AS) published by the Federal Chancellery is legally authoritative.
src/
index.ts # Entry point: picks stdio or HTTP transport based on PORT env var server.ts # MCP server factory: tool definitions and request handlers types.ts # TypeScript interfaces, error types, constants sparql.ts # SPARQL endpoint queries (metadata, RS resolution, amendments) filestore.ts # HTML fetching, parsing, article/section extraction, pagination build/ # Compiled JavaScript (generated by tsc) Dockerfile # Container build for cloud deployment
| Command | Description |
|---|---|
npm run build | Compile TypeScript to ./build |
npm start | Run the MCP server (stdio mode) |
npm run start:http | Run locally in HTTP mode on port 3000 |
npm run dev | Watch mode (auto-recompile on changes) |
| Package | Purpose |
|---|---|
@modelcontextprotocol/sdk | MCP server SDK (tool registration, stdio transport) |
cheerio | HTML parsing for extracting legislative text |
The server returns structured errors with codes and actionable suggestions:
| Code | Meaning |
|---|---|
RS_NOT_FOUND | RS number not found in the SPARQL graph |
ARTICLE_NOT_FOUND | Article does not exist in the act (with nearby IDs listed) |
SPARQL_UNAVAILABLE | SPARQL endpoint is down or returned an error |
FILESTORE_ERROR | HTML file not found or fetch failed |
INVALID_INPUT | Missing or malformed parameters |
PARSE_ERROR | HTML parsing failure |
get_law_text only retrieves full acts as they are currently in force and does not return past versions. For historical text, use get_article, which supports a date parameter.section parameter in get_law_text uses heading-text matching which works well for standard section names but may not match unusual headings. When filtering fails, the full act text is returned with a note.MIT