EU law for AI: EUR-Lex legislation and case law, citation graph, semantic search with asOf.
registry version 0.3.0
npm
npx -y @lexapi/mcpnpm
npx -y @lexapi/mcp@0.3.0Streamable HTTP
https://mcp.lex-api.com/v1
Pick your client — the config below is generated for this server (both local and hosted-endpoint forms). Copy respects the “Pin version” switch above.
claude_desktop_config.json
{
"mcpServers": {
"lexapi-mcp": {
"command": "npx",
"args": [
"-y",
"@lexapi/mcp"
],
"env": {
"LEXAPI_API_KEY": "<YOUR_LEXAPI_API_KEY>"
}
}
}
}{
"mcpServers": {
"lexapi-mcp": {
"command": "npx",
"args": [
"-y",
"@lexapi/mcp@0.3.0"
],
"env": {
"LEXAPI_API_KEY": "<YOUR_LEXAPI_API_KEY>"
}
}
}
}Remote (hosted) endpoint
https://mcp.lex-api.com/v1
Claude Desktop: Settings → Connectors → Add custom connector, paste this URL, and provide: Authorization.
Format verified against the official Claude Desktop docs ↗.
terminal
claude mcp add --env LEXAPI_API_KEY=<YOUR_LEXAPI_API_KEY> lexapi-mcp -- npx -y @lexapi/mcp
claude mcp add --env LEXAPI_API_KEY=<YOUR_LEXAPI_API_KEY> lexapi-mcp -- npx -y @lexapi/mcp@0.3.0
terminal
claude mcp add --transport http lexapi-mcp https://mcp.lex-api.com/v1 --header "Authorization: Bearer <YOUR_AUTHORIZATION>"
Format verified against the official Claude Code docs ↗.
.cursor/mcp.json
{
"mcpServers": {
"lexapi-mcp": {
"command": "npx",
"args": [
"-y",
"@lexapi/mcp"
],
"env": {
"LEXAPI_API_KEY": "<YOUR_LEXAPI_API_KEY>"
}
}
}
}{
"mcpServers": {
"lexapi-mcp": {
"command": "npx",
"args": [
"-y",
"@lexapi/mcp@0.3.0"
],
"env": {
"LEXAPI_API_KEY": "<YOUR_LEXAPI_API_KEY>"
}
}
}
}.cursor/mcp.json (hosted endpoint)
{
"mcpServers": {
"lexapi-mcp": {
"url": "https://mcp.lex-api.com/v1",
"headers": {
"Authorization": "<YOUR_AUTHORIZATION>"
}
}
}
}Format verified against the official Cursor docs ↗.
.vscode/mcp.json
{
"servers": {
"lexapi-mcp": {
"command": "npx",
"args": [
"-y",
"@lexapi/mcp"
],
"env": {
"LEXAPI_API_KEY": "<YOUR_LEXAPI_API_KEY>"
}
}
}
}{
"servers": {
"lexapi-mcp": {
"command": "npx",
"args": [
"-y",
"@lexapi/mcp@0.3.0"
],
"env": {
"LEXAPI_API_KEY": "<YOUR_LEXAPI_API_KEY>"
}
}
}
}.vscode/mcp.json (hosted endpoint)
{
"servers": {
"lexapi-mcp": {
"type": "http",
"url": "https://mcp.lex-api.com/v1",
"headers": {
"Authorization": "<YOUR_AUTHORIZATION>"
}
}
}
}Format verified against the official VS Code docs ↗.
mcp_config.json
{
"mcpServers": {
"lexapi-mcp": {
"command": "npx",
"args": [
"-y",
"@lexapi/mcp"
],
"env": {
"LEXAPI_API_KEY": "<YOUR_LEXAPI_API_KEY>"
}
}
}
}{
"mcpServers": {
"lexapi-mcp": {
"command": "npx",
"args": [
"-y",
"@lexapi/mcp@0.3.0"
],
"env": {
"LEXAPI_API_KEY": "<YOUR_LEXAPI_API_KEY>"
}
}
}
}mcp_config.json (hosted endpoint)
{
"mcpServers": {
"lexapi-mcp": {
"serverUrl": "https://mcp.lex-api.com/v1",
"headers": {
"Authorization": "<YOUR_AUTHORIZATION>"
}
}
}
}Format verified against the official Windsurf docs ↗.
Defined in the server's official registry manifest. Required secrets are shown as <YOUR_…> placeholders in the configs above.
LEXAPI_API_KEY required secret — LexAPI API key. Get one at https://lex-api.com/dashboard (FREE plan: 500 credits/month).LEXAPI_BASE_URL — Override the LexAPI base URL. Defaults to https://lex-api.com/api/v1.LEXAPI_MCP_READ_ONLY — Set to true to hide every non-read-only tool (webhook create/update/delete/test, citation extraction).LEXAPI_TIMEOUT_MS — Deadline per tool call in milliseconds, retries included (default 55000). Raise only together with the MCP client timeout.Authorization required secret header — Bearer <your LexAPI API key>. Get one at https://lex-api.com/dashboard (FREE plan: 500 credits/month).⭐ 3 stars · 最近更新于 100 天前 · MIT license
LexAPI MCP Model Context Protocol server for LexAPI — query EUR Lex, EU case law, and the citation graph from Claude, Cursor, and other MCP enabled clients. Install once, get an API key, and ask your AI assistant: "summarize Article 17 of the GDPR" or "which regulations amend Directive 95/46/EC?"…
Summary from the project README — github.com/Lex-API/lexapi-mcp
Distributed as npm, Streamable HTTP, listed under Legal & Compliance. Review our MCP security guide before granting access to real data.
LexAPI MCP Model Context Protocol server for LexAPI — query EUR Lex, EU case law, and the citation graph from Claude, Cursor, and other MCP enabled clients. Install once, get an API key, and ask your AI assistant: "summarize Article 17 of the GDPR" or "which regulations amend Directive 95/46/EC?"
Run the install command shown above, then paste the config for your client (Claude Desktop, Claude Code, Cursor, VS Code or Windsurf) into its MCP settings and restart the client.
The MCP server itself is free to install. The source is public on https://github.com/Lex-API/lexapi-mcp. Any third-party service it calls may require its own API key and account.
Any MCP-compatible client can use it, including Claude Desktop, Claude Code, Cursor, VS Code, Windsurf and custom agents.
Publish this server? Link back with a badge on your README or site — copy either snippet.
Markdown
[](https://mcpnav.net/server/lexapi-mcp/)
HTML
<a href="https://mcpnav.net/server/lexapi-mcp/"><img src="https://mcpnav.net/badge/lexapi-mcp.svg" alt="Listed on MCPNav" height="20"></a>