mcp-eu-sparql
Provides tools to search European Union legal acts and CJEU case law via the Publications Office SPARQL endpoint, with lookup by CELEX, ECLI, date range, document type, and keyword.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-eu-sparql find the GDPR by CELEX 32016R0679 and the Schrems II judgment"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-eu-sparql
Installation (one command)
Run straight from GitHub (no npm release needed - npx clones the repo and the
prepare script compiles TypeScript on install; Node 18+ and git required):
npx -y github:pwasniowski/mcp-eu-sparqlClaude Desktop (claude_desktop_config.json; macOS:
~/Library/Application Support/Claude/, Windows: %APPDATA%\Claude\):
{
"mcpServers": {
"eu-sparql": {
"command": "npx",
"args": ["-y", "github:pwasniowski/mcp-eu-sparql"]
}
}
}Claude Code: claude mcp add eu-sparql -- npx -y github:pwasniowski/mcp-eu-sparql
Once published to npm under @legal-link/mcp-eu-sparql, npx -y @legal-link/mcp-eu-sparql
works the same way. This is a fork of
matematicsolutions/mcp-eu-sparql (MIT).
(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.
Related MCP server: mcp-eur-lex
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?, include_corrigenda?)acts within a date range, optionally narrowed to a type (REG / DIR / DEC / RECO / OPIN; REG/DIR/DEC include implementing and delegated acts). Results are deduplicated by CELEX, titled in
langwith an English (then any-language) fallback that is flagged; corrigenda are excluded unlessinclude_corrigenda=true, and labelledCORRIGENDUMwhen included.
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, keywords of the judgment - served by the Virtuoso full-text index) or a case number (C-80/11,T-354/24- resolved directly to CELEX).search_cjeu_by_ecli(ecli, lang?)- CJEU judgment by ECLI identifier (e.g.ECLI:EU:C:2020:559= Schrems II).search_gdprhub(query, limit?)- 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. GDPRhub's own full-text index is currently near-empty (Dec 2026:Schrems-> 0 hits,data-> 1 of ~5,300 articles), so the tool falls back to matching page titles (authority, case number, parties) and categories (Article 33 GDPR,UODO (Poland)); each citation says how it matched (match).
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/sdkStdio 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
npm install
npm run build
node dist/index.js # starts the server on stdioWiring into Patron
In patron/backend/mcp-servers.json:
[
{
"name": "saos",
"transport": "stdio",
"command": "node",
"args": ["C:/Users/<YOUR-USER>/mcp-saos/dist/index.js"]
},
{
"name": "eu-sparql",
"transport": "stdio",
"command": "node",
"args": ["C:/Users/<YOUR-USER>/mcp-eu-sparql/dist/index.js"]
}
]Tests
npm run drift # offline: INSTRUCTIONS consistent with TOOLS and ErrorCode
npm run test:offline # offline: query builders + parsers on fixtures (no network)
npm run smoke # live: all 5 tools against Cellar + GDPRhubLicense
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.
Available Tools
5 toolssearch_by_celexARead-onlyIdempotent
Znajdz akt prawny UE lub orzeczenie CJEU po numerze CELEX. Numer CELEX jest unikalny i identyfikuje dokument niezaleznie od jezyka. Przyklady: 32016R0679 (RODO), 31995L0046 (uchylona dyrektywa o ochronie danych), 62018CJ0311 (wyrok Schrems II). Zwraca tytul w wybranym jezyku, ECLI (dla case-law) i EUR-Lex URL.
Inputs: celex (required), lang.
search_by_date_rangeARead-onlyIdempotent
Znajdz akty prawne UE z zakresu dat (po dacie dokumentu). Opcjonalnie filtruj po typie (REG=rozporzadzenie, DIR=dyrektywa, DEC=decyzja, RECO=zalecenie, OPIN=opinia; REG/DIR/DEC obejmuja tez akty wykonawcze i delegowane). Wyniki deduplikowane po CELEX, z tytulem w jezyku lang (fallback EN). Sprostowania (CORRIGENDUM) domyslnie pomijane - include_corrigenda=true je dolacza. Maks. 50 wynikow na zapytanie.
Inputs: date_to (required), date_from (required), lang, limit, +2 more.
search_cjeuARead-onlyIdempotent
Wyszukaj orzecznictwo Trybunalu Sprawiedliwosci UE (CJEU): wyroki (JUDG), postanowienia (ORDER) i opinie rzecznikow generalnych (OPIN_AG). Opcjonalnie zawez do zakresu dat, typu dokumentu i keyworda w tytule (tytul CJEU zawiera strony sprawy, sygnature i slowa kluczowe wyroku). Zwraca CELEX (np. 62018CJ0311), ECLI, date wydania, tytul (jezyk wg lang) i EUR-Lex URL.
Inputs: lang, limit, query, date_to, +2 more.
search_cjeu_by_ecliARead-onlyIdempotent
Znajdz orzeczenie CJEU po identyfikatorze ECLI (European Case Law Identifier), np. 'ECLI:EU:C:2020:559' (Schrems II). Zwraca CELEX, date wydania, tytul (strony + sygnatura + slowa kluczowe) i EUR-Lex URL.
Inputs: ecli (required), lang.
search_gdprhubARead-onlyIdempotent
Wyszukiwanie w GDPRhub (gdprhub.eu) - wiki projektu noyb agregujaca decyzje krajowych organow ochrony danych (DPA) z calej UE oraz komentarze do artykulow RODO. Pelny tekst (gdy indeks GDPRhub dziala) + dopasowanie po tytulach stron (organ, sygnatura, strony sprawy) + kategorie ('Article 33 GDPR', 'UODO (Poland)'). Zwraca tytul, opis, URL i rodzaj dopasowania (match). Licencja tresci: CC BY-NC-SA 4.0 (pole license).
Inputs: query (required), limit.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Tools mostly target distinct access paths: CELEX lookup, date-range act search, CJEU keyword search, ECLI lookup, and GDPRhub search. Some overlap remains because search_by_celex can also retrieve CJEU items and search_cjeu_by_ecli is another identifier-based lookup, so an agent may occasionally hesitate between them.
All tool names use lowercase snake_case and a search_ prefix, giving a predictable pattern. Minor inconsistency: search_by_date_range is less explicit about targeting EU acts, while the CJEU tools include the resource name.
Five tools is well-scoped for a focused EU legal search server; each corresponds to a meaningful discovery path without filler.
Core lookup paths by CELEX, ECLI, date range, CJEU case law and GDPRhub are covered. However, there is no keyword/title search for EU legislation, so finding an act by name without a CELEX or date is a notable gap, and pagination/full-text retrieval are limited.
Maintenance
Related MCP Connectors
Search and monitor live EU legislation, regulations, and directives directly from EUR-Lex.
Search EU legislation, CJEU case law, and treaties; traverse CELLAR graph; browse EuroVoc concepts.
Temporal search and comparison for official Luxembourg and reviewed EU law, with provenance.
Search national and EU case law, legislation and regulation, with citations you can verify.
Related MCP Servers
- AlicenseAqualityBmaintenanceEnables searching and retrieving EU legal documents (regulations, directives, court decisions) via the EUR-Lex Cellar API, supporting full-text search, metadata, citations, and consolidated versions without requiring an API key.11123 npm7MIT
- AlicenseNot gradedqualityCmaintenanceEnables searching and quoting EU legislation with verifiable EUR-Lex citations, including GDPR, NIS2, DORA, and the EU AI Act.98 npmMIT
- AlicenseAqualityCmaintenanceMCP server for EU law via the EUR-Lex / Cellar SPARQL endpoint — legislation (ELI/CELEX) and CJEU case-law (ECLI) with verifiable citations.397 npm1MIT

LexAPI MCPofficial
AlicenseAqualityCmaintenanceEnables querying EU legal documents, case law, and citation graphs through natural language using the LexAPI.10549 npm3MIT