Search EUR-Lex, fetch parsed EU legislation and case law, explore the citation graph.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add lexapi --env LEXAPI_API_KEY='<LEXAPI_API_KEY>' -- npx -y @lexapi/mcp~/.codex/config.toml
[mcp_servers.lexapi]
command = "npx"
args = ["-y", "@lexapi/mcp"]
env = { LEXAPI_API_KEY = "<LEXAPI_API_KEY>" }
# codex mcp add lexapi --env LEXAPI_API_KEY='<LEXAPI_API_KEY>' -- npx -y @lexapi/mcp~/.cursor/mcp.json
{
"mcpServers": {
"lexapi": {
"command": "npx",
"args": [
"-y",
"@lexapi/mcp"
],
"env": {
"LEXAPI_API_KEY": "<LEXAPI_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"lexapi": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@lexapi/mcp"
],
"env": {
"LEXAPI_API_KEY": "<LEXAPI_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"lexapi": {
"command": "npx",
"args": [
"-y",
"@lexapi/mcp"
],
"env": {
"LEXAPI_API_KEY": "<LEXAPI_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"lexapi": {
"command": "npx",
"args": [
"-y",
"@lexapi/mcp"
],
"env": {
"LEXAPI_API_KEY": "<LEXAPI_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"lexapi": {
"command": "npx",
"args": [
"-y",
"@lexapi/mcp"
],
"env": {
"LEXAPI_API_KEY": "<LEXAPI_API_KEY>"
}
}
}
}Environment variables
LEXAPI_API_KEY
Replace the placeholders with your own credentials and keep them out of version control.