{"_id":"@ansvar/estonian-law-mcp","_rev":"2-e8bbe0d52488d92f0005e569d502c0ca","name":"@ansvar/estonian-law-mcp","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@ansvar/estonian-law-mcp","version":"1.0.0","keywords":["mcp","model-context-protocol","estonian-law","data-protection","gdpr","cybersecurity","legislation","legal","compliance","ansvar"],"author":{"name":"Ansvar Systems","email":"hello@ansvar.eu"},"license":"Apache-2.0","_id":"@ansvar/estonian-law-mcp@1.0.0","maintainers":[{"name":"ansvar","email":"jeffrey.von.rotz@ansvar.eu"}],"homepage":"https://ansvar.eu","bugs":{"url":"https://github.com/Ansvar-Systems/Estonian-law-mcp/issues"},"bin":{"estonian-law-mcp":"dist/index.js"},"dist":{"shasum":"8498ebe61b01cb55849b2d4c35f175d2fadc9027","tarball":"https://registry.npmjs.org/@ansvar/estonian-law-mcp/-/estonian-law-mcp-1.0.0.tgz","fileCount":120,"integrity":"sha512-w06NgKRpEymGZrm3uXDBcgMmDbD8dIZSRvXis+60fN0PXDw9G8ENp1HVGVIirMVT0fcFydzVyDNXk23WRQY1FQ==","signatures":[{"sig":"MEQCIC53WoRHN0iEONFIrUNRMW5obCypzBWf+6Hv9Z32OwZDAiAOLjzalj3nl2qGGU/pDl5ZM2q5tL6BT82Nr9N20eMcjA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@ansvar%2festonian-law-mcp@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":260188},"main":"dist/index.js","type":"module","engines":{"node":">=18"},"gitHead":"15e042699ebbbaa7c569c523dab4e3f2ec7951bc","mcpName":"eu.ansvar/estonian-law-mcp","scripts":{"dev":"node --import tsx src/index.ts","lint":"tsc --noEmit","test":"vitest run","build":"tsc","start":"node dist/index.js","ingest":"node --import tsx scripts/ingest.ts","build:db":"node --import tsx scripts/build-db.ts","validate":"npm run lint && npm test && npm run test:contract","test:watch":"vitest","postinstall":"test -d dist || npm run build || true","drift:detect":"node --import tsx scripts/drift-detect.ts","test:contract":"vitest run __tests__/contract/","test:coverage":"vitest run --coverage","prepublishOnly":"npm run build"},"_npmUser":{"name":"ansvar","email":"jeffrey.von.rotz@ansvar.eu"},"overrides":{"ajv":"^8.18.0","undici":"^7.0.0","path-to-regexp":"^8.0.0"},"repository":{"url":"git+https://github.com/Ansvar-Systems/Estonian-law-mcp.git","type":"git"},"_npmVersion":"10.8.2","description":"Estonian law database covering data protection, cybersecurity, e-commerce, and criminal law provisions via Model Context Protocol","directories":{},"_nodeVersion":"20.20.0","dependencies":{"@ansvar/mcp-sqlite":"^1.0.3","@modelcontextprotocol/sdk":"^1.25.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","vitest":"^3.0.0","typescript":"^5.9.3","@types/node":"^22.15.29","@vercel/node":"^5.6.4","better-sqlite3":"^12.6.2","@types/better-sqlite3":"^7.6.13"},"_npmOperationalInternal":{"tmp":"tmp/estonian-law-mcp_1.0.0_1771775183891_0.11675120075955125","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Ansvar MCP servers are now distributed as source from github.com/Ansvar-Systems/estonian-law-mcp under Apache 2.0. Self-hosting instructions: see the repo README. Hosted gateway: ansvar.eu"}},"time":{"created":"2026-02-22T15:46:23.727Z","modified":"2026-05-02T05:46:51.290Z","1.0.0":"2026-02-22T15:46:24.067Z"},"bugs":{"url":"https://github.com/Ansvar-Systems/Estonian-law-mcp/issues"},"author":{"name":"Ansvar Systems","email":"hello@ansvar.eu"},"license":"Apache-2.0","homepage":"https://ansvar.eu","keywords":["mcp","model-context-protocol","estonian-law","data-protection","gdpr","cybersecurity","legislation","legal","compliance","ansvar"],"repository":{"url":"git+https://github.com/Ansvar-Systems/Estonian-law-mcp.git","type":"git"},"description":"Estonian law database covering data protection, cybersecurity, e-commerce, and criminal law provisions via Model Context Protocol","maintainers":[{"name":"ansvar","email":"jeffrey.von.rotz@ansvar.eu"}],"readme":"# Estonian Law MCP\n\n[![npm](https://img.shields.io/npm/v/@ansvar/estonian-law-mcp)](https://www.npmjs.com/package/@ansvar/estonian-law-mcp)\n[![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](LICENSE)\n[![CI](https://github.com/Ansvar-Systems/Estonian-law-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/Ansvar-Systems/Estonian-law-mcp/actions/workflows/ci.yml)\n\nA Model Context Protocol (MCP) server providing access to Estonian legislation covering data protection, cybersecurity, e-commerce, and criminal law provisions.\n\n**MCP Registry:** `eu.ansvar/estonian-law-mcp`\n**npm:** `@ansvar/estonian-law-mcp`\n\n## Quick Start\n\n### Claude Desktop / Cursor (stdio)\n\n```json\n{\n  \"mcpServers\": {\n    \"estonian-law\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@ansvar/estonian-law-mcp\"]\n    }\n  }\n}\n```\n\n### Remote (Streamable HTTP)\n\n```\nestonian-law-mcp.vercel.app/mcp\n```\n\n## Data Sources\n\n| Source | Authority | License |\n|--------|-----------|---------|\n| [Riigi Teataja](https://www.riigiteataja.ee) | Riigikantselei (State Chancellery of Estonia) | Estonian Government Open Data (public domain under Estonian Copyright Act § 5) |\n\n> Full provenance: [`sources.yml`](./sources.yml)\n\n## Corpus Coverage\n\nAs of **2026-02-21**, the ingestion pipeline supports two statute corpus scopes:\n\n| Scope | Discovery Query | Seed Documents |\n|------|------------------|----------------|\n| In-force corpus | `dokument=seadus&kehtiv=YYYY-MM-DD` | `1561` |\n| All statute keys (including non-active) | `dokument=seadus` with active-preferred dedupe | `1602` |\n\nCurrent database build from the all-statutes corpus:\n\n- `1602` legal documents\n- `63652` legal provisions\n- `982` definitions\n- `804` EU documents\n- `7088` EU references\n\nNotes:\n\n- The pipeline never fabricates legal text.\n- For statute keys where Riigi Teataja XML has no extractable `paragrahv` text, a metadata-only seed is written.\n- In the current corpus, `2` repealed statutes are metadata-only due to absent provision text in source XML.\n\n## Ingestion & Verification\n\nIngest in-force corpus (as-of date):\n\n```bash\nnpm run ingest -- --full --resume --as-of 2026-02-21\n```\n\nIngest all statute keys (maximal scope):\n\n```bash\nnpm run ingest -- --full --all-statutes --resume --as-of 2026-02-21\n```\n\nRebuild and verify:\n\n```bash\nnpm run build:db\nnpm run build\nnpm test\nnpx tsc --noEmit\n```\n\n## Tools\n\n| Tool | Description |\n|------|-------------|\n| `search_legislation` | Full-text search across provisions |\n| `get_provision` | Retrieve specific article/section |\n| `validate_citation` | Validate legal citation |\n| `check_currency` | Check if statute is in force |\n| `get_eu_basis` | EU legal basis cross-references |\n| `get_estonian_implementations` | National EU implementations |\n| `search_eu_implementations` | Search EU documents |\n| `validate_eu_compliance` | EU compliance check |\n| `build_legal_stance` | Comprehensive legal research |\n| `format_citation` | Citation formatting |\n| `list_sources` | Data provenance |\n| `about` | Server metadata |\n\n## License\n\nApache-2.0\n\n\n---\n\n## Important Disclaimers\n\n### Not Legal Advice\n\n> **THIS TOOL IS NOT LEGAL ADVICE**\n>\n> Statute text is sourced from official government publications. However:\n> - This is a **research tool**, not a substitute for professional legal counsel\n> - **Coverage may be incomplete** — verify critical provisions against primary sources\n> - **Verify all citations** against the official legal portal before relying on them professionally\n> - Laws change — check the `about` tool for database freshness date\n\n### Client Confidentiality\n\nWhen using the remote endpoint, queries are processed by third-party infrastructure\n(Vercel, Claude API). For privileged or confidential legal matters, use the local\nnpm package or on-premise deployment.\n\n**Before using professionally, read:** [DISCLAIMER.md](DISCLAIMER.md) | [PRIVACY.md](PRIVACY.md)\n\n---\n\n## Open Law\n\nThis server is part of **Ansvar Open Law** — free, structured access to legislation\nfrom 70+ jurisdictions worldwide via the Model Context Protocol.\n\n**Browse all jurisdictions ->** [ansvar.eu/open-law](https://ansvar.eu/open-law)\n\n## Ansvar MCP Network\n\nAnsvar Open Law is part of the broader **Ansvar MCP Network** — 80+ servers covering\nglobal legislation, EU/US compliance frameworks, and cybersecurity standards.\n\n| Category | Coverage |\n|----------|----------|\n| **Legislation** | 70+ jurisdictions worldwide |\n| **EU Compliance** | 49 regulations, 2,693 articles |\n| **US Compliance** | 15 federal & state regulations |\n| **Security Frameworks** | 261 frameworks, 1,451 controls |\n| **Cybersecurity** | 200K+ CVEs, STRIDE patterns, sanctions |\n\n**Explore the full network ->** [ansvar.ai/mcp](https://ansvar.ai/mcp)\n\n---\n\nBuilt by [Ansvar Systems](https://ansvar.eu) | [ansvar.eu/open-law](https://ansvar.eu/open-law)\n","readmeFilename":"README.md"}