Skip to content
Back to search

energidata-mcp

MCP server that gives an AI assistant Danish power data: CO2 intensity, spot price, cleanest and cheapest hours

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/batutho-dot--energidata-mcp/badge.svg)](/listings/batutho-dot--energidata-mcp)

HTML

<a href="/listings/batutho-dot--energidata-mcp"><img src="/api/listings/batutho-dot--energidata-mcp/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

One command, with [uv](https://docs.astral.sh/uv/) (no clone, no venv):

uvx energidata-mcp

That works once the package is on PyPI. Until then, install straight from GitHub:

uvx --from git+https://github.com/batutho-dot/energidata-mcp energidata-mcp

Or with pip: `pip install energidata-mcp`, then run `energidata-mcp`. Either way the server starts on stdio and waits silently for an MCP host to talk to it.

Claude Code:

claude mcp add energidata -- uvx energidata-mcp

Claude Desktop: add this to `claude_desktop_config.json` (Settings, Developer, Edit Config) and restart the app:

{
  "mcpServers": {
    "energidata": {
      "command": "uvx",
      "args": ["energidata-mcp"]
    }
  }
}

Needs Python 3.11 or newer. From a clone, `uvx --from . energidata-mcp` runs your local copy.

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 97 lines
  1. # energidata-mcp
  2. <!-- mcp-name: io.github.batutho-dot/energidata-mcp -->
  3. An MCP server that lets an AI assistant look up Danish electricity data from Energinet's open Energi Data Service: CO2 intensity, day-ahead spot price, and the cleanest or cheapest hours, for price area DK1 or DK2.
  4. **Result:** 10 out of 10 (Claude Sonnet 5.5 through Claude Code 2.1.314, 2026-11-19), after one fix to the server. Before the fix it was 9 out of 10. The miss was my server's arithmetic, not the model.
  5. ## Install
  6. One command, with [uv](https://docs.astral.sh/uv/) (no clone, no venv):
  7. ```bash
  8. uvx energidata-mcp
  9. ```
  10. That works once the package is on PyPI. Until then, install straight from GitHub:
  11. ```bash
  12. uvx --from git+https://github.com/batutho-dot/energidata-mcp energidata-mcp
  13. ```
  14. Or with pip: `pip install energidata-mcp`, then run `energidata-mcp`. Either way the server starts on stdio
  15. and waits silently for an MCP host to talk to it.
  16. Claude Code:
  17. ```bash
  18. claude mcp add energidata -- uvx energidata-mcp
  19. ```
  20. Claude Desktop: add this to `claude_desktop_config.json` (Settings, Developer, Edit Config) and
  21. restart the app:
  22. ```json
  23. {
  24. "mcpServers": {
  25. "energidata": {
  26. "command": "uvx",
  27. "args": ["energidata-mcp"]
  28. }
  29. }
  30. }
  31. ```
  32. Needs Python 3.11 or newer. From a clone, `uvx --from . energidata-mcp` runs your local copy.
  33. ## Tools
  34. | Tool | Answers | Dataset |
  35. |---|---|---|
  36. | `co2_intensity(area, start, end, source)` | g CO2/kWh per hour | `CO2Emis` (measured) or `CO2EmisProg` (forecast) |
  37. | `spot_price(area, start, end, currency)` | DKK or EUR per MWh per hour | `DayAheadPrices` |
  38. | `best_hours(area, metric, start, end, n_hours, consecutive, highest)` | the n cleanest or cheapest hours, or the best block of n back-to-back hours | as above |
  39. Structure: [docs/architecture.md](docs/architecture.md).
  40. ## Results
  41. | # | Question (short) | Right answer (plain script) | Agent run 1 (run 2 is after the fix) |
  42. |---|---|---|---|
  43. | 1 | CO2 DK1, 17 Nov, 08:00 | 189.83 g/kWh | right |
  44. | 2 | Cleanest hour DK2, 17 Nov | 01:00 (24.58 g/kWh) | right |
  45. | 3 | Lower daily CO2, 18 Nov | DK1, 120.92 vs DK2 121.48 g/kWh | right |
  46. | 4 | Price DK1, 17 Nov, 18:00 | 1586.96 DKK/MWh | right |
  47. | 5 | Cheapest hour DK2, 18 Nov | 04:00 (829.75 DKK/MWh) | right |
  48. | 6 | Dearest hour DK1, 18 Nov | 18:00, 1574.96 DKK/MWh | right |
  49. | 7 | Cheapest 3 h block DK1, 17 Nov | starts 21:00, mean 1255.58 DKK/MWh | right |
  50. | 8 | Cleanest 3 h block DK2, 18 Nov | starts 08:00, mean 108.19 g/kWh | right (said mean 108.2); run 2 right (108.19) |
  51. | 9 | 4 cheapest hours DK1, 18 Nov, 06 to 22 | 06:00, 11:00, 12:00, 13:00 | right |
  52. | 10 | Day mean DK2, 17 Nov, EUR | 225.69 EUR/MWh | **wrong** (225.68); run 2 right (225.69) |
  53. Test set and failures: [docs/details.md](docs/details.md). Pip install: `pip install .`, then `energidata-mcp`.
  54. ## Limits
  55. - **Rate limit.** After very few uncached calls the next got HTTP 429 (about 60 seconds).
  56. - **Hourly values are averages** of the 15-minute price rows and 5-minute CO2 rows.
  57. - **Prices start 2025-10-01.** No taxes, tariffs or grid fees.
  58. - **CO2 data is initial data.** The forecast path (`CO2EmisProg`) is not in the test set.
  59. ## Data and licence
  60. Data: Energinet, [Energi Data Service](https://www.energidataservice.dk/), datasets
  61. [CO2Emis](https://www.energidataservice.dk/tso-electricity/CO2Emis),
  62. [CO2EmisProg](https://www.energidataservice.dk/tso-electricity/CO2EmisProg) and
  63. [DayAheadPrices](https://www.energidataservice.dk/tso-electricity/DayAheadPrices).
  64. Published under [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) per the
  65. [terms and conditions](https://www.energidataservice.dk/terms-and-conditions).
  66. Source: Energinet (www.energidataservice.dk). Changes made here: sub-hourly values are
  67. averaged into hours. Energinet does not endorse this project.
  68. The raw rows for the two test days (17 and 18 November 2026, DK1 and DK2) are stored
  69. unchanged in `eval/data/`, so the tests run offline. The computed answers are in
  70. `eval/expected.json`.
  71. Code: MIT, see `LICENSE`.

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.