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

retsinformation-api-mcp

v1.0.1

Published

MCP server for the Danish Retsinformation API — access Danish laws, bills, parliamentary cases, actors, and more

Readme

retsinformation-api-mcp

MCP server for the Danish Retsinformation API — gives Claude (and other LLMs) direct access to Danish laws, bills, parliamentary cases, actors, and more.

Quick start

Add to your Claude Code config (~/.claude/claude_desktop_config.json):

{
  "mcpServers": {
    "retsinformation": {
      "command": "npx",
      "args": ["-y", "retsinformation-api-mcp"]
    }
  }
}

Or run directly:

npx retsinformation-api-mcp

Tools (47 total)

Laws (Love) — 17 tools

| Tool | Description | |------|-------------| | search_laws | Search/list laws with filtering by year, ministry, type | | get_law | Get a specific law by year and number | | get_law_cases | Get parliamentary cases related to a law | | get_law_legislative_history | Full legislative history with process steps | | get_law_actors | Get actors involved with a law | | get_law_amendments | Get all amendments to a law | | get_law_versions | Get version history | | get_law_latest_version | Get latest version with all amendments applied | | get_law_version | Get a specific version by number | | get_law_at_date | Get law as it looked on a given date | | diff_law_versions | Compare two versions | | get_law_paragraph | Get a specific paragraph from a law | | get_law_paragraph_stk | Get a subsection (stk.) of a paragraph | | get_law_markdown | Export law as Markdown | | get_law_latest_markdown | Export latest version as Markdown | | get_law_at_date_markdown | Export historical version as Markdown | | get_law_version_markdown | Export specific version as Markdown |

Bills (Lovforslag) — 11 tools

| Tool | Description | |------|-------------| | search_bills | Search/list legislative bills | | get_bill | Get a specific bill by number | | get_bill_steps | Get legislative process steps | | get_bill_actors | Get actors involved | | get_bill_documents | Get related documents | | get_bill_enacted_law | Get the enacted law from a bill | | get_bill_keywords | Get topic keywords | | get_bill_text | Get bill text content | | get_bill_step_actors | Get actors in a specific step | | get_bill_step_documents | Get documents for a step | | get_bill_document_files | Get downloadable files |

Parliamentary Cases (Folketingssager) — 9 tools

| Tool | Description | |------|-------------| | search_cases | Search all 13 case types | | get_case | Get a case by FT ID | | get_case_steps | Get process steps | | get_case_actors | Get actors involved | | get_case_documents | Get case documents | | get_case_keywords | Get topic keywords | | get_case_text | Get case text | | get_case_step_actors | Get step actors | | get_case_step_documents | Get step documents |

Keywords (Emneord) — 3 tools

| Tool | Description | |------|-------------| | search_keywords | Search topic keywords | | get_keyword | Get a keyword by FT ID | | get_keyword_cases | Get cases with a keyword |

Actors (Aktorer) — 4 tools

| Tool | Description | |------|-------------| | search_actors | Search politicians, committees, ministries | | get_actor | Get an actor by FT ID | | get_actor_relationships | Get actor relationships | | get_actor_memberships | Get party/committee memberships |

Periods (Perioder) — 3 tools

| Tool | Description | |------|-------------| | search_periods | List parliamentary periods | | get_current_period | Get current period | | get_period | Get period by FT ID |

Rate limiting

The Retsinformation API allows 20 requests/hour and 50 requests/day per IP. This server includes a 30-minute in-memory cache to minimize API calls.

Development

npm install
npm run build
npm start

License

MIT