LexAPI MCP Server
by lex-apiio.github.Lex-API/lexapi-mcpv0.1.3
EU legal research over EUR-Lex: structured search, document fetch by CELEX number, recent Official Journal publications, citation graphs and semantic search.
context tax
queued
security
queued
cold start
queued
freshness
Maintained3mo ago
Install LexAPI MCP server
Install in Claude Code
claude mcp add lexapi -e LEXAPI_API_KEY='<lexapi-api-key>' -- npx -y @lexapi/mcpInstall in Cursor
{
"mcpServers": {
"lexapi": {
"command": "npx",
"args": [
"-y",
"@lexapi/mcp"
],
"env": {
"LEXAPI_API_KEY": "<lexapi-api-key>"
}
}
}
}Add to ~/.cursor/mcp.json (global) or .cursor/mcp.json (project).
Install in Claude Desktop
{
"mcpServers": {
"lexapi": {
"command": "npx",
"args": [
"-y",
"@lexapi/mcp"
],
"env": {
"LEXAPI_API_KEY": "<lexapi-api-key>"
}
}
}
}Settings → Developer → Edit Config (claude_desktop_config.json), then restart.
Install in VS Code
{
"servers": {
"lexapi": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@lexapi/mcp"
],
"env": {
"LEXAPI_API_KEY": "<lexapi-api-key>"
}
}
}
}Add to .vscode/mcp.json in your workspace.
Install in Windsurf
{
"mcpServers": {
"lexapi": {
"command": "npx",
"args": [
"-y",
"@lexapi/mcp"
],
"env": {
"LEXAPI_API_KEY": "<lexapi-api-key>"
}
}
}
}Add to ~/.codeium/windsurf/mcp_config.json.
Configuration
| Variable | Required | Secret | Description |
|---|---|---|---|
| LEXAPI_API_KEY | yes | yes | LexAPI API key. Get one at https://lex-api.com/dashboard (FREE tier available; semantic tools require a paid plan). |
| LEXAPI_BASE_URL | — | — | Override the LexAPI base URL. Defaults to https://lex-api.com/api/v1. |
Freshness
Maintained — last maintenance signal 3mo ago. The newest of the signals below sets the band.
Last commit (default branch)
2026-07-21 · 3mo ago · GitHub
Latest release
no data · GitHub
Package published
no data · npm/PyPI
Registry entry updated
2026-07-01 · 3mo ago · official registry · v0.1.3
FAQ
›How do I install the LexAPI MCP server in Claude Code?
Run: claude mcp add lexapi -e LEXAPI_API_KEY='<lexapi-api-key>' -- npx -y @lexapi/mcp. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.
›Does LexAPI require an API key?
Yes. It expects LEXAPI_API_KEY, of which 1 is a secret.
›Can I use LexAPI as a remote (hosted) MCP server?
No hosted endpoint is published; it runs locally over stdio.
›Is LexAPI in the official MCP registry?
Yes, as io.github.Lex-API/lexapi-mcp.
Alternatives to LexAPI
Other science & research MCP servers.