LexAPI MCP server
online · 100% uptimeio.github.Lex-API/lexapi-mcp·v0.3.0·3 starsEU law for AI: EUR-Lex legislation and case law, citation graph, semantic search with asOf.
not scanned yet
3 stars41 downloads/wk
Reviews
Write oneNobody has reviewed LexAPI yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
LexAPI tools
Tool list not cached yet. `describe` through the gateway fetches it live.
How LexAPI compares
Against every graded Web search MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 77/100
- higher than 55% of 3,470 Web search servers
- Uptime
- 100%
- of our recent checks; the typical remote Web search server answers 100%
- Response time
- 322 ms
- faster than 48% of 2,238 Web search servers
- GitHub stars
- 3
- more than 73% of 1,786 Web search servers
- Downloads a week
- 41
- more than 27% of 827 Web search servers with a package
Release history: 2 versions in the registry since 2026-07-01, latest 2026-10-27, typically one every 118 days.
Install LexAPI in Claude Code, Cursor or VS Code
claude mcp add --transport http lexapi-mcp https://mcp.lex-api.com/v1
What the publisher says
From the LexAPI repository's README, as published. We do not edit it. Read it on GitHub
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?" — the model calls LexAPI directly.
Install
You'll need a LexAPI API key. Create one for free at lex-api.com/dashboard (500 credits/month on the FREE tier, no card required).
Claude Desktop
Add to claudedesktopconfig.json (location: ~/Library/Application Support/Claude/claudedesktopconfig.json on macOS):
{
"mcpServers": {
"lexapi": {
"command": "npx",
"args": ["-y", "@lexapi/mcp"],
"env": {
"LEXAPI_API_KEY": "lex_..."
}
}
}
}Restart Claude Desktop.
Claude Code
claude mcp add lexapi --env LEXAPI_API_KEY=lex_... -- npx -y @lexapi/mcpCursor / other MCP clients
Any client that supports stdio MCP servers can run this. The command is npx -y @lexapi/mcp with LEXAPIAPIKEY in the environment.
Tools
Configuration
Troubleshooting
LEXAPIAPIKEY is not set — the env var isn't reaching the spawned process. Double-check the env block in your MCP client config.
LexAPI error (401 invalidapikey) — the key is wrong or revoked. Generate a new one at the dashboard.
LexAPI error (429 …) — you hit your daily quota or per-minute rate limit. The server retries once automatically; if you see this in tool output, you're over quota. Upgrade your plan or wait for reset.
LexAPI error (403 …) on semantic tools — semantic search requires a paid plan. FREE tier returns 403 for those endpoints.
Local development
git clone https://github.com/Lex-API/lexapi-mcp.git
cd lexapi-mcp
npm install
npm run build
LEXAPI_API_KEY=lex_xxx node dist/index.jsLicense
MIT
Nothing above is checked by us. What we check is on the safety report.
LexAPI: common questions
- Is LexAPI MCP server safe?
- Mostly: it is graded B (77/100). Read the LexAPI safety report
- How do I install LexAPI?
- It runs remotely at mcp.lex-api.com. Add it to Claude Code, Cursor, VS Code or Claude Desktop with the snippets above, or call it through the mcp.market gateway without installing anything.
- Does LexAPI need an API key?
- Yes. The registry entry asks for
LEXAPI_API_KEY,Authorization. - Is LexAPI maintained?
- The last commit was 106 days ago (2026-07-21). The latest release is v0.3.0.
- Is LexAPI up?
- 100% of our last 20 checks got an answer. We check remote servers about four times a day.
- What can I use instead of LexAPI?
- Servers from other publishers that do the same job: Arxiv MCP server, Legal Data Hunter MCP server and Eur Lex MCP server. Compare all LexAPI alternatives.
- How does LexAPI compare with other Web search MCP servers?
- safety score 77/100 (higher than 55% of 3,470 Web search servers); uptime 100% (of our recent checks; the typical remote Web search server answers 100%); response time 322 ms (faster than 48% of 2,238 Web search servers). Full comparison.
Alternatives to LexAPI
Same job from other publishers: the closest match first, then the best rated.
- ArxivSearch arXiv papers, download full text, semantic search, citation graphs, and alerts via MCP.not reviewedWidely usedA
Legal Data HunterSearch 18M+ legal documents worldwide — case law, legislation, and doctrine across 110+ countries.not reviewedEstablishedA- Eur LexSearch EU legislation, CJEU case law, and treaties; traverse CELLAR graph; browse EuroVoc concepts.not reviewedEstablishedA
- SocraticodeMCP server for enterprise local codebase indexing, semantic search, and code dependency graphs.not reviewedEstablishedB
- not reviewedEstablishedA