MCP server exposing 3 tools for japan-law.
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/japan-law/mcp
Content-Type: application/json
{"jsonrpc":"2.0","id":1,"method":"tools/list"}
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", "日本の法律", finding a statute's official id/number. A query that only appears in the body of a law (not its title) will not match. Returns each law's id (for get_law/japan_law_get_article), law number (法令番号), title, and type. Accepts Japanese or romanized keywords.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` to walk a long law; `has_more`/`next_offset` say whether another page follows. For a single article (incl. branch articles like 第二十七条の2), use japan_law_get_article instead — it is far cheaper than paging a whole law to find one provision. Pass `as_of` (YYYY-MM-DD) to fetch the version of the law in force on that date. Source: e-Gov 法令検索.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 form "第二十七条の2" all resolve to 第二十七条の2. Returns just that article's caption, heading, and text (not the whole law — use this instead of get_law when you know the article you want). Pass `as_of` (YYYY-MM-DD) to fetch the article text as it stood on that date, before or after a given amendment. Source: e-Gov 法令検索.Code samples (curl / TypeScript / one-click client install), schemas, and the live playground are on the pack page:
https://pipeworx.io/packs/japan-law/
Pipeworx is an open MCP gateway connecting AI agents to live data. pipeworx.io