# LexAPI

> LexAPI is a freemium MCP server for legal and government. EU law for AI assistants: EUR-Lex acts, case law and citation graph, with as-of dates. It can run locally on your machine or as a hosted remote server.

- **Kind:** MCP server
- **Pricing:** Freemium
- **Platforms:** API, CLI
- **Website:** https://lex-api.com
- **Repository:** https://github.com/lex-api/lexapi-mcp
- **MCP Registry name:** io.github.Lex-API/lexapi-mcp
- **Categories:** legal and government
- **Listing updated:** 2026-11-14

## About

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.

## Features

- **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

## Install

### Claude Code (Terminal)

```sh
claude mcp add --transport http lexapi-mcp https://mcp.lex-api.com/v1
```

### Claude Desktop (Settings → Connectors → Add custom connector)

```sh
https://mcp.lex-api.com/v1
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "lexapi-mcp": {
      "url": "https://mcp.lex-api.com/v1"
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "lexapi-mcp": {
      "type": "http",
      "url": "https://mcp.lex-api.com/v1"
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "lexapi-mcp": {
      "serverUrl": "https://mcp.lex-api.com/v1"
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "lexapi-mcp": {
      "type": "http",
      "url": "https://mcp.lex-api.com/v1"
    }
  }
}
```

## Tools

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

## 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

- [NY LLC Publication (FileMyPublication)](https://ai-powered.com/mcp/ny-llc-publication-filemypublication): NY LLC Publication (FileMyPublication) is a free MCP server for legal and government.
- [TribuJus](https://ai-powered.com/mcp/tribujus): TribuJus is an open-source MCP server for legal and government.
- [SupplyClub Catalog](https://ai-powered.com/mcp/supplyclub-catalog): SupplyClub Catalog is a free MCP server for legal and government.
- [SynomosAI Governance MCP](https://ai-powered.com/mcp/synomosai-governance-mcp-2): SynomosAI Governance MCP is an open-source MCP server for security.
- [MedXpert 标准检索连接器](https://ai-powered.com/mcp/medxpert-2): MedXpert 标准检索连接器 is a free MCP server for legal and government.
- [SigPen](https://ai-powered.com/mcp/sigpen): SigPen is a freemium MCP server for files and documents.
- [SOMMON Office](https://ai-powered.com/mcp/sommon-office): SOMMON Office is a paid MCP server for communication.
- [MedXpert 全球法规连接器 (reg-connector)](https://ai-powered.com/mcp/medxpert-reg-connector): MedXpert 全球法规连接器 (reg-connector) is a free MCP server for legal and government.

---
Source: https://ai-powered.com/mcp/lexapi
