SuperAPI AI Directory

lexapi-mcp

EU legal research over EUR-Lex: structured search, document fetch by CELEX number, recent Official Journal publications, citation graphs and semantic search.

Open website

About this tool

Purpose: lexapi-mcp is a Model Context Protocol (MCP) server for LexAPI, used to directly query EUR-Lex, EU case law, and the citation graph in MCP-enabled AI clients such as Claude and Cursor. Once installed and an API key is obtained, you can have the AI assistant answer questions such as "Summarize Article 17 of the GDPR" or "Which regulations amended Directive 95/46/EC", and the model will call LexAPI directly.

Main capabilities: provides structured search, document retrieval by CELEX number, latest publications from the Official Journal, citation graph, and semantic search.

Usage: requires a LexAPI API key, which can be created for free at lex-api.com/dashboard (the FREE tier includes 500 credits per month, no credit card required). Add the configuration in claude_desktop_config.json (on macOS the path is ~/Library/Application Support/Claude/claude_desktop_config.json), then restart Claude Desktop. Cursor or other MCP clients: any client that supports stdio MCP servers can run it, with the command npx -y @lexapi/mcp, and set LEXAPI_API_KEY in the environment.

Limitations and troubleshooting: LEXAPI_API_KEY is not set means the environment variable was not passed to the child process, so check the env block in the MCP client configuration; LexAPI error (401 invalid_api_key) means the key is incorrect or has been revoked, and it must be regenerated in the dashboard; LexAPI error (429 …) means the daily quota or per-minute rate limit has been reached, the server will automatically retry once, and if you see this error in the tool output it means the quota has been exceeded, so you need to upgrade the plan or wait for the reset; if the semantic tools show LexAPI error (403 …), it means semantic search requires a paid plan, and the FREE tier returns 403 for these endpoints.