
Tr Eli Mcp
io.github.matematicsolutions由 GitHub 账号 matematicsolutions 发布v0.3.4更新于 Oct 24, 2026
MCP server for Turkish legislation (Adalet Bakanligi Bedesten API): verifiable citations.
概览
让助手检索土耳其法规,并获取全文、目录以及可核验的引文,数据来自司法部公开的 Bedesten API。
- 可以做什么
- 提供按标题或全文检索土耳其法规的工具,可按类型和编号筛选,并可获取单个文档的全文或条文树。还能列出所有法规类型及其实时文档数量,并说明该连接器覆盖与不覆盖的范围。每个响应都带有引文契约:可解析的 mevzuat.gov.tr 规范标识、土耳其语人工可读引文,以及官方来源链接。
- 适用场景
- 当助手需要带可核验引文的土耳其法律、法令、条例、总统令或公告时使用。适合必须精确引用土耳其法规的法律检索与起草工作。它只覆盖法规,不包含判例。
- 运行要求
- 作为本地 Python 包运行(PyPI 包 tr-eli-mcp,可用 uvx 或 python -m tr_eli_mcp 启动)。无需 API 密钥或账号。需要访问 Bedesten API 和 mevzuat.gov.tr 的网络,以及用于缓存和审计日志的本地文件系统权限。可选环境变量用于配置基础地址、缓存目录、审计目录和运行时配置地址。
安装
在 SourceWeft 中
- 打开 控制台中的 Tr Eli Mcp,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
tr-eli-mcp
An MCP server for Turkish legislation (Kanun/laws, KHK/decree-laws, Tuzuk/statutes,
Yonetmelik/regulations, Cumhurbaskanligi Kararnamesi/presidential decrees, Teblig/communiques
and more), served as a keyless JSON API by the Adalet Bakanligi (Ministry of Justice) at
bedesten.adalet.gov.tr/mevzuat. It gives an AI agent legislation text and metadata with a
verifiable citation: a resolvable identifier, a human-readable citation, and a link to the
official source.
Part of the eu-legal-mcp line by MateMatic — one connector per country, the same citation contract everywhere. Turkey is included under this line's broader "Europe" framing (Council of Europe member, EU accession candidate), alongside connectors that map strictly to EU-27 membership.
On ELI. Turkey does not publish native ELI (
/eli/) URIs. To keep the line's contract honest,eli_uricarries the canonical, resolvablemevzuat.gov.trURL instead — e.g.https://www.mevzuat.gov.tr/mevzuat?MevzuatNo=5237&MevzuatTur=1&MevzuatTertip=5— which every Bedesten search record already supplies. The connector never fabricates an/eli/URI and says so in its tool instructions. SeeDISCOVERY.md.On case law. This connector covers legislation only. Yargitay (Court of Cassation) decision search was unreachable (TCP timeout) from the build network, and Anayasa Mahkemesi (Constitutional Court) exposes only a client-rendered SPA with no discovered server API. Neither is wired up here — see
DISCOVERY.mdfor what was actually checked.
Tools
Every response carries the citation contract:
eli_uri— the canonical, resolvablemevzuat.gov.tridentifier (see the ELI note above).human_readable_citation— the Turkish citation convention: law number + name + Official Gazette (Resmi Gazete) date/number, e.g. 5237 sayili Turk Ceza Kanunu (Resmi Gazete: 12/10/2004, Sayi: 25611).source_url— the same canonicalmevzuat.gov.trpage.
Install
As a Claude plugin (Claude Code or the desktop app, needs uv); see plugin/README.md for what it sends and stores:
Register it with your MCP client (see .mcp.json.example):
Windows 11 with Smart App Control
Smart App Control blocks unsigned executables, which covers uvx.exe, pip.exe
and the tr-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 tr_eli_mcp.
Do not turn Smart App Control off to work around this - it cannot be re-enabled without reinstalling Windows.
Design
- Public data only. Read-only against the keyless Adalet Bakanligi Bedesten API; nothing is sent beyond the query / document id.
- Audit log. Every call appends one JSON line to
~/.matematic/audit/tr-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
(
tr-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.TR_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 Bedesten'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, and
what was ruled out).
Tests
Licence
Apache-2.0. The Turkish legislation served is official public data of the Republic of Turkey; this connector adds no rights over it.
来源:README.md,提交 1f8a0bf
工具
0版本历史
2- v0.3.4最新Sep 24, 2026
- v0.3.3Sep 16, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分