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

elpriser-mcp

v1.0.0

Published

MCP server for Danish electricity prices (elpriser.org) — current spot price, cheapest hours, and 7-day forecast for DK1 and DK2.

Readme

elpriser-mcp

MCP server for Danish electricity prices — current spot price, cheapest hours, and a 7-day forecast for DK1 and DK2, straight from elpriser.org.

A Model Context Protocol server that lets an LLM (Claude Desktop, etc.) answer questions like:

  • "Hvad er elprisen lige nu?" / "What does electricity cost right now in Denmark?"
  • "Hvornår er strøm billigst i morgen?" — find the cheapest hours to charge the EV / run the heat pump
  • "Vis elpriser i dag time for time for DK2"
  • "Hvordan ser elprisprognosen ud de næste 7 dage?"

Data comes from the free, public elpriser.org API, which is sourced from Energi Data Service (Energinet) / Nord Pool. Prices can be the raw spot price or the total price you actually pay per kWh (incl. system & transmission tariffs, electricity tax and 25% VAT). No API key required.

Tools

| Tool | What it does | |---|---| | get_current_price | Current price for this hour (DK1/DK2) | | get_today_prices | All 24 hourly prices for a date | | get_cheapest_hours | The N cheapest hours of the day (EV/heat-pump scheduling) | | get_price_forecast | 7-day forecast (actual for today/tomorrow, estimate beyond) | | find_net_company | Net company (netselskab) for a lat/lng — for exact total price |

All tools take an area (DK1 or DK2, default DK1) and most take a mode:

  • spot_ex — raw spot price, no VAT
  • spot_inkl — spot price incl. 25% VAT
  • inkl_alt (default) — total price incl. all tariffs + electricity tax + VAT
  • inkl_alt_minus — total without electricity tax

Install

Requires Node.js ≥ 18.

Claude Desktop

Add to your claude_desktop_config.json (macOS: ~/Library/Application Support/Claude/claude_desktop_config.json, Windows: %APPDATA%\Claude\claude_desktop_config.json):

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

Restart Claude Desktop. You should see the elpriser tools available.

Any other MCP client

Run the server over stdio:

npx -y elpriser-mcp

Or install globally:

npm install -g elpriser-mcp
elpriser-mcp

Examples

You: Hvornår er strøm billigst i morgen i DK1?

Claude (calls get_cheapest_hours area=DK1 hours=5 date=…): De billigste timer i morgen er 02–05 og 13–14 …

Configuration

| Env var | Default | Purpose | |---|---|---| | ELPRISER_API_BASE | https://elpriser.org | Override the API base (e.g. for testing). |

How it works

elpriser-mcp is a thin wrapper over the public elpriser.org REST API (/api/now, /api/prices, /api/schedule, /api/forecast, /api/supplierlookup). The full OpenAPI 3.1 spec lives at https://elpriser.org/api/openapi.json and human docs at https://elpriser.org/api.

License

MIT © elpriser.org


Built and maintained alongside elpriser.org — aktuelle elpriser og spotpriser time for time for hele Danmark.