LexAPI MCP Server

Model Context Protocol server for LexAPI — query EUR-Lex, EU case law, and the citation graph from Claude, Cursor, and other MCP-enabled clients.

Local serverstdioMIT

What is the LexAPI MCP Server?

LexAPI is an MCP project maintained in the lex-api/lexapi-mcp repository. The maintainer describes its purpose as “Model Context Protocol server for LexAPI — query EUR-Lex, EU case law, and the citation graph from Claude, Cursor, and other MCP-enabled clients”. Read the project documentation for the complete scope.

Installation

The documented npm package is @lexapi/mcp. The configuration below comes from the maintainer’s example; adapt its paths and account values to your environment.

Configuration values

The example declares LEXAPI_API_KEY. Secret-looking values have been replaced with placeholders. Required and optional labels are shown only when the documentation states them.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
lex_searchStructured EUR-Lex search (text, dates, document type, author, language).
lex_get_documentFull parsed document by CELEX — metadata + articles, sections, tables, annexes.
lex_get_metadataMetadata only (faster than full content).
lex_get_document_by_urlFetch by EUR-Lex URL (pasted from a browser).
lex_recent_documentsRecent Official Journal publications (default 7 days).
lex_cited_byDocuments citing this CELEX (inbound, typed edges).
lex_citesDocuments this CELEX cites (outbound, typed edges).
lex_citation_networkBoth directions in one call.
lex_semantic_case_lawEmbedding search over EU case law (paid plans).
lex_semantic_legislationEmbedding search over EU legislation (paid plans).

How to install the LexAPI MCP Server

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

From the project documentation. Replace placeholders and example paths before connecting.

Configuration

VariableDescriptionRequired
LEXAPI_API_KEYDeclared in the maintainer’s client configuration.Yes