Skip to main content
Glama
Finnish Data Protection MCP

Finnish Data Protection MCP

README.md
# Finnish Data Protection MCP

<!-- ANSVAR-CTA-BEGIN -->
> **The Finnish data-protection corpus is now served through the Ansvar Gateway.** Connect your AI assistant (Claude, Copilot, Cursor, custom MCP client) to `https://gateway.ansvar.eu/mcp` — one OAuth connection, free tier available, covering this corpus plus EU regulations, national law across dozens of audited jurisdictions (Europe + the US), and CVE/security intelligence, every result with a verbatim source citation. Start at https://ansvar.eu/docs/quickstart

### Connect

**Claude Code** (one line):

```bash
claude mcp add ansvar --transport http https://gateway.ansvar.eu/mcp
```

**Claude Desktop / Cursor** — add to `claude_desktop_config.json` (or `mcp.json`):

```json
{
  "mcpServers": {
    "ansvar": {
      "type": "url",
      "url": "https://gateway.ansvar.eu/mcp"
    }
  }
}
```

**Claude.ai** — Settings → Connectors → Add custom connector → paste `https://gateway.ansvar.eu/mcp`

First request opens an OAuth signup flow (setup details: [ansvar.eu/docs/quickstart](https://ansvar.eu/docs/quickstart)). After signup, your client is bound to your account; tier (free / premium / team / company) determines fan-out, quota, and which downstream MCPs are reachable.

---

## Self-host this MCP

You can also clone this repo and build the corpus yourself. The schema,
fetcher, and tool implementations all live here. What is not in the repo is
the pre-built database — TDM and standards-licensing constraints on the
upstream sources mean we host the corpus on Ansvar infrastructure rather
than redistribute it as a public artifact.

Build your own: run this repo's ingestion script (entry-point varies per
repo — typically `scripts/ingest.sh`, `npm run ingest`, or `make ingest`;
check the repo root).
<!-- ANSVAR-CTA-END -->


**Finnish data protection data for AI compliance tools.**

[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![CI](https://github.com/Ansvar-Systems/finnish-data-protection-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/Ansvar-Systems/finnish-data-protection-mcp/actions/workflows/ci.yml)

Query Finnish data protection data -- regulations, decisions, and requirements from Tietosuojavaltuutettu (Office of the Data Protection Ombudsman) -- directly from Claude, Cursor, or any MCP-compatible client.

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

---

## Available Tools (6)

| Tool | Description |
|------|-------------|
| `fi_dp_search_decisions` | Full-text search across Tietosuojavaltuutetun toimisto decisions (päätökset, seuraamusmaksut, huomautukset). Returns ... |
| `fi_dp_get_decision` | Get a specific TSV decision by reference number (e.g., |
| `fi_dp_search_guidelines` | Search Tietosuojavaltuutetun toimisto guidance documents: ohjeet, suositukset, and kannanotot. Covers GDPR implementa... |
| `fi_dp_get_guideline` | Get a specific TSV guidance document by its database ID. |
| `fi_dp_list_topics` | List all covered data protection topics with Finnish and English names. Use topic IDs to filter decisions and guideli... |
| `fi_dp_about` | Return metadata about this MCP server: version, data source, coverage, and tool list. |

All tools return structured data with source references and timestamps.

---

## Data Sources and Freshness

All content is sourced from official Finnish regulatory publications:

- **Tietosuojavaltuutettu (Office of the Data Protection Ombudsman)** -- Official regulatory authority

### Data Currency

- Database updates are periodic and may lag official publications
- Freshness checks run via GitHub Actions workflows
- Last-updated timestamps in tool responses indicate data age

See `sources.yml` for full provenance metadata.

---

## Security

This project uses multiple layers of automated security scanning:

| Scanner | What It Does | Schedule |
|---------|-------------|----------|
| **CodeQL** | Static analysis for security vulnerabilities | Weekly + PRs |
| **Semgrep** | SAST scanning (OWASP top 10, secrets, TypeScript) | Every push |
| **Gitleaks** | Secret detection across git history | Every push |
| **Trivy** | CVE scanning on filesystem and npm dependencies | Daily |
| **Docker Security** | Container image scanning + SBOM generation | Daily |
| **Socket.dev** | Supply chain attack detection | PRs |
| **Dependabot** | Automated dependency updates | Weekly |

See [SECURITY.md](SECURITY.md) for the full policy and vulnerability reporting.

---

## Important Disclaimers

### Not Regulatory Advice

> **THIS TOOL IS NOT REGULATORY OR LEGAL ADVICE**
>
> Regulatory data is sourced from official publications by Tietosuojavaltuutettu (Office of the Data Protection Ombudsman). However:
> - This is a **research tool**, not a substitute for professional regulatory counsel
> - **Verify all references** against primary sources before making compliance decisions
> - **Coverage may be incomplete** -- do not rely solely on this for regulatory research

**Before using professionally, read:** [DISCLAIMER.md](DISCLAIMER.md) | [PRIVACY.md](PRIVACY.md)

### Confidentiality

Queries go through the Claude API. For privileged or confidential matters, use on-premise deployment. See [PRIVACY.md](PRIVACY.md) for details.

---

## Development

### Setup

```bash
git clone https://github.com/Ansvar-Systems/finnish-data-protection-mcp
cd finnish-data-protection-mcp
npm install
npm run build
npm test
```

### Running Locally

```bash
npm run dev                                       # Start MCP server
npx @anthropic/mcp-inspector node dist/index.js   # Test with MCP Inspector
```

### Data Management

```bash
npm run build:db       # Rebuild SQLite database from seed data
npm run check-updates  # Check for new regulatory data
```

---

## More Ansvar MCPs

Full fleet coverage at [ansvar.eu/coverage](https://ansvar.eu/coverage).
## Contributing

Contributions welcome! See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.

---

## License

Apache License 2.0. See [LICENSE](./LICENSE) for details.

### Data Licenses

Regulatory data sourced from official government publications. See `sources.yml` for per-source licensing details.

---

## About Ansvar Systems

We build AI-powered compliance and legal research tools for the European market. Our MCP fleet provides structured, verified regulatory data to AI assistants -- so compliance professionals can work with accurate sources instead of guessing.

**[ansvar.eu](https://ansvar.eu)** -- Stockholm, Sweden

---

<p align="center">
  <sub>Built with care in Stockholm, Sweden</sub>
</p>

TDQS

A3.6/5.0

Scored across 8 tools

Disambiguation4/5

The core pairs are clearly separated: search_* does full-text retrieval while get_* fetches a single record by reference/ID, and decisions vs guidelines are distinct resources. The metadata cluster (about, list_sources, check_data_freshness, list_topics) has mild conceptual overlap but the descriptions delineate each one's purpose.

Naming Consistency4/5

All tools share the fi_dp_ prefix and snake_case, with a mostly predictable verb_noun pattern (list_topics, list_sources, search_decisions, get_decision, check_data_freshness). The lone noun-only 'fi_dp_about' is a minor deviation from the otherwise consistent scheme.

Tool Count5/5

Eight tools is a well-scoped surface for a focused legal-data server: two resource families (decisions, guidelines) each with search+get, plus a small metadata layer. Every tool has a clear, non-redundant role.

Completeness4/5

Search+get coverage for both decisions and guidelines, plus topic, provenance, and freshness metadata, covers the main lifecycle for a read-only data server. Gaps are minor: no way to browse/filter decisions purely by topic without a text query, and no aggregate statistics (e.g., fines by article) that the fine-amount data would support.

Maintenance

ActivityInactive
ResponsivenessNo recent community issues