japan-law-mcp

v0.2.0
japan-law-mcp Checked 15 hours ago Published 3 months ago

MCP server for Japan's e-Gov 法令API v2 — search, cite and quote Japanese statutes by article, including 附則/別表/号 and point-in-time (asof) lookups.

PyPI (uvx) discovery passed

Requires uv (https://docs.astral.sh/uv/)

Run in a terminal
claude mcp add japan-law-mcp -- uvx japan-law-mcp==0.2.0
Add to claude_desktop_config.json
{
  "mcpServers": {
    "japan-law-mcp": {
      "args": [
        "japan-law-mcp==0.2.0"
      ],
      "command": "uvx"
    }
  }
}
Add to ~/.cursor/mcp.json
{
  "mcpServers": {
    "japan-law-mcp": {
      "args": [
        "japan-law-mcp==0.2.0"
      ],
      "command": "uvx"
    }
  }
}
Add to .vscode/mcp.json
{
  "servers": {
    "japan-law-mcp": {
      "args": [
        "japan-law-mcp==0.2.0"
      ],
      "command": "uvx",
      "type": "stdio"
    }
  }
}
Add to ~/.codex/config.toml
[mcp_servers.japan-law-mcp]
command = "uvx"
args = ["japan-law-mcp==0.2.0"]

For AI agents

  1. Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
  2. Restart or reload the client so it starts the server.
  3. Verify: the server should expose these tools: search_laws, search_laws_by_keyword, find_law_article, get_law_element, get_law_revisions, get_law_content, search, fetch, ….
  4. If it fails, check that the required runtime is installed (uv (https://docs.astral.sh/uv/)) and that the values above are set.

Machine-readable: install.md · manifest.json