Atlas / MCP servers / chrisryugj / Korean Law

Korean LawSAFE

mcp/chrisryugj/korean-law-1

법제처 국가법령정보를 LLM에서 바로 조회하는 MCP 서버. 법령·판례·조례 검색과 인용 검증 | MCP server for Korean law — search statutes, precedents, and ordinances, and verify citations

Verdict
SAFE
Grade
B
Trust score
89 /100
Exposed tools
99 98r · 1w · 0d
Transport
stdio · streamable-http
License
MIT
Stars
2,598
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

법제처 42개 API를 10개 도구로. 법령, 판례, 행정규칙, 자치법규, 조약, 해석례(국세청 포함) + LLM 환각 방지 인용 검증(법령·판례, 실존+내용) + 조문 영향 그래프 + 시점 비교 자동 diff + 이럴 땐 이렇게 — 5단계 안내 + 판례 생사 확인(Citator) + 행위시법 판단 + 조례 정비 레이더 + 폐지 법령 후속 규정 안내를 AI 어시스턴트나 터미널에서 바로 사용.

[](https://www.npmjs.com/package/korean-law-mcp) [](https://modelcontextprotocol.io) [](LICENSE)

<img src="https://jocohunt.com/images/badges/weekly-light.svg" alt="조코헌트 주간 1등 Top 1 위너" style="width: 250px; height: auto;" />

법제처 Open API 기반 MCP 서버 + CLI. Claude Desktop, Cursor, Windsurf, Zed, Claude.ai 등에서 바로 사용 가능.

English

[](https://youtu.be/gmkuOqIV3dc)

▶ 클릭하면 유튜브에서 재생됩니다.

AI에 연결하기

v4.13.0 — 준법 등록부 감시: 98회 호출을 1~2회로

ISO 법규준수 등록부(품질·환경·안전보건·정보보안·BCM·부패방지·AI·ESG 8개 영역 108개 법령)를 이 서버로 주간 감시하던 실사용 보고 3건(#157 · #158 · #159, @thkim660207-cmd)을 처리했습니다. 테스트 738 → 758.

  • `search_law_bulk` — 법령명 배열을 한 번에: 건당 법령ID · MST · 시행일 · 시행예정 한 줄만 돌려줍니다.

previous={법령ID: 직전 MST} 를 주면 MST가 달라진 법령만 받는 diff 모드 — 등록부 전건 감시가 호출 1~2회로 끝납니다. 응답 말미의 스냅샷 JSON을 다음 감시에 그대로 넣으면 됩니다. 공포됐으나 미시행인 개정은 MST가 아직 안 바뀌므로, "본문 동일 + 시행예정 있음"으로 따로 표시해 시행일을 놓치지 않게 합니다

  • 개정 이력은 이제 opt-in: amendment_track 이 제정 시점부터의 조문별 개정 전건을 항상 싣던 것
Read from source at commit 32d4635c0054OBSERVED · 2026-09-22
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.

claude-code
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]
claude-desktop
{
  "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}"
      }
    }
  }
}
03

Exposed tools (99)

98 read · 1 write · 0 destructive.

ToolRiskDescription
advanced_searchread[고급검색] 법령종류/부처/시행일 필터 검색. 복합 조건 시.
analyze_documentread[문서분석] 계약서/약관/협정서 텍스트의 조항별 법적 리스크 분석. 문서 유형 자동 분류, 위험 조항 식별, 관련 법령 검색 힌트 제공.
applicable_lawread[행위시법]
chain_action_basisread[⛓체인] 행정처분·허가·인가의 법적 근거 종합. 3단비교+해석례+판례+행심 병렬 조회. 예:
chain_amendment_trackread[⛓체인] 법령·조문 개정 이력 종합. 신구대조표 + 조문별 개정이력 + 연혁법령. 예:
chain_dispute_prepread[⛓체인] 불복·소송·심판 준비. 대법원 판례 + 행정심판례 + 해당 도메인 결정례(조세심판·공정위·노동위 등) 병렬 수집. 예:
chain_document_reviewread[⛓체인] 계약서·약관·협정서 조항별 리스크 검토. analyze_document + 근거법령 자동검색 + 관련 판례. 예:
chain_full_researchread[⛓체인] 도메인·법령명이 불명확한 복합 질문 전용. AI검색 + 법령검색 + 판례 + 해석례 병렬. 예:
chain_law_systemread[⛓체인] 법령 전체 구조 종합. 1개 법령의 법률·시행령·시행규칙 3단 + 위임조문 + 하위법령 + 별표까지 한 번에. 예:
chain_ordinance_compareread[⛓체인] 자치법규(조례·규칙) 종합 분석. 상위법령 + 위임체계 + 전국 동일유형 조례 비교. 예:
chain_procedure_detailread[⛓체인] 행정 절차·비용·서식 종합. 법적 근거(법률·시행령·시행규칙) + 처리기한 + 별표/별지서식 + 수수료. 예:
cite_checkread[판례생사] 한국형 Shepard
compare_admin_rule_old_newread[행정규칙] 행정규칙 신구법 비교. query로 검색, id로 본문 대조표 조회.
compare_articlesread[비교] 두 법령 조문 비교.
compare_old_newread[비교] 신구법 대조표 조회.
discover_toolsread[메타] 위 도구로 안 되는 경우. 전문도구(조세심판·관세·헌재·행심·공정위·개인정보위·노동위·학칙·조약·영문법령·용어 등 80+개) 카테고리 검색
execute_toolwrite[메타] discover_tools 결과 도구를 프록시 실행. tool_name + params
extract_precedent_keywordsread[판례] 판례 키워드 추출.
find_similar_precedentsread[판례] 유사 판례 검색.
get_acr_decision_textread[권익위] 국민권익위 결정문 전문.
get_acr_special_appeal_textread[권익위심판] 국민권익위 특별행정심판 재결례 전문.
get_admin_appeal_textread[행심] 행정심판례 전문.
get_admin_ruleread[행정규칙] 행정규칙 전문 조회.
get_annexesread[별표] 별표/서식 조회. lawName+
get_appeal_review_decision_textread[소청심사] 소청심사위원회 재결례 전문.
get_article_detailread[법령조회] 조항호목 단위 정밀 조회. 제38조 제2항 제3호 같은 세부 단위 지정 가능. mst/lawId + jo 필수, hang/ho/mok 선택.
get_article_historyread[이력] 조문별 개정 이력.
get_article_with_precedentsread[통합] 조문 + 관련 판례 동시 조회.
get_batch_articlesread[배치] 여러 조문 일괄 조회. mst+articles 또는 laws 배열.
get_constitutional_decision_textread[헌재] 헌재 결정례 전문.
get_customs_interpretation_textread[관세] 관세 해석례 전문 조회. 질의요지·회답·이유·관련법령 포함.
get_daily_termread[지식베이스] 일상용어(월세, 뺑소니 등)로 검색하여 대응하는 법령용어를 찾을 때 사용.
get_daily_to_legalread[지식베이스] 일상용어→법령용어 매핑.
get_decision_textread[통합조회] 18개 도메인 전문 조회. domain+id. full=false(기본) 시 본문 계단식 축약
get_delegated_lawsread[연계] 위임법령 목록. 소관부처별 위임법령(시행령/시행규칙 미제정) 조회.
get_english_law_textread[영문] 영문 법령 전문.
get_external_linksread[링크] 법령 외부 참조 링크.
get_ftc_decision_textread[공정위] 공정위 결정문 전문.
get_historical_lawread[이력] 특정 시점 연혁법령 조회.
get_interpretation_textread[해석례] 해석례 전문 조회.
get_law_abbreviationsread[유틸] 법령 약칭 전체 목록 조회. stdDt/endDt로 기간 필터 가능.
get_law_historyread[이력] 법령 변경이력 목록.
get_law_statisticsread[통계] 최근 개정 법령 TOP N 조회. 지정 기간(일) 내 개정된 법령 목록 반환.
get_law_system_treeread[체계] 상위법·하위법·관련법령 관계 조회. 법령 간 위임 관계 파악용.
get_law_textread[법령조회] 조문 전문 조회. mst/lawId 필수, jo로 특정 조문만 가능 — jo는
get_law_treeread[체계] 법령 목차 구조(편·장·절) 조회. 내부 체계 파악용.
get_legal_term_detailread[지식베이스] 법령용어 상세정보.
get_legal_term_kbread[지식베이스] 법령용어 검색. 동음이의어·용어관계 포함.
get_legal_to_dailyread[지식베이스] 법령용어→일상용어 매핑.
get_linked_laws_from_ordinanceread[연계] 자치법규 기준 상위법령 조회. 조례/규칙의 근거 법령 확인.
get_linked_ordinance_articlesread[연계] 법령-자치법규 조문 연계. 법령 조문과 자치법규 조문 간 대응 관계 조회.
get_linked_ordinancesread[연계] 법령 기준 자치법규 연계 목록. 특정 법령과 관련된 전국 조례/규칙 조회.
get_nlrc_decision_textread[노동위] 노동위 결정문 전문.
get_ordinanceread[자치법규] 조례/규칙 전문 조회. jo 파라미터로 특정 조문 본문 조회 가능.
get_pipc_decision_textread[개인정보위] 개인정보위 결정문 전문.
get_precedent_textread[판례] 판례 전문 조회.
get_public_corp_rule_textread[공사공단] 지방공사공단 규정 본문 조회.
get_public_institution_rule_textread[공공기관] 공공기관 규정 본문 조회.
get_related_lawsread[지식베이스] 용어 관련 법령 목록.
get_school_rule_textread[학칙] 학칙 본문 조회.
get_tax_tribunal_decision_textread[조세심판] 조세심판 결정례 전문.
get_term_articlesread[지식베이스] 용어 사용 조문 목록.
get_three_tierread[비교] 3단비교(법률-시행령-시행규칙) 위임조문/인용조문.
get_treaty_textread[조약] 조약 본문 조회. 한글/영문 선택 가능.
impact_mapread[영향그래프] 조문 한 줄의 파급효과 그래프. 특정 조문(예: 민법 제103조)을 인용한 모든 판례·헌재·해석례·행심·자치법규를 역방향 탐색 + 그 조문이 인용한 다른 법령(정방향) + mermaid 시각화. lawName + jo 필수. 다른 chain은 query 단방향이지만 이 도구는
legal_analysisread[정밀분석] 검증·분석 4종 통합. mode: verify_citations=텍스트 속 법령 조문·판례 인용(
legal_researchread[⛓리서치] 다단계 법령 리서치 통합 — 여러 API를 병렬로 엮는 복합 질문 전용. task: full_research=도메인·법령명 불명확한 자연어 질문 폴백(기본값, 예
ordinance_radarread[자치법규] 조례 정비 레이더 — 조례가 인용한 근거 상위법령(법률/시행령/시행규칙)을 본문에서 추출하고, 각 상위법의 현행 시행일과 조례 시행일을 대조해
parse_article_linksread[분석] 조문 내 법령 참조 추출.
parse_jo_coderead[유틸] 조문번호 ↔ JO코드 변환.
search_acr_decisionsread[권익위] 국민권익위원회 결정문 검색.
search_acr_special_appealsread[권익위심판] 국민권익위 특별행정심판 재결례 검색.
search_admin_appealsread[행심] 행정심판례 검색.
search_admin_ruleread[행정규칙] 훈령/예규/고시/지침 검색. knd 파라미터로 종류 필터 가능(1=훈령, 2=예규, 3=고시). 현행 0건이면 연혁을 자동 추적해 폐지(폐지사유·후속 통합 규정)·제명변경을 안내.
search_ai_lawread[AI검색] 자연어로 관련 조문 의미검색. 법령명 몰라도 사용 가능. 법령명을 알면 search_law가 더 정확.
search_allread[통합검색] 법령+행정규칙+자치법규 동시검색. 도메인 불명확 시 사용.
search_appeal_review_decisionsread[소청심사] 소청심사위원회 재결례 검색. 공무원 징계(파면·해임·감봉 등) 불복.
search_constitutional_decisionsread[헌재] 헌법재판소 결정례 검색.
search_customs_interpretationsread[관세] 관세청 법령해석(관세 해석례) 검색. 관세법·FTA특례법·대외무역법 해석례.
search_decisionsread[통합검색] 18개 도메인(판례·해석례·헌재·행심·조세심판·관세·국세청·공정위·개인정보위·노동위·권익위·소청심사·학칙·공사공단·공공기관·조약·영문법령) 통합 검색. domain으로 선택. 판례 본문까지 필요하면 domain=
search_english_lawread[영문] 영문 법령 검색.
search_ftc_decisionsread[공정위] 공정거래위원회 결정문 검색.
search_historical_lawread[이력] 연혁법령 검색.
search_interpretationsread[해석례] 법령해석례 검색.
search_lawread[법령검색] 법령명·조례명·행정규칙명 키워드검색 → lawId, mst 획득. 지자체 조례·규칙(자치법규), 훈령·예규·고시(행정규칙)도 검색 — 0건 시 자치법규/행정규칙으로 자동 폴백(예:
search_law_bulkread[법령검색] 법령명 배열을 한 번에 조회 — 건당 법령ID·MST·시행일·시행예정만 컴팩트 반환(부분매칭 목록·안내문 없음). previous={법령ID:직전MST} 를 주면 MST가 달라진 법령만 돌려주는 diff 모드 — MST는 개정마다 바뀌므로 그 자체가 변경 감지 키다. ISO 준법 등록부처럼 수십 건의 개정 여부를 주기적으로 확인할 때 search_law 건당 호출 대신 사용.
search_legal_termsread[용어사전] 법령용어 정의·해설 검색.
search_nlrc_decisionsread[노동위] 중앙노동위원회 결정문 검색.
search_ordinanceread[자치법규] 조례/규칙 검색. 지역명 포함 권장.
search_pipc_decisionsread[개인정보위] 개인정보보호위원회 결정문 검색.
search_precedentsread[판례] 대법원 판례 검색.
search_public_corp_rulesread[공사공단] 지방공사공단 규정 검색.
search_public_institution_rulesread[공공기관] 공공기관 규정 검색.
search_school_rulesread[학칙] 학칙(대학교·고등학교 등) 검색.
search_tax_tribunal_decisionsread[조세심판] 조세심판원 결정례 검색. 관세·소득세·법인세·부가세 등 세목별 검색 가능.
search_treatiesread[조약] 조약(양자/다자) 검색. 국가코드·체결일·발효일 필터 가능.
suggest_law_namesread[자동완성] 법령명 일부 입력 시 후보 목록 제안. 정확한 법령명을 모를 때 사용.
summarize_precedentread[판례] 판례 요약 생성.
verify_citationsread[인용검증] LLM 환각 방지 — 사용자/AI가 쓴 텍스트에서
04

Trust audit

SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.

LayerWhat it checksResult
L0Provenance & inventoryPASS
L1Static analysis of the codePASS
L2Instruction surface (what it tells the agent)PASS
L3Class-specific surfacePASS
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
declared (5 observation(s))
Network
declared (5 observation(s))
Shell
declared (1 observation(s))
Dependencies
not all pinned
Secrets in source
none-found

Findings (13)

LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/tools/scenarios/action-plan.ts:24
import { findLaws } from "../../lib/law-search.js"
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/tools/scenarios/index.ts:9
import { detectScenarioName } from "../../lib/scenario-rules.js"
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/tools/scenarios/time-travel-diff.ts:8
import { toArray } from "../../lib/xml-parser.js"
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/tools/scenarios/time-travel-diff.ts:9
import { CIRCLED_DIGITS, cleanHtml } from "../../lib/article-parser.js"
LOWFilesystem / path · fs.traversal · CWE-22, CWE-59
src/tools/scenarios/time-travel-diff.ts:10
import { formatDateDot } from "../../lib/schemas.js"
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
src/lib/response-body.limits.test.ts:38
base = `http://127.0.0.1:${(server.address() as AddressInfo).port}/`
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
test/test-empty-html-retry.cjs:47
const base = `http://127.0.0.1:${port}`
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
test/test-external-https-proxy.cjs:90
LAW_EXTERNAL_HTTPS_PROXY: `http://127.0.0.1:${port}`,
LOWNetwork egress · net.raw_ip · CWE-200, CWE-319
test/test-precedent-html-fallback.cjs:254
process.env.LAW_EXTERNAL_HTTPS_PROXY = `http://127.0.0.1:${port}`
LOWSupply chain · supply.unpinned · CWE-829, CWE-1357
package.json
@modelcontextprotocol/sdk, @xmldom/xmldom, commander, dotenv, express, kordoc, zod, @types/express
Why it matters. 13 dependency range(s) float
Fix. pin exact versions or ship a lockfile
LOWPrompt injection · prompt.credential_read · CWE-94, CWE-1427
README.md:660
cat ~/.ssh/id_ed25519.pub                            # 출력 복사
Why it matters. asks the agent to read credentials
LOWPrompt injection · prompt.transfer_instruction · CWE-94, CWE-1427
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 it matters. an instruction to move sensitive data to an outside destination
Fix. remove; a skill never needs the user's secrets off the machine
INFOInventory / provenance · inv.oversize · CWE-1104
demo.gif
demo.gif
Why it matters. 4482019 bytes not read

Gates applied: no_behavioural_pass.

Audited 2026-09-22 · audit v0.4.1 · source sha 32d4635c0054full audit observations/trust-audit/mcp-server/chrisryugj__korean-law-1.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-09-2232d4635c0054SAFEB89source changed, verdict held
2026-09-1815a22d50d2e7SAFEB89first audit
06

Questions

What is the Korean Law MCP server?

법제처 국가법령정보를 LLM에서 바로 조회하는 MCP 서버. 법령·판례·조례 검색과 인용 검증 | MCP server for Korean law — search statutes, precedents, and ordinances, and verify citations

What tools does Korean Law expose?

99 in total: 98 read-only, 1 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.

Is Korean Law safe to connect to an agent?

The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean server reads B.

What credentials does Korean Law need?

It reads ALLOW_QUERY_API_KEY, KOREAN_LAW_API_KEY and LAW_EXTERNAL_TLS_REJECT_UNAUTHORIZED from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.

How does Korean Law run?

It speaks stdio and streamable-http, so it runs as a local process your client starts. It is published on npm as korean-law-mcp at 4.13.1.

How current is this page?

The grade is for one exact copy of the source (32d4635c0054), read on 2026-09-22. The repository is watched and re-audited when it changes.

Advertisement