npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

labor-law-mcp

v0.2.0

Published

MCP server for Japanese labor & social insurance law — e-Gov API, MHLW 通達, JAISH 安衛通達

Readme

labor-law-mcp

日本の労働・社会保険法令と行政通達を取得する MCP サーバー。

Claude が労務の質問に回答する際、条文や通達のハルシネーションを防止するために、e-Gov法令API・厚労省法令等DB・安全衛生情報センターから原文を取得して裏取りさせます。

特徴

  • 法令取得 — e-Gov法令API v2 から条文をMarkdown形式で取得
  • 法令検索 — キーワードで法令を横断検索
  • 厚労省通達検索 — 厚労省法令等データベースから通達をキーワード検索
  • 厚労省通達取得 — 通達本文をHTML→テキスト変換して取得
  • 安衛通達検索 — 安全衛生情報センター(JAISH)から安衛法関連通達を検索
  • 安衛通達取得 — 安衛通達の本文を取得
  • 主要法令プリセット — 労働基準法・雇用保険法・健康保険法等のlaw_idをハードコード(45法令)
  • 略称対応 — 「労基法」「安衛法」「育介法」「健保法」等の略称で指定可能

MCP ツール

| ツール | 説明 | |---|---| | get_law | e-Gov法令APIから条文を取得。法令名 + 条番号で指定 | | search_law | キーワードで法令を検索 | | search_mhlw_tsutatsu | 厚労省法令等DBから通達をキーワード検索 | | get_mhlw_tsutatsu | 厚労省通達の本文を取得。data_idで指定 | | search_jaish_tsutatsu | JAISH安全衛生情報センターから安衛通達を検索 | | get_jaish_tsutatsu | JAISH安衛通達の本文を取得。URLで指定 |

対応法令(プリセット45法令)

労働基準関係

労働基準法、労働基準法施行令、労働基準法施行規則、労働契約法、最低賃金法、賃金支払確保法

労働安全衛生関係

労働安全衛生法、労働安全衛生法施行令、労働安全衛生規則、じん肺法

労働保険関係

労災保険法、雇用保険法、雇用保険法施行令、雇用保険法施行規則、労働保険徴収法

職業安定・雇用対策関係

職業安定法、労働者派遣法、高年齢者雇用安定法、障害者雇用促進法、職業能力開発促進法、中小企業退職金共済法

雇用均等・ワークライフバランス関係

男女雇用機会均等法、育児介護休業法、パートタイム・有期雇用労働法、次世代育成支援対策推進法、女性活躍推進法

労使関係

労働組合法、労働関係調整法、個別労働紛争解決促進法、労働施策総合推進法(パワハラ防止法)

社会保険関係

健康保険法、厚生年金保険法、国民年金法、国民健康保険法、介護保険法、社会保険労務士法 等

略称対応

| 略称 | 正式名称 | |------|----------| | 労基法 | 労働基準法 | | 安衛法 | 労働安全衛生法 | | 派遣法 | 労働者派遣法 | | 雇保法 | 雇用保険法 | | 労災法 | 労災保険法 | | 健保法 | 健康保険法 | | 厚年法 | 厚生年金保険法 | | 国年法 | 国民年金法 | | 育介法 | 育児介護休業法 | | 均等法 | 男女雇用機会均等法 | | パート法 | パートタイム・有期雇用労働法 | | パワハラ防止法 | 労働施策総合推進法 |

セットアップ

npx(推奨)

インストール不要。以下の設定をコピペするだけ:

{
  "mcpServers": {
    "labor-law": {
      "command": "npx",
      "args": ["-y", "labor-law-mcp"]
    }
  }
}

Claude Desktop: ~/Library/Application Support/Claude/claude_desktop_config.json に追加

Claude Code: claude mcp add labor-law -- npx -y labor-law-mcp

ローカル(ソースから)

git clone https://github.com/kentaroajisaka/labor-law-mcp.git
cd labor-law-mcp
npm install
npm run build
{
  "mcpServers": {
    "labor-law": {
      "command": "node",
      "args": ["/path/to/labor-law-mcp/dist/index.js"]
    }
  }
}

使い方の例

条文の取得

「労働基準法第32条を取得して」

get_law(law_name="労働基準法", article="32")

略称での取得

「安衛法の第59条を見せて」

get_law(law_name="安衛法", article="59")

厚労省通達の検索

「36協定に関する通達を検索して」

search_mhlw_tsutatsu(keyword="36協定")

厚労省通達の本文取得

「data_id: 00tb2035 の通達を読みたい」

get_mhlw_tsutatsu(data_id="00tb2035")

安衛通達の検索

「足場に関する安衛通達を検索して」

search_jaish_tsutatsu(keyword="足場")

ハルシネーション防止ワークフロー

  1. Claude が労務の質問に仮回答を作成
  2. 引用した条文・通達を get_law / search_mhlw_tsutatsu / search_jaish_tsutatsu で取得
  3. 実際の原文と仮回答を照合し、誤りがあれば修正
  4. 2-3 を収束するまで繰り返す(最大4ラウンド)

出典

厚労省通達の利用は厚生労働省ホームページの利用規約に基づきます。

参考

ライセンス

MIT