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/austrian-law-mcp

v1.0.3

Published

Austrian Law MCP — German legislation via Model Context Protocol

Downloads

320

Readme

Austrian Law MCP Server

Production-oriented MCP server for Austrian federal legislation based on RIS OGD source data.

What This Server Provides

  • Full-text provision search over a local SQLite database (FTS5).
  • Provision retrieval by statute + section/provision reference.
  • Citation validation and formatting for Austrian citation patterns.
  • EU cross-reference lookup (Austrian law <-> EU directives/regulations).
  • Streamable HTTP transport for hosted usage and stdio transport for local usage.

Quick Start

Run Locally (stdio MCP)

npm install
npm run build
npx @ansvar/austrian-law-mcp

Run Locally in Dev Mode

npm install
npm run dev

Use Hosted Endpoint

When deployed to Vercel, connect clients to:

  • https://<your-domain>/mcp
  • Health: https://<your-domain>/health
  • Version: https://<your-domain>/version

Database and Ingestion

Build Database from Seed Files

npm run build:db

Ingest from RIS OGD

# Full ingestion (slow)
npm run ingest

# Single law refresh
npm run ingest -- --law 10001622

Testing

Standard Tests

npm test

Contract/Golden Tests

npm run test:contract

Coverage

npm run test:coverage

Nightly Contract Mode (enables network assertions)

CONTRACT_MODE=nightly npm run test:contract

Drift and Freshness Automation

Check Upstream Freshness

npm run check-updates

This checks configured anchor statutes against RIS “Fassung vom” dates and exits non-zero when updates are detected. In restricted/offline environments you can run:

npm run check-updates -- --allow-errors

Drift Detection Against Anchored Upstream Pages

npm run drift:detect

Initialize/update expected hashes:

npm run drift:detect -- --update

Anchors are defined in fixtures/golden-hashes.json. If outbound access is restricted, use:

npm run drift:detect -- --allow-errors

Apply Refreshed Seed Files to Existing Database

# Update DB using all local seed files
npm run db:update-seed

# Update only specific laws
npm run db:update-seed -- --laws "gesetz-10001622 gesetz-10003940"

Vercel Deployment

This repository includes vercel.json with:

  • Rewrites for /mcp, /health, /version.
  • Build command: bash scripts/download-db.sh && npm run build.
  • Bundled database + node-sqlite3-wasm.wasm in function artifacts.

Deploy

  1. Import the repository in Vercel.
  2. Ensure the tagged release contains database.db.gz for the current package.json version.
  3. Deploy. Verify:
    • /health returns status JSON
    • /version returns version metadata
    • /mcp accepts MCP Streamable HTTP requests

GitHub Actions

The repo includes:

  • CI workflow: build, tests, contract tests, coverage.
  • Data Freshness Check: scheduled update checks, optional auto-refresh mode.
  • Drift Detection: scheduled upstream drift checks with issue creation on mismatch.

Data Provenance

  • Primary source: RIS OGD (https://www.ris.bka.gv.at).
  • Source metadata: sources.yml.
  • Server code license: Apache-2.0.

Disclaimer

This server is a legal research tool, not legal advice. Verify critical legal conclusions against official publications.