eu.ansvar/icelandic-law-mcp

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

0Apache-2.0search

Install

Config snippet generator goes here (5 client tabs)

README

# Icelandic Law MCP Server

**The Lagasafn alternative for the AI age.**

[![npm version](https://badge.fury.io/js/@ansvar%2Ficelandic-law-mcp.svg)](https://www.npmjs.com/package/@ansvar/icelandic-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/Icelandic-law-mcp?style=social)](https://github.com/Ansvar-Systems/Icelandic-law-mcp)
[![CI](https://github.com/Ansvar-Systems/Icelandic-law-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/Ansvar-Systems/Icelandic-law-mcp/actions/workflows/ci.yml)
[![Daily Data Check](https://github.com/Ansvar-Systems/Icelandic-law-mcp/actions/workflows/check-updates.yml/badge.svg)](https://github.com/Ansvar-Systems/Icelandic-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-19%2C026-blue)](docs/EU_INTEGRATION_GUIDE.md)

Query **1,709 Icelandic statutes** -- from Persónuverndarlög and Almenn hegningarlög to Lyfjalög, Stjórnarskrá, and more -- directly from Claude, Cursor, or any MCP-compatible client.

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

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

---

## Why This Exists

Icelandic legal research is scattered across Althingi, Lagasafn (the official legal gazette), and EUR-Lex. Whether you're:
- A **lawyer** validating citations in a brief or contract
- A **compliance officer** checking if a statute is still in force
- A **legal tech developer** building tools on Icelandic law
- A **researcher** tracing legislative provisions across 1,709 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 Icelandic 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://icelandic-law-mcp.vercel.app/mcp`

| Client | How to Connect |
|--------|---------------|
| **Claude.ai** | Settings > Connectors > Add Integration > paste URL |
| **Claude Code** | `claude mcp add icelandic-law --transport http https://icelandic-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": {
    "icelandic-law": {
      "type": "url",
      "url": "https://icelandic-law-mcp.vercel.app/mcp"
    }
  }
}
```

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

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

### Use Locally (npm)

```bash
npx @ansvar/icelandic-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": {
    "icelandic-law": {
      "command": "npx",
      "args": ["-y", "@ansvar/icelandic-law-mcp"]
    }
  }
}
```

**Cursor / VS Code:**

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

---

## Example Queries

Once connected, just ask naturally:

- *"Leita að 'persónuvernd' -- hvaða skyldur setur lög nr. 90/2018?"*
- *"Er Almenn hegningarlög enn í gildi?"*
- *"Finna ákvæði um lyfjamál í Lyfjalögum"*
- *"Hvaða reglur ESB eru innleiddar í Stjórnarskrá Íslands?"*
- *"Hvaða íslensk lög innleiða GDPR?"*
- *"Staðfesta tilvísun: lög nr. 90/2018, 6. gr."*
- *"Búa til lagalega afstöðu varðandi gagnavernd"*
- *"Uppfylla kröfur NIS2 tilskipunarinnar í íslenskum rétti?"*

---

## What's Included

| Category | Count | Details |
|----------|-------|---------|
| **Statutes** | 1,709 statutes | Comprehensive Icelandic legislation from Lagasafn |
| **Provisions** | 19,026 sections | Full-text searchable with FTS5 |
| **EU Cross-References** | Included | EEA-incorporated directives and regulations linked |
| **Database Size** | 68 MB | Optimized SQLite, portable |
| **Daily Updates** | Automated | Freshness checks against Althingi/Lagasafn |

**Verified data only** -- every citation is validated against official sources (Althingi, lagasafn.is). Zero LLM-generated content.

---

## See It In Action

### Why This Works

**Verbatim Source Text (No LLM Processing):**
- All statute text is ingested from Althingi/Lagasafn official sources
- Provisions are retur