EU and national law for AI: EUR-Lex legislation and case law, citation graph, semantic search.
MCPpedia last refreshed this data
io.github.Lex-API/lexapi-mcp is an MCP server that EU and national law for AI: EUR-Lex legislation and case law, citation graph, semantic search. Its tool list has not been published yet over stdio and http, requires no API key, and scores 60/100 on MCPpedia's security, maintenance and efficiency rubric.
Config is the same across clients - only the file and path differ.
{
"mcpServers": {
"lexapi": {
"env": {
"LEXAPI_API_KEY": "lex_..."
},
"args": [
"-y",
"@lexapi/mcp"
],
"command": "npx"
}
}
}Are you the author?
Add this badge to your README to show your security score and help users find safe servers.
EU and national law for AI: EUR-Lex legislation and case law, citation graph, semantic search.
This server supports HTTP transport. Be the first to test it - help the community know if it works.
Five weighted categories - click any category to see the underlying evidence.
No known CVEs.
Checked @lexapi/mcp against OSV.dev.
Be the first to review
Have you used this server?
Share your experience - it helps other developers decide.
Sign in to write a review.
Others in legal
Korean law: statutes, precedents, ordinances, treaties and citation verification (법제처 API).
Amazon, Walmart, TikTok Shop, Meta Ads, 1688, Shopee, Temu & social data API (200+ MCP tools).
Search Swedish parliamentary documents, speeches, votes, members, and statutes.
1M+ Swiss court decisions, statutes & doctrine with citation graph (DE/FR/IT). CC0, free, 42 tools.
MCP Security Weekly
Get CVE alerts and security updates for io.github.Lex-API/lexapi-mcp and similar servers.
Start a conversation
Ask a question, share a tip, or report an issue.
Sign in to join the discussion.
Model Context Protocol server for LexAPI — EU and national law for AI assistants: EUR-Lex legislation parsed to article level, CJEU case law, member-state legislation and case law (in the countries that are live), the typed citation graph, and semantic search (including the version of an act listed for a date). Works with Claude, Cursor, VS Code and any other MCP client.
Ask your assistant "what does Article 17 GDPR require?", "which acts amended REACH?" or "what were the own-funds requirements for banks in June 2019?" — the model calls LexAPI and answers from the source text, with CELEX citations.
You need a LexAPI account. With the hosted server you sign in with LexAPI from your MCP client; with the npm package, use an API key from lex-api.com/dashboard. There is a FREE plan, no card required; see lex-api.com/pricing.
The server is hosted at https://mcp.lex-api.com/v1 (Streamable HTTP). Add that URL to your client and sign in with your LexAPI account when it asks. Calls are billed to your plan like your own API key; you can disconnect at any time under Dashboard → Connected apps.
Customize → Connectors → Add custom connector, name it LexAPI, URL https://mcp.lex-api.com/v1, then Connect and sign in. Connectors added on claude.ai are also available in Claude Desktop (same account).
claude mcp add --transport http lexapi https://mcp.lex-api.com/v1
Then run /mcp in Claude Code and choose Authenticate for lexapi; your browser opens the LexAPI sign-in.
Any client that supports MCP authorization (OAuth 2.1) connects the same way: point it at https://mcp.lex-api.com/v1.
Signing in to the hosted server grants the lex scope, which covers every tool. API keys are not subject to scopes.
Clients without OAuth support send a key from the dashboard as Authorization: Bearer lex_...:
claude mcp add --transport http lexapi https://mcp.lex-api.com/v1 --header "Authorization: Bearer lex_..."
Add to claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"lexapi": {
"command": "npx",
"args": ["-y", "@lexapi/mcp"],
"env": { "LEXAPI_API_KEY": "lex_..." }
}
}
}
Restart Claude Desktop.
claude mcp add lexapi --env LEXAPI_API_KEY=lex_... -- npx -y @lexapi/mcp
Run npx -y @lexapi/mcp with LEXAPI_API_KEY in the environment (Cursor: ~/.cursor/mcp.json; VS Code: .vscode/mcp.json; same command / args / env shape as above).
The npm package needs Node.js 20 or newer.
Every call is billed from your LexAPI credit pool like the REST endpoint it wraps; each tool's description states its cost.
Five tools write (lex_extract_citations, which adds to LexAPI's shared citation graph, and the webhook create / update / delete / test tools); LEXAPI_MCP_READ_ONLY=true hides them on the local server. The hosted server has no read-only switch for its users.
| Tool | What it does | Credits |
|---|---|---|
lex_check_citation | Look a citation up: whether the document exists, its title and link, an article, and whether the act is in force today. | 0–6 (+ a second read, 1–5, when an article is not matched; at most 11) |
lex_act_history | The acts that amend, correct or repeal an EU act, with its in-force status today. | 2–6 (+ 1–5 per date read, up to 10 dates) |
lex_research | One query over EU legislation, EU case law and the national law of chosen live countries. | 5 p |