
Company News
Socket Joins New OpenJS Program to Fund Node.js Security Work
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.
@codeagentjp/egov-law-mcp
Advanced tools
Local stdio MCP server for searching Japanese laws and retrieving article text from e-Gov Law Search. Includes related-law lookup (enforcement orders/regulations) inspired by Gennai Lawsy.
Local stdio MCP server for searching Japanese laws and retrieving article text from e-Gov Law Search.
This server does not call an LLM. It only returns source-backed law data and e-Gov URLs so your MCP client (Claude Desktop, Claude Code, Cursor, or any other agent) can cite the original source.
Design choices were informed by reading Digital Agency's open-sourced Lawsy-Custom-BQ (released 2026-04-24 as part of the Gennai government AI OSS release). See the design notes at codeagent.jp.
There is an existing egov-law-mcp on npm by another author. This package differs in three ways:
find_related_laws — looks up enforcement orders (施行令) and regulations (施行規則) for a given base law name. Lawsy-Custom-BQ has the same step server-side; useful because definitions and delegated rules often live outside the parent act..mjs, no build step — bin/egov-law-mcp.mjs runs directly under Node 20+. Easier to audit, smaller install.MVP. The API surface is intentionally small:
search_laws — search current Japanese laws by keyword.get_article — retrieve a specific article from a law by law ID or law number.get_law — retrieve basic metadata and a text preview for a law.find_related_laws — find likely related enforcement orders and regulations.https://laws.e-gov.go.jpFrom npm:
{
"mcpServers": {
"egov-law": {
"command": "npx",
"args": ["-y", "@codeagentjp/egov-law-mcp"]
}
}
}
From source for development:
git clone https://github.com/SHAYOUWORLD/egov-law-mcp.git
cd egov-law-mcp
node bin/egov-law-mcp.mjs
{
"mcpServers": {
"egov-law": {
"command": "node",
"args": ["/absolute/path/to/egov-law-mcp/bin/egov-law-mcp.mjs"]
}
}
}
search_lawsSearches the e-Gov law list.
{
"keyword": "個人情報",
"limit": 10
}
get_articleRetrieves article text. Provide either lawId or lawNum.
{
"lawId": "503AC0000000035",
"article": "2"
}
get_lawRetrieves basic metadata and a plain text preview of a law.
{
"lawId": "503AC0000000035",
"previewChars": 3000
}
find_related_lawsSearches for laws whose names look related to a base law name, including enforcement orders and regulations.
{
"lawName": "個人情報の保護に関する法律",
"limit": 10
}
This package uses the e-Gov Law Search API:
Tool results include source attribution. When you publish or redistribute output based on this package, include an appropriate e-Gov source attribution.
Suggested attribution:
出典: e-Gov法令検索(https://laws.e-gov.go.jp/)
MIT © codeagent.jp
FAQs
Local stdio MCP server for searching Japanese laws and retrieving article text from e-Gov Law Search. Includes related-law lookup (enforcement orders/regulations) inspired by Gennai Lawsy.
We found that @codeagentjp/egov-law-mcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Company News
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.

Security News
Two compromised GitHub Actions were re-enabled with malicious tags intact, exposing thousands of downstream repositories to Mini Shai-Hulud.

Research
/Security News
A malicious Firefox extension fetches its payload after installation to evade detection, steal Google session cookies, and automate account takeover.