
Se Eli Mcp
io.github.matematicsolutionsPublished by GitHub account matematicsolutionsv0.3.3Updated Oct 25, 2026
MCP server for Swedish statutes (SFS) via Riksdagen open data with verifiable citations.
Overview
A local MCP server that lets an assistant search Swedish statutes (SFS) from Riksdagen open data and retrieve consolidated act text with verifiable citations.
- What you can do
- Search Swedish statutes by free text across titles and full text, with citation details for each result. Look up metadata for one act by its SFS number, such as title, authority, date and consolidation marker. Retrieve the full consolidated plain text of an act. Report what the connector covers, when each family was captured, and which gaps exist with fallbacks.
- When to use it
- Useful when an assistant needs to answer questions about Swedish legislation and should cite official sources rather than paraphrase from memory. Suited to legal research, compliance checks and drafting that depends on the current consolidated text of an SFS act.
- Requirements
- Runs locally as a stdio process, installed from PyPI and started with uvx or as a Python module; needs Python and network access to the Riksdagen open-data API. No account or API key is required. Optional environment variables set the base URL, cache directory and audit directory.
Installation
In SourceWeft
- Open Se Eli Mcp in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
se-eli-mcp
Install (one command)
As a Claude plugin (Claude Code or the desktop app, needs uv); see plugin/README.md for what it sends and stores:
Published on PyPI + MCP Registry (io.github.matematicsolutions/se-eli-mcp). Run without cloning:
Configure your MCP client (stdio):
Windows 11 with Smart App Control
Smart App Control blocks unsigned executables, which covers uvx.exe, pip.exe
and the se-eli-mcp.exe launcher that pip writes at install time. The python.exe and
py.exe from the python.org installer are signed by the Python Software
Foundation, so running the module through the interpreter works:
pip.exe is blocked for the same reason, so install with python -m pip, not
pip install. If python is not on PATH, use the Windows launcher: py -3 -m se_eli_mcp.
Do not turn Smart App Control off to work around this - it cannot be re-enabled without reinstalling Windows.
Building from source: see Install.
An MCP server for Swedish statutes (SFS, Svensk författningssamling), served as open data
by the Riksdagen (parliament) at data.riksdagen.se (keyless). It gives an AI agent the
consolidated text of an act with a verifiable citation: a persistent identifier, a
human-readable citation, and a link to the official source.
Part of the eu-legal-mcp line by MateMatic — one connector per EU member state, the same citation contract everywhere.
On ELI. Sweden does not publish native ELI (
/eli/) URIs. To keep the line's contract honest,eli_uricarries the official persistent document identifier instead — thedata.riksdagen.se/dokumentURI (e.g.https://data.riksdagen.se/dokument/sfs-2018-218). The SFS number (2018:218) is the canonical Swedish citation. The connector never fabricates an/eli/URI and says so in its tool instructions. SeeDISCOVERY.md.
Tools
Every response carries the citation contract:
eli_uri— the official persistent identifier (document URI; see the ELI note above).human_readable_citation— the act title, which embeds the SFS number, e.g. Lag (2018:218) med kompletterande bestämmelser till EU:s dataskyddsförordning.source_url— the browsabledata.riksdagen.sepage for the act.consolidated_through— the last amendment folded into the text (the "ändrad t.o.m." marker).
Install
Register it with your MCP client (see .mcp.json.example):
Design
- Public data only. Read-only against the keyless Riksdagen open-data API; nothing is sent beyond the query / SFS number.
- Audit log. Every call appends one JSON line to
~/.matematic/audit/se-eli-mcp.jsonl(record-keeping). - Network - the server talks to the official source(s) named above and the local
filesystem. Once, on first use, it also fetches a small configuration file
(
se-runtime.json.gz, updated source addresses) from this repository's GitHub Releases. That request carries no query content; GitHub's download counter for the file is the only usage signal we see.SE_ELI_RUNTIME_URL=""turns it off; the Claude plugin ships with it off. No LLM provider, no other telemetry. Own backoff + on-disk cache. - No fabrication. Identifiers and titles are parsed from the source record. If Riksdagen's schema changes, the connector fails loudly rather than returning stale or invented data.
See CONSTITUTION.md (the 4 principles) and DISCOVERY.md (how the source was mapped).
Tests
Licence
Apache-2.0. The Swedish legislation served is official public data of the Kingdom of Sweden; this connector adds no rights over it.
Source: README.md at commit 7af081f
Tools
0Version history
1- v0.3.3LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts