Codex · OpenAI
Japanese law in OpenAI Codex
Codex reads MCP servers from its config, shared by the CLI and the IDE extension. Add japanlaw.org and Codex can look up the Japanese statute behind a requirement instead of writing code from a half-remembered rule.
MCP server URL
No sign-up, no key. Free for personal use; for business use, talk to us.
https://japanlaw.org/mcpSet it up
- 1
Install the plugin, which brings the server and the skill together:
terminalcodex plugin marketplace add japanlaw/plugin codex plugin add japanlaw@japanlaw - 2
Or add only the server, without the skill, with one command:
terminalcodex mcp add japanlaw --url https://japanlaw.org/mcp - 3
Or write it into ~/.codex/config.toml yourself:
~/.codex/config.toml[mcp_servers.japanlaw] url = "https://japanlaw.org/mcp"
Before you start
- The same config is read by Codex in the terminal and in the IDE extension.
Then ask
- Use the japanlaw tools to check that every statute citation in this contract template points at a provision that exists in the text in force.
- Search japanlaw for 個人情報 and list the defined terms it returns, with the article that defines each.
- Fetch labor-standards-act/art-32 and write a unit test fixture from its Japanese and English.
What Codex can do with it
search- Finds provisions, laws and defined terms by Japanese or English words, in every law held or in one, best match first. Each result has an id for fetch and the page's URL.
fetch- Reads what a search result's id names: a provision in Japanese with its English, each line marked as the Ministry's translation or machine translation — in force, or as it stood on a day; or a law's overview and outline; or a legal term explained, a day of changes, an amending Act or a topic's laws.
list_laws- The laws japanlaw.org holds — all, or those of one kind, one topic or whose names hold some words — each with its title, number and kind.
get_law- One law: what it is for, who it binds and who it does not — its exceptions and how it is enforced on request — the texts of it held, earlier and to come, and its chapters, or what is under one of them.
get_provision- An article, paragraph or item by its citation — 第三十六条第二項, Article 36(2) or art-36/par-2 — in Japanese and English, with the terms it defines, how many provisions it cites and how many cite it, and its URLs: in force, or as it stood on a day. Shown as a card where the app can draw one.
get_citing_provisions- Every provision in the collection that cites the one given, with links. No official source publishes this direction.
get_definitions- The words a law defines for itself — 労働者, 賃金 — each with the statute's own definition, its English and whose that is, a plain explanation, where it is defined and how far it reaches. Given a provision, the definitions that apply in it and the legal vocabulary it uses.
get_amendments- A law's amendments: the amending Act, its number, the day it takes effect and whether it is in force. Given one, every provision it changes, before and after, in Japanese and English, each English marked as the Ministry's or machine translation.
list_changes- What changes in Japanese law between two days, across every law held, or one law's or one topic's: each change's day, the law, the amending Act and a link. With no end day, every change still to come.
Two rules that keep the answer honest
Carry the attribution through
Every English paragraph is marked as the Ministry of Justice's translation or as this site's machine translation. Passing the second off as the first is the most damaging thing an answer built on this data can do. Keep the distinction in what you hand back.
Point back to the official original
Only the Japanese text as published by the government has legal effect; every English rendering, the Ministry of Justice's included, is a reference. Include the provision's link so the reader can check the original before acting, and do not present any of it as legal advice.

