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.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add egov-law -- npx -y @codeagentjp/egov-law-mcp~/.codex/config.toml
[mcp_servers.egov-law]
command = "npx"
args = ["-y", "@codeagentjp/egov-law-mcp"]
# codex mcp add egov-law -- npx -y @codeagentjp/egov-law-mcp~/.cursor/mcp.json
{
"mcpServers": {
"egov-law": {
"command": "npx",
"args": [
"-y",
"@codeagentjp/egov-law-mcp"
]
}
}
}.vscode/mcp.json
{
"servers": {
"egov-law": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@codeagentjp/egov-law-mcp"
]
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"egov-law": {
"command": "npx",
"args": [
"-y",
"@codeagentjp/egov-law-mcp"
]
}
}
}claude_desktop_config.json
{
"mcpServers": {
"egov-law": {
"command": "npx",
"args": [
"-y",
"@codeagentjp/egov-law-mcp"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"egov-law": {
"command": "npx",
"args": [
"-y",
"@codeagentjp/egov-law-mcp"
]
}
}
}