
Mcp Eu Sparql
io.github.matematicsolutions由 GitHub 帳號 matematicsolutions 發布v1.2.1更新於 Oct 25, 2026
EU legislation and CJEU case law via Publications Office SPARQL (Cellar) + GDPRhub DPA decisions.
概覽
本機 MCP 伺服器,讓助理透過歐盟出版局 SPARQL 端點檢索歐盟立法與歐盟法院判例,並查詢 GDPRhub 上的資料保護機關決定。
- 可以做什麼
- 依 CELEX 編號或日期範圍查找歐盟法案與判決,可依文件類型與語言縮小範圍。依關鍵字、日期或文件類型檢索歐盟法院判決、命令與總法務官意見,或依 ECLI 識別碼取得判決。在 GDPRhub 中全文檢索各國資料保護機關決定及 GDPR 條文評註。為每筆結果回傳結構化引用,含標題、連結、CELEX、ECLI、日期、類型、摘要與授權資訊。
- 適用情境
- 適合助理需要以可追溯引用回答歐盟法、GDPR 或歐盟法院判例問題,或查找各國資料保護機關決定的情境。適用於法律研究與法遵工作,而非一般網頁搜尋。
- 執行需求
- 透過 npx 從 npm 套件以 stdio 在本機執行,需要 Node.js 18 或更新版本。需要連線至歐盟出版局 SPARQL 端點與 GDPRhub MediaWiki API 的外網存取。未宣告帳號、API 金鑰、環境變數或請求標頭。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Mcp Eu Sparql,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
mcp-eu-sparql
Installation (one command)
Published on npm + the MCP Registry (io.github.matematicsolutions/mcp-eu-sparql). Run without cloning:
MCP client configuration (stdio):
(Building from source - below.)
MCP server for EU law and CJEU case law via the Publications Office SPARQL endpoint (Cellar / EUR-Lex), plus national data-protection authority decisions via GDPRhub.
CJEU corpus in Cellar (SPARQL COUNT, 2026-07-08): 34,261 judgments (JUDG), 8,362 orders (ORDER), 14,480 Advocate-General opinions (OPIN_AG) - 57,103 judgments and opinions in total, each with CELEX + ECLI.
Tools
search_by_celex(celex, lang?)- act or judgment by CELEX number (e.g.32016R0679= GDPR,62018CJ0311= Schrems II).search_by_date_range(date_from, date_to, document_type?, lang?, limit?)- acts within a date range, optionally narrowed to a type (REG / DIR / DEC / RECO / OPIN).
search_cjeu(query?, date_from?, date_to?, document_type?, lang?, limit?)- judgments (JUDG), orders (ORDER) and Advocate-General opinions (OPIN_AG) of the Court of Justice of the EU; optional keyword in the title (parties to the case, case number, keywords of the judgment).search_cjeu_by_ecli(ecli, lang?)- CJEU judgment by ECLI identifier (e.g.ECLI:EU:C:2020:559= Schrems II).search_gdprhub(query, limit?)- full-text search in GDPRhub (the noyb project wiki): decisions of national data-protection authorities across the EU + commentary on GDPR articles. Content license: CC BY-NC-SA 4.0 - flagged in thelicensefield of every citation.
Every response includes structuredContent.citations with the fields title, url,
celex?, ecli?, publication_date?, document_type?, snippet?, license? -
Patron reads this field and renders it in the UI panel as the "EU legal acts (EUR-Lex / CJEU)" section.
Stack
- Node 18+
@modelcontextprotocol/sdk- Stdio transport (like
mcp-saos) - Backend: HTTP POST to
https://publications.europa.eu/webapi/rdf/sparqlwithformat=application/sparql-results+json; GET tohttps://gdprhub.eu/api.php(MediaWiki API)
Build + run
Wiring into Patron
In patron/backend/mcp-servers.json:
Tests
License
MIT.
Part of MateMatic
This connector queries its source live. It is one of the Polish and EU source connectors bundled in PATRON and works with any MCP client.
- Poland, one server for all sources: prawo-pl-mcp · each source on its own: mcp-saos · mcp-nsa · mcp-isap · mcp-krs · mcp-eureka · kio-orzeczenia-mcp
- European Union: mcp-eu-sparql (this repo) (live) · mcp-eu-compliance (offline corpus)
- A prepared corpus of Polish and EU law with a citation graph: Repertorium
mcp-saos, mcp-nsa, mcp-isap, mcp-krs and mcp-eu-sparql share one structuredContent.citations
contract: each tool returns an array of {title, url, snippet?, ...metadata}
that legal agents can render directly in their citation panel.
See matematicsolutions/.github for the full org profile.
來源:README.md,提交 1fa0c02
工具
0版本歷史
2- v1.2.1最新Oct 13, 2026
- v1.2.0Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分