Finland Energy
FreeNot checkedMCP server for Finnish electricity prices: what a household really pays, and when to use power
About
MCP server for Finnish electricity prices: what a household really pays, and when to use power
README
An MCP server that lets any MCP-capable AI assistant answer Finnish household electricity questions with real numbers: for example Claude Desktop and Claude Code, Cursor, VS Code with GitHub Copilot, Windsurf, or Gemini CLI. MCP is an open standard, so the server isn't tied to one AI provider.
- What does electricity really cost me right now?
- When is the cheapest time to heat the sauna tonight?
- Show me tomorrow's prices by hour.
Other price tools show the raw market (spot) price. This one shows what a household actually pays: spot price + VAT + retailer margin + network transfer fee + electricity tax, every 15 minutes, with the user's own contract when they give it.
Example
You: What does electricity cost right now?
Assistant (calls
get_price_now): Right now (23:00–23:15) about 25.7 c/kWh incl. VAT: spot 18.83 + margin 0.49* + transfer 3.50* + tax 2.92. That's expensive for today (average 18.36). *Example values; tell me your margin and transfer fee and I'll recalculate.You: My margin is 0.39 and my transfer fee is 4.1.
Assistant (calls
get_price_nowwith your values): With your contract it's 26.2 c/kWh.You: When's the cheapest 2 hours for the sauna tomorrow evening?
Assistant (calls
find_cheapest_time, reusing your values): 22:00–24:00, averaging 17.9 c/kWh.
Tools
| Tool | Answers | Inputs |
|---|---|---|
get_price_now |
The price right now, split into its parts, with today's low/average/high | optional: your margin and transfer fee |
get_prices |
Today's or tomorrow's prices, hourly or every 15 minutes, with the cheapest and dearest times | day, resolution, optional contract |
find_cheapest_time |
The cheapest continuous window for a job, and the extra cost of starting now | duration_minutes (multiple of 15), optional earliest_start, finish_by, energy_kwh, contract |
Every answer includes its assumptions (data source, VAT, tax, margin and transfer fee, and whether those came from the user or are example defaults), so the AI can say what it assumed.
How it works
flowchart LR
A[spot-hinta.fi<br/>market prices, EUR/kWh, no VAT] --> B[sources/<br/>fetch, validate, cache]
B --> C[core/<br/>VAT, tax, margin, transfer,<br/>cheapest window]
T[tariff_rates.toml<br/>dated VAT and tax rates,<br/>with sources] --> C
C --> D[server/<br/>MCP tools]
D -->|MCP over stdio| E[AI assistant<br/>any MCP client]
| Folder | Responsibility |
|---|---|
src/finland_energy_mcp/core/ |
Pure price logic, no network: 15-minute price series, dated tax rates, household price, cheapest window, fixed vs spot |
src/finland_energy_mcp/sources/ |
Getting market prices: HTTP client with timeout, error types and a cache that respects the API's rate limit |
src/finland_energy_mcp/server/ |
The MCP server: tools, output schemas, settings |
Design notes: money is exact Decimal (never float); times are stored in UTC and shown in Finnish time
(so clock-change days with 92 or 100 quarter-hours are right); tax rates are data with valid-from dates,
not constants.
Use it with your AI assistant
Requires uv (it provides uvx, which downloads and runs the server in
its own isolated environment; nothing to clone or install by hand).
Register it as a local (stdio) MCP server in your assistant. Most clients (Claude Desktop, Cursor,
Windsurf, Gemini CLI and others) use a JSON entry of this shape; see your client's MCP docs for where
the file lives (VS Code uses servers instead of mcpServers):
{
"mcpServers": {
"finland-energy": {
"command": "uvx",
"args": ["finland-energy-mcp"]
}
}
}
With Claude Code it's one command:
claude mcp add finland-energy -s user -- uvx finland-energy-mcp
Restart the assistant, check that finland-energy shows 3 tools, and ask away. uvx keeps a cached
copy; use finland-energy-mcp@latest instead to always get the newest version from
PyPI.
The server runs locally over stdio. Browser-based assistants that only accept remote MCP servers (over HTTP) are not supported yet.
Skill (optional)
skills/finland-electricity/
teaches your assistant to use these tools well: turning "heat the sauna" or "charge the car" into
the right inputs, finding margin and transfer fee on Finnish bills, and stating its assumptions.
It uses the open SKILL.md format. For Claude Code, copy the folder into ~/.claude/skills/.
Configuration
Optional environment variables, all prefixed FINLAND_ENERGY_ (full list with defaults in
.env.example): default margin and transfer fee, VAT on negative prices, the price
API's address, request timeout and cache time. Users can also simply tell the assistant their margin
and transfer fee in the conversation; no configuration needed.
Development and tests
git clone https://github.com/krathina/finland-energy-mcp.git
cd finland-energy-mcp
uv sync # create the environment with all dependencies
uv run pytest # offline tests (saved real API responses, fake clock, fake HTTP server)
uv run pytest -m live # contract tests against the real API and the real server over stdio
uv run ruff check . && uv run ruff format --check . && uv run mypy # lint, format, strict types
Highlights: boundary tests on tax-rate changes (31.3 / 1.4.2026), both clock-change days, negative
prices, a brute-force oracle for the cheapest-window search, the MCP tools called through a real MCP
client in memory, and guard tests that keep tool output names unambiguous and .env.example in sync.
CI runs all of it on every push, and the live contract tests nightly.
Data and sources
- Market prices: spot-hinta.fi free API (Nordic day-ahead prices, 15-minute periods), which gets them from the ENTSO-E Transparency Platform. Its documented limit is one request per minute; the server caches for 15 minutes.
- VAT and electricity tax: Finnish Tax Administration, with links per rate in tariff_rates.toml.
Limitations
- Only today's and tomorrow's prices (tomorrow's appear around 14:00 Finnish time).
- Margin and transfer fee default to example values until the user gives theirs.
- Local (stdio) MCP only for now; a remote (HTTP) mode is planned.
- VAT on negative spot prices is off by default (common Finnish practice; contracts differ).
- Estimates for information, not financial advice.
- Not affiliated with or endorsed by spot-hinta.fi or ENTSO-E.
License
Install Finland Energy in Claude Desktop, Claude Code & Cursor
unyly install finland-energyInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add finland-energy -- uvx finland-energy-mcpStep-by-step: how to install Finland Energy
FAQ
Is Finland Energy MCP free?
Yes, Finland Energy MCP is free — one-click install via Unyly at no cost.
Does Finland Energy need an API key?
No, Finland Energy runs without API keys or environment variables.
Is Finland Energy hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install Finland Energy in Claude Desktop, Claude Code or Cursor?
Open Finland Energy on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
Opencode Omniroute Plugin
OpenCode plugin for the OmniRoute AI Gateway. Drives dynamic model discovery, /connect auth flow, and multi-instance OmniRoute providers via the official @openc
by GitHub ActionsRoblox Studio
Enables AI coding tools to control Roblox Studio for workspace exploration, instance manipulation, and script management. It provides tools for playtesting, sce
by paralovAntigravity Drawio
MCP server that enables AI assistants to create, parse, render, and validate Draw.io diagrams programmatically.
by S-SUJAN-SFetch
Web content fetching and conversion for efficient LLM usage.
Mcp
ModelContextProtocol server for enhancing JSON Resumes
by mcpflow.ioVault
Bitwarden/Vaultwarden MCP server — BYOK vault access with 6 tools, Send-based reveal, TOTP, and safe agent-write
by agbergsmannAWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
by modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
by xuzexin-hzMCP-Agent
A simple, composable framework to build agents using Model Context Protocol by [LastMile AI](https://www.lastmileai.dev)
by lastmile-aiCompare Finland Energy with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All ai MCPs
