MCP server · Audited from source
korean-law-mcp
by chrisryugj/korean-law-mcpMIT licenceAudited 12 Oct 2026 · source 981dc1eaa9d3
Is it safe? Yes — SAFE, grade B (89/100). It exposes 99 tools: 98 read, 1 write and 0 destructive. The audit recorded 15 findings (0 critical, 0 high, 0 medium, 12 low). Maintainer's description: 법제처 국가법령정보를 LLM에서 바로 조회하는 MCP 서버. 법령·판례·조례 검색과 인용 검증 | MCP server for Korean law — search statutes, precedents, and ordinances, and verify citations
Cite
Cite this page
ModelsAtlas. “korean-law-mcp (chrisryugj/korean-law-mcp)”. Retrieved 12 Oct 2026. https://modelsatlas.com/mcp/chrisryugj/korean-law-mcp
Trust audit
Audit 0.4.1 · full source read 12 Oct 2026
15 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.
What the source does
- FilesystemDeclared3 observations
- NetworkDeclared4 observations
- ShellDeclared1 observation
- DependenciesNot pinnedSome ranges float
- SecretsNone foundNo keys in source
“Declared” means the server says it does this and the source agrees. Browser, file and shell access are expected of some kinds of server.
Five audit layers
| Layer | What we check | Result |
|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS 1 finding |
L1 Static source | Secrets, path traversal, supply chain | PASS 11 findings |
L2 Instructions | Prompt injection and authority framing in docs and tool descriptions | PASS 3 findings |
L3 Inventory | Declared tools match the source | PASS |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED |
Provenance & runtime
Who published it, and what the audit could and could not run
Provenance
- Repository owner
chrisryugjUser accountAccount type recorded when we read the repository. - PackagePublished on npm
korean-law-mcpat version 4.15.7 - LicenceMITFrom the repository, as read at the audited commit.
- Last pushTodayActivity of the repository when we read it.
- Source commit read981dc1eaa9d3The audit covers exactly this commit, read on 12 Oct 2026.
Runtime
- Sandbox runNot run yetThis audit read the source only; it did not execute the server.
- Tool inventory99 declaredRead from the source and classed read, write or destructive.
Every value here is read from the record's own repository and audit.Suggest a correction
Findings (15)
Sorted by severity
LOWFilesystem / pathfs.traversal · src/tools/scenarios/action-plan.ts:24
import { findLaws } from "../../lib/law-search.js"- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · src/tools/scenarios/action-plan.ts:25
import { rethrowIfFatal } from "../../lib/fatal-errors.js"- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · src/tools/scenarios/index.ts:9
import { detectScenarioName } from "../../lib/scenario-rules.js"- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · src/tools/scenarios/penalty.test.ts:11
import { lawCache } from "../../lib/cache.js"- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · src/tools/scenarios/penalty.test.ts:12
import type { LawApiClient } from "../../lib/api-client.js"- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · src/lib/response-body.deadline.test.ts:24
const url = `http://127.0.0.1:${(server.address() as AddressInfo).port}/`- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · src/lib/response-body.limits.test.ts:39
base = `http://127.0.0.1:${(server.address() as AddressInfo).port}/`- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · src/server/http-server.contract.test.ts:49
url = `http://127.0.0.1:${(listener.address() as AddressInfo).port}/mcp`- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · test/test-empty-html-retry.cjs:47
const base = `http://127.0.0.1:${port}`- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · test/test-external-https-proxy.cjs:90
LAW_EXTERNAL_HTTPS_PROXY: `http://127.0.0.1:${port}`,- Why
- No further detail recorded for this rule.
- Fix
- —
LOWSupply chainsupply.unpinned · package.json
@modelcontextprotocol/sdk, @xmldom/xmldom, commander, dotenv, express, zod, @types/express, @types/node
- Why
- 12 dependency range(s) float
- Fix
- pin exact versions or ship a lockfile
LOWPrompt injectionprompt.transfer_instruction · CONTRIBUTING.md:31
Please do not open public issues for suspected vulnerabilities or exposed credentials. Report them privately through [GitHub Security Advisories](https://github.com/chrisryugj/korean-law-mcp/security/
- Why
- an instruction to move sensitive data to an outside destination
- Fix
- remove; a skill never needs the user's secrets off the machine
INFOInventory / provenanceinv.oversize · demo.gif
demo.gif
- Why
- 4482019 bytes not read
- Fix
- —
INFOPrompt injectionprompt.credential_read · README-EN.md:608
Yes. The code is MIT-licensed, and the 법제처 Open API key it needs is free ([open.law.go.kr](https://open.law.go.kr/LSO/openApi/guideResult.do)).
- Why
- asks the agent to read credentials
- Fix
- —
INFOPrompt injectionprompt.credential_read · README.md:786
cat ~/.ssh/id_ed25519.pub # 출력 복사
- Why
- asks the agent to read credentials
- Fix
- —
Tools it exposes
99 declared in source · 0 destructive
| Tool | Risk | What it does |
|---|---|---|
execute_tool | write | [메타] discover_tools 결과 도구를 프록시 실행. tool_name + params |
advanced_search | read | [고급검색] 법령종류/부처/시행일 필터 검색. 복합 조건 시. |
analyze_document | read | [문서분석] 계약서/약관/협정서 텍스트의 조항별 법적 리스크 분석. 문서 유형 자동 분류, 위험 조항 식별, 관련 법령 검색 힌트 제공. |
applicable_law | read | [행위시법] |
chain_action_basis | read | [⛓체인] 행정처분·허가·인가의 법적 근거 종합. 3단비교+해석례+판례+행심 병렬 조회. 예: |
chain_amendment_track | read | [⛓체인] 법령·조문 개정 이력 종합. 신구대조표 + 조문별 개정이력 + 연혁법령. 예: |
chain_dispute_prep | read | [⛓체인] 불복·소송·심판 준비. 대법원 판례 + 행정심판례 + 해당 도메인 결정례(조세심판·공정위·노동위 등) 병렬 수집. 예: |
chain_document_review | read | [⛓체인] 계약서·약관·협정서 조항별 리스크 검토. analyze_document + 근거법령 자동검색 + 관련 판례. 예: |
chain_full_research | read | [⛓체인] 도메인·법령명이 불명확한 복합 질문 전용. AI검색 + 법령검색 + 판례 + 해석례 병렬. 예: |
chain_law_system | read | [⛓체인] 법령 전체 구조 종합. 1개 법령의 법률·시행령·시행규칙 3단 + 위임조문 + 하위법령 + 별표까지 한 번에. 예: |
chain_ordinance_compare | read | [⛓체인] 자치법규(조례·규칙) 종합 분석. 상위법령 + 위임체계 + 전국 동일유형 조례 비교. 예: |
chain_procedure_detail | read | [⛓체인] 행정 절차·비용·서식 종합. 법적 근거(법률·시행령·시행규칙) + 처리기한 + 별표/별지서식 + 수수료. 예: |
cite_check | read | [판례생사] 한국형 Shepard |
compare_admin_rule_old_new | read | [행정규칙] 행정규칙 신구법 비교. query로 검색, id로 본문 대조표 조회. 신구대조 데이터가 없는 규칙은 제·개정이유(개정문 요지)로 자동 대체 반환. |
compare_articles | read | [비교] 두 법령 조문 비교. |
compare_old_new | read | [비교] 신구법 대조표 조회. |
discover_tools | read | [메타] 위 도구로 안 되는 경우. 전문도구(조세심판·관세·헌재·행심·공정위·개인정보위·노동위·학칙·조약·영문법령·용어 등 80+개) 카테고리 검색 |
extract_precedent_keywords | read | [판례] 판례 키워드 추출. |
find_similar_precedents | read | [판례] 유사 판례 검색. |
get_acr_decision_text | read | [권익위] 국민권익위 결정문 전문. |
get_acr_special_appeal_text | read | [권익위심판] 국민권익위 특별행정심판 재결례 전문. |
get_admin_appeal_text | read | [행심] 행정심판례 전문. |
get_admin_rule | read | [행정규칙] 행정규칙 전문 조회. 전문이 긴 규칙(외국환거래규정 등)은 jo(조문 단위, 예: |
get_annexes | read | [별표] 별표/서식 조회. lawName+ |
get_appeal_review_decision_text | read | [소청심사] 소청심사위원회 재결례 전문. |
get_article_detail | read | [법령조회] 조항호목 단위 정밀 조회. 제38조 제2항 제3호 같은 세부 단위 지정 가능. mst/lawId + jo 필수, hang/ho/mok 선택. |
get_article_history | read | [이력] 조문별 개정 이력. |
get_article_with_precedents | read | [통합] 조문 + 관련 판례 동시 조회. |
get_batch_articles | read | [배치] 여러 조문 일괄 조회. mst+articles 또는 laws 배열. |
get_constitutional_decision_text | read | [헌재] 헌재 결정례 전문. |
get_customs_interpretation_text | read | [관세] 관세 해석례 전문 조회. 질의요지·회답·이유·관련법령 포함. |
get_daily_term | read | [지식베이스] 일상용어(월세, 뺑소니 등)로 검색하여 대응하는 법령용어를 찾을 때 사용. |
get_daily_to_legal | read | [지식베이스] 일상용어→법령용어 매핑. |
get_decision_text | read | [통합조회] 18개 도메인 전문 조회. domain+id. full=false(기본) 시 본문 계단식 축약 |
get_delegated_laws | read | [연계] 소관부처별 위임 연계 자치법규 목록. 조회 페이지 최대 100건 내에서 부처 필터 적용. |
get_english_law_text | read | [영문] 영문 법령 전문. |
get_external_links | read | [링크] 법령 외부 참조 링크. |
get_ftc_decision_text | read | [공정위] 공정위 결정문 전문. |
get_historical_law | read | [이력] 특정 시점 연혁법령 조회 — search_historical_law가 준 MST와 시행일(efYd)을 함께 넘긴다. |
get_interpretation_text | read | [해석례] 해석례 전문 조회. |
get_law_abbreviations | read | [유틸] 법령 약칭 전체 목록 조회. stdDt/endDt로 기간 필터 가능. |
get_law_history | read | [이력] 법령 변경이력 목록. |
get_law_statistics | read | [통계] 최근 개정 법령 TOP N 조회. 지정 기간(일) 내 개정된 법령 목록 반환. |
get_law_system_tree | read | [체계] 상위법·하위법·관련법령 관계 조회. 법령 간 위임 관계 파악용. |
get_law_text | read | [법령조회] 조문 전문 조회. mst/lawId 필수, jo로 특정 조문만 가능 — jo는 |
get_law_tree | read | [체계] 법령 목차 구조(편·장·절) 조회. 내부 체계 파악용. |
get_legal_term_detail | read | [지식베이스] 법령용어 상세정보. |
get_legal_term_kb | read | [지식베이스] 법령용어 검색. 동음이의어·용어관계 포함. |
get_legal_to_daily | read | [지식베이스] 법령용어→일상용어 매핑. |
get_linked_laws_from_ordinance | read | [연계] 법령과 연계된 자치법규 목록. 근거 상위법령은 해당 자치법규 본문에서 확인. |
get_linked_ordinance_articles | read | [연계] 법령-자치법규 조문 연계. 법령 조문과 자치법규 조문 간 대응 관계 조회. |
get_linked_ordinances | read | [연계] 자치법규와 연계된 법령 목록. 법령-조례 조문 대응은 get_linked_ordinance_articles로 조회. |
get_nlrc_decision_text | read | [노동위] 노동위 결정문 전문. |
get_ordinance | read | [자치법규] 조례/규칙 전문 조회. jo 파라미터로 특정 조문 본문 조회 가능. |
get_pipc_decision_text | read | [개인정보위] 개인정보위 결정문 전문. |
get_precedent_text | read | [판례] 판례 전문 조회. |
get_public_corp_rule_text | read | [공사공단] 지방공사공단 규정 본문 조회. |
get_public_institution_rule_text | read | [공공기관] 공공기관 규정 본문 조회. |
get_related_laws | read | [지식베이스] 용어 관련 법령 목록. |
get_school_rule_text | read | [학칙] 학칙 본문 조회. |
get_tax_tribunal_decision_text | read | [조세심판] 조세심판 결정례 전문. |
get_term_articles | read | [지식베이스] 용어 사용 조문 목록. |
get_three_tier | read | [비교] 3단비교(법률-시행령-시행규칙) 위임조문/인용조문. |
get_treaty_text | read | [조약] 조약 본문 조회. 한글/영문 선택 가능. |
impact_map | read | [영향그래프] 조문 한 줄의 파급효과 그래프. 특정 조문(예: 민법 제103조)을 인용한 모든 판례·헌재·해석례·행심·자치법규를 역방향 탐색 + 그 조문이 인용한 다른 법령(정방향) + mermaid 시각화. lawName + jo 필수. 다른 chain은 query 단방향이지만 이 도구는 |
legal_analysis | read | [정밀분석] 검증·분석 4종 통합. mode: verify_citations=텍스트 속 법령 조문·판례 인용( |
legal_research | read | [⛓리서치] 다단계 법령 리서치 통합 — 여러 API를 병렬로 엮는 복합 질문 전용. task: full_research=도메인·법령명 불명확한 자연어 질문 폴백(기본값, 예 |
ordinance_radar | read | [자치법규] 조례 정비 레이더 — 조례가 인용한 근거 상위법령(법률/시행령/시행규칙)을 본문에서 추출하고, 각 상위법의 현행 시행일과 조례 시행일을 대조해 |
parse_article_links | read | [분석] 조문 내 법령 참조 추출. |
parse_jo_code | read | [유틸] 조문번호 ↔ JO코드 변환. |
search_acr_decisions | read | [권익위] 국민권익위원회 결정문 검색. |
search_acr_special_appeals | read | [권익위심판] 국민권익위 특별행정심판 재결례 검색. |
search_admin_appeals | read | [행심] 행정심판례 검색. |
search_admin_rule | read | [행정규칙] 훈령/예규/고시/지침 검색. knd 파라미터로 종류 필터 가능(1=훈령, 2=예규, 3=고시). 현행 0건이면 연혁을 자동 추적해 폐지(폐지사유·후속 통합 규정)·제명변경을 안내. history=true면 행정규칙ID별 발령 연혁표(옛 명칭 시절까지 — 화재안전기준 NFSC→NFPC 등). |
search_ai_law | read | [AI검색] 자연어로 관련 조문 의미검색. 법령명 몰라도 사용 가능. 법령명을 알면 search_law가 더 정확. |
search_all | read | [통합검색] 법령+행정규칙+자치법규 동시검색. 도메인 불명확 시 사용. |
search_appeal_review_decisions | read | [소청심사] 소청심사위원회 재결례 검색. 공무원 징계(파면·해임·감봉 등) 불복. |
search_constitutional_decisions | read | [헌재] 헌법재판소 결정례 검색. |
search_customs_interpretations | read | [관세] 관세청 법령해석(관세 해석례) 검색. 관세법·FTA특례법·대외무역법 해석례. |
search_decisions | read | [통합검색] 18개 도메인(판례·해석례·헌재·행심·조세심판·관세·국세청·공정위·개인정보위·노동위·권익위·소청심사·학칙·공사공단·공공기관·조약·영문법령) 통합 검색. domain으로 선택. 판례 본문까지 필요하면 domain= |
search_english_law | read | [영문] 영문 법령 검색. |
search_ftc_decisions | read | [공정위] 공정거래위원회 결정문 검색. |
search_historical_law | read | [이력] 연혁법령 검색 — 법령ID 계보로 제명이 바뀌기 전 버전까지 시행일별 전 목록(제명 변천 병기). 약칭·옛 법령명도 받는다. |
search_interpretations | read | [해석례] 법령해석례 검색. |
search_law | read | [법령검색] 법령명·조례명·행정규칙명 키워드검색 → lawId, mst 획득. 지자체 조례·규칙(자치법규), 훈령·예규·고시(행정규칙)도 검색 — 0건 시 자치법규/행정규칙으로 자동 폴백(예: |
search_law_bulk | read | [법령검색] 법령명 배열을 한 번에 조회 — 건당 법령ID·MST·시행일·시행예정만 컴팩트 반환(부분매칭 목록·안내문 없음). previous={법령ID:직전MST} 를 주면 MST가 달라진 법령만 돌려주는 diff 모드 — MST는 개정마다 바뀌므로 그 자체가 변경 감지 키다. ISO 준법 등록부처럼 수십 건의 개정 여부를 주기적으로 확인할 때 search_law 건당 호출 대신 사용. |
search_legal_terms | read | [용어사전] 법령용어 정의·해설 검색. |
search_nlrc_decisions | read | [노동위] 중앙노동위원회 결정문 검색. |
search_ordinance | read | [자치법규] 조례/규칙 검색. 지역명 포함 권장. |
search_pipc_decisions | read | [개인정보위] 개인정보보호위원회 결정문 검색. |
search_precedents | read | [판례] 대법원 판례 검색. |
search_public_corp_rules | read | [공사공단] 지방공사공단 규정 검색. |
search_public_institution_rules | read | [공공기관] 공공기관 규정 검색. |
search_school_rules | read | [학칙] 학칙(대학교·고등학교 등) 검색. |
search_tax_tribunal_decisions | read | [조세심판] 조세심판원 결정례 검색. 관세·소득세·법인세·부가세 등 세목별 검색 가능. |
search_treaties | read | [조약] 조약(양자/다자) 검색. 국가코드·체결일·발효일 필터 가능. |
suggest_law_names | read | [자동완성] 법령명 일부 입력 시 후보 목록 제안. 정확한 법령명을 모를 때 사용. |
summarize_precedent | read | [판례] 판례 요약 생성. |
verify_citations | read | [인용검증] LLM 환각 방지 — 사용자/AI가 쓴 텍스트에서 |
Install
Package version 4.15.7 · audited commit 981dc1e
One-click links open your editor with the config below filled in, exactly as the snippets show it, pinned to version 4.15.7. The audit covers commit 981dc1e only.
claude mcp add korean-law-mcp --env ALLOW_QUERY_API_KEY=${ALLOW_QUERY_API_KEY} --env KOREAN_LAW_API_KEY=${KOREAN_LAW_API_KEY} --env LAW_EXTERNAL_TLS_REJECT_UNAUTHORIZED=${LAW_EXTERNAL_TLS_REJECT_UNAUTHORIZED} -- npx -y [email protected]{
"mcpServers": {
"korean-law-mcp": {
"command": "npx",
"args": [
"-y",
"[email protected]"
],
"env": {
"ALLOW_QUERY_API_KEY": "${ALLOW_QUERY_API_KEY}",
"KOREAN_LAW_API_KEY": "${KOREAN_LAW_API_KEY}",
"LAW_EXTERNAL_TLS_REJECT_UNAUTHORIZED": "${LAW_EXTERNAL_TLS_REJECT_UNAUTHORIZED}"
}
}
}
}The command pins the package version recorded in the source (4.15.7); the audit covers commit 981dc1eaa9d3. Transport: stdio · streamable-http. Reads these environment variables: ALLOW_QUERY_API_KEY, KOREAN_LAW_API_KEY, LAW_EXTERNAL_TLS_REJECT_UNAUTHORIZED. Give it the narrowest token it needs.
Audit history
- ✓SAFE B 89 / 100
First audit ·
981dc1eaa9d3
README badge
For maintainers · updates on every re-audit
[](https://modelsatlas.com/mcp/chrisryugj/korean-law-mcp/)
The badge always shows the latest audit; a maintainer cannot pin an old verdict.
Other ratings
Cited, never blended into our score
No third-party security ratings are recorded for this server yet. When they exist they appear here with their source and date, beside, not inside, our grade.
Questions about korean-law-mcp
What is the korean-law-mcp MCP server?
What tools does korean-law-mcp expose?
Is korean-law-mcp safe to connect to an agent?
What credentials does korean-law-mcp need?
How does korean-law-mcp run?
How current is this page?
Sources
- chrisryugj/korean-law-mcp on GitHub — the source we read, its licence, stars and activityObserved · 12 Oct 2026
- ModelsAtlas trust audit — SAFE verdict for commit 981dc1eaa9d3Observed · 12 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What is the korean-law-mcp MCP server?
- What tools does korean-law-mcp expose?
- Is korean-law-mcp safe to connect to an agent?