io.github.matematicsolutions/hu-eli-mcp
MCP server for Hungarian legislation (Nemzeti Jogszabalytar): native ELI and verifiable citations.
Versions
0.1.0latestTools 6
hu_get_act Fetch metadata for a Hungarian Act (torveny) by its ELI (year + serial). Args: year: 4-digit year, e.g. ``"2013"``. serial: the Act's serial number within that year, e.g. ``"5"`` (2013. evi V. torveny is Act no. 5 of 2013, the Hungarian Civil Code). Returns: ``Legislation`` with ``eli_uri``, ``title``, ``subtitle``, ``human_readable_citation``, ``source_url``.
hu_get_legislation Fetch metadata for any Hungarian legislation by its ELI (type + year + issuer + serial). Use this for anything other than Acts (torveny) - government decrees, ministerial decrees, etc. Use `hu_list_doc_types` for valid `doc_type` codes and `hu_list_issuers` for valid `issuer` codes (issuer codes are case-sensitive, e.g. `Korm` for Government). Args: doc_type: NJT type code, e.g. ``"R"`` (rendelet / decree). year: 4-digit year, e.g. ``"2016"``. issuer: NJT issuer code, case-sensitive, e.g. ``"Korm"`` (Government). serial: the document's serial number within that year, e.g. ``"428"``. Returns: ``Legislation`` with ``eli_uri``, ``title``, ``subtitle``, ``human_readable_citation``, ``source_url``.
hu_get_text Fetch the full document HTML content of a Hungarian piece of legislation. For Acts (torveny), pass `doc_type="TV"` and omit `issuer`. For anything else, pass the `issuer` code (case-sensitive - use `hu_list_issuers`). Args: doc_type: NJT type code, e.g. ``"TV"`` (torveny / Act) or ``"R"`` (rendelet / decree). year: 4-digit year. serial: the document's serial number within that year. issuer: NJT issuer code, case-sensitive (required for everything except `"TV"`). Returns: ``LegislationText`` with the citation contract and ``content`` (the document's HTML).
hu_list_doc_types List valid NJT document-type codes (e.g. TV=Act, R=decree) from /eli/tipuskodok. Returns: ``DocTypeList`` with ``items: list[DocTypeInfo]`` (code + Hungarian name).
hu_coverage Declare what this connector covers, how it is sourced, and what it does NOT cover. Call this before telling a user that the law "does not contain" something, and whenever a search comes back empty: the absence may be a gap in this connector rather than in the law. Every gap carries a fallback saying where to look instead. Returns: ``Coverage`` with families, an as-of note, and a non-empty list of known gaps.
hu_list_issuers List valid NJT issuer codes (case-sensitive, e.g. Korm=Government) from /eli/kibocsatokodok. Returns: ``IssuerList`` with ``items: list[IssuerInfo]`` (code + Hungarian name).
Permissions 3
network medium filesystem low env_vars low