Skip to main content
ClaudeWave

Japan Law MCP — Japanese national laws & ordinances via the e-Gov Law API.

MCP ServersOfficial Registry0 stars0 forks● TypeScriptMITUpdated today
ClaudeWave Trust Score
95/100
✓ Verified
Passed
  • ✓Open-source license (MIT)
  • ✓Actively maintained (<30d)
  • ✓Clear description
  • ✓Topics declared
  • ✓Documented (README)
Last scanned: 10/17/2026
Install in Claude Code / Claude Desktop
Method: NPX · @pipeworx/mcp-japan-law
Claude Code CLI
claude mcp add mcp-japan-law -- npx -y @pipeworx/mcp-japan-law
claude_desktop_config.json (Claude Desktop)
{
  "mcpServers": {
    "mcp-japan-law": {
      "command": "npx",
      "args": ["-y", "@pipeworx/mcp-japan-law"]
    }
  }
}
1. Run the command above in your terminal (Claude Code), or paste the JSON config into claude_desktop_config.json (Claude Desktop).
2. Replace any <placeholder> values with your API keys or paths.
3. Restart Claude. The MCP server and its tools appear automatically.
Use cases

MCP Servers overview

# @pipeworx/japan-law

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.

Part of [Pipeworx](https://pipeworx.io) — an MCP gateway connecting AI agents to 1819+ live data sources. This is an independent, unofficial integration — not affiliated with, endorsed by, or published by the upstream provider.

## 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 (from `search_laws`) and article number. `article` accepts "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 through `get_law` to find one
  provision. Pass `as_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_offset` say whether
  another page follows; a long law is never silently cut off with no way to
  continue. Pass `as_of` for 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_article` looks 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.

## Quick Start

Add to your MCP client (Claude Desktop, Cursor, Windsurf, etc.):

```json
{
  "mcpServers": {
    "japan-law": {
      "url": "https://gateway.pipeworx.io/japan-law/mcp"
    }
  }
}
```

### What this endpoint actually serves

`tools/list` at `https://gateway.pipeworx.io/japan-law/mcp` returns the tools in the table
above **plus the shared Pipeworx meta-tools** — `ask_pipeworx`,
`discover_tools`, `search_within`, `remember`/`recall` and the rest of the
gateway-wide set. So the tool count you see is larger than this table: a
single-pack endpoint currently lists roughly 30 shared tools alongside the
pack's own. The connection's `initialize` response states its exact scope, and
is the authoritative answer for a given day.

This is deliberate, not multiplexing by accident. The meta-tools are what let a
scoped connection answer a question this pack does not cover — via
`ask_pipeworx`, which routes across the whole catalog — without you adding a
second MCP server. There is currently no way to mount a pack endpoint without
them; if the extra schemas cost you more context than the routing is worth,
connect to the full gateway once rather than to several pack endpoints.

Or connect to the full Pipeworx gateway to get every pack's tools listed
directly, instead of just this one's:

```json
{
  "mcpServers": {
    "pipeworx": {
      "url": "https://gateway.pipeworx.io/mcp"
    }
  }
}
```

Both URLs reach the same gateway and the same 1819+ data sources. The
only difference is which pack's tools are listed **directly**; `ask_pipeworx`
reaches all of them from either one.

## No MCP client? Call it over HTTP

```bash
curl -X POST https://gateway.pipeworx.io/v1/tools/search_laws \
  -H 'Content-Type: application/json' \
  -d '{"query":"個人情報保護"}'
```

No account needed for the first calls. Inspect any tool: `GET https://gateway.pipeworx.io/v1/tools/search_laws`. Find one: `POST https://gateway.pipeworx.io/v1/tools/search_packs` with `{"query":"..."}`.

## Standalone (no gateway account)

This package also runs as a local stdio MCP server — no Pipeworx account, no
gateway round-trip:

```json
{
  "mcpServers": {
    "japan-law": {
      "command": "npx",
      "args": ["-y", "@pipeworx/mcp-japan-law"]
    }
  }
}
```

Or run it directly to confirm it starts:

```bash
npx -y @pipeworx/mcp-japan-law
```

It speaks MCP over stdin/stdout and answers `initialize`/`tools/list`/`tools/call`
for **only** this pack's tools — none of the shared meta-tools the gateway
connection above adds. Same source, same tools, no ask_pipeworx routing.

## Using with ask_pipeworx

Instead of calling tools directly, you can ask questions in plain English —
this works on the pack endpoint above as well as on the full gateway:

```
ask_pipeworx({ question: "your question about Japan Law data" })
```

The gateway picks the right tool and fills the arguments automatically.

## More

- [Docs and guides](https://pipeworx.io/docs)
- [pipeworx.io](https://pipeworx.io)

## License

MIT
japan-lawmcpmcp-servermodel-context-protocolpipeworx

What people ask about mcp-japan-law

What is pipeworx-io/mcp-japan-law?

+

pipeworx-io/mcp-japan-law is mcp servers for the Claude AI ecosystem. Japan Law MCP — Japanese national laws & ordinances via the e-Gov Law API. It has 0 GitHub stars and its last recorded update is dated 2026-10-16.

How do I install mcp-japan-law?

+

You can install mcp-japan-law by cloning the repository (https://github.com/pipeworx-io/mcp-japan-law) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.

Is pipeworx-io/mcp-japan-law safe to use?

+

Our security agent has analyzed pipeworx-io/mcp-japan-law and assigned a Trust Score of 95/100 (tier: Verified). See the full breakdown of passed checks and flags on this page.

Who maintains pipeworx-io/mcp-japan-law?

+

pipeworx-io/mcp-japan-law is maintained by pipeworx-io. The last recorded GitHub activity is dated 2026-10-16, with 0 open issues.

Are there alternatives to mcp-japan-law?

+

Yes. On ClaudeWave you can browse similar mcp servers at /categories/mcp, sorted by popularity or recent activity.

Deploy mcp-japan-law to your cloud

Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.

Maintain this repo? Add a badge to your README

Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.

Featured on ClaudeWave: pipeworx-io/mcp-japan-law
[![Featured on ClaudeWave](https://claudewave.com/api/badge/pipeworx-io-mcp-japan-law)](https://claudewave.com/repo/pipeworx-io-mcp-japan-law)
<a href="https://claudewave.com/repo/pipeworx-io-mcp-japan-law"><img src="https://claudewave.com/api/badge/pipeworx-io-mcp-japan-law" alt="Featured on ClaudeWave: pipeworx-io/mcp-japan-law" width="320" height="64" /></a>

More MCP Servers

mcp-japan-law alternatives