eu.ansvar/latvian-law-mcp

Latvian legislation via MCP — full-text search across statutes and provisions

0NOASSERTIONsearch

Install

Config snippet generator goes here (5 client tabs)

README

# Latvian Law MCP Server

**The Latvijas Vēstnesis alternative for the AI age.**

[![npm version](https://badge.fury.io/js/@ansvar%2Flatvian-law-mcp.svg)](https://www.npmjs.com/package/@ansvar/latvian-law-mcp)
[![MCP Registry](https://img.shields.io/badge/MCP-Registry-blue)](https://registry.modelcontextprotocol.io)
[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![GitHub stars](https://img.shields.io/github/stars/Ansvar-Systems/Latvian-law-mcp?style=social)](https://github.com/Ansvar-Systems/Latvian-law-mcp)
[![CI](https://github.com/Ansvar-Systems/Latvian-law-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/Ansvar-Systems/Latvian-law-mcp/actions/workflows/ci.yml)
[![Daily Data Check](https://github.com/Ansvar-Systems/Latvian-law-mcp/actions/workflows/check-updates.yml/badge.svg)](https://github.com/Ansvar-Systems/Latvian-law-mcp/actions/workflows/check-updates.yml)
[![Database](https://img.shields.io/badge/database-pre--built-green)](docs/EU_INTEGRATION_GUIDE.md)
[![Provisions](https://img.shields.io/badge/provisions-57%2C679-blue)](docs/EU_INTEGRATION_GUIDE.md)

Query **2,249 Latvian statutes** -- from the Fizisko personu datu apstrādes likums and Krimināllikums to the Civillikums, Darba likums, and more -- directly from Claude, Cursor, or any MCP-compatible client.

If you're building legal tech, compliance tools, or doing Latvian legal research, this is your verified reference database.

Built by [Ansvar Systems](https://ansvar.eu) -- Stockholm, Sweden

---

## Why This Exists

Latvian legal research means navigating likumi.lv, the Latvijas Vēstnesis official gazette, and EUR-Lex for EU implementation status -- across a comprehensive system of codes and regulations. Whether you're:

- A **lawyer** validating citations before the Augstākā tiesa (Supreme Court) or Satversmes tiesa (Constitutional Court)
- A **compliance officer** checking GDPR implementation under Fizisko personu datu apstrādes likums or NIS2 requirements
- A **legal tech developer** building tools on Latvian law
- A **researcher** tracing EU directive transposition across 2,249 statutes

...you shouldn't need dozens of browser tabs and manual cross-referencing. Ask Claude. Get the exact provision. With context.

This MCP server makes Latvian law **searchable, cross-referenceable, and AI-readable**.

---

## Quick Start

### Use Remotely (No Install Needed)

> Connect directly to the hosted version -- zero dependencies, nothing to install.

**Endpoint:** `https://latvian-law-mcp.vercel.app/mcp`

| Client | How to Connect |
|--------|---------------|
| **Claude.ai** | Settings > Connectors > Add Integration > paste URL |
| **Claude Code** | `claude mcp add latvian-law --transport http https://latvian-law-mcp.vercel.app/mcp` |
| **Claude Desktop** | Add to config (see below) |
| **GitHub Copilot** | Add to VS Code settings (see below) |

**Claude Desktop** -- add to `claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "latvian-law": {
      "type": "url",
      "url": "https://latvian-law-mcp.vercel.app/mcp"
    }
  }
}
```

**GitHub Copilot** -- add to VS Code `settings.json`:

```json
{
  "github.copilot.chat.mcp.servers": {
    "latvian-law": {
      "type": "http",
      "url": "https://latvian-law-mcp.vercel.app/mcp"
    }
  }
}
```

### Use Locally (npm)

```bash
npx @ansvar/latvian-law-mcp
```

**Claude Desktop** -- add to `claude_desktop_config.json`:

**macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`
**Windows:** `%APPDATA%\Claude\claude_desktop_config.json`

```json
{
  "mcpServers": {
    "latvian-law": {
      "command": "npx",
      "args": ["-y", "@ansvar/latvian-law-mcp"]
    }
  }
}
```

**Cursor / VS Code:**

```json
{
  "mcp.servers": {
    "latvian-law": {
      "command": "npx",
      "args": ["-y", "@ansvar/latvian-law-mcp"]
    }
  }
}
```

## Example Queries

Once connected, just ask naturally:

- *"Ko nosaka Fizisko personu datu apstrādes likuma 25. pants par datu apstrādi?"*
- *"Vai Krimināllikums ir spēkā?"*
- *"Meklēt 'personas datu aizsardzība' Latvijas tiesību aktos"*
- *"Kādi ES tiesību akti ir Darba likuma pamatā?"*
- *"Kuri Latvijas likumi īsteno NIS2 direktīvu?"*
- *"Ko paredz Civillikuma 1785. pants par saistību tiesībām?"*
- *"Validēt citātu 'Fizisko personu datu apstrādes likums, 25. pants'"*
- *"Salīdzināt datu aizsardzības prasības dažādās NIS2 Latvijas implementācijās"*

---

## What's Included

| Category | Count | Details |
|----------|-------|---------|
| **Statutes** | 2,249 statutes | Comprehensive Latvian legislation from likumi.lv |
| **Provisions** | 57,679 sections | Full-text searchable with FTS5 |
| **Premium: Case Law** | 127,042 decisions | Augstākā tiesa, Satversmes tiesa, Administratīvā tiesa (Premium tier) |
| **Premium: Preparatory Works** | 29,516 documents | Saeima anotācijas and explanatory reports (Premium tier) |
| **Database Size** | 131 MB | Optimized SQLite, port