Fedlex Connector
Search Swiss federal legislation: laws, articles, amendments via the Fedlex SPARQL endpoint.
我該用這個嗎
品質與安全性
發現項目(2)
- HIGH
- LOW在 get_article 中
根據工具定義與協定合規性的自動化分析。
上下文成本
這是每次將伺服器的工具載入模型上下文時所消耗的約略 token 數量。數量越高,可用於其他工作的注意力就越少。
安裝
一鍵安裝
將以下內容加入你的 `claude_desktop_config.json` 檔案:
{
"mcpServers": {
"fedlex-connector": {
"url": "https://mcp.fedlex-connector.ch/"
}
}
}遠端端點
https://mcp.fedlex-connector.ch/streamable-http它能做什麼
工具清單
工具(4)
🟢search_by_title(query, language)
Search Swiss federal legislation titles in the Classified Compilation (RS/SR) on Fedlex. Use to find the RS number of a law when you know its name but not its number. Searches titles only, not article content. Returns only acts currently in force.
輸入結構描述
{
"type": "object",
"properties": {
"query": {
"type": "string",
"description": "Keywords to match against act titles (e.g. 'code civil', 'protection des données')"
},
"language": {
"type": "string",
"enum": [
"fr",
"de",
"it"
],
"description": "Language for results (default: de)"
}
},
"required": [
"query"
]
}🟢get_article(rs_number, article, language, date)
Retrieve a single article when you already know the EXACT article number (e.g. from a cross-reference). Do NOT call this tool repeatedly to search for provisions — use get_law_text instead to fetch the full act or a section and locate relevant articles in the text.
輸入結構描述
{
"type": "object",
"properties": {
"rs_number": {
"type": "string",
"description": "RS/SR number (e.g. '210' for CC, '220' for CO, '311.0' for CP)"
},
"article": {
"type": "string",
"description": "Article number (e.g. '3', '28a', '41')"
},
"language": {
"type": "string",
"enum": [
"fr",
"de",
"it"
],
"description": "Language (default: de)"
},
"date": {
"type": "string",
"description": "Consolidation date in YYYY-MM-DD format. Defaults to the latest available version."
}
},
"required": [
"rs_number",
"article"
]
}🟢get_law_text(rs_number, section, language, page)
Retrieve the official consolidated text of a Swiss federal act (or a specific title/chapter) directly from Fedlex (fedlex.admin.ch). This is the PRIMARY tool for answering Swiss law questions — always start here. Fetch the full act or a specific section, then locate relevant provisions in the returned text. Prefer this over get_article unless you already know the exact article number.
輸入結構描述
{
"type": "object",
"properties": {
"rs_number": {
"type": "string",
"description": "RS/SR number (e.g. '210' for CC, '220' for CO)"
},
"section": {
"type": "string",
"description": "Limit to a specific title, chapter, or part (e.g. 'Titre huitième', 'Zweiter Teil'). If omitted, returns the full act."
},
"language": {
"type": "string",
"enum": [
"fr",
"de",
"it"
],
"description": "Language (default: de)"
},
"page": {
"type": "number",
"description": "Page number for paginated results (default: 1). Large acts are split across multiple pages."
}
},
"required": [
"rs_number"
]
}🟢list_amendments(rs_number, since, language)
List consolidation version dates for a Swiss federal act. Returns the dates each consolidated version took effect.
輸入結構描述
{
"type": "object",
"properties": {
"rs_number": {
"type": "string",
"description": "RS/SR number"
},
"since": {
"type": "string",
"description": "Start date in YYYY-MM-DD format (default: 1 year ago)"
},
"language": {
"type": "string",
"enum": [
"fr",
"de",
"it"
],
"description": "Language for amendment titles (default: de)"
}
},
"required": [
"rs_number"
]
}建議的提示詞
get_articlesearch_by_titlesearch_by_titlelist_amendmentsget_article社群
證據