e-Gov Law MCP Server
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@e-Gov Law MCP Server 個人情報保護法を検索して"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
e-Gov Law MCP Server
日本政府の e-Gov 法令 API をラップした Model Context Protocol (MCP) サーバーです。
機能
法令検索 (
search_laws) - キーワードやカテゴリで法令を検索法令本文取得 (
get_law_text) - 法令 ID または法令番号から全文を取得条文取得 (
get_article) - 特定の条文を取得
Related MCP server: Legal Search MCP
インストール
Claude Code で使う
npx -y egov-law-mcpclaude_desktop_config.json に追加
{
"mcpServers": {
"egov-law": {
"command": "npx",
"args": ["-y", "egov-law-mcp"]
}
}
}ツール
search_laws
法令を検索します。
パラメータ:
keyword(string, 必須): 検索キーワードcategory(number, optional): 法令カテゴリ1: 憲法・法律
2: 政令・勅令
3: 府省令
4: その他
例:
search_laws({ keyword: "個人情報保護" })
search_laws({ keyword: "契約", category: 1 })get_law_text
法令の全文を取得します。
パラメータ:
law_id(string): 法令 ID (例: "405AC0000000089")law_number(string): 法令番号 (例: "平成十五年法律第五十七号")
どちらか一方が必須です。
例:
get_law_text({ law_id: "405AC0000000089" })
get_law_text({ law_number: "平成十五年法律第五十七号" })get_article
特定の条文を取得します。
パラメータ:
law_id(string, 必須): 法令 IDarticle(string, 必須): 条番号 (例: "第一条", "第二十条")paragraph(number, optional): 項番号
例:
get_article({ law_id: "405AC0000000089", article: "第一条" })
get_article({ law_id: "405AC0000000089", article: "第二条", paragraph: 2 })キャッシュ
API レスポンスは自動的にキャッシュされます:
データ種別 | キャッシュ期間 |
法令一覧 | 24時間 |
法令本文 | 7日間 |
更新一覧 | 1時間 |
キャッシュは ~/.cache/egov-law-mcp/ に保存されます。
対象法令の例
印紙税法 - 契約書への収入印紙
下請法 - 下請取引の公正化
個人情報保護法 - データ保護義務
民法 - 契約の基本原則
消費者契約法 - B2C 契約の制限
会社法 - 企業統治
e-Gov API について
このサーバーは e-Gov 法令 API を使用しています。API は無料で利用可能で、認証不要です。
ライセンス
MIT
Available Tools
3 toolsget_articleA
特定の条文を取得します。法令IDと条番号を指定して、特定の条文を取得できます。
使用例:
民法第1条を取得: law_id="129AC0000000089", article="第一条"
民法第2条第2項を取得: law_id="129AC0000000089", article="第二条", paragraph=2
条番号の指定方法:
漢数字: "第一条", "第二十条", "第百二十三条"
アラビア数字: "1", "20", "123"
主な法令ID:
民法: 129AC0000000089
会社法: 417AC0000000086
個人情報保護法: 415AC0000000057
下請法: 331AC0000000120
消費者契約法: 412AC0000000061
Inputs: law_id (required), article (required), paragraph.
get_law_textA
法令の全文を取得します。法令IDまたは法令番号で指定できます。
使用例:
法令IDで取得: law_id="405AC0000000089"
法令番号で取得: law_number="平成十五年法律第五十七号"
主な法令ID:
民法: 129AC0000000089
会社法: 417AC0000000086
個人情報保護法: 415AC0000000057
下請法: 331AC0000000120
印紙税法: 342AC0000000023
Inputs: law_id, law_number.
search_lawsB
法令を検索します。キーワードやカテゴリで日本の法令を検索できます。
カテゴリ:
1: 憲法・法律
2: 政令・勅令
3: 府省令
4: その他
使用例:
個人情報保護に関する法令を検索
契約に関する法律を検索
特定のカテゴリの法令を検索
Inputs: keyword (required), category.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
search_laws locates laws, get_law_text retrieves full texts, and get_article fetches a specific provision. The boundaries are clear and there is no meaningful overlap between the tools.
All tool names follow a consistent verb_noun pattern: search_laws, get_law_text, get_article. The naming is predictable and easy for an agent to navigate.
The server has exactly three tools, each covering a distinct and necessary step in the legal document retrieval workflow. This is well-scoped for a focused law lookup server.
The toolset provides a complete read-only lifecycle for legal information: search for relevant laws, retrieve the full text, and fetch specific articles. No obvious dead ends or essential missing operations are apparent.
Maintenance
Related MCP Connectors
Japan Law MCP — Japanese national laws & ordinances via the e-Gov Law API.
MCP server for Chinese law lookup: statutes, regulations and articles by keyword or law name.
Search Japanese statutes via the e-Gov Law API. Free law_search tool.
MCP server for searching Airweave collections with natural language queries.
Related MCP Servers
- AlicenseAqualityCmaintenanceLocal stdio MCP server for searching Japanese laws and retrieving article text from e-Gov Law Search. Includes related-law lookup for enforcement orders and regulations, with source attribution baked into every tool result.452 npmMIT
- AlicenseAqualityDmaintenanceMCP server that enables AI agents to search Korean laws and retrieve article contents using the Korean Ministry of Legislation's law information API.2MIT
- AlicenseAqualityDmaintenanceMCP server to fetch Japanese financial laws and regulations from the e-Gov API, preventing hallucinations in Claude's responses. Supports 9 domains including Financial Instruments and Exchange Act, Banking Act, etc.5MIT
- FlicenseAqualityDmaintenanceMCP server for Legalize.dev, enabling AI to query and understand legal frameworks across countries via a structured legislation API.131-