chrisryugj/korean-law-mcp

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

2,375 ★466 forksTypeScriptUpdated 3d ago

What you need to know

Korean law MCP server + CLI that wraps 42 Korean Ministry of Government Legislation (beopjecheo) Open APIs into 10 tools covering statutes, court precedents, administrative rules, local ordinances, treaties, and interpretations — with LLM hallucination-prevention citation verification, a case citator, as-of-date law determination, and ordinance radar.

Install

npx korean-law-mcp setup (interactive installer wizard)
npm install -g korean-law-mcp
Claude Code plugin: /plugin marketplace add chrisryugj/korean-law-mcp then /plugin install korean-law@korean-law-marketplace
Remote hosted endpoint (no install): https://mcp.gomdori.app/law?oc=<your-OC-key>

Usage

  • Get a free beopjecheo Open API key (OC) from open.law.go.kr/LSO/openApi, then set env LAW_OC=<key>
  • CLI: korean-law "민법 제1조" or korean-law search_law --query "관세법"
  • Claude Desktop (no local server): add mcp-remote adapter — { "command": "npx", "args": ["-y", "mcp-remote", "https://mcp.gomdori.app/law?oc=honggildong"] }
  • Ask natural-language queries, e.g. "근로기준법 제74조 알려줘" (Korean content)

Key features

  • 42 APIs compressed into 10 tools: legal_research (8 task types), legal_analysis (4 modes: verify_citations, cite_check, applicable_law, impact_map), search_law, get_law_text, get_annexes, ordinance_radar, search_decisions, get_decision_text, discover_tools, execute_tool
  • verify_citations anti-hallucination gate — cross-checks cited articles for existence AND content against the official beopjecheo database
  • cite_check (Korean-style Shepard's Citator) reverses-tracks citing precedents to detect changed/overruled cases; applicable_law determines which law version was in force at a given date
  • 18-domain unified decision search (Supreme Court precedents, Constitutional Court, tax tribunal, Fair Trade Commission, customs interpretations, etc.)
  • Annex/form extraction with HWPX/HWP/PDF/XLSX/DOCX parsing (kordoc engine); alias recognition (화관법 → 화학물질관리법) and 1-hour/24-hour search/article caching

Best for

Korean legal research and citation verification for AI assistants — used by Korean law firms, legal teams, students, and public officials.

Caveats

  • Requires a free beopjecheo Open API key (OC) issued per user; API access authorized per individual
  • claude.ai custom connector requires Claude Pro/Max/Team/Enterprise (Free tier allows only 1 connector)
  • Claude Desktop cannot connect to the remote HTTP server directly — needs the mcp-remote adapter (Node.js 18+)
  • Closed/office networks and SSL-inspection proxies may need LAW_API_PROTOCOL=http, LAW_EXTERNAL_HTTPS_PROXY, or LAW_EXTERNAL_TLS_REJECT_UNAUTHORIZED settings for the NTS tax-law fallback
  • Korean-language content and README (English README available); data comes from law.go.kr so verify against official originals for legally binding decisions
Platforms: Windows · macOS · Linux · Web (hosted endpoint)Clients: Claude Desktop · Claude Code · Cursor · Windsurf · Zed · VS Code · Gemini CLI · Google Antigravity · Claude.ai (custom connector)
Documentation ↗

Reviewed 2026-08-07

Topics

citation-verificationclaudehallucination-detectionkorean-lawlawlegal-ailegal-raglegal-techmcpmcp-servermodel-context-protocolprecedenttypescript
View on GitHub ↗
Stars
2,375★
Forks
466
Language
TypeScript
License
MIT
Created
2025-12-19
Last push
2026-08-03