Skip to main content
Glama

Finland Legal Research MCP Server (fi-legal-mcp)

Suomi | Svenska | English Documentation


Oikeudellinen MCP-palvelin (Lainsäädäntö ja oikeuskäytäntö) (fi-legal-mcp) — Suomi

Tietoa tästä paketista

Tämä paketti sisältää Model Context Protocol (MCP) -palvelimen, joka yhdistää tekoälysovelluksesi (Claude Desktop, Cursor, Windsurf, VS Code / Copilot, Cline tai Antigravity) suoraan Finlex-tietokantaan (finlex.fi) ja Suomen tuomioistuinjärjestelmän ratkaisuihin (käräjäoikeudet, hallinto-oikeudet, hovioikeudet, korkein oikeus KKO ja korkein hallinto-oikeus KHO).

Asennus (Tekoälysovelluksen valinta)

  1. Lataa: Napsauta oikeasta yläkulmasta <> Code -> Download ZIP ja pura kansio tietokoneellesi.

  2. Käynnistä asennusohjelma: Kaksoisnapsauta Click_Here_To_Install_Windows.bat (Windows) tai Click_Here_To_Install_Mac.command (macOS).

  3. Valitse tekoälysovellus: Valitse käyttämäsi tekoälyohjelmat (Claude, Cursor, Windsurf, VS Code, Antigravity), napsauta asenna ja käynnistä valitsemasi sovellus uudelleen.

Tietoturvahuomautus: Ohjelma toimii vain luku -tilassa (read-only) eikä lue tai muokkaa tietokoneellasi olevia henkilökohtaisia tiedostoja.

Oikeusasteet ja viralliset tietolähteet

Oikeusaste

Kattavat tuomioistuimet

Ensimmäinen oikeusaste (Käräjä- ja hallinto-oikeudet)

20 Käräjäoikeudet (District Courts), 6 Hallinto-oikeudet (Regional Administrative Courts) & Markkinaoikeus (Market Court)

Muutoksenhakuaste (Hovioikeudet)

5 Hovioikeudet (Courts of Appeal: Helsinki, Turku, Vaasa, Itä-Suomi, Rovaniemi) & Vakuutusoikeus

Ylimmät tuomioistuimet (KKO ja KHO)

Korkein oikeus (KKO — Supreme Court) & Korkein hallinto-oikeus (KHO — Supreme Administrative Court)

  • Finlex Open Data API (finlex.fi / data.finlex.fi): https://www.finlex.fi (finlex.fi, eduskunta.fi)

  • Finlex Oikeuskäytäntö (finlex.fi/fi/oikeus — KKO, KHO, Hovioikeudet & Hallinto-oikeudet): https://www.finlex.fi/fi/oikeus/ (finlex.fi, korkeinoikeus.fi, kho.fi, oikeus.fi)


Related MCP server: be-legal-mcp

Rättslig MCP-server för lagstiftning och rättspraxis (fi-legal-mcp) — Svenska

Om detta arkiv

Detta arkiv innehåller en Model Context Protocol (MCP) server som ansluter din AI-applikation (Claude Desktop, Cursor, Windsurf, VS Code / Copilot, Cline eller Antigravity) direkt till officiella författningssamlingar och rättsfallsdatabaser för Finland (första instans, hovrätter/kammarrätter samt högsta domstolar).

Installation (Val av AI-applikation)

  1. Ladda ner: Klicka på <> Code -> Download ZIP uppe till höger och packa upp mappen på din dator.

  2. Starta installationsguiden: Dubbelklicka på Click_Here_To_Install_Windows.bat (Windows) eller Click_Here_To_Install_Mac.command (macOS).

  3. Välj AI-klient: Markera de AI-program du använder (Claude, Cursor, Windsurf, VS Code, Antigravity), klicka på installera och starta om din AI-applikation.

Säkerhetsinformation: Installationsprogrammet arbetar i skrivskyddat läge (read-only) och läser eller ändrar inga personliga filer på din dator.

Domstolshierarki och officiella källor

Instans

Domstolar som omfattas

1:a instans (Underrätter)

20 Käräjäoikeudet (District Courts), 6 Hallinto-oikeudet (Regional Administrative Courts) & Markkinaoikeus (Market Court)

2:a instans (Överrätter / Appellationsdomstolar)

5 Hovioikeudet (Courts of Appeal: Helsinki, Turku, Vaasa, Itä-Suomi, Rovaniemi) & Vakuutusoikeus

Högsta instans (Högsta domstolar)

Korkein oikeus (KKO — Supreme Court) & Korkein hallinto-oikeus (KHO — Supreme Administrative Court)

  • Finlex Open Data API (finlex.fi / data.finlex.fi): https://www.finlex.fi (finlex.fi, eduskunta.fi)

  • Finlex Oikeuskäytäntö (finlex.fi/fi/oikeus — KKO, KHO, Hovioikeudet & Hallinto-oikeudet): https://www.finlex.fi/fi/oikeus/ (finlex.fi, korkeinoikeus.fi, kho.fi, oikeus.fi)


English Documentation

Model Context Protocol (MCP) server providing live, read-only access to Finland (FI) legislation, official gazettes, multi-tier judicial decisions (First Instance, Regional/Cantonal/Appellate, and Supreme/Constitutional courts, including HTML and PDF full-text extraction), and statutory citation verification across all major AI clients (ChatGPT Desktop, OpenAI Codex CLI, Claude Desktop, Claude Code CLI, Cursor, Windsurf, VS Code / GitHub Copilot / Cline / Roo Code, Google Antigravity / Gemini CLI, Perplexity, and Continue.dev).


Interactive Desktop Setup (Select Your AI Assistant)

This package includes a graphical installer for legal practitioners and non-technical users that lets you select which AI application(s) you use:

  1. Download: Click <> Code at the top right of this repository, select Download ZIP, and extract the folder to your computer.

  2. Run the Setup Utility:

    • Windows: Double-click Click_Here_To_Install_Windows.bat

    • macOS: Double-click Click_Here_To_Install_Mac.command

  3. Select Your AI Client(s) & Connect: Check the box(es) for the AI assistant(s) installed on your computer (ChatGPT Desktop & OpenAI Codex CLI, Claude Desktop & Claude Code CLI, Cursor, Windsurf, VS Code / GitHub Copilot / Cline / Roo Code, Google Antigravity / Gemini CLI, or Perplexity / Continue.dev), click Install to Selected AI Clients, and restart your selected AI application.

System Integrity Note: The setup utility operates strictly in read-only mode with respect to your personal files and documents. It installs an isolated Python runtime inside the extracted folder and registers the server entry only in the AI client configuration files you select.


Multi-Tier Judicial Hierarchy & Live Indexed National Archives

This server performs live queries across the full judicial hierarchy and official legal archives of Finland, extracting full text from both HTML pages and official court/gazette PDF judgments:

Judicial Tier

Covered Courts & Tribunals

Tier 1 — First Instance

20 Käräjäoikeudet (District Courts), 6 Hallinto-oikeudet (Regional Administrative Courts) & Markkinaoikeus (Market Court)

Tier 2 — Regional / Cantonal / Appellate

5 Hovioikeudet (Courts of Appeal: Helsinki, Turku, Vaasa, Itä-Suomi, Rovaniemi) & Vakuutusoikeus

Tier 3 — Supreme & Constitutional

Korkein oikeus (KKO — Supreme Court) & Korkein hallinto-oikeus (KHO — Supreme Administrative Court)

Official Portals & Live Indexed Domains

  • National Legislation & Official Gazette: Finlex Open Data API (finlex.fi / data.finlex.fi) — https://www.finlex.fi

    • Indexed Legislation Domains: finlex.fi, eduskunta.fi

  • Court Decisions & Jurisprudence Archives: Finlex Oikeuskäytäntö (finlex.fi/fi/oikeus — KKO, KHO, Hovioikeudet & Hallinto-oikeudet) — https://www.finlex.fi/fi/oikeus/

    • Indexed Judicial & Open Case Law Domains: finlex.fi, korkeinoikeus.fi, kho.fi, oikeus.fi


Available MCP Tools

Tool

Description

search_legislation

Searches enacted statutes, codes, decrees, and official gazette publications in Finland.

search_case_law

Searches national jurisprudence and open judicial archives for Finland.

search_tiered_court_decisions

Filters case law specifically by judicial instance (first_instance, appellate_regional, supreme_constitutional) or specific regional/cantonal/district court.

list_court_hierarchy

Returns the complete 3-tier court structure and supported regional court filters for Finland.

get_legal_document_markdown

Retrieves full statutory or judicial texts (both HTML and official .pdf court judgments) and converts them into clean Markdown.

verify_citation

Validates statutory and case law citations against official registries.


{
  "mcpServers": {
    "fi-legal-mcp": {
      "command": "uvx",
      "args": [
        "--from",
        "https://github.com/jurisatlas/fi-legal-mcp/archive/refs/heads/main.zip",
        "fi-legal-mcp"
      ]
    }
  }
}

Available Tools

6 tools
list_court_hierarchyList Court HierarchyA

Return the complete step-by-step multi-tier judicial hierarchy for Finland (FI): Tier 1 (First Instance / Trial / Municipal / District Courts), Tier 2 (Regional / Cantonal / County / Appellate Courts), Tier 3 (Supreme / Cassation / Constitutional Courts), and all official court sub-portals.

Inputs: no named parameters. Returns: object

search_case_lawSearch Case LawB

Search Finland (FI) court decisions and binding precedents via Finlex Oikeuskäytäntö (KKO Supreme Court & KHO Supreme Administrative Court) and open national judicial archives (Supported courts: Korkein oikeus (KKO), Korkein hallinto-oikeus (KHO), Hovioikeudet).

Inputs: query (required), court, limit. Returns: object

search_legislationSearch LegislationB

Search Finland (FI) national legislation (statutes, acts, codes, regulations, official gazette) via Finlex Open Data API (finlex.fi / data.finlex.fi) and live national legal archives.

Inputs: query (required), year, limit. Returns: object

search_tiered_court_decisionsSearch Tiered Court DecisionsA

Search court decisions in Finland (FI) filtered by specific judicial tier or regional/cantonal/appellate court. Supports Tier 1 (first_instance), Tier 2 (appellate_regional — including Cantonal/Regional/County/Circuit courts), and Tier 3 (supreme_constitutional), or a specific sub-portal key from list_court_hierarchy.

Inputs: query (required), tier, limit, sub_court. Returns: object

verify_citationVerify CitationA

No-Hallucination Citation Verifier for Finland (FI). Validates format and live existence of legal citations (e.g., 'KKO:2024:15 or 731/1999') against official Finland and ECLI/ELI registries to prevent AI-hallucinated citations.

Inputs: citation (required). Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 6 tools

    Disambiguation4/5

    Most tools target clearly separate resources: legislation search, document retrieval, court hierarchy metadata, and citation verification. The one weak boundary is between search_case_law and search_tiered_court_decisions, which both search court decisions — the tier filter differentiates them, but an agent could plausibly pick the wrong one.

    Naming Consistency5/5

    All names are snake_case with a leading verb (search_, get_, list_, verify_) followed by a descriptive noun phrase. Predictable and uniform across the set.

    Tool Count5/5

    Six tools is a tight, well-scoped surface for a legal research server — each tool maps to a distinct research activity with no filler.

    Completeness4/5

    Covers the full research lifecycle: find legislation, find case law, retrieve full text, understand court structure, drill into tiers, and verify citations. Minor gaps such as section-level statute lookup or metadata-only retrieval are workable via the markdown retrieval tool.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Enables read-only search and retrieval of Austrian legislation and multi-tier court decisions, conversion of legal documents to Markdown, and verification of statutory and case-law citations against official registries.
      6
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables read-only search and retrieval of Belgian legislation and multi-tier court decisions, filtering case law by judicial instance, converting legal texts to Markdown, and verifying statutory and case-law citations against official registries.
      6
      MIT