{"_id":"@ansvar/icelandic-law-mcp","_rev":"2-f4fe6371cbe6ff341a72be9f995cb7a8","name":"@ansvar/icelandic-law-mcp","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.1":{"name":"@ansvar/icelandic-law-mcp","version":"1.0.1","keywords":["mcp","model-context-protocol","ai","claude","icelandic-law","iceland","legal","compliance","althingi","lagasafn","ansvar"],"author":{"name":"Ansvar Systems AB","email":"hello@ansvar.ai"},"license":"Apache-2.0","_id":"@ansvar/icelandic-law-mcp@1.0.1","maintainers":[{"name":"ansvar","email":"jeffrey.von.rotz@ansvar.eu"}],"homepage":"https://github.com/Ansvar-Systems/icelandic-law-mcp#readme","bugs":{"url":"https://github.com/Ansvar-Systems/icelandic-law-mcp/issues"},"bin":{"icelandic-law-mcp":"dist/index.js"},"dist":{"shasum":"aeac5e130eb9e9124c106b06c9a139179809baaf","tarball":"https://registry.npmjs.org/@ansvar/icelandic-law-mcp/-/icelandic-law-mcp-1.0.1.tgz","fileCount":152,"integrity":"sha512-0NlCqEwzYkA3WW6TQ6wo5ZaFJQCX8nwH6dh8eZR0BY20PXnovN1oVOetCS5fFSakNzlbu7W7dUxJIAownMVpCg==","signatures":[{"sig":"MEUCIQDFi2iGc5ywB+jDj+7lVrjPnzYkJLGFzuhZR2semyXFZQIgUCjfGYBH/FjqYxT0wE6CNMxnrq2qLr8nLGpduLM40O0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":71017335},"main":"dist/index.js","type":"module","types":"./dist/index.d.ts","engines":{"node":">=18"},"gitHead":"d465f003774d1eb6a96dce9f5b4117f4dd77a012","mcpName":"eu.ansvar/icelandic-law-mcp","scripts":{"dev":"node --import tsx src/index.ts","lint":"eslint src tests","test":"vitest run","build":"tsc","start":"node dist/index.js","ingest":"node --import tsx scripts/ingest-althingi.ts --in-force-only","build:db":"node --import tsx scripts/build-db.ts","validate":"npm run lint && npm test && npm run test:contract","ingest:all":"node --import tsx scripts/ingest-althingi.ts --include-repealed","sync:cases":"echo \"Icelandic case-law sync is not yet configured in this public build\"","test:watch":"vitest","audit:seeds":"node --import tsx scripts/audit-seeds.ts","postinstall":"test -d dist || npm run build || true","drift:detect":"node --import tsx scripts/drift-detect.ts","fetch:eurlex":"node --import tsx scripts/fetch-eurlex-metadata.ts","ingest:cases":"echo \"Icelandic case-law ingestion is not yet configured in this public build\"","build:db:paid":"node --import tsx scripts/build-db-paid.ts","check-updates":"node --import tsx scripts/check-updates.ts","test:contract":"vitest run __tests__/contract/","test:coverage":"vitest run --coverage","prepublishOnly":"npm run build","ingest:auto-all":"node --import tsx scripts/ingest-althingi.ts --in-force-only","ingest:relevant":"node --import tsx scripts/ingest-althingi.ts --in-force-only --max-laws 400","sync:cases:full":"echo \"Icelandic case-law sync is not yet configured in this public build\"","sync:prep-works":"echo \"Preparatory works sync is not yet configured in this public build\"","verify:eu-coverage":"node --import tsx scripts/verify-eu-coverage.ts","extract:definitions":"node --import tsx scripts/extract-definitions.ts","migrate:eu-references":"node --import tsx scripts/migrate-eu-references.ts","import:eurlex-documents":"node --import tsx scripts/import-eurlex-documents.ts","ingest:cases:full-archive":"echo \"Icelandic case-law ingestion is not yet configured in this public build\""},"_npmUser":{"name":"ansvar","email":"jeffrey.von.rotz@ansvar.eu"},"repository":{"url":"git+https://github.com/Ansvar-Systems/icelandic-law-mcp.git","type":"git"},"_npmVersion":"11.6.2","description":"Production-grade Icelandic legal research MCP server with comprehensive statute coverage and EU law cross-references","directories":{},"_nodeVersion":"25.2.1","dependencies":{"@ansvar/mcp-sqlite":"^1.0.3","@modelcontextprotocol/sdk":"^1.25.3"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.21.0","jsdom":"^27.4.0","vitest":"^4.0.18","typescript":"^5.9.3","@types/node":"^22.15.29","@types/jsdom":"^21.1.7","@vercel/node":"^5.6.4","fast-xml-parser":"^5.3.5","@vitest/coverage-v8":"^4.0.18"},"_npmOperationalInternal":{"tmp":"tmp/icelandic-law-mcp_1.0.1_1771572383878_0.29277671050984466","host":"s3://npm-registry-packages-npm-production"},"deprecated":"Ansvar MCP servers are now distributed as source from github.com/Ansvar-Systems/icelandic-law-mcp under Apache 2.0. Self-hosting instructions: see the repo README. Hosted gateway: ansvar.eu"}},"time":{"created":"2026-02-20T07:26:23.762Z","modified":"2026-05-02T05:47:14.217Z","1.0.1":"2026-02-20T07:26:25.105Z"},"bugs":{"url":"https://github.com/Ansvar-Systems/icelandic-law-mcp/issues"},"author":{"name":"Ansvar Systems AB","email":"hello@ansvar.ai"},"license":"Apache-2.0","homepage":"https://github.com/Ansvar-Systems/icelandic-law-mcp#readme","keywords":["mcp","model-context-protocol","ai","claude","icelandic-law","iceland","legal","compliance","althingi","lagasafn","ansvar"],"repository":{"url":"git+https://github.com/Ansvar-Systems/icelandic-law-mcp.git","type":"git"},"description":"Production-grade Icelandic legal research MCP server with comprehensive statute coverage and EU law cross-references","maintainers":[{"name":"ansvar","email":"jeffrey.von.rotz@ansvar.eu"}],"readme":"# Icelandic Law MCP Server\n\n[![npm version](https://badge.fury.io/js/@ansvar%2Ficelandic-law-mcp.svg)](https://www.npmjs.com/package/@ansvar/icelandic-law-mcp)\n[![CI](https://github.com/Ansvar-Systems/icelandic-law-mcp/actions/workflows/ci.yml/badge.svg)](https://github.com/Ansvar-Systems/icelandic-law-mcp/actions/workflows/ci.yml)\n[![Daily Data Check](https://github.com/Ansvar-Systems/icelandic-law-mcp/actions/workflows/check-updates.yml/badge.svg)](https://github.com/Ansvar-Systems/icelandic-law-mcp/actions/workflows/check-updates.yml)\n[![CodeQL](https://github.com/Ansvar-Systems/icelandic-law-mcp/actions/workflows/codeql.yml/badge.svg)](https://github.com/Ansvar-Systems/icelandic-law-mcp/actions/workflows/codeql.yml)\n[![Semgrep](https://github.com/Ansvar-Systems/icelandic-law-mcp/actions/workflows/semgrep.yml/badge.svg)](https://github.com/Ansvar-Systems/icelandic-law-mcp/actions/workflows/semgrep.yml)\n[![Trivy](https://github.com/Ansvar-Systems/icelandic-law-mcp/actions/workflows/trivy.yml/badge.svg)](https://github.com/Ansvar-Systems/icelandic-law-mcp/actions/workflows/trivy.yml)\n[![Gitleaks](https://github.com/Ansvar-Systems/icelandic-law-mcp/actions/workflows/gitleaks.yml/badge.svg)](https://github.com/Ansvar-Systems/icelandic-law-mcp/actions/workflows/gitleaks.yml)\n[![Socket Security](https://github.com/Ansvar-Systems/icelandic-law-mcp/actions/workflows/socket-security.yml/badge.svg)](https://github.com/Ansvar-Systems/icelandic-law-mcp/actions/workflows/socket-security.yml)\n[![OSSF Scorecard](https://github.com/Ansvar-Systems/icelandic-law-mcp/actions/workflows/ossf-scorecard.yml/badge.svg)](https://github.com/Ansvar-Systems/icelandic-law-mcp/actions/workflows/ossf-scorecard.yml)\n\nMCP server for Icelandic statutes with section-level retrieval, citation parsing/validation, and EU cross-reference tools.\n\n## Current Free-Tier Snapshot (2026-02-15)\n\nLatest successful full ingestion/build from official Althingi Lagasafn:\n\n- Source ZIP: <https://www.althingi.is/lagasafn/zip/nuna/allt.zip>\n- ZIP last-modified (from source headers): `Mon, 06 Oct 2025 16:45:51 GMT`\n- Seed generation stats:\n  - scanned HTML files: `1724`\n  - parsed laws: `1714`\n  - written statute seed files: `1709`\n  - duplicate law IDs merged deterministically: `5`\n- Built free DB contents:\n  - `legal_documents`: `1709`\n  - `legal_provisions`: `19026`\n  - `legal_provision_versions`: `19026`\n  - `case_law`: `0`\n  - `preparatory_works`: `0`\n  - `eu_documents`: `4` (baseline catalog)\n  - `eu_references`: `0`\n\nScope note: the free build is production-ready for statute retrieval/search/citation workflows, while case law, preparatory works, and detailed EU reference mappings remain out of scope in this public free dataset.\n\n## Identity\n\n- npm package: `@ansvar/icelandic-law-mcp`\n- MCP name: `eu.ansvar/icelandic-law-mcp`\n- `server.json` name: `eu.ansvar/icelandic-law-mcp`\n\n## Data Sources\n\nThis project ingests official Icelandic legal publication channels:\n\n- Althingi Lagasafn: <https://www.althingi.is/lagasafn/>\n- Snapshot ZIP endpoint used for deterministic ingestion: <https://www.althingi.is/lagasafn/zip/nuna/allt.zip>\n- Additional official references: <https://www.althingi.is/> and <https://www.stjornartidindi.is/>\n\nSource and reuse terms are documented in `LEGAL_DATA_LICENSE.md`.\n\n## Core Commands\n\n```bash\nnpm ci\nnpm run ingest\nnpm run build:db\nnpm run build\nnpm test\n```\n\nValidation gate run (2026-02-15):\n\n```bash\nnpm ci\nnpm run ingest:all\nnpm run build:db\nnpm run build\nnpm test\nnpm run check-updates\ngitleaks detect --source . --report-format sarif --report-path gitleaks.sarif --no-git\n```\n\n### Database Tiers\n\n- `npm run build:db`\n  - Destructive rebuild from `data/seed/**`\n  - Produces baseline DB and `db_metadata` with `tier=free`\n- `npm run build:db:paid`\n  - Additive schema extension on top of existing DB\n  - Preserves base data, updates `db_metadata` to `tier=professional`\n\n## Daily Updates\n\n- Workflow: `.github/workflows/check-updates.yml`\n- Schedule: daily\n- Behavior:\n  - runs freshness check against official source\n  - regenerates seeds + rebuilds DB when newer source detected\n  - opens automated PR with refreshed corpus\n\n## Security and Supply Chain\n\nThis repo includes workflows for:\n\n- CodeQL\n- Semgrep\n- Trivy\n- Gitleaks\n- Socket Security\n- OSSF Scorecard\n\nPublish workflow uses npm provenance attestation.\n\n## Local Usage\n\n```bash\nnpx @ansvar/icelandic-law-mcp\n```\n\nOr configure in an MCP client using stdio with package `@ansvar/icelandic-law-mcp`.\n\n## Environment\n\n- `ICELANDIC_LAW_DB_PATH` (optional): override database path\n","readmeFilename":"README.md"}