Swedish Energy Regulation MCP
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Swedish Energy Regulation MCP Sök efter EIFS 2022:1 och sammanfatta kraven"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Swedish Energy Regulation MCP
▶ Try this MCP instantly via Ansvar Gateway
50 free queries/day · no card required · OAuth signup at ansvar.eu/gateway
One endpoint, one OAuth signup, access from any MCP-compatible client.
Connect
Claude Code (one line):
claude mcp add ansvar --transport http https://gateway.ansvar.eu/mcpClaude Desktop / Cursor — add to claude_desktop_config.json (or mcp.json):
{
"mcpServers": {
"ansvar": {
"type": "url",
"url": "https://gateway.ansvar.eu/mcp"
}
}
}Claude.ai — Settings → Connectors → Add custom connector → paste https://gateway.ansvar.eu/mcp
First request opens an OAuth flow at ansvar.eu/gateway. After signup, your client is bound to your account; tier (free / premium / team / company) determines fan-out, quota, and which downstream MCPs are reachable.
Self-host this MCP
You can also clone this repo and build the corpus yourself. The schema, fetcher, and tool implementations all live here. What is not in the repo is the pre-built database — TDM and standards-licensing constraints on the upstream sources mean we host the corpus on Ansvar infrastructure rather than redistribute it as a public artifact.
Build your own: run this repo's ingestion script (entry-point varies per
repo — typically scripts/ingest.sh, npm run ingest, or make ingest;
check the repo root).
MCP server for Swedish energy sector regulations -- Ei market rules, Svenska kraftnat grid codes, Energimyndigheten policy, Elsakerhetsverket safety rules.
Covers four Swedish energy regulators with full-text search across regulations, grid codes, and regulatory decisions. All data is in Swedish.
Built by Ansvar Systems -- Stockholm, Sweden
Related MCP server: se-legal-mcp
Regulators Covered
Regulator | Role | Website |
Energimarknadsinspektionen (Ei) | Energy market regulation, network tariffs, consumer protection, licence conditions | |
Svenska kraftnat | Electricity transmission, grid codes, balancing market, frequency regulation, ancillary services | |
Energimyndigheten (Swedish Energy Agency) | Energy policy, renewable energy, energy efficiency, climate reporting, R&D | |
Elsakerhetsverket (Electrical Safety Authority) | Electrical installation safety, product safety, authorization requirements |
Tools
Tool | Description |
| Full-text search across energy regulations from Ei, Energimyndigheten, and Elsakerhetsverket |
| Get a specific regulation by reference string (e.g., |
| Search Svenska kraftnat grid codes, balancing rules, and market regulations |
| Get a specific grid code document by database ID |
| Search Ei tariff decisions, revenue caps, and market rulings |
| Return server metadata: version, regulators, tool list, data coverage |
| List data sources with record counts and provenance URLs |
| Check data freshness and staleness status for each source |
Full tool documentation: TOOLS.md
Data Coverage
Source | Records | Content |
Ei | 70 regulations | Market regulation, network tariffs, consumer protection, licence conditions |
Riksdagen | 53 regulations | Ellagen, naturgaslagen, fjarrvarmlagen, energy acts |
Energimyndigheten | 48 regulations | Energy efficiency, renewable energy, energy statistics, climate policy |
Elsakerhetsverket | 28 regulations | Electrical safety, product safety, installation rules |
Svenska kraftnat | 63 grid codes | Balancing rules, frequency regulation, grid connection, ancillary services |
Ei (decisions) | 39 decisions | Revenue caps, tariff determinations, methodology approvals, benchmarking |
Total | 301 records | ~396 KB database |
Language note: All regulatory content is in Swedish. Search queries work best in Swedish (e.g., ellag, natavgift, intaktsram, balansansvar).
Full coverage details: COVERAGE.md
Data Sources
See sources.yml for machine-readable provenance metadata.
Docker
docker build -t swedish-energy-regulation-mcp .
docker run --rm -p 3000:3000 -v /path/to/data:/app/data swedish-energy-regulation-mcpSet SE_ENERGY_DB_PATH to use a custom database location (default: data/se-energy.db).
Development
npm install
npm run build
npm run seed # populate sample data
npm run dev # HTTP server on port 3000Further Reading
TOOLS.md -- full tool documentation with examples
COVERAGE.md -- data coverage and limitations
sources.yml -- data provenance metadata
DISCLAIMER.md -- legal disclaimer
PRIVACY.md -- privacy policy
SECURITY.md -- vulnerability disclosure
License
Apache-2.0 -- Ansvar Systems AB
See LICENSE for the full license text.
See DISCLAIMER.md for important legal disclaimers about the use of this regulatory data.
ansvar.ai/mcp -- Full MCP server catalog
Available Tools
8 toolsse_energy_aboutA
Return metadata about this MCP server: version, regulators covered, tool list, data coverage.
Inputs: no named parameters.
se_energy_check_data_freshnessA
Check data freshness for each source. Reports staleness and provides update instructions.
Inputs: no named parameters.
se_energy_get_grid_codeA
Get a specific Svenska kraftnat grid code document by its database ID. Returns full text.
Inputs: document_id (required).
se_energy_get_regulationA
Get a specific Swedish energy regulation by its reference string (e.g., 'EIFS 2022:1'). Returns full text.
Inputs: reference (required).
se_energy_list_sourcesA
List data sources with record counts, provenance URLs, and last refresh dates.
Inputs: no named parameters.
se_energy_search_decisionsA
Search Ei tariff decisions, network revenue determinations, and market supervision rulings for Swedish energy utilities.
Inputs: query (required), limit, decision_type.
se_energy_search_grid_codesB
Search Svenska kraftnat grid codes, balancing rules, and ancillary service regulations. Covers electricity transmission grid rules, frequency regulation, and grid connection requirements.
Inputs: query (required), limit, code_type.
se_energy_search_regulationsB
Search across Swedish energy regulations from Ei, Energimyndigheten, and Elsakerhetsverket. Returns forordningar, foreskrifter, allmanna rad, and vagledningar. Supports Swedish-language queries.
Inputs: query (required), type, limit, status, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 8 tools
The get/search pairs for regulations and grid codes are clearly separated by resource and identifier type, and the descriptions distinguish regulators (Ei/Energimyndigheten/Elsakerhetsverket vs Svenska kraftnat). There is mild potential confusion between search_regulations and search_grid_codes since grid codes are conceptually a form of regulation, and between search_decisions and search_regulations for Ei documents, but descriptions mostly resolve this.
All tools use a consistent se_energy_ prefix with snake_case verb_noun naming (get_regulation, search_grid_codes, check_data_freshness). The only deviation is se_energy_about, which lacks a verb, but it remains readable and predictable.
Eight tools is well-scoped for a regulatory research server, covering retrieval, search, and metadata/freshness without bloat. Each tool appears to earn its place.
The core workflow of search-then-get is covered for regulations and grid codes, plus decision search and data provenance tools. A notable gap is the absence of a get_decision tool to retrieve full text for a specific Ei decision found via search, which could cause a dead end.
Maintenance
Related MCP Connectors
Semantic search over Nordic filings, press releases, macro data and electricity prices.
Search Swedish parliamentary documents, speeches, votes, members, and statutes.
EU regulations (GDPR, DORA, NIS2, AI Act, etc.) via Ansvar Gateway. Cited, OAuth + paid.
Swedish public data as read-only tools: registries, statistics, domains, transport, energy.
Related MCP Servers
- AlicenseAqualityFmaintenanceEnables full-text search and retrieval of Finnish energy regulations from four regulators: Energiavirasto, Fingrid, TEM, and Tukes.8Apache 2.0
- AlicenseAqualityBmaintenanceEnables read-only access to Swedish legislation and court decisions across judicial tiers, plus retrieval of full texts in Markdown and verification of statutory and case-law citations.6MIT
- AlicenseAqualityFmaintenanceEnables full-text search and retrieval of German energy regulations, TSO grid codes, and Bundesnetzagentur decisions across BNetzA, TSO, BMWK, and BfE sources.8Apache 2.0
- AlicenseBqualityFmaintenanceEnables users to search and retrieve regulations, grid codes, and regulatory decisions from ACM, TenneT NL, RVO, and SodM, along with checking data sources and freshness.8Apache 2.0