Fi Eli Mcp

io.github.matematicsolutions由 GitHub 账号 matematicsolutions 发布v0.3.3更新于 Oct 24, 2026

MCP server for Finnish Finlex consolidated statutes: ELI identifiers and verifiable citations.

概览

AI 生成的概览

本地 MCP 服务器,让助手从 Finlex 开放数据 API 查询芬兰合并法规,并提供 ELI 标识符和可核验的引注。

可以做什么
按年份列出法规以便发现,或按年份加编号查找法规(该 API 基于路径,不支持关键词搜索)。获取法规的元数据,包括 ELI URI、芬兰语可读引注和来源网址。获取法规完整的 Akoma Ntoso 3.0 XML 全文。说明该连接器覆盖哪些内容、各法规族何时采集,以及明确不覆盖的范围和相应替代方案。
适用场景
适合需要阅读或引用芬兰法规(saadokset)并希望获得可独立核验的引用而非自由文本回答的场景。适用于法律研究、合规检查,或依赖芬兰法案现行合并文本的起草工作。
运行要求
通过 stdio 在本地运行,可用 uvx 或 pip 从 PyPI 安装(需要 Python)。无需 API 密钥,Finlex 开放数据无需密钥。可选环境变量用于设置基础网址、缓存目录和审计目录。需要访问 Finlex 开放数据 API 的网络连接和本地文件系统。
安装前请注意
对 Finlex 为只读,但每次工具调用都会向本地审计日志追加一行 JSON。首次使用时可能从项目的 GitHub Releases 获取一个小型配置文件,可通过将 FI_ELI_RUNTIME_URL 设为空来关闭。标题可能为芬兰语或瑞典语。覆盖范围仅限芬兰法规,并非 Finlex 全部内容。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Fi Eli Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

fi-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:

/plugin marketplace add matematicsolutions/fi-eli-mcp/plugin install fi-eli-mcp@fi-eli-mcp

Published on PyPI + MCP Registry (io.github.matematicsolutions/fi-eli-mcp). Run without cloning:

bash
uvx fi-eli-mcp

Configure your MCP client (stdio):

json
{ "mcpServers": { "fi-eli-mcp": { "command": "uvx", "args": ["fi-eli-mcp"] } } }

Windows 11 with Smart App Control

Smart App Control blocks unsigned executables, which covers uvx.exe, pip.exe and the fi-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:

bash
python -m pip install fi-eli-mcppython -m fi_eli_mcp

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 fi_eli_mcp.

json
{ "mcpServers": { "fi-eli-mcp": { "command": "python", "args": ["-m", "fi_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 the Finnish Finlex open-data API (opendata.finlex.fi). It fetches consolidated Finnish statutes as Akoma Ntoso 3.0 XML, with verifiable ELI identifiers and Finnish citations.

Part of the MateMatic eu-legal-mcp production line - after PL, DE, AT and ES. Same citation contract, Finlex source.

Scope. This MVP covers Finnish statutes (saadokset). Discovery is by year (fi_list_acts) or by year + number; the open-data API is path-based, not keyword search. Finland is bilingual, so titles may be Finnish or Swedish. Every response carries a dataset_note.

Licence. Finnish legislation in Finlex is official public information published as open data (keyless). This connector relays it with attribution and a source_url.

The tools

ToolWhat it does
fi_list_actsList the statutes of a year (discovery).
fi_get_actMetadata for a statute by year + number.
fi_get_textFull Akoma Ntoso text of a statute by year + number.
fi_coverageDeclare what this connector covers, when each family was captured, and - explicitly - what it does NOT cover. Every gap carries a fallback.

Every response carries the contract: eli_uri (a full ELI URL, e.g. http://data.finlex.fi/eli/sd/2018/1050/alkup), human_readable_citation (e.g. Tietosuojalaki (1050/2018)), and source_url.

Install

bash
cd fi-eli-mcppip install -e .

Configure (Claude Code / any MCP client)

json
{  "mcpServers": {    "fi-eli-mcp": { "command": "fi-eli-mcp" }  }}

Environment:

  • FI_ELI_BASE_URL - default https://opendata.finlex.fi/finlex/avoindata/v1
  • FI_ELI_CACHE_DIR - default ~/.matematic/cache/fi-eli
  • FI_ELI_AUDIT_DIR - default ~/.matematic/audit

No API key. Finlex open data is keyless.

Governance

  • Public data only - read-only against Finlex; no client data leaves the machine.
  • Audit log - every tool call appends one JSON line to ~/.matematic/audit/fi-eli-mcp.jsonl.
  • 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 (fi-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. FI_ELI_RUNTIME_URL="" turns it off; the Claude plugin ships with it off. No LLM provider, no other telemetry.
  • Verifiable citations - every response is independently checkable via source_url.

See CONSTITUTION.md and DISCOVERY.md.

Tests

bash
pip install -e ".[dev]"pytest tests/test_instructions_drift.py -v   # offlinepytest tests/test_smoke.py -v                # hits live Finlex

Licence

Apache-2.0. © Matematic Solutions / Wieslaw Mazur.

来源:README.md,提交 50cd864

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.3.3最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分