LexAPI for VS Code
io.github.lex-api/lexapi-mcp
Search EUR-Lex, fetch parsed EU legislation and case law, explore the citation graph.
client:VS Code
transport:stdio
runtime:npm
Install LexAPI in VS Code
.vscode/mcp.json
{
"inputs": [
{
"type": "promptString",
"id": "lexapi-api-key",
"description": "LEXAPI_API_KEY",
"password": true
},
{
"type": "promptString",
"id": "lexapi-base-url",
"description": "LEXAPI_BASE_URL",
"password": true
}
],
"servers": {
"lexapi-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@lexapi/mcp"
],
"env": {
"LEXAPI_API_KEY": "${input:lexapi-api-key}",
"LEXAPI_BASE_URL": "${input:lexapi-base-url}"
}
}
}
}
VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs