eu.ansvar/finnish-law-mcp

Query Finnish statutes from Finlex, EU cross-references, case law, and preparatory works

0Apache-2.0other

Install

Config snippet generator goes here (5 client tabs)

README

# Finnish Law MCP Server

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

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

Query **Finnish statutes** -- from Tietosuojalaki and Rikoslaki to Osakeyhtiölaki, Ympäristönsuojelulaki, and more -- directly from Claude, Cursor, or any MCP-compatible client.

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

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

---

## Why This Exists

Swedish legal research is scattered across Riksdagen, SFS publications, lagen.nu, 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 Swedish law
- A **researcher** tracing legislative history from proposition to statute

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

This MCP server makes Swedish 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://swedish-law-mcp.vercel.app/mcp`

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

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

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

### Use Locally (npm)

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

**Cursor / VS Code:**

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

## Example Queries

Once connected, just ask naturally:

- *"What does Dataskyddslagen 3 kap. 5 § say about consent?"*
- *"Is PUL (1998:204) still in force?"*
- *"Find provisions about personuppgifter in Swedish law"*
- *"What EU directives does DSL implement?"*
- *"Which Swedish laws implement the GDPR?"*
- *"Get the preparatory works for Dataskyddslagen"*
- *"Compare incident reporting requirements across NIS2 Swedish implementations"*
- *"Validate the citation NJA 2020 s. 45"*
- *"Find Labour Court cases about discrimination from 2020-2023"*

---

## What's Included

| Category | Count | Details |
|----------|-------|---------|
| **Statutes** | 717 laws | Comprehensive Swedish legislation |
| **Provisions** | 31,198 sections | Full-text searchable with FTS5 |
| **Preparatory Works** | 3,625 documents | Propositions (Prop.) and SOUs |
| **EU Cross-References** | 668 references | 228 EU directives and regulations |
| **Legal Definitions** | 615 terms | Extracted from statute text |
| **Database Size** | ~70 MB | Optimized SQLite, portable |
| **Daily Updates** | Automated | Freshness checks against Riksdagen |

**Verified data only** -- every citation is validated against official sources (Riksdagen, lagen.nu, EUR-Lex). Zero LLM-generated content.

---

## See It In Action

### Why This Works

**Verbatim Source Text (No LLM P