
LexAPI
@Lex-API
About 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.
Basic information
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"lexapi": {
"command": "npx",
"args": [
"-y",
"@lexapi/mcp"
],
"env": {
"LEXAPI_API_KEY": "<YOUR_LEXAPI_API_KEY>"
}
}
}
}Tools
10Structured 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.
Overview
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.
More Other MCP servers
🪟 Windows-MCP
CursorTouchMCP Server for Computer Use in Windows
🚀 Model Context Protocol (MCP) Curriculum for Beginners
microsoftThis open-source curriculum introduces the fundamentals of Model Context Protocol (MCP) through real-world, cross-language examples in .NET, Java, TypeScript, JavaScript, Rust and Python. Designed for developers, it focuses on practical techniques for building modular, scalable,
FastMCP v2 🚀
jlowin🚀 The fast, Pythonic way to build MCP servers and clients.
Mcp
browsermcpBrowser MCP is a Model Context Provider (MCP) server that allows AI applications to control your browser
Codelf
unbugA search tool helps dev to solve the naming things problem.
Comments