SE

scimorph/eur-lex-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

11 stars 4 forks 品質 66 トレンド 8MIT

AIエージェントとアプリケーションが最新のEU規制に対応

概要

このサーバーは、公式のEUR-Lex SOAP Webサービスに、現代のAIフレンドリーブリッジとして機能します。 複雑なEUR-Lex APIをシンプルで強力なサーバーとして公開し、現代のAIエージェント、デベロッパツール、およびアプリケーションへのアクセス可能な欧州連合法の全身を生成します。 従来のSOAP API をラップすることで、AI エージェントがWSDL や XML の複雑性を把握することなく、自動化された法的研究、コンプライアンス・モニタリング、ポリシー・分析などのユース・ケースを開放します。 * : デスクトップアプリケーション(Claude Desktop、Cursorなど)と、AIエージェントやWebサービスによるリモートアクセスのために、セキュアでローカルな統合を実行します。 * : ネイティブの EUR-Lex エキスパート検索構文を使用して、強力で柔軟なクエリを可能にする専門家の検索ツールを提供します。 * : クリーンなURI(resource://eurlex/document/{celex number})を介して直接特定の法的文書を取得するためのget document by celexリソーステンプレートが含まれています.

概要(AI 翻訳)

このサーバーは、公式のEUR-Lex SOAP Webサービスに、現代のAIフレンドリーブリッジとして機能します。 複雑な EUR-Lex API をシンプルで強力な Model Context Protocol (MCP) サーバとして公開し、最新のAI エージェント、開発者ツール、およびアプリケーションへのアクセス可能な EU 法全体の体を構成します。

従来のSOAP API をラップすることで、AI エージェントがWSDL や XML の複雑性を把握することなく、自動化された法的研究、コンプライアンス・モニタリング、ポリシー・分析などのユース・ケースを開放します。

✨ 機能

Dual-Mode Transport: デスクトップアプリケーション(Claude Desktop、Cursorなど)と、AIエージェントやWebサービスによるリモートアクセスのために、HTTPを超えるセキュアでローカルな統合を実現します。 エキスパート検索ツール:ネイティブのEUR-Lexエキスパート検索構文を使用して強力で柔軟なクエリを可能にする[expert_searchツールを提供します。 *** 直接文書アクセス: [get_document_by_celex]] リソーステンプレートは、クリーンなURI([resource://eurlex/document/{celex_number}])を介して直接特定の法的文書を取得できます.

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

EUR-LEX MCP Server

This server acts as a modern, AI-friendly bridge to the official EUR-Lex SOAP webservice. It exposes the complex EUR-Lex API as a simple and powerful Model Context Protocol (MCP) server, making the entire body of European Union law accessible to modern AI agents, developer tools, and applications.

By wrapping the legacy SOAP API, this server unlocks use cases in automated legal research, compliance monitoring, policy analysis, and more, without requiring AI agents to understand the complexities of WSDL or XML.

✨ Features

  • Dual-Mode Transport: Runs over STDIO for secure, local integration with desktop applications (like Claude Desktop, Cursor) and over HTTP for remote access by AI agents and web services.
  • Expert Search Tool: Provides an expert_search tool that allows for powerful, flexible querying using the native EUR-Lex expert search syntax.
  • Direct Document Access: Includes a get_document_by_celex resource template for fetching specific legal documents directly via a clean URI (resource://eurlex/document/{celex_number}).
  • Clean, Structured Output: Automatically parses the verbose SOAP/XML responses into a clean, easy-to-use JSON format, perfect for LLM consumption.
  • Easy Installation: Can be easily installed into compatible clients using the fastmcp command-line tool.

🔌 Prerequisites

Before you begin, ensure you have the following:

  1. Python 3.11+ and the uv package manager. If you don’t have uv, install it with:
    pip install uv
    
  2. EUR-LEX Webservice Credentials. You must register for a webservice account to get a username and password. You can do this by following the “Webservice registration” link on the EUR-Lex website after logging in.

🚀 Setup & Installation

Follow these steps to get the server up and running on your local machine.

1. Clone the Repository (This is only necessary if you want to install it to Claude Desktop with the practical fastmcp install command)

Clone this project to your local machine.

git clone https://github.com/scimorph/eur-lex-mcp.git
cd eur-lex-mcp

2. Set Up the Environment

Create and activate a virtual environment, then install the required dependencies using uv.

# Create and activate the virtual environment
uv venv

# On macOS/Linux
source .venv/bin/activate

# On Windows
.venv\Scripts\activate

# Install dependencies
uv pip install -r pyproject.toml

3. Configure Credentials

The server requires your EUR-LEX webservice username and password. The most secure way to provide them is through a .env file.

GitHub で README 全文を見る

インストール

npx -y -p fastmcp -p zeep -p python-dotenv fastmcp run https://scimorph/eur-lex-mcp/main/server/server.py
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "eurlex-search": { "command": "npx", "args": [ "-y", "-p", "fastmcp", "-p", "zeep", "-p", "python-dotenv", "fastmcp", "run", "https://scimorph/eur-lex-mcp/main/server/server.py" ], "env": { "EURLEX_USERNAME": "YOUR_EURLEX_USERNAME", "EURLEX_PASSWORD": "YOUR_WEBSERVICE_PASSWORD" } } } }