mcpField
J
Japan Law Search

Japan Law Search

リモート
github.com/easakura法務・行政016 週間前に更新
リポジトリ

Japan Law Search について

Japan Law Search は、政府の e-Gov 法令 API を使って日本の現行法令を検索する MCP サーバーです。法令を検索結果、構成、条文本文として取得でき、法律、コンプライアンス、人事、契約審査のエージェントに対応します。

主な機能

  1. 01現行法令の全文検索
  2. 02章・条の構成を取得
  3. 03条文の正確な本文を取得
  4. 04柔軟な条番号表記の正規化

活用シーン

  1. 01コンプライアンス上の関連条文を検索
  2. 02条文の正確な文面を引用
  3. 03長い法令から条文を特定

MCP 対応

公式 e-Gov 法令 API を使い、法令検索、構成取得、条文本文取得のツールを MCP クライアントに提供します。

設定

リモートサーバーはインストール不要です。クライアントを選んで設定をコピーするか、ワンクリックで導入できます。

エンドポイントhttps://horei-mcp.easakura.workers.dev/mcp
インストールコマンドをコピー
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

コマンドはターミナルで実行し、JSON は各クライアントの MCP 設定に貼り付けて再起動します。認可が必要なサーバーは初回接続時にログインを求めます。

すべてのエンドポイント
Streamable HTTPhttps://horei-mcp.easakura.workers.dev/mcp
SSEhttps://horei-mcp.easakura.workers.dev/sse

ツール

README(原文)English

プロジェクトの README より

この README の日本語訳はまだありません。以下は英語の原文です。日本語の紹介はページ上部をご覧ください。

Japan Law Search MCP — 日本の法令検索

Give your AI agent authoritative access to all ~10,000 Japanese laws and regulations.

This MCP server searches and retrieves the full text of current Japanese legislation — acts, cabinet orders, and ministerial ordinances — from the official e-Gov Laws API (Government of Japan). Built for legal-tech, compliance, HR, and contract-review AI agents working with Japanese law.

Why this server?

Japanese statutes are published as deeply nested XML with kanji numerals, era-based dates, and no convenient full-text API surface for LLMs. This server turns that into three clean, token-efficient tools.

Tools

search_laws

Full-text search across the body text of every current law (or search by law title). Returns matched snippets, law categories, promulgation dates, and official links.

get_law_structure

Table of contents for any law: chapters, sections, and article headings. Long statutes (e.g. the Civil Code with 1,000+ articles) are automatically compressed to chapter level to save tokens.

get_law_article

Retrieve the exact text of any article. Accepts flexible references — 3, 第3条, 第三条の二, 3の2 — and normalizes kanji numerals automatically. Output preserves paragraph and item numbering as clean plain text.

Example queries your agent can now answer

  • 「電子署名法で電子署名が有効とされる条件は?」→ finds Article 3 and quotes it verbatim
  • "What does the Labor Standards Act say about overtime limits? Quote the exact article."
  • 「個人情報保護法の目次を見せて、第三者提供に関する条文を特定して」

Data source & freshness

Official e-Gov Laws API v2 (Government of Japan), fetched live on every call — always the currently enforced revision, including amendments enforced this month.

Pricing

Pay per tool call. One search, one table of contents, or one article retrieval = one event. No subscription, no minimum.


日本語

日本の現行法令(約1万件)を全文検索し、条文を取得できるMCPサーバーです。巨大な法令XMLをAIが読みやすいテキストに整形し、「第三条の二」等の表記ゆらぎも自動吸収します。リーガルテック・コンプライアンス・労務系AIに最適です。

Get started

This is a hosted (remote) MCP server, available on Apify Store:

👉 https://apify.com/e-asakura/japan-law-search-mcp

The store page includes setup instructions for Claude, ChatGPT, Cursor, and any MCP-compatible client. Pay-as-you-go: $0.02 per tool call, no subscription.


Built by Edward Asakura — Japanese data infrastructure for AI agents. Part of the SEKISHO series: subsidies / laws / parliament.

コメント

MCP は初めてですか?

プロトコルの概要から最初のサーバーの導入まで、よくある疑問にまとめて答えます。

AI アプリケーションが外部のツールやデータソースに統一的な方法で接続するためのオープンなプロトコルです。クライアントはモデルとの対話を担い、MCP サーバーはツール・リソース・プロンプトテンプレートを提供します。標準メッセージでやり取りするため、1 つのサーバーを複数のクライアントで再利用できます。