tr-eli-mcp
Click on "Install 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., "@tr-eli-mcpsearch for Turkish Penal Code"
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.
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
Tool | What it does |
| Search Turkish legislation by title and/or full text, optionally filtered by type and number. |
| The full text of one document (HTML converted to plain text). |
| The article tree (madde agaci / table of contents) of one document. |
| Enumerate all legislation types with live document counts (KANUN, KHK, YONETMELIK, ...). |
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.
Related MCP server: Vaquill-AI/vaquill-mcp
Install
pip install -e ".[dev]"Register it with your MCP client (see .mcp.json.example):
{
"mcpServers": {
"tr-eli-mcp": {
"command": "tr-eli-mcp",
"env": {
"TR_ELI_BASE_URL": "https://bedesten.adalet.gov.tr/mevzuat",
"TR_ELI_CACHE_DIR": "~/.matematic/cache/tr-eli",
"TR_ELI_AUDIT_DIR": "~/.matematic/audit"
}
}
}
}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(AI Act art. 12 record-keeping).Vendor-neutral. No LLM provider, no 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
pytest tests/test_instructions_drift.py # offline
pytest tests/test_smoke.py # live Bedesten APILicence
Apache-2.0. The Turkish legislation served is official public data of the Republic of Turkey; this connector adds no rights over it.
This server cannot be installed
Maintenance
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/matematicsolutions/tr-eli-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server