VS Code · Microsoft
Japanese law in VS Code and GitHub Copilot
VS Code installs MCP servers for GitHub Copilot's agent mode from a link or from .vscode/mcp.json. Add japanlaw.org and Copilot can read Japanese statute while it works on your code.
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
Use the Add to VS Code button above and confirm in VS Code.
- 2
Or commit it for the workspace in .vscode/mcp.json:
.vscode/mcp.json{ "servers": { "japanlaw": { "type": "http", "url": "https://japanlaw.org/mcp" } } } - 3
Open Copilot Chat in agent mode and check that japanlaw's tools are enabled in the tools picker.
Before you start
- Your organization's GitHub Copilot policy may need to allow MCP servers.
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 VS Code 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.

