# Lex — Temporal Luxembourg and EU Law

An MCP server that keeps past versions of Luxembourg and EU legal texts and tells you what a provision said on a given date, with a hashed permalink.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 9
- Author: SFHAJJI
- License: Apache-2.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/SFHAJJI/lex
- Updated: 2026-10-19
- HTML: https://affpapa.org/en/nevibecode/mcp/lex-temporal-luxembourg-and-eu-law

## What it does

Lex stores every version of a regulatory text it has seen. Ask what a provision said on 15 March 2022 and you get the validity interval, the timeline, the instrument behind the change, and a provenance record with a hash. If the answer is not knowable, the server returns a machine-readable refusal instead of guessing.

You connect to the hosted endpoint `https://law.soufien.lu/mcp`. No key, and no legal corpus or vector files land on your machine. Clients that only speak local stdio can bridge to the same endpoint through the third-party `mcp-remote` adapter, which needs Node.js 18+; that bridge exists for older clients, and the project ships no npm package of its own.

The scope is narrow on purpose. Lex reports what the rule was. It will not tell you whether you complied or whether a rule applies to you — those are professional opinions, and the evidence, index and MCP layers neither generate nor interpret legal text. For audit work that split is the point.

## Requirements
- Remote server: `https://law.soufien.lu/mcp`

## Install

### Claude Code (native platform)

**Platform CLI: remote server**
```bash
claude mcp add --transport http lex https://law.soufien.lu/mcp
```

### Codex

**Platform CLI: remote server**
```bash
codex mcp add lex-temporal-luxembourg-and-eu-law --url https://law.soufien.lu/mcp
```

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "lex-temporal-luxembourg-and-eu-law": {
            "url": "https://law.soufien.lu/mcp"
        }
    }
}
```

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "lex-temporal-luxembourg-and-eu-law": {
            "type": "http",
            "url": "https://law.soufien.lu/mcp"
        }
    }
}
```

### Gemini CLI

**Platform CLI: remote server**
```bash
gemini mcp add -t http lex-temporal-luxembourg-and-eu-law https://law.soufien.lu/mcp
```

## When to use it
- find the version of a rule that applied on the date of the facts
- trace every amendment to a single article
- attach a permalink and hash to an evidence file
- filter law chunks by date before similarity search
- check whether an article changed after a given date

## Example prompts
- Show the history of CRR Article 92 with dates and permalinks.
- Compare this article's text on 1 March 2020 with the current version.

## Similar
- [REA](https://affpapa.org/en/nevibecode/mcp/rea.md) — MCP server · ★ 386989
- [GitHub](https://affpapa.org/en/nevibecode/mcp/github.md) — MCP server · ★ 33918
- [Netdata](https://affpapa.org/en/nevibecode/mcp/netdata.md) — MCP server · ★ 81115
- [browser-use](https://affpapa.org/en/nevibecode/mcp/browser-use.md) — MCP server · ★ 119160
- [Codebase Memory](https://affpapa.org/en/nevibecode/mcp/codebase-memory.md) — MCP server · ★ 47392
- [mcp-server](https://affpapa.org/en/nevibecode/mcp/mcp-server.md) — MCP server · ★ 43872

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
