🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@ansvar/estonian-law-mcp

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ansvar/estonian-law-mcp

Estonian law database covering data protection, cybersecurity, e-commerce, and criminal law provisions via Model Context Protocol

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

Estonian Law MCP

npm License CI

A Model Context Protocol (MCP) server providing access to Estonian legislation covering data protection, cybersecurity, e-commerce, and criminal law provisions.

MCP Registry: eu.ansvar/estonian-law-mcp npm: @ansvar/estonian-law-mcp

Quick Start

Claude Desktop / Cursor (stdio)

{
  "mcpServers": {
    "estonian-law": {
      "command": "npx",
      "args": ["-y", "@ansvar/estonian-law-mcp"]
    }
  }
}

Remote (Streamable HTTP)

estonian-law-mcp.vercel.app/mcp

Data Sources

SourceAuthorityLicense
Riigi TeatajaRiigikantselei (State Chancellery of Estonia)Estonian Government Open Data (public domain under Estonian Copyright Act § 5)

Full provenance: sources.yml

Corpus Coverage

As of 2026-02-21, the ingestion pipeline supports two statute corpus scopes:

ScopeDiscovery QuerySeed Documents
In-force corpusdokument=seadus&kehtiv=YYYY-MM-DD1561
All statute keys (including non-active)dokument=seadus with active-preferred dedupe1602

Current database build from the all-statutes corpus:

  • 1602 legal documents
  • 63652 legal provisions
  • 982 definitions
  • 804 EU documents
  • 7088 EU references

Notes:

  • The pipeline never fabricates legal text.
  • For statute keys where Riigi Teataja XML has no extractable paragrahv text, a metadata-only seed is written.
  • In the current corpus, 2 repealed statutes are metadata-only due to absent provision text in source XML.

Ingestion & Verification

Ingest in-force corpus (as-of date):

npm run ingest -- --full --resume --as-of 2026-02-21

Ingest all statute keys (maximal scope):

npm run ingest -- --full --all-statutes --resume --as-of 2026-02-21

Rebuild and verify:

npm run build:db
npm run build
npm test
npx tsc --noEmit

Tools

ToolDescription
search_legislationFull-text search across provisions
get_provisionRetrieve specific article/section
validate_citationValidate legal citation
check_currencyCheck if statute is in force
get_eu_basisEU legal basis cross-references
get_estonian_implementationsNational EU implementations
search_eu_implementationsSearch EU documents
validate_eu_complianceEU compliance check
build_legal_stanceComprehensive legal research
format_citationCitation formatting
list_sourcesData provenance
aboutServer metadata

License

Apache-2.0

Important Disclaimers

THIS TOOL IS NOT LEGAL ADVICE

Statute text is sourced from official government publications. However:

  • This is a research tool, not a substitute for professional legal counsel
  • Coverage may be incomplete — verify critical provisions against primary sources
  • Verify all citations against the official legal portal before relying on them professionally
  • Laws change — check the about tool for database freshness date

Client Confidentiality

When using the remote endpoint, queries are processed by third-party infrastructure (Vercel, Claude API). For privileged or confidential legal matters, use the local npm package or on-premise deployment.

Before using professionally, read: DISCLAIMER.md | PRIVACY.md

Open Law

This server is part of Ansvar Open Law — free, structured access to legislation from 70+ jurisdictions worldwide via the Model Context Protocol.

Browse all jurisdictions -> ansvar.eu/open-law

Ansvar MCP Network

Ansvar Open Law is part of the broader Ansvar MCP Network — 80+ servers covering global legislation, EU/US compliance frameworks, and cybersecurity standards.

CategoryCoverage
Legislation70+ jurisdictions worldwide
EU Compliance49 regulations, 2,693 articles
US Compliance15 federal & state regulations
Security Frameworks261 frameworks, 1,451 controls
Cybersecurity200K+ CVEs, STRIDE patterns, sanctions

Explore the full network -> ansvar.ai/mcp

Built by Ansvar Systems | ansvar.eu/open-law

Keywords

mcp

FAQs

Package last updated on 22 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts