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

@innovation-samurai/hourei-mcp

v1.0.0

Published

e-Gov法令API v2対応 MCP Server - 日本の法令検索・条文取得・改正履歴

Readme

hourei-mcp-server-v2

e-Gov法令API Version 2 対応の MCP (Model Context Protocol) サーバーです。 Claude Desktop、Cursor、ChatGPT Desktop などの AI アシスタントから日本の法令を検索・取得できます。

特徴

  • e-Gov法令API v2対応 - 最新のJSON APIを使用(従来のXML APIより高速・高精度)
  • 5つのツール - 法令名検索、キーワード全文検索、法令全文取得、改正履歴、特定条文取得
  • 時点指定検索 - 過去の特定時点における条文を取得可能
  • 認証不要 - e-Gov法令APIは無料公開API
  • npx一発起動 - インストール不要で即利用可能

クイックスタート

npx hourei-mcp-server-v2

ツール一覧

| ツール名 | 説明 | |---------|------| | search_law | 法令名で検索(法令一覧取得) | | keyword_search | 条文内テキストのキーワード全文検索 | | get_law_fulltext | 法令IDから全文テキスト取得 | | get_law_revision | 法令の改正履歴一覧 | | get_law_article | 特定の条文だけ取得(時点指定対応) |

使用例

「民法の第709条は?」

  1. search_law で「民法」を検索 → 法令ID 129AC0000000089 を取得
  2. get_law_article で法令ID + 条番号「七百九」を指定
  3. → 「故意又は過失によって他人の権利又は法律上保護される利益を侵害した者は、これによって生じた損害を賠償する責任を負う。」

「損害賠償に関する条文を探したい」

  1. keyword_search で「損害賠償」を検索
  2. → 民法、商法、労働基準法など複数の法令から該当条文が返る

「会社法の改正履歴が知りたい」

  1. search_law で「会社法」を検索 → 法令IDを取得
  2. get_law_revision で改正履歴一覧を取得
  3. → 各改正法令名、公布日、施行日、状態が一覧で返る

AI クライアントへの設定

Claude Desktop

claude_desktop_config.json に以下を追加:

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

Claude Code

claude mcp add hourei -- npx hourei-mcp-server-v2

Cursor

Settings → MCP Servers に以下を追加:

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

開発

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

必要環境

  • Node.js 18.0.0 以上

ライセンス

MIT