L

LexAPI

MCP server · by Lex-API

Legal & Compliance npmStreamable HTTP v0.3.0

EU law for AI: EUR-Lex legislation and case law, citation graph, semantic search with asOf.

View source ↗ Website ↗ Generate config for multiple servers More servers

Install

registry version 0.3.0

npm
npx -y @lexapi/mcp
Streamable HTTP
https://mcp.lex-api.com/v1

Setup by client

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>"
      }
    }
  }
}

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 ↗.

Environment variables

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).

GitHub

⭐ 3 stars · 最近更新于 100 天前 · MIT license

About this server

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.

Frequently asked questions

What does the LexAPI MCP server do?

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?"

How do I install LexAPI?

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.

Is LexAPI free to use?

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.

Which clients support LexAPI?

Any MCP-compatible client can use it, including Claude Desktop, Claude Code, Cursor, VS Code, Windsurf and custom agents.

Add this badge

Publish this server? Link back with a badge on your README or site — copy either snippet.

Listed on MCPNav

Markdown

[![Listed on MCPNav](https://mcpnav.net/badge/lexapi-mcp.svg)](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>