Latvian MCP Server

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

Local serverstdioTypeScript

What is the Latvian MCP server?

Most database access work still happens through a UI a human drives. Latvian MCP server moves it into the conversation instead. Latvian legislation via MCP — full-text search across statutes and provisions.

The short version

First request opens an OAuth signup flow (setup details: 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.

We build AI-accelerated compliance and legal research tools for the European market. This MCP server started as our internal reference tool for Latvian law -- turns out everyone building for the Baltic and EU markets has the same research frustrations.

  • 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

Getting it running

@anthropic/mcp-inspector on npm is all you need. Most clients run it directly, so configuration is a few lines and a restart.

The tools it exposes

The server publishes 14 tools. What each one is for:

  • search_legislation — FTS5 full-text search across 57,679 provisions with BM25 ranking. Supports Latvian, quoted phrases, boolean operators, prefix wildcards
  • get_provision — Retrieve specific provision by statute identifier + section (e.g., "Fizisko personu datu apstrādes likums" + "25")
  • check_currency — Check if a statute is in force, amended, or repealed
  • validate_citation — Validate citation against database -- zero-hallucination check
  • build_legal_stance — Aggregate citations from multiple statutes for a legal topic
  • format_citation — Format citations per Latvian conventions (full/short/pinpoint)
  • list_sources — List all available statutes with metadata, coverage scope, and data provenance
  • about — Server info, capabilities, dataset statistics, and coverage summary
  • get_eu_basis — Get EU directives/regulations for a Latvian statute
  • get_latvian_implementations — Find Latvian laws implementing a specific EU act
  • search_eu_implementations — Search EU documents with Latvian implementation counts
  • get_provision_eu_basis — Get EU law references for a specific provision

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • With 14 tools registered it takes up a noticeable share of the context window; turn it off in projects that never touch Latvian.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

How it compares

Plenty of database access servers cover similar ground. The differences that matter in practice are scope of access and how much setup stands between you and a working tool call. Latvian's toolset — search_legislation, get_provision, check_currency and 11 more — is a fair guide to whether it matches your workflow. It is maintained by eu.ansvar; worth a glance at recent repository activity before you build anything load-bearing on it.

SyncDev reviews every entry in this directory against the project's own documentation before publishing, and revisits them as servers change.

Available tools

ToolWhat it does
search_legislationFTS5 full-text search across 57,679 provisions with BM25 ranking. Supports Latvian, quoted phrases, boolean operators, prefix wildcards
get_provisionRetrieve specific provision by statute identifier + section (e.g., "Fizisko personu datu apstrādes likums" + "25")
check_currencyCheck if a statute is in force, amended, or repealed
validate_citationValidate citation against database -- zero-hallucination check
build_legal_stanceAggregate citations from multiple statutes for a legal topic
format_citationFormat citations per Latvian conventions (full/short/pinpoint)
list_sourcesList all available statutes with metadata, coverage scope, and data provenance
aboutServer info, capabilities, dataset statistics, and coverage summary
get_eu_basisGet EU directives/regulations for a Latvian statute
get_latvian_implementationsFind Latvian laws implementing a specific EU act
search_eu_implementationsSearch EU documents with Latvian implementation counts
get_provision_eu_basisGet EU law references for a specific provision
validate_eu_complianceCheck implementation status (future, requires EU MCP)
ConnectFirst 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) determi

How to install the Latvian MCP server

{
  "mcpServers": {
    "latvian-law": {
      "command": "npx",
      "args": ["-y", "@anthropic/mcp-inspector"]
    }
  }
}

Add to claude_desktop_config.json, then restart Claude Desktop.

Example prompts to try

  • Use Latvian to search legislation.
  • Use Latvian to get provision.
  • Use Latvian to check currency.

Frequently asked questions

It connects Latvian to MCP-compatible AI assistants such as Claude and Cursor, exposing 14 tools (search_legislation, get_provision, check_currency, and more) that the assistant can call on your behalf. Instead of copying data back and forth by hand, the assistant works with Latvian directly.