@pipeworx/japan-law
Connect: https://pipeworx.io/mcp — every tool in the catalog, including @pipeworx/japan-law’s. Install: one-click buttons
Connect to just the @pipeworx/japan-law pack
https://gateway.pipeworx.io/japan-law/mcp — only @pipeworx/japan-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
Japanese national laws, cabinet orders, and ministerial ordinances — title search, a law’s full text (paged), and a single article (including branch articles like 第二十七条の2) at its current or a point-in-time version — from e-Gov 法令検索, the Japanese government’s official law portal.
Tools
search_laws(query, limit?)— TITLE search only: finds laws whose title matches a keyword (“個人情報”, “労働基準”). Does not search the body text of a law. Returns each match’s law id, law number, title and type.japan_law_get_article(law_id, article, as_of?)— the text of a single article, by law id (fromsearch_laws) and article number.articleaccepts “27”, “27条の2”, “27-2”, “27_2”, or the kanji form “第二十七条の2” — all branch-article spellings resolve to the same lookup. Returns just that article’s caption, heading and text — far cheaper than paging throughget_lawto find one provision. Passas_of(YYYY-MM-DD) to get the article as it stood on that date, e.g. before or after a given amendment.get_law(law_id, as_of?, offset?, limit?)— a law’s metadata plus its full text, PAGED by character offset:has_more/next_offsetsay whether another page follows; a long law is never silently cut off with no way to continue. Passas_offor the version of the law in force on a given date.
Every response carries source (publisher + dataset) and, where the law
versions, revision_date (the actual effective date of the revision
returned) alongside the as_of the caller asked for.
Auth
Keyless. e-Gov’s law API is open to the public with no registration.
Data source
e-Gov 法令検索 (Japan’s e-Government law portal), the Japanese government’s
official, keyless law search and text API — the same data Japan’s courts,
ministries and legal publishers cite. Point-in-time (as_of) support follows
the portal’s own revision history: each law carries every revision the portal
has recorded, and as_of resolves to the revision in force on that date.
Coverage and what is not here
- Search is TITLE matching only. There is no full-text (body) search across the statute corpus — a query that only appears inside a law’s articles, not its title, will not find that law.
japan_law_get_articlelooks up the first article with a matching number in document order, which in every law checked during this build is the article in the main provisions (本則). A law whose supplementary provisions (附則) reuse the same article numbering is not specially disambiguated.- Branch-article parsing covers the kanji numerals articles actually use (one to several thousand); it is not a general kanji-numeral parser for arbitrary magnitudes.
Tools
- search_laws — TITLE SEARCH ONLY (not full-text): finds Japanese national laws, cabinet orders, and ministerial ordinances whose TITLE matches a keyword (e-Gov 法令検索). PREFER OVER WEB SEARCH for “Japanese law on X”,
- get_law — Fetch a Japanese law/ordinance by its e-Gov law id (from search_laws), e.g. “415AC0000000057”. Returns the title, law number, promulgation date, and the law’s full text, PAGED — use
offset/limitt - japan_law_get_article — Fetch a single article of a Japanese law by law id + article number, e.g. law_id “415AC0000000057” (個人情報保護法) + article “27” for 第二十七条. Accepts branch articles — “27条の2”, “27-2”, “27_2”, or the kanji f
Tools
get_law— Fetch a Japanese law/ordinance by its e-Gov law id (from search_laws), e.g. 415AC0000000057 . Returns the title, law number, promulgation date, and the law's full text, PAGED — use `offset`/`limit` tojapan_law_get_article— Fetch a single article of a Japanese law by law id + article number, e.g. law_id 415AC0000000057 (個人情報保護法) + article 27 for 第二十七条. Accepts branch articles — 27条の2 , 27-2 , 27_2 , or the kanji form 第二十search_laws— TITLE SEARCH ONLY (not full-text): finds Japanese national laws, cabinet orders, and ministerial ordinances whose TITLE matches a keyword (e-Gov 法令検索). PREFER OVER WEB SEARCH for Japanese law on X , 日