e-Gov (Japanese Legal Database)

e-Gov (Japanese Legal Database)

groundcobra009

Connects to Japan's official e-Gov database to search and retrieve Japanese laws, regulations, and legal documents with full text access and revision history.

Integrates with Japan's official e-Gov legal database to provide search and retrieval of Japanese laws and regulations for legal research, compliance checking, and regulatory analysis.

16397 views4Local (stdio)

What it does

  • Search Japanese laws by name or law number
  • Retrieve detailed legal document content
  • Get revision history for specific laws
  • Filter by law category (laws, ordinances, ministerial ordinances)

Best for

Legal professionals researching Japanese lawCompliance teams checking regulationsBusinesses operating in Japan
Official government databaseFull Japanese legal text accessRevision tracking

About e-Gov (Japanese Legal Database)

e-Gov (Japanese Legal Database) is a community-built MCP server published by groundcobra009 that provides AI assistants with tools and capabilities via the Model Context Protocol. Access and search Japanese laws with e-Gov (Japanese Legal Database) for legal research, compliance, and regulatory anal It is categorized under search web. This server exposes 3 tools that AI clients can invoke during conversations and coding sessions.

How to install

You can install e-Gov (Japanese Legal Database) in your AI client of choice. Use the install panel on this page to get one-click setup for Cursor, Claude Desktop, VS Code, and other MCP-compatible clients. This server runs locally on your machine via the stdio transport.

License

e-Gov (Japanese Legal Database) is released under the MIT license. This is a permissive open-source license, meaning you can freely use, modify, and distribute the software.

Tools (3)

search_law

法令名や法令番号で法令を検索します。キーワード検索に対応しています。

get_law_data

法令番号を指定して法令の詳細データを取得します。

get_law_revision

法令の改正履歴を取得します。

法令MCP Server

e-Gov法令APIを使用して日本の法令情報を検索・取得するMCPサーバーです。

npm version License: MIT

機能

このMCPサーバーは以下のツールを提供します:

1. search_law

法令名や法令番号で法令を検索します。

パラメータ:

  • keyword (必須): 検索キーワード(法令名の一部や法令番号)
  • category (オプション): 法令の種別
    • 1: 法律
    • 2: 政令
    • 3: 省令
    • 4: 規則
    • 5: その他
  • limit (オプション): 取得する最大件数(デフォルト: 100)

2. get_law_data

法令番号を指定して法令の詳細データを取得します。

パラメータ:

  • lawNum (必須): 法令番号(例: 平成十七年法律第百十七号)

3. get_law_revision

法令の改正履歴を取得します。

パラメータ:

  • lawNum (必須): 法令番号

インストール

npm経由でインストール(推奨)

npx hourei-mcp-server

ローカル開発

git clone <repository-url>
cd hourei-mcp-server
npm install

使用方法

MCPクライアントでの設定

Claude Desktopなどのクライアントの設定ファイル(~/Library/Application Support/Claude/claude_desktop_config.json)に以下を追加:

{
  "mcpServers": {
    "hourei": {
      "command": "npx",
      "args": ["-y", "hourei-mcp-server"]
    }
  }
}

設定後、Claude Desktopを再起動してください。

Cursor AI での設定

Cursorの設定ファイル(.cursor/mcp_config.json または設定画面)に以下を追加:

{
  "mcpServers": {
    "hourei": {
      "command": "npx",
      "args": ["-y", "hourei-mcp-server"]
    }
  }
}

ChatGPT Desktop での設定

ChatGPTでは、MCPサーバーのURLを指定する形式で設定します。

オプション1: npxコマンドで実行(他のクライアントと同じ)

{
  "mcpServers": {
    "hourei": {
      "command": "npx",
      "args": ["-y", "hourei-mcp-server"]
    }
  }
}

オプション2: URL形式で指定(SSEサーバー経由)

SSE対応サーバーを別途立ち上げた場合:

{
  "mcpServers": {
    "hourei": {
      "url": "http://localhost:3000/sse"
    }
  }
}

または、リモートサーバーにデプロイした場合:

{
  "mcpServers": {
    "hourei": {
      "url": "https://your-server.com/sse"
    }
  }
}

注意: 現在のバージョン(v1.0.5)はstdio接続のみ対応しています。URL形式で使用する場合は、別途SSE対応のラッパーサーバーが必要です。

Manus での設定

Manusの設定ファイルに以下を追加:

{
  "mcpServers": {
    "hourei": {
      "command": "npx",
      "args": ["-y", "hourei-mcp-server"]
    }
  }
}

Dify での設定

DifyのエージェントでMCPツールを使用する場合:

  1. Difyの設定ファイルに追加

環境変数またはDifyの設定で以下を指定:

{
  "mcpServers": {
    "hourei": {
      "command": "npx",
      "args": ["-y", "hourei-mcp-server"]
    }
  }
}
  1. エージェントブロックでの使用

Difyのワークフロー内で「ツール」ブロックを追加し、以下のMCPツールを選択:

  • search_law - 法令検索
  • get_law_data - 法令詳細取得
  • get_law_revision - 改正履歴取得
  1. 使用例:法令検索エージェント
入力ブロック → LLMブロック → ツールブロック(search_law) → 出力ブロック

ツールブロックのパラメータ設定例:

{
  "keyword": "{{user_input}}",
  "category": "1",
  "limit": 100
}

ローカルパスで実行(開発用)

{
  "mcpServers": {
    "hourei": {
      "command": "node",
      "args": ["/path/to/hourei-mcp-server/index.js"]
    }
  }
}

使用例

このMCPサーバーでできることの具体例です。

1. 法令のキーワード検索

個人情報保護関連の法律を検索:

{
  "keyword": "個人情報保護",
  "category": "1"  // 法律のみ
}

労働基準法を検索:

{
  "keyword": "労働基準法"
}

消費税に関する政令を検索:

{
  "keyword": "消費税",
  "category": "2",  // 政令
  "limit": 50
}

2. 法令の詳細データ取得

個人情報保護法の全文を取得:

{
  "lawNum": "平成十五年法律第五十七号"
}

民法の全文を取得:

{
  "lawNum": "明治二十九年法律第八十九号"
}

刑法の全文を取得:

{
  "lawNum": "明治四十年法律第四十五号"
}

3. 法令の改正履歴を確認

個人情報保護法の改正履歴:

{
  "lawNum": "平成十五年法律第五十七号"
}

できること

法令の検索

  • キーワードで法令を検索
  • 法律、政令、省令など種別で絞り込み
  • 最大100件まで一度に取得可能

法令データの取得

  • 法令番号を指定して全文取得
  • XML形式で構造化されたデータ
  • 条文、項、号などの階層構造を含む

改正履歴の確認

  • いつ、どのように法令が改正されたか
  • 改正法令の情報を取得
  • 施行日の確認

活用例

  • 法的調査・リサーチ
  • コンプライアンスチェック
  • 契約書作成時の参照
  • 法令遵守の確認
  • 法律相談の補助
  • 法改正の追跡
  • Difyエージェントでの法令検索自動化
  • チャットボットへの法令知識統合

対応クライアント

  • ✅ Claude Desktop(npx経由)
  • ✅ Cursor AI(npx経由)
  • ✅ ChatGPT Desktop(npxまたはURL形式)
  • ✅ Manus(npx経由)
  • ✅ Dify(エージェントワークフロー)
  • ✅ その他MCP対応クライアント(stdio接続対応)

技術仕様

  • Node.js ESM形式
  • MCP SDK v0.5.0
  • e-Gov法令API v2を使用
  • 対応フォーマット: XML

開発

リポジトリのクローン

git clone https://github.com/yourusername/hourei-mcp-server.git
cd hourei-mcp-server
npm install

ローカルでテスト

node index.js

ライセンス

MIT

貢献

Pull Requestsを歓迎します!

サポート

問題が発生した場合は、Issuesで報告してください。

Alternatives

Related Skills

Browse all skills
literature-review

Conduct comprehensive, systematic literature reviews using multiple academic databases (PubMed, arXiv, bioRxiv, Semantic Scholar, etc.). This skill should be used when conducting systematic literature reviews, meta-analyses, research synthesis, or comprehensive literature searches across biomedical, scientific, and technical domains. Creates professionally formatted markdown documents and PDFs with verified citations in multiple citation styles (APA, Nature, Vancouver, etc.).

377
google-official-seo-guide

Official Google SEO guide covering search optimization, best practices, Search Console, crawling, indexing, and improving website search visibility based on official Google documentation

119
dotnet-backend

.NET/C# backend developer for ASP.NET Core APIs with Entity Framework Core. Builds REST APIs, minimal APIs, gRPC services, authentication with Identity/JWT, authorization, database operations, background services, SignalR real-time features. Activates for: .NET, C#, ASP.NET Core, Entity Framework Core, EF Core, .NET Core, minimal API, Web API, gRPC, authentication .NET, Identity, JWT .NET, authorization, LINQ, async/await C#, background service, IHostedService, SignalR, SQL Server, PostgreSQL .NET, dependency injection, middleware .NET.

109
ux-writing

Create user-centered, accessible interface copy (microcopy) for digital products including buttons, labels, error messages, notifications, forms, onboarding, empty states, success messages, and help text. Use when writing or editing any text that appears in apps, websites, or software interfaces, designing conversational flows, establishing voice and tone guidelines, auditing product content for consistency and usability, reviewing UI strings, or improving existing interface copy. Applies UX writing best practices based on four quality standards — purposeful, concise, conversational, and clear. Includes accessibility guidelines, research-backed benchmarks (sentence length, comprehension rates, reading levels), expanded error patterns, tone adaptation frameworks, and comprehensive reference materials.

31
last30days

Research a topic from the last 30 days on Reddit + X + Web, become an expert, and write copy-paste-ready prompts for the user's target tool.

27
openalex-database

Query and analyze scholarly literature using the OpenAlex database. This skill should be used when searching for academic papers, analyzing research trends, finding works by authors or institutions, tracking citations, discovering open access publications, or conducting bibliometric analysis across 240M+ scholarly works. Use for literature searches, research output analysis, citation analysis, and academic database queries.

25