@pipeworx/kr-law

Connect: https://pipeworx.io/mcp — every tool in the catalog, including @pipeworx/kr-law’s. Install: one-click buttons

Connect to just the @pipeworx/kr-law pack

https://gateway.pipeworx.io/kr-law/mcp — only @pipeworx/kr-law’s own tools, nothing else in the catalog.

No MCP client? Skip the connection: POST https://gateway.pipeworx.io/v1/tools/search_packs {"query":"..."} to find a tool below, GET /v1/tools/<name> for its schema, POST the same URL with arguments for the data — see For AI agents.

Tools: 3

South Korean national statutes: search by title, fetch one article (조문) at a time with its own effective date, and a statute’s revision history. Bring your own OC (Open API user id) — every call runs on your own registration.

Tools

  • kr_law_search(...) — find statutes by title keyword. Returns each match’s mst (the version id every other tool needs), ministry, promulgation/effective dates, and whether it’s the current or a superseded version.
  • kr_law_article(...) — fetch ONE article by mst + article_no (e.g. "5" or "4-2" for 제4조의2). Never the whole law body. Omit article_no for a paginated table of contents (numbers + titles) instead. Returns the article’s own text, its paragraphs (항) and items (호), and its own effective date — which can differ from the law’s own when only that article was later amended.
  • kr_law_history(...) — revision history for a statute: every promulgation with its own promulgation date/number and entry-into-force date, each a separate historical mst you can pass back to kr_law_article.

Auth

BYO only, and will stay that way. Every tool requires _apiKey — your own OC from https://open.law.go.kr/LSO/main.do (로그인 → OPEN API → OPEN API 신청). With no key, every tool refuses before any network call, naming the argument and where to register.

Registering an OC requires Korean real-name verification — a Korean mobile-carrier identity check or an i-PIN. There is no alien-registration, passport, or overseas-signup path on the Ministry’s own form. Pipeworx has no Korean-resident staff and cannot complete either method, so there is no platform key for this pack and none is coming (ruled, fleet #3128, 2026-10-15).

For a quick smoke test only (never use this as a real credential, and never rely on it being stable), the Ministry’s own public demo id "test" works for kr_law_search and kr_law_article.

kr_law_history needs a service your OC may not have by default. Even a real, verified OC must separately enable 법령연혁 (law history) under My Applications on the open.law.go.kr dashboard (OPEN API → 신청내역 → check the 법령종류 box). An OC without it gets a specific, named error from this tool rather than a generic failure — follow the steps the error gives. The public demo id does not have this entitlement at all.

Data sources

  • Ministry of Government Legislation (법제처), National Law Information Center Open API — South Korea’s official statute database (law, cabinet order, and ministerial-ordinance text, with promulgation and entry-into-force dates and revision history).

Known gaps and gotchas

  • Korean-language text only. No translation is attempted or labelled official. The Ministry does not publish an official English statute text through this API.
  • kr_law_history’s success shape is unproven against a live call — no OC entitled to the history service was available while building this pack. The error path (an OC without that entitlement) is proven live and is what most callers without a premium/full registration will actually see. Flag this if it ever drifts from the documented row shape.
  • article_no branch numbering: Korean statutes insert new articles between existing ones as “제4조의2” rather than renumbering everything — pass that as "4-2". kr_law_article with no article_no lists every valid value for a given mst.
  • A law’s own 시행일자 (effective date) and one specific article’s 조문시행일자 can differ — an amendment sometimes only moves one article’s effective date forward. Both are returned, kept separate.
  • www.law.go.kr is itself Cloudflare-fronted and intermittently answers a legitimate request with HTTP 522/524/503 (measured live, 2026-10-15: 1 of 20 real calls). Every tool retries up to 3 times with backoff before giving up; if the origin is still down after that, the error says plainly that Korea’s law service did not respond and to try again — never a bare Cloudflare status code or its “error code: 5xx” body text.

Tools

  • kr_law_search — Search South Korean national statutes by title keyword (국가법령정보, Ministry of Government Legislation). Returns each matching law’s id, mst (version id — pass to kr_law_article/kr_law_history), ministry,
  • kr_law_article — Fetch ONE article (조문) of a South Korean statute by mst (from kr_law_search) and article_no (e.g. “5” or “4-2” for 제4조의2). Never returns the whole law body. Omit article_no to get a paginated table of
  • kr_law_history — Revision history for a South Korean statute: every promulgation with its own date, promulgation number, and entry-into-force date, each as a separate historical mst you can pass to kr_law_article. Req

Tools

  • kr_law_article — Fetch ONE article (조문) of a South Korean statute by mst (from kr_law_search) and article_no (e.g. 5 or 4-2 for 제4조의2). Never returns the whole law body. Omit article_no to get a paginated table of con
  • kr_law_history — Revision history for a South Korean statute: every promulgation with its own date, promulgation number, and entry-into-force date, each as a separate historical mst you can pass to kr_law_article. Req
  • kr_law_search — Search South Korean national statutes by title keyword (국가법령정보, Ministry of Government Legislation). Returns each matching law's id, mst (version id — pass to kr_law_article/kr_law_history), ministry,

Regenerated from source · build October 16, 2026