How aydincan/turk-hukuku-mevzuat-mcp works
This is an MCP server that lets AI clients search Turkish laws and retrieve current official law text or individual articles from mevzuat.gov.tr. The main workflow is a tool request, optional law identification, official-source retrieval, and a verifiable response; a separate tool lists known laws. The source excerpts show the tool dispatch and processing logic. The external service interactions and capabilities are also documented in the README; finer internal boundaries within mevzuat.py reflect its described stages.
Main entry points: server.py MCP tool server · mevzuat.py Full-text retrieval · registry.py Law ID resolver
Components 9
MCP interface
- MCP tool server
turk_hukuku_mevzuat/server.py
Law identification
- Law ID resolver
turk_hukuku_mevzuat/registry.py - Known-law index
turk_hukuku_mevzuat/registry.py
Official text access
- Law search
turk_hukuku_mevzuat/mevzuat.py - Full-text retrieval
turk_hukuku_mevzuat/mevzuat.py - PDF text conversion
turk_hukuku_mevzuat/mevzuat.py - Article extraction
turk_hukuku_mevzuat/mevzuat.py
Other components
- AI client
- mevzuat.gov.tr
Connections 12
- AI client → MCP tool server: sends tool request
README.md - MCP tool server → Law search: calls search
turk_hukuku_mevzuat/server.py - MCP tool server → Full-text retrieval: calls full text
turk_hukuku_mevzuat/server.py - MCP tool server → Article extraction: calls article lookup
turk_hukuku_mevzuat/server.py - MCP tool server → Known-law index: lists laws
turk_hukuku_mevzuat/server.py - Full-text retrieval → Law ID resolver: resolves law
turk_hukuku_mevzuat/mevzuat.py - Full-text retrieval → mevzuat.gov.tr: fetches PDF
turk_hukuku_mevzuat/mevzuat.py - mevzuat.gov.tr → Law search: returns matches
README.md - Law search → mevzuat.gov.tr: submits search
turk_hukuku_mevzuat/mevzuat.py - Full-text retrieval → PDF text conversion: converts PDF
turk_hukuku_mevzuat/mevzuat.py - Article extraction → Full-text retrieval: gets full text
turk_hukuku_mevzuat/mevzuat.py - MCP tool server → AI client: returns results
turk_hukuku_mevzuat/server.py