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

egov-law-mcp

v0.1.0

Published

MCP Server for Japan e-Gov Law API - Access Japanese laws and regulations

Downloads

91

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, 必須): 法令 ID
  • article (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