npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@ansvar/slovenian-law-mcp

v1.1.1

Published

Production-grade Slovenian legal research MCP server with comprehensive statute coverage and EU law cross-references

Readme

Slovenian Law MCP

Production-grade Model Context Protocol server for Slovenian legal research.

npm version MCP Registry License CI Daily Data Check

It provides structured access to:

  • Slovenian statutes and regulations (PIS / pisrs.si)
  • Slovenian case law metadata (sodnapraksa.si)
  • EU legal cross-references (EUR-Lex metadata)
  • Parliamentary preparatory works (Drzavni zbor)

Package: @ansvar/slovenian-law-mcp
MCP name: eu.ansvar/slovenian-law-mcp

Features

  • 14 MCP tools for legal search, citation handling, temporal retrieval, and EU-compliance checks
  • SQLite + FTS5 query engine optimized for article-level lookup
  • Seed-based database build included in repository
  • Optional paid enrichment pipeline (case law ingestion, cross-references, EU import)
  • Stdio transport (CLI/MCP clients) and streamable HTTP transport (Vercel API)

Quick Start

Use Remotely (No Install Needed)

Connect directly to the hosted version — zero dependencies, nothing to install.

Endpoint: https://slovenian-law-mcp.vercel.app/mcp

| Client | How to Connect | |--------|---------------| | Claude.ai | Settings > Connectors > Add Integration > paste URL | | Claude Code | claude mcp add slovenian-law --transport http https://slovenian-law-mcp.vercel.app/mcp | | Claude Desktop | Add to config (see below) | | GitHub Copilot | Add to VS Code settings (see below) |

Claude Desktop — add to claude_desktop_config.json:

{
  "mcpServers": {
    "slovenian-law": {
      "type": "url",
      "url": "https://slovenian-law-mcp.vercel.app/mcp"
    }
  }
}

GitHub Copilot — add to VS Code settings.json:

{
  "github.copilot.chat.mcp.servers": {
    "slovenian-law": {
      "type": "http",
      "url": "https://slovenian-law-mcp.vercel.app/mcp"
    }
  }
}

Use Locally (npm)

npx @ansvar/slovenian-law-mcp

Claude Desktop — add to claude_desktop_config.json:

macOS: ~/Library/Application Support/Claude/claude_desktop_config.json Windows: %APPDATA%\Claude\claude_desktop_config.json

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

Cursor / VS Code:

{
  "mcp.servers": {
    "slovenian-law": {
      "command": "npx",
      "args": ["-y", "@ansvar/slovenian-law-mcp"]
    }
  }
}

Local Development

Prerequisites:

  • Node.js 18+ (Node 20+ recommended)
  • npm

Setup:

npm install
npm run verify:seeds
npm run build
npm test

Run server locally:

npm run dev

Seeded Database

The repository ships with seed files in data/seed/*.json.

  • Build seed database: npm run build:db
  • Audit seed quality: npm run audit:seeds
  • Full seed verification (audit + rebuild): npm run verify:seeds

The prepublishOnly hook enforces release verification:

  • npm run verify:release (seed audit, seed DB build, TypeScript build, tests)

Default runtime DB path:

  • data/database.db

Override with:

  • SLOVENIAN_LAW_DB_PATH=/absolute/path/to/database.db

Example Prompts

Once connected, try asking your AI assistant:

  • "What does Article 14 of ZVOP-2 say about data processing?"
  • "Search for Slovenian laws about environmental protection (varstvo okolja)"
  • "Which EU directives does ZVOP-2 implement?"
  • "Is the Criminal Code (KZ-1) currently in force?"
  • "Show me court decisions about personal data (osebni podatki)"
  • "Build a legal stance on employee dismissal (odpoved pogodbe o zaposlitvi)"
  • "Validate the citation: 1. clen ZKP"
  • "What are the data sources used by this legal database?"

MCP Tools

  1. search_legislation
  2. get_provision
  3. search_case_law
  4. get_preparatory_works
  5. validate_citation
  6. build_legal_stance
  7. format_citation
  8. check_currency
  9. get_eu_basis
  10. get_slovenian_implementations
  11. search_eu_implementations
  12. get_provision_eu_basis
  13. validate_eu_compliance
  14. get_provision_at_date

HTTP Deployment (Vercel)

This repository includes:

  • api/mcp.ts (streamable HTTP MCP endpoint)
  • api/health.ts (health endpoint)
  • vercel.json rewrites:
    • /mcp -> /api/mcp
    • /health -> /api/health

Docker

Build image (requires prebuilt DB):

npm run build:db
docker build -t slovenian-law-mcp .

Data Sources

  • PIS (Pravno-informacijski sistem RS): https://pisrs.si
  • Sodna praksa portal: https://www.sodnapraksa.si
  • EUR-Lex: https://eur-lex.europa.eu
  • Drzavni zbor legislative materials: https://www.dz-rs.si

CI/CD & Security

This repository uses GitHub Actions for automated quality and security enforcement:

| Workflow | Schedule | Purpose | |----------|----------|---------| | CI | Push / PR | Build, test (Node 18/20/22), type check, coverage | | CodeQL | Push / PR / Weekly | Semantic code analysis (security-extended queries) | | Trivy | Push / PR / Daily | Dependency vulnerability scanning (SARIF) | | Semgrep | Push / PR | SAST — OWASP Top 10, secrets, JS/TS rules | | Gitleaks | Push / PR | Secret scanning across full git history | | OSSF Scorecard | Push / Weekly | Repository security hygiene scoring | | Socket Security | Push / PR | Supply chain attack detection | | Docker Security | Push / PR / Daily | Container image scanning + SBOM (CycloneDX, SPDX) | | Data Freshness | Daily | PIS portal amendment check, auto-issue creation | | Publish | Tag v* | npm publish (with provenance) + MCP Registry | | MCPB Bundle | Tag v* | MCPB distribution bundle |

Release Checklist

npm run verify:release
npm pack --dry-run

Important Disclaimers

Legal Advice

THIS TOOL IS NOT LEGAL ADVICE

Statute text is sourced from official PIS/pisrs.si publications. However:

  • This is a research tool, not a substitute for professional legal counsel
  • Court case coverage is limited -- do not rely solely on this for case law research
  • Verify critical citations against primary sources for court filings
  • EU cross-references are extracted from Slovenian statute text, not EUR-Lex full text

Client Confidentiality

Queries go through the Claude API. For privileged or confidential matters, use on-premise deployment. Lawyers should consider Odvetniška zbornica Slovenije (Slovenian Bar Association) confidentiality obligations when using cloud-based AI tools.

Related Projects: Complete Compliance Suite

This server is part of Ansvar's Compliance Suite -- MCP servers that work together for end-to-end compliance coverage:

@ansvar/eu-regulations-mcp

Query 49 EU regulations directly from Claude -- GDPR, AI Act, DORA, NIS2, MiFID II, eIDAS, and more. Full regulatory text with article-level search. npx @ansvar/eu-regulations-mcp

@ansvar/slovenian-law-mcp (This Project)

Query Slovenian statutes directly from Claude -- ZVOP-2, KZ-1, ZGD-1, and more. Full provision text with EU cross-references. npx @ansvar/slovenian-law-mcp

@ansvar/swedish-law-mcp

Query 717 Swedish statutes directly from Claude -- DSL, BrB, ABL, MB, and more. Full provision text with EU cross-references. npx @ansvar/swedish-law-mcp

@ansvar/us-regulations-mcp

Query US federal and state compliance laws -- HIPAA, CCPA, SOX, GLBA, FERPA, and more. npm install @ansvar/us-regulations-mcp

@ansvar/ot-security-mcp

Query IEC 62443, NIST 800-82/53, and MITRE ATT&CK for ICS -- Specialized for OT/ICS environments. npx @ansvar/ot-security-mcp

@ansvar/automotive-cybersecurity-mcp

Query UNECE R155/R156 and ISO 21434 -- Automotive cybersecurity compliance. npx @ansvar/automotive-cybersecurity-mcp

@ansvar/sanctions-mcp

Offline-capable sanctions screening -- OFAC, EU, UN sanctions lists. pip install ansvar-sanctions-mcp

Citation

If you use this MCP server in academic research:

@software{slovenian_law_mcp_2025,
  author = {Ansvar Systems AB},
  title = {Slovenian Law MCP Server: Production-Grade Legal Research Tool},
  year = {2025},
  url = {https://github.com/Ansvar-Systems/Slovenian-law-mcp},
  note = {Comprehensive Slovenian legal database with EU law cross-references}
}

Legal

  • License: Apache-2.0
  • Security policy: see SECURITY.md
  • Contribution guidelines: see CONTRIBUTING.md

Data Licenses

  • Statutes & Regulations: Republic of Slovenia (public domain via PIS)
  • Case Law Metadata: sodnapraksa.si (public domain)
  • EU Metadata: EUR-Lex (EU public domain)
  • Parliamentary Materials: Državni zbor (public domain)

About Ansvar Systems

We build AI-accelerated compliance and legal research tools for the European market. This MCP server is part of our growing suite of jurisdiction-specific legal research tools.

ansvar.eu -- Stockholm, Sweden