LexAPI
EU law for AI assistants: EUR-Lex acts, case law and citation graph, with as-of dates
- Pricing
- Freemium
- Platforms
- API, CLI
- Runs
- Locally or Remotely
- Version
- 0.5.1
- Listing updated
- 2 days ago
About LexAPI
LexAPI is a freemium MCP server for legal and government. It can run locally on your machine or as a hosted remote server.
LexAPI turns EUR-Lex into article-level JSON with a typed citation graph, version history and provenance on each record. Its MCP server wraps that API in 26 tools, which drop to 21 in read-only mode, and it can answer from the law as it stood on a past date through an asOf parameter on semantic search.
There are two ways in. The hosted server at https://mcp.lex-api.com/v1 uses OAuth sign-in with a LexAPI account, while the npm package @lexapi/mcp runs locally with an API key. Every call is billed from the same credit pool as the REST API, and each tool states its cost so a model can see it.
The maintainers describe it as a bridge, not an agent: the server forwards individual calls without a hidden cache or retry loop, and the model decides what to ask. Citations carry CELEX numbers.
Install
Run in a terminal
claude mcp add --transport http lexapi-mcp https://mcp.lex-api.com/v1Add to Settings → Connectors → Add custom connector
https://mcp.lex-api.com/v1Add to ~/.cursor/mcp.json
{
"mcpServers": {
"lexapi-mcp": {
"url": "https://mcp.lex-api.com/v1"
}
}
}Add to .vscode/mcp.json
{
"servers": {
"lexapi-mcp": {
"type": "http",
"url": "https://mcp.lex-api.com/v1"
}
}
}Add to ~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"lexapi-mcp": {
"serverUrl": "https://mcp.lex-api.com/v1"
}
}
}Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"lexapi-mcp": {
"type": "http",
"url": "https://mcp.lex-api.com/v1"
}
}
}Configuration
LEXAPI_API_KEYLexAPI API key. Get one at https://lex-api.com/dashboard (FREE plan available; see https://lex-api.com/pricing).RequiredLEXAPI_BASE_URLOverride the LexAPI base URL. Defaults to https://lex-api.com/api/v1.LEXAPI_MCP_READ_ONLYSet to true to hide every non-read-only tool (webhook create/update/delete/test, citation extraction).LEXAPI_TIMEOUT_MSDeadline per tool call in milliseconds, retries included (default 55000). Raise only together with the MCP client timeout.
Tools this server provides (2)
Taken from the project documentation; the running server may differ.
- lex_semantic_legislation
- Finds legislation articles by meaning; an asOf date returns the text in force on that date.
- lex_semantic_case_law
- Finds judgments, orders and Advocate General opinions by meaning.
What it does
- Article-level documents
- Returns regulations, treaties and case law parsed into individually addressable articles.
- Law as in force
- Semantic search can return the text in force on a chosen past date.
- Typed citation graph
- Walks citations in both directions, labelled as amendment, repeal, implementation and similar.
- Webhook watch lists
- Pushes amendments and new consolidated versions of watched acts to an endpoint.
- Read-only mode
- A setting hides write-type tools such as webhook changes and citation extraction.
- Two connection routes
- Use the hosted OAuth server or run the npm package locally with a key.
Good for
- Ask what a specific GDPR article requires, with CELEX citations
- Find which acts amended a regulation such as REACH
- Check what banking rules applied on a past date
- Monitor a list of EU acts for amendments
- Build a research corpus of EU legislation
Pricing
Freemium
Free plan; paid tiers priced in EUR on the pricing page (amounts not published here)
Prices change. Check lex-api.com before you buy.
LexAPI FAQ
How do I connect without managing a key?
Add https://mcp.lex-api.com/v1 as a custom connector or with claude mcp add, then sign in with your LexAPI account.
What does the free plan include?
500 credits to start then 150 a month, at 15 requests a minute, with semantic search of about 30 queries a month. No card is needed.
How are calls priced?
A document fetch costs 1 to 5 credits, keyword search 3 per page, semantic search about 5 and the citation graph about 20.
Can I train a model on the data?
Bulk export is a Business-tier feature, and the site says training models on it needs a separate licence under its Terms.
Is LexAPI free?
LexAPI has a free plan, with paid plans for more usage or features.
How do I add LexAPI to Claude Code?
Run this command in your terminal: claude mcp add --transport http lexapi-mcp https://mcp.lex-api.com/v1
What are the best alternatives to LexAPI?
The closest alternatives to LexAPI are NY LLC Publication (FileMyPublication), TribuJus, SupplyClub Catalog, SynomosAI Governance MCP and MedXpert 标准检索连接器.
Alternatives to LexAPI

NY LLC Publication (FileMyPublication)
MCP serverNew York LLC publication rules, deadline, county prices, clerks and notice text
- 8 tools
- Remote
- Free
- Legal and government
TribuJus
MCP serverRead-only access to UK bank accounts, cards and transactions via TrueLayer Open Banking
Not checked yet- 5 tools
- Remote
- Open source
- Legal and government

SupplyClub Catalog
MCP serverRussian statutes, Supreme Court guidance and court practice for AI assistants
- 3 tools
- Remote
- Free
- Legal and government
SynomosAI Governance MCP
MCP serverSelf-assess AI agent governance: A3 scorecard, ISO 42001 evidence and PII scan
Runs locally- 6 tools
- Open source
- Security
MedXpert 标准检索连接器
MCP serverRead-only local index of medical-device standards with official links, no standard text
Runs locally- 4 tools
- Free
- Legal and government

SigPen
MCP serverMCP server that drafts e-signature documents while you approve every send
Not checked yet- 13 tools
- Remote
- Freemium
- Files and documents