Houki Egov MCP
Japanese statutes from e-Gov Law API v2 — laws and ordinances per article, with law number and URL.
Connector by shuji-bonji · GitHub account verified by the MCP Registry
Chalk Labs
Need help deploying Houki Egov MCP?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Codex, VS Code, Cursor, Windsurf, Claude Desktop. Read the repository before you give any tool access to your data.
npx agentmarket install connector/shuji-bonji-houki-egov-mcp
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this server can do and what it asks for, from its tool list, install config and code. Checked Oct 25, 2026.
- Tools
- 13 read · 1 write · 0 delete
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Node.js package
Tools by what they do 14
Read from the source code; the running server may list different tools.
Read 13 · Look things up without changing anything.
explain_law_typeget_article_referencesget_attachmentget_lawget_law_fileget_law_rangeget_law_revisionsget_related_lawsget_toclist_attachmentssearch_fulltextsearch_law
Show 1 more tools
verify_citations
Write 1 · Create, change, send or run things.
resolve_abbreviation
Network hosts it talks to 8
biomejs.dev· found in codegithub.com· found in codejaish.gr.jp· found in codekanpou.npb.go.jp· found in codelaws.e-gov.go.jp· found in codemhlw.go.jp· found in codenta.go.jp· found in coderaw.githubusercontent.com· found in code
Files it touches
- Your home directory (~)
Tools (14)
Read from the source code; the running server may differ. Descriptions are the server’s own words; hidden characters are shown as [U+…].
explain_law_type法令種別(憲法・法律・政令・省令・規則・条例・告示・通達 等)の制定主体・階層上の位置・国民への拘束力・実務上の注意点を解説する。法務専門家でない利用者が「政令と省令の違い」「通達は守らなくていいのか」等を確認するための知識ツール。
get_article_references条文本文が引用している参照を取り出します。対象は本則の条だけです(附則の条の本文は get_law の suppl_index で読めます)。他法令の条(法令名と法令番号から law_id を解決)、同一法令内の条・項・号、本文の「附則第N条」(kind: "suppl"。どの附則の条かは特定しません)、「政令で定める」「財務省令で定める」の委任を返し、解決できた参照に get_law(条の無い他法令の参照には get_toc)の引数を next_actions で付けます。委任先は法令単位で、政令は施行令、省令・府令は施行規則を定めた命令の名前が委任の文言と合うときだけ付け、確かでないときは target_law: null にします。「前項」「同法」は解決しません。正規表現で取れた範囲だけを返し、網羅性は主張しません。
get_attachment添付ファイル 1 件(src 指定)か、その法令履歴の添付ファイルをまとめた zip(src 省略)を取る。既定では e-Gov からファイルを取らず、URL とメタ情報(ファイル名・種別・置き場所)だけを返す。save: true のときだけファイルを取得してサーバー側の保存先(既定は XDG_CACHE_HOME か ~/.cache の下の houki-egov-mcp/files/。環境変数 HOUKI_EGOV_FILES_DIR で変更)に書き、絶対パスを返す。保存先はツールの引数では指定できない。base64 の中身は返さない。
get_law日本の法令から条文を取得します。略称(消法・所法・労基法 等)に対応し、条・項・号の単位で指定できます。法令名は題名の完全一致だけを使い、一致しなければ候補を付けた LAW_NOT_FOUND を返します。article の条は本則の中から探し、附則の条は suppl_index で附則を指して取ります。章・節をまとめて取るときは get_law_range を使います。
get_law_file法令本文を 1 つのファイル(xml / json / html / rtf / docx)で取る道を返す。既定では認証なしで開ける URL だけを返し、save: true のときだけファイルを取得してサーバー側の保存先(既定は XDG_CACHE_HOME か ~/.cache の下の houki-egov-mcp/files/。環境変数 HOUKI_EGOV_FILES_DIR で変更)に書いて絶対パスを返す。条文を読むだけなら get_law / get_law_range のほうが小さく済む(民法の xml は 1.6 MB、docx は 182 KB)。人が Word や ブラウザーで開く版が要るとき(docx / html / rtf)と、法令 XML をそのまま処理したいとき(xml / json)のためのツール。
get_law_range法令の編・章・節・款・目のいずれか、または附則 1 本を範囲にして、その中の条を本文ごと取得する。1 条ずつ引く get_law と、目次だけを返す get_toc の間を埋める(民法・会社法・消費税法のように get_law で 1 条ずつ引くと手数がかかり、法令全体では長すぎる場合に使う)。範囲は条の単位で文字数の上限まで返し、入り切らなかったときは truncated と続きの条番号(next_from_article)を返す。返した範囲(パス・見出し・条の数・最初と最後の条)は応答の range に入る。
get_law_revisions法令の改正履歴を取得します。e-Gov v2 の /law_revisions を使います。各改正の公布日・施行日・改正法令番号・状態(current_revision_status。CurrentEnforced=現行、PreviousEnforced=旧法、UnEnforced=未施行)等を返します。並びは施行日の新しい順で、まだ施行されていない改正も含みます。
get_related_laws法令名の規則で関連する法令を引きます。法律なら施行令・施行規則、施行令・施行規則なら親の法律と兄弟を、e-Gov に実在するものだけ返します(law_id 付き)。名前の末尾に「施行令」「施行規則」を付けた(落とした)候補だけを試すので、別の名前の下位法令や告示は返りません。法律でも施行令・施行規則でもない法令(省令・政令・規則など)からは候補を作らず、related を空にして note に理由を書きます。網羅性は主張しません。
get_toc法令の目次(編・章・節・条の構造)のみを取得する。トークン節約用。本則は `toc`、附則は改正法ごとに `suppl_provisions` へ分けて返す(現行の規定と、改正法ごとの施行日・経過措置を混ぜないため)。既定では附則は見出しと条数だけを返し、`suppl: "full"` で附則の中の条まで返す。depth で階層を浅く打ち切れる(民法・会社法のような大規模法令の概観把握向け)。打ち切ったときは truncated: true と truncated_by: "depth" を返す。truncated が true になるのは depth で刈ったときだけで、応答の大きさでは打ち切らない(get_law_range の truncated は文字数の上限の意味)。応答の toc[].path(例 "Part3/Chapter2")は get_law_range にそのまま渡せる。
list_attachments法令に付いている添付ファイル(別表・様式・別記の図。jpg / pdf)の一覧を返す。各ファイルに、認証なしで開ける取得 URL と、法令の中の置き場所(「別表第一(第一条関係)」「附録第十一号様式」のような見出しと関係条文、条の中なら条番号)を付ける。get_law の条文には図の中身が入らないので、別表・様式の図が要るときにこのツールで URL を取る。pdf は pdf-reader-mcp の read_url に url を渡して読める。ファイルの中身は返さない。
resolve_abbreviation略称・通称から正式な法令名と law_id を解決する。略称辞書の内容を確認するための診断ツール。全角英数字・ダッシュ類・全角空白は半角に揃えてから照合する。辞書のエントリはどの管轄でも返し(通達なら houki-nta の管轄)、in_scope と hint で管轄を示す。
search_fulltext法令の条文本文をキーワードで横断して全文検索します(ローカル SQLite FTS5)。`npx -y @shuji-bonji/houki-egov-mcp@latest --bulk-download-everything` で構築した bulk DB を引きます。略称は正式名称にも展開し(例: "労基法" → "労基法" または "労働基準法")、通称(例: "インボイス")は元の語で条が当たらないときだけ正式名称で探し直します。展開したときは expanded_keywords を返します。各ヒットに条番号・snippet・score・DB の鮮度(freshness)を付けて返します。bulk DB が無いときと、DB の版がこの houki-egov-mcp と合わないときは search_law(法令名の題名の一致)に切り替え、その旨と次にすることを note で返します。DB は作らず、書き換えません。2 文字の語(「相殺」「時効」)は本文の索引(trigram)に載らないため既定では本文を引かず、何をして結果を出したかを応答の short_tokens に返します。keyword 全体が通達などの管轄外の略称(例: "消基通")なら、DB も e-Gov も引かずに OUT_OF_SCOPE を返します。
search_law日本の法令を、法令の題名のキーワードや略称で検索します。e-Gov 法令 API v2 を使い、略称は略称辞書で正式名称に直してから探します。total_count は e-Gov で一致した法令の総数で、results の件数(limit 以下)とは限りません。一致が 0 件のときは、条文の本文を探す search_fulltext と略称を確かめる resolve_abbreviation を hint と next_actions で案内します。
verify_citationsLLM が組み立てた法令の引用リストを、1 回の呼び出しでまとめて実在確認します。件ごとに found / not_found / ambiguous を返し、リストの中に存在しない引用が混ざっていてもツール全体はエラーにしません。found の件には正式名称・法令番号・条見出し・law_id・URL を付けます。確かめるのは「その条(指定があれば項・号)が e-Gov の法令にあるか」だけで、引用が主張を支えるかどうかは判定しません。略称は略称辞書で正式名称に直してから照合し、法令名は完全一致だけを採ります。条は本則の中で確かめ、附則の条は suppl_index で附則を指してください。
Signals
- Stars
- 2
- Forks
- 0
- Open issues
- 0
- Last commit
- Oct 11, 2026 (19 days ago)
- Last release
- Oct 11, 2026 (19 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- Registry name
io.github.shuji-bonji/houki-egov-mcp- Version
- 0.21.0
- Auth
- No auth
- Packages
- npm @shuji-bonji/houki-egov-mcp
- License
- MIT
- Repository
- github.com/shuji-bonji/houki-egov-mcp
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
More from shuji-bonji
- 0.619score
PDF Reader (PDF Agent Stack)
shuji-bonji
Read PDF internals: text, structure, fonts, signatures and tags, with what was not read declared.
ConnectorAFreshness: ALocalRead-only★ 2Claude Code +5 - 0.619score
PDF Spec (PDF Agent Stack)
shuji-bonji
Look up ISO 32000 (PDF) clauses, requirements and terms.
ConnectorAFreshness: ALocalRead-only★ 2Claude Code +5 - 0.614score
Houki Nta MCP
shuji-bonji
Japan NTA tax notices (tsutatsu) and Q&A, marked with legal_status and linked back to the law.
ConnectorAFreshness: ALocal★ 2Claude Code +5 - 0.584score
PDF Verify (PDF Agent Stack)
shuji-bonji
Verify PDF signatures, detect tampering, and identify PDF/A and PAdES conformance levels.
ConnectorAFreshness: ALocalRead-onlyClaude Code +5 - 0.584score
PDF Writer (PDF Agent Stack)
shuji-bonji
Create and edit PDFs: text, Markdown, tables, metadata and pages, with Japanese font embedding.
ConnectorAFreshness: ALocalClaude Code +5
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get Houki Egov MCP running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
Houki Egov MCP. Agent Mart. https://agentmart.dev/connectors/shuji-bonji-houki-egov-mcp (last updated 2026-10-24)