mcp-eu-sparql
Instalacja (jedna komenda)
Opublikowany na npm + MCP Registry (io.github.matematicsolutions/mcp-eu-sparql). Uruchomienie bez klonowania:
npx -y @matematicsolutions/mcp-eu-sparql
Konfiguracja klienta MCP (stdio):
{ "mcpServers": { "mcp-eu-sparql": { "command": "npx", "args": ["-y", "@matematicsolutions/mcp-eu-sparql"] } } }
(Budowanie ze źródeł — niżej.)
MCP server dla prawa UE i orzecznictwa CJEU przez Publications Office SPARQL(Cellar / EUR-Lex).
Tooly
search_by_celex(celex, lang?)— pojedynczy akt po numerze CELEX(np.32016R0679= RODO).search_by_date_range(date_from, date_to, document_type?, lang?, limit?)— akty z zakresu dat, opcjonalnie zawęzone do typu (REG / DIR / DEC / RECO / OPIN).search_cjeu(date_from?, date_to?, lang?, limit?)— wyroki (JUDG)i postanowienia (ORDER) Trybunału Sprawiedliwości UE.
Każda zwrotka zawiera structuredContent.citations z polami title, url (EUR-Lex),celex, publication_date, document_type — Patron czyta to pole i wystawiaw panelu UI jako sekcję "Akty prawa UE (EUR-Lex / CJEU)".
Stack
- Node 18+
@modelcontextprotocol/sdk- Stdio transport (jak
mcp-saos) - Backend: HTTP POST na
https://publications.europa.eu/webapi/rdf/sparqlzformat=application/sparql-results+json
Build + uruchomienie
npm install
npm run build
node dist/index.js # uruchomi serwer na stdio
Wpięcie do Patrona
W patron/backend/mcp-servers.json:
[
{
"name": "saos",
"transport": "stdio",
"command": "node",
"args": ["C:/Users/<TWOJ-UZYTKOWNIK>/mcp-saos/dist/index.js"]
},
{
"name": "eu-sparql",
"transport": "stdio",
"command": "node",
"args": ["C:/Users/<TWOJ-UZYTKOWNIK>/mcp-eu-sparql/dist/index.js"]
}
]
Smoke test
# RODO po CELEX, tytuł po polsku
echo '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_by_celex","arguments":{"celex":"32016R0679","lang":"POL"}}}' \
| node dist/index.js
Powinno zwrócić Rozporzadzenie Parlamentu Europejskiego ... z polskim tytułemi URL EUR-Lex.
Licencja
MIT.
Part of the MateMatic legal stack
This server is one of five MCP connectors covering Polish jurisdiction +EU law, used by Patron(AGPL-3.0) and any other MCP-aware legal AI agent.
- mcp-eu-sparql (this repo) — EU law + CJEU (EUR-Lex / Cellar)
- mcp-saos — common courts, SN, TK, KIO
- mcp-nsa — NSA + 16 WSA administrative courts
- mcp-isap — Polish legislation (Dz.U. + M.P.)
- mcp-krs — Polish company registry (KRS)
All five MCP servers share the same structuredContent.citationscontract: each tool returns an array of {title, url, snippet?, ...metadata}that legal agents can render directly in their citation panel.
See matematicsolutions/.githubfor the full org profile.