e-Gov Law MCP Server
MCP server for searching and retrieving Japanese laws from the e-Gov API, enabling natural language queries for legal information.
README
e-Gov Law MCP Server
日本政府の e-Gov 法令 API をラップした Model Context Protocol (MCP) サーバーです。
機能
- 法令検索 (
search_laws) - キーワードやカテゴリで法令を検索 - 法令本文取得 (
get_law_text) - 法令 ID または法令番号から全文を取得 - 条文取得 (
get_article) - 特定の条文を取得
インストール
Claude Code で使う
npx -y egov-law-mcp
claude_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
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.