
Tr Eli Mcp
io.github.matematicsolutionsPublished by GitHub account matematicsolutionsv0.3.4Updated Oct 24, 2026
MCP server for Turkish legislation (Adalet Bakanligi Bedesten API): verifiable citations.
Overview
Lets an assistant search Turkish legislation and retrieve full texts, tables of contents, and verifiable citations from the Ministry of Justice's public…
- What you can do
- Provides tools to search Turkish legislation by title or full text, optionally filtered by type and number, and to fetch a document's full text or its article tree. It also lists legislation types with live document counts and reports what the connector covers and what it does not. Every response carries a citation contract: a canonical resolvable mevzuat.gov.tr identifier, a human-readable Turkish citation, and a source link.
- When to use it
- Use it when an assistant needs Turkish statutes, decree-laws, regulations, presidential decrees, or communiques with citations that can be checked against the official source. It suits legal research and drafting that must reference Turkish legislation precisely. It covers legislation only, not case law.
- Requirements
- Runs locally as a Python package (PyPI tr-eli-mcp, run with uvx or python -m tr_eli_mcp). No API key or account is needed. It needs network access to the Bedesten API and to mevzuat.gov.tr, plus local filesystem access for cache and audit logs. Optional environment variables configure the base URL, cache directory, audit directory, and runtime config URL.
Installation
In SourceWeft
- Open Tr 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
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.
Source: README.md at commit 1f8a0bf
Tools
0Version history
2- v0.3.4LatestSep 24, 2026
- v0.3.3Sep 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