MCP.so
ログイン

LexAPI

@Lex-API

LexAPI について

Query EUR-Lex and EU case law from Claude, Cursor, and other MCP-enabled tools. 10 tools for structured search, CELEX/URL document fetch, recent Official Journal, citation graph, and semantic search over case law + legislation.

基本情報

カテゴリ

その他

トランスポート

stdio

公開者

Lex-API

投稿者

Nejc Fošnarič

設定

以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。

{
  "mcpServers": {
    "lexapi": {
      "command": "npx",
      "args": [
        "-y",
        "@lexapi/mcp"
      ],
      "env": {
        "LEXAPI_API_KEY": "<YOUR_LEXAPI_API_KEY>"
      }
    }
  }
}

ツール

10

Structured EUR-Lex search (text, dates, document type, author, language).

Full parsed document by CELEX — metadata + articles, sections, tables, annexes.

Metadata only (faster than full content).

Fetch by EUR-Lex URL (pasted from a browser).

Recent Official Journal publications (default 7 days).

Documents citing this CELEX (inbound, typed edges).

Documents this CELEX cites (outbound, typed edges).

Both directions in one call.

Embedding search over EU case law (paid plans).

Embedding search over EU legislation.

概要

What is LexAPI?

A Model Context Protocol (MCP) server for LexAPI that allows AI tools like Claude and Cursor to query EUR-Lex, EU case law, and the citation graph. It is intended for users who want to retrieve and analyse EU legal documents via natural language prompts.

How to use LexAPI?

Install via npm (npx -y @lexapi/mcp), set the LEXAPI_API_KEY environment variable (get a free key at lex-api.com/dashboard), and configure the server in your MCP client (e.g., Claude Desktop, Claude Code, or Cursor). The server exposes ten tools for searching, fetching, and exploring EU legal documents and citations.

Key features of LexAPI

  • Structured EUR-Lex search by text, dates, type, author, language
  • Full parsed document retrieval by CELEX number
  • Metadata-only fetch (faster than full content)
  • Fetch documents by EUR-Lex URL
  • Recent Official Journal publications (default 7 days)
  • Inbound and outbound citation graphs with typed edges
  • Semantic embedding search over EU case law and legislation

Use cases of LexAPI

  • Ask an AI assistant to summarise a specific EU regulation like Article 17 of the GDPR
  • Identify which regulations amend a given directive (e.g., Directive 95/46/EC)
  • Retrieve the full text of a legal document from an EUR-Lex URL
  • Explore the citation network around a specific CELEX document
  • Search recent Official Journal publications for new legislative acts

FAQ from LexAPI

What is the free tier limit?

The free tier provides 50 API calls per day; semantic tools (embedding search) require a paid plan.

What environment variables are needed?

LEXAPI_API_KEY is required. An optional LEXAPI_BASE_URL can override the default endpoint for self-hosted or staging setups.

Which tools require a paid plan?

Only lex_semantic_case_law (embedding search over EU case law) is listed as requiring a paid plan; all other tools work on the free tier.

How is the server invoked?

The server runs as a stdio-based MCP server via npx -y @lexapi/mcp with the API key in the environment. No network transport is mentioned; authentication is API-key based.

Where does the data come from?

All data comes from EUR-Lex and the LexAPI platform. The server queries LexAPI’s API at https://lex-api.com/api/v1 by default.

コメント

「その他」の他のコンテンツ