MCP server exposing 4 tools for hk-elegislation.
This URL is a JSON-RPC 2.0 endpoint over HTTP. Issue POST requests with a JSON-RPC body. Browsers and search crawlers land here on GET.
POST https://gateway.pipeworx.io/hk-elegislation/mcp
Content-Type: application/json
{"jsonrpc":"2.0","id":1,"method":"tools/list"}
hk_law_search — Search Hong Kong Ordinances, subsidiary legislation and instruments by TITLE keyword, English or Traditional Chinese — "Personal Data", "個人資料", "Companies Ordinance", "公司條例". This is a title search, not full-text; it will not find a chapter by a phrase appearing only inside a section. Also accepts a bare chapter number ("486") for an exact match. Returns each match's Cap. number (for hk_law_info/hk_law_section), English and Traditional Chinese titles, in-force status, and whether it is a principal Ordinance, subsidiary legislation, or an instrument. Source: Hong Kong Department of Justice, e-Legislation.hk_law_info — Resolve a Hong Kong Ordinance/subsidiary legislation/instrument to its full metadata by Cap. number ("486", "Cap. 486", "486A" for subsidiary legislation) or an exact/partial English or Chinese title — the exact-citation step before reading a section. Returns the English and Traditional Chinese titles (both original-language, equally authentic under Cap. 5 s.4B — neither is a translation), the in-force status, the VERSION DATE of the English text and of the Chinese text as SEPARATE fields (one language can be consolidated ahead of the other), whether it is a principal Ordinance / subsidiary legislation / instrument, and the section count. Source: Hong Kong Department of Justice, e-Legislation.hk_law_toc — Table of contents for one Hong Kong law: every section number and heading, in order, paged. Use to browse a law's structure before reading a specific section with hk_law_section, or to enumerate every section number a long Ordinance has. Returns has_more and next_offset when the law has more sections than the page size.hk_law_section — Full text of ONE section of a Hong Kong law, by Cap. number or title plus section number in any common spelling — "2", "s2", "section 2", "14A". Returns the English text AND the Traditional Chinese text of that SAME section side by side — both original-language and equally authentic (Official Languages Ordinance, Cap. 5 s.4B), never one a "translation" of the other — plus the section's in-force status and version-valid-from date. A long law is never returned whole; use hk_law_toc to find section numbers, and call this once per section.Code samples (curl / TypeScript / one-click client install), schemas, and the live playground are on the pack page:
https://pipeworx.io/packs/hk-elegislation/
Pipeworx is an open MCP gateway connecting AI agents to live data. pipeworx.io