matematicsolutions

mcp-eu-sparql

Community matematicsolutions
Updated

MCP server for EU legislation and CJEU case law via Publications Office SPARQL (EUR-Lex / Cellar).

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 License: MIT Node

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/sparqlz format=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.

MCP Server · Populars

MCP Server · New

    PascaleBeier

    HitKeep

    HitKeep is privacy-first analytics for humans and AI agents, self-hosted or in managed EU/US cloud regions.

    Community PascaleBeier
    prometheus

    prometheus-mcp

    MCP server for LLMs to interact with Prometheus

    Community prometheus
    TencentEdgeOne

    edgeone-makers-mcp

    An MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.

    Community TencentEdgeOne
    bonfire-systems

    reaper-mcp

    A comprehensive Model Context Protocol (MCP) server that enables AI agents to create fully mixed and mastered tracks in REAPER with both MIDI and audio capabilities.

    Community bonfire-systems
    Wanyi424

    wanyi-watermark

    抖音、小红书等平台去水印,视频解析工具,支持MCP服务

    Community Wanyi424