e-gov-law-mcp
e-Gov法令API v2 をラップした MCP サーバー
Install / Use
claude mcp add kannkyo -- npx -y github:kannkyo/e-gov-law-mcpIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
Development & EngineeringSupported Platforms
Our assessment of e-gov-law-mcp
e-gov-law-mcp scores 61/100 on our quality scale, 4053rd of 4,606 Development & Engineering skills we index.
Its MCP Server is 1.7 KB long, well organised into 8 sections with 5 code examples: moderately detailed.
It has 3 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated yesterday, so e-gov-law-mcp is actively maintained.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 87/100, with 2 cautions from licensing, adoption, age or documentation. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands.
Automated pattern scan on 2026-10-23. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
e-gov-law-mcp compared with similar skills
All 4 of these similar skills score higher than e-gov-law-mcp; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| e-gov-law-mcp (this skill)by kannkyo | 61 | 3 | 1d ago | MCP Server |
| taste-skillby Leonxlnx | 100 | 101.1k | 2d ago | CLAUDE.md |
| Agent-Reachby Panniantong | 100 | 101.0k | 2d ago | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 77.5k | today | CLAUDE.md |
| ai-job-searchby ai-job-search-dev | 100 | 63.5k | 1d ago | CLAUDE.md |
Frequently asked questions
- How do I install e-gov-law-mcp?
- Run
claude mcp add kannkyo -- npx -y github:kannkyo/e-gov-law-mcp. The install tabs above show the steps for each supported agent. - Which AI agents does e-gov-law-mcp work with?
- It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
- Is e-gov-law-mcp safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. It is MIT-licensed and scores 87/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is e-gov-law-mcp still maintained?
- The repository was last updated yesterday, so e-gov-law-mcp is actively maintained.
Skill content
View source on GitHube-gov-law-mcp
e-Gov法令API v2 をラップした Model Context Protocol (MCP) サーバーです。日本の法令データ(法令一覧・改正履歴・法令本文・添付ファイルなど)をMCP対応クライアント(Claude Codeなど)から検索・取得できるようにします。
セットアップ
Claude Code プラグインとして
このリポジトリ自体が Claude Code のマーケットプレイスを兼ねています。
/plugin marketplace add kannkyo/e-gov-law-mcp
/plugin install e-gov-law-mcp
MCPサーバー(e-gov-law-mcp)と、法令調査の手順をまとめたスキル(legal-e-gov-law)が一緒にインストールされます。
MCPサーバー単体として
Node.js が必要です。
npx github:kannkyo/e-gov-law-mcp
MCPクライアントの設定ファイル(例: Claude Codeの mcp.json 等)に以下のように登録します。
{
"mcpServers": {
"e-gov-law": {
"command": "npx",
"args": ["github:kannkyo/e-gov-law-mcp"]
}
}
}
ソースからのビルド
git clone https://github.com/kannkyo/e-gov-law-mcp.git
cd e-gov-law-mcp
npm install
npm run build
npm start
提供ツール
| ツール名 | 概要 | 対応API |
| --- | --- | --- |
| search_laws | 法令名・法令種別・時点(asof)を指定して法令一覧を検索する | GET /laws |
| get_law_revisions | 指定した法令の改正履歴一覧を取得する | GET /law_revisions/{law_id_or_num} |
| get_law_data | 法令ID・法令番号・改正IDを指定して法令本文をJSONで取得する | GET /law_data/{law_id_or_num_or_revision_id} |
| get_attachment | 法令改正IDを指定して添付ファイル(画像・PDF・Zipなど)を取得し、一時ファイルに保存してそのパスを返す | GET /attachment/{law_revision_id} |
| search_keyword | 法令本文内に指定したキーワードを含む法令を検索する | GET /keyword |
| download_law_file | 法令本文をファイル形式(xml/json/html/rtf/docx)でダウンロードし、一時ファイルに保存してそのパスを返す | GET /law_file/{file_type}/{law_id_or_num_or_revision_id} |
get_attachment / download_law_file はバイナリデータをOSの一時ディレクトリに保存し、保存先パス・サイズ・Content-Typeを返します。
開発
npm run typecheck # 型チェック
npm test # テスト実行(vitest)
npm run build # 型チェック + esbuildでdist/index.jsにバンドル
ライセンス
Related Skills
taste-skill
101.1kAgent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages
Agent-Reach
101.0kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
headroom
77.5kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
ai-job-search
63.5kThe job search that runs on your machine. AI job application framework built on Claude Code: evaluate postings, tailor CVs, write cover letters, prep interviews. Fork it and own it.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
