LexAPI

by Lex-API

393 downloads
Not rated
GitHub

About

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.

Details

Author
Lex-API
Downloads
393
Categories
Other

- 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

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name LexAPI
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

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.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

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

McpServers

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

LexAPI MCP

Model Context Protocol server for LexAPI — query EUR-Lex, EU case law, and the citation graph from Claude, Cursor, and other MCP-enabled AI tools. Ask your assistant: "summarize Article 17 of the GDPR" or "which regulations amend Directive 95/46/EC?" and the model calls LexAPI directly.

Tools

| Tool | What it does | |---|---| | lex_search | Structured EUR-Lex search (text, dates, document type, author, language). | | lex_get_document | Full parsed document by CELEX — metadata + articles, sections, tables, annexes. | | lex_get_metadata | Metadata only (faster than full content). | | lex_get_document_by_url | Fetch by EUR-Lex URL (pasted from a browser). | | lex_recent_documents | Recent Official Journal publications (default 7 days). | | lex_cited_by | Documents citing this CELEX (inbound, typed edges). | | lex_cites | Documents this CELEX cites (outbound, typed edges). | | lex_citation_network | Both directions in one call. | | lex_semantic_case_law | Embedding search over EU case law (paid plans). | | lex_semantic_legislation | Embedding search over EU legislation. |

Install

Get a LexAPI API key at lex-api.com/dashboard (50 calls/day on the FREE tier; semantic tools require a paid plan).

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json: ``json { "mcpServers": { "lexapi": { "command": "npx", "args": ["-y", "@lexapi/mcp"], "env": { "LEXAPI_API_KEY": "lex_..." } } } } `

Claude Code

`bash claude mcp add lexapi --env LEXAPI_API_KEY=lex_... -- npx -y @lexapi/mcp `

Cursor / other MCP clients

Any client that supports stdio MCP servers can run
npx -y @lexapi/mcp with LEXAPI_API_KEY in the environment.

Configuration

| Env var | Default | Purpose | |---|---|---| |
LEXAPI_API_KEY | (required) | Your API key. Get one at lex-api.com/dashboard. | | LEXAPI_BASE_URL | https://lex-api.com/api/v1 | Override for self-hosted or staging. |

Links

- npm: https://www.npmjs.com/package/@lexapi/mcp - Source: https://github.com/Lex-API/lexapi-mcp - Official MCP Registry:
io.github.Lex-API/lexapi-mcp` - Get an API key: https://lex-api.com/dashboard MIT licensed.
No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.