kordoc

Content and CMS

Parse Korean documents (HWP, HWPX, PDF, XLSX, DOCX, PPTX) to Markdown; fill forms, diff, render.

Your AI app calls the kordoc MCP server, which does the content and CMS work and sends the result back to the chat.

About kordoc

kordoc is a community MCP server from chrisryugj, filed in our directory under content and cms. Parse Korean documents (HWP, HWPX, PDF, XLSX, DOCX, PPTX) to Markdown; fill forms, diff, render.

kordoc runs on your own machine: your AI app starts it with the command npx -y kordoc@4.25.40 mcp and talks to it over standard input and output.

kordoc is listed in the official MCP registry as io.github.chrisryugj/kordoc, version 4.25.40.

At a glance

Publisher
chrisryugj (community)
Runs
Locally on your machine
Install from
Node.js package on npm: kordoc
Written in
TypeScript
License
MIT
GitHub stars
3,213
Official MCP registry
io.github.chrisryugj/kordoc

How to set up kordoc

  1. Install Node.js on the machine that runs your AI app, because kordoc starts with npx and downloads its package on first run.
  2. Check the kordoc README for keys or settings; the registry lists none that kordoc requires.
  3. Add kordoc to Claude Code, Claude Desktop, VS Code or Cursor with the config in the setup box on this page.
  4. Restart the app or reload its MCP servers, then ask it to list the kordoc tools to confirm the connection.
  5. Run one read-only task with kordoc first, and keep your app asking before each tool call until the results look right.

kordoc compared with similar servers

  • Markdownify by zcaceres has fewer GitHub stars than kordoc (3k against 3.2k); both are community servers, and both run locally.
  • Microfeed by microfeed has more GitHub stars than kordoc (4.1k against 3.2k); both are community servers, and both run locally.
  • WordPress Adapter by WordPress has fewer GitHub stars than kordoc (2k against 3.2k); WordPress Adapter is official while kordoc is a community server, and both run locally.

Before you connect kordoc

  • Give kordoc its own API key or account with the smallest permissions the job needs, never an admin key.
  • Keep your AI app asking before each kordoc tool call until you trust what it does with them.
  • Treat text that kordoc fetches as data. Pages, files and messages can hold instructions written to steer an AI.
  • Read the open issues for kordoc on GitHub to see what breaks and how fast the maintainers reply.

Marketing use cases for kordoc

How marketing and sales teams put kordoc to work, by company size. Pick the size closest to yours and start kordoc on one use case.

Small business

  • A small business can use kordoc to draft, update and publish site pages from a chat, keeping the site fresh without an agency.
  • Owners can ask kordoc which pages are outdated and get a list of updates in order of traffic.
  • kordoc runs on your own computer, which keeps data local; it needs a little setup, so a small team should plan an hour for it.

Mid-market

  • Content teams can connect kordoc to move drafts into the CMS with fields, tags and metadata filled in, ready for an editor.
  • SEO and content teams can use kordoc to refresh old posts at scale, with each change reviewed before it goes live.
  • Start kordoc on one workflow with one owner, measure the time it saves, then roll it out to the wider team.

Enterprise

  • Enterprises can give kordoc draft-only rights, so agents prepare content while publishing stays with approved editors.
  • Large content orgs can use kordoc to manage many sites and languages, keeping structure and governance consistent.
  • kordoc is a community server, so have security review the code and pin a version before kordoc touches company data.

Need help becoming an AI-forward company?

We connect MCP servers and AI agents to your CRM, content and data, with the guardrails your team needs.

Contact us

kordoc README

From chrisryugj/kordoc on GitHub, shared under its MIT license. Images are left out; the original has them.

README.md

kordoc

모두 파싱해버리겠다.

대한민국에서 둘째가라면 서러울 문서지옥. 거기서 7년 버틴 공무원이 만들었습니다.

한국 공문서를 AI가 읽고 쓸 수 있게 합니다. HWP 3.x·5.x, HWPX, HWPML, PDF, XLS·XLSX, DOCX, PPTX, 이미지(PNG·JPG·WebP·TIFF·GIF·BMP·AVIF·HEIC·PCX)를 Markdown과 구조화 데이터로 바꾸고, Markdown에서 HWPX·HWP 공문서를 만듭니다. 라이브러리·CLI·HTTP API·MCP 서버로 씁니다.

English · Türkçe · 상세 사용법 · 벤치마크 · 변경 이력

같은 법령 별표 한 건을 HWP·HWPX·PDF·스캔 이미지로 넣은 실제 출력입니다. 네 경우 모두 병합 칸(rowspan·colspan)을 같은 짜임의 표로 읽습니다. 스캔 이미지는 OCR이 자동으로 켜집니다.

  • 📊 PDF 공개 벤치 종합 0.965: opendataloader-bench 200문서, 공개 리더보드(2026-09-29 기록) 12개 파서보다 높은 점수(4.24.50 측정). 측정 조건
  • 🇰🇷 한국 공문서 표 구조 100%: 원본 HWPX 2,424문서의 보이는 표 10,344개 전부 구조 일치. 검증 결과
  • 🧩 Claude 플러그인 디렉터리 게시: 설치 1,700건 이상(2026. 11. 14. 집계). 공식 MCP 레지스트리에도 등록돼 있습니다.

쓸모 있었다면 GitHub ⭐ 하나 눌러주세요. 다른 사람이 이 도구를 찾는 데 도움이 됩니다.

영상: 공개 벤치 측정 과정(2026-09-27 판, 1분 31초) · 양식 일괄 채우기 시연

목차: 설치 · 빠른 시작 · 주요 기능 · 검증 결과 · 최근 업데이트 · 자주 묻는 질문 · 문서·보안

설치

Node.js 20 이상 · macOS / Linux / Windows

npm install kordoc

CLI는 설치 없이 npx kordoc으로 실행합니다. PDF 글은 패키지에 든 wasm 엔진으로 읽습니다. OCR·그림 형식 변환·QR 읽기 의존성은 기본으로 설치되며, --omit=optional로 빼면 해당 기능이 제한됩니다.

AI 에이전트에 연결
쓰는 곳 방법
Claude Desktop·Claude Code·Cursor·Codex 등 npx -y kordoc setup: 설치된 클라이언트를 찾아 MCP를 등록합니다
VS Code·Cursor 아래 단추로 등록합니다
Claude Code 플러그인 /plugin marketplace add chrisryugj/kordoc 뒤 /plugin install kordoc@kordoc
Claude 앱 플러그인 디렉터리에서 kordoc을 찾아 설치합니다
그 밖의 MCP 클라이언트 공식 MCP 레지스트리 io.github.chrisryugj/kordoc 또는 수동 등록

클라이언트를 다시 시작하면 파싱·비교·생성·검수·렌더 등 22개 도구를 씁니다. 등록이 안 되면 수동 MCP 등록과 설치 문제 해결을 보세요.

빠른 시작

CLI
npx kordoc 문서.hwpx -o 문서.md
npx kordoc *.pdf --jobs 4 -d ./결과
npx kordoc 문서.pdf --format json --pages 1-3
npx kordoc 스캔본.pdf --ocr -o 스캔본.md
npx kordoc generate 보고서.md --preset 보고서 -o 보고서.hwpx
npx kordoc to-hwpx 문서.hwp -o 문서.hwpx
npx kordoc to-hwpx ./옛문서   # 폴더째(하위 폴더까지): 각 파일 옆에 .hwpx, 이미 있으면 건너뜀
npx kordoc 문서.pdf -o 문서.hwpx   # PDF·DOCX 등도 읽은 내용으로 HWPX (그림 포함)
npx kordoc pack build 보고서1.hwpx 보고서2.hwpx 보고서3.hwpx --name 광양시 -o 광양시.kpack   # 기관팩 (docs/agency-pack.md)
npx kordoc generate 새보고서.md --pack 광양시.kpack -o 새보고서.hwpx
npx kordoc fill --template gian -j 값.json -o 기안문.hwpx
npx kordoc lint 보고서.hwpx --gate --preset 보고서

--jobs는 파일 단위 병렬 변환이며 메모리 사용도 늘어납니다. 병렬 변환 안내

JavaScript / TypeScript
import { parse, markdownToHwpx } from "kordoc"
import { writeFile } from "node:fs/promises"

const result = await parse("문서.hwpx")
if (result.success) {
  console.log(result.markdown)
  // result.blocks: 구조화 데이터, result.metadata: 문서 정보
}

const hwpx = await markdownToHwpx("# 추진계획\n\n본문", {
  gongmun: { preset: "보고서" },
})
await writeFile("보고서.hwpx", Buffer.from(hwpx))

파싱 옵션·API·양식·렌더 예제 · Python·Java에서는 Python SDK·Java SDK

주요 기능

  • 읽기: 문서 → Markdown·IR·쪽별 본문·RAG 청크, 로컬 OCR(손글씨 인식 포함), 그림 속 QR 값(--qr-codes), 그림 형식 통일(--image-format png|webp), 차트 값은 표로·SmartArt는 목록으로(--charts, HWP·HWPX·DOCX·PPTX·XLSX)
  • 비교·편집: 블록·셀 단위 비교, HWPX·HWP 서식 보존 패치, 견본 서식 그대로 새 내용 쓰기
  • 작성: Markdown → HWPX·HWP(HWP는 npm install @rhwp/core 뒤 -o 문서.hwp), 공문서 프리셋·부서 서식 견본(--template)·보고서 PDF 모양 따르기(--layout), 목차 쪽 번호, 표·수식·차트
  • 변환: HWP 5.x → HWPX 서식 그대로(글꼴·문단 모양·표·그림·도형·수식·머리말·각주·차트, 배포용·변경 추적 문서 포함). PDF·DOCX 등은 -o 문서.hwpx로 읽은 내용을 HWPX로
  • 기관팩: 우리 기관 문서 몇 건으로 서식 묶음(.kpack)을 만들어 그 서식대로 새 문서 작성
  • 양식: 필드·누름틀 채우기, 표준 기안문 2종, 도장 날인
  • 검수: 표기법·공공언어, 구성·AI 문체 게이트, 예산 산출근거 검산, 열린 문서 블록 단위 검수(lint-blocks)
  • 보기·보안: HWPX·HWP 미리보기·영역 추출, 개인정보 마스킹(인명·주소는 학습 모델 opt-in --model)

서식 보존 패치용 Markdown은 --keep-layout-tables로 추출합니다. 적용하지 못한 편집은 건너뛴 사유로 보고합니다. 서식 보존 편집 · CLI 전체

검증 결과

고정 코퍼스와 참조 기준으로 측정한 결과입니다. 측정판: 기본 4.22.14(2026-10-19) · 렌더 배치·별표 4.24.24(2026-10-30) · HWP → HWPX 변환 4.24.29(2026-10-31) · OCR 4.24.32(2026-11-01) · PDF 표 4.24.35(2026-11-01) · PDF 글·opendataloader-bench 기본값과 OCR 켬 4.24.50(2026-11-07) · KoOCR-Bench 4.24.68.

대상 규모 결과
HWPX 2,424문서 · 10,344표 표 구조 일치 10,344/10,344 · 100%
HWP 5.x ↔ HWPX 1,130쌍 · 4,314표 짝 문서의 표 구조 일치 100%
HWP 5.x → HWPX
변환
한글 저장 짝 264쌍 (속성 대조 232쌍) 속성 일치 99.21% · 완전 일치 69/232 · 글 264/264 · 한글 화면 대조 80문서
PDF 글 744쌍 글자 재현율 99.887% · 정확도 99.685% · 읽기 순서 99.398% · 어절 F1 99.131%
PDF 표 708쌍 · 2,331표 표 탐지 99.83% · 구조 일치 98.24% · 칸 F1 0.9919
HWPX 재조판 다중줄 25,187문단 (12개 폴더) 모든 줄 시작 일치 24,941/25,187 · 99.02%
PDF 중첩표 (텍스트층) 29문서 · 101표 구조·칸 내용 101/101 · 100%
법령 별표 272건 · 346표 HWP 346/346, PDF 343/346 · 99.13%
PDF 전체 1,911문서 중 1,729건 채점 글 커버리지 99.80%
OCR 53문서 · 102쪽 · 65표 CER 0.0237 · 글자 재현율 99.33% · 표 구조 일치 33/65
KoOCR-Bench v2.0c (외부) 공개 877쪽 (표·글·손글씨·순서) 종합 기본값 0.906 · 표 0.916 · 손글씨 0.921 · 순서 0.914 · 제목 재현율 0.930
opendataloader-bench PDF 200문서 종합 기본값 0.965 · ocr: true 0.967 · OCR 끔 0.939 (4.22.14)
HWPX 렌더 배치 한컴 PDF 짝 1,565문서(쪽 수 일치 1,508) · 글 조각 111,480 · 그림 4,300 글 위치(±1.5pt) 106,904 · 95.9% · 그림 위치(±2pt) 4,213 · 98.0%

표 구조 점수와 셀 내용·화면 재현은 별도 지표입니다. 중첩표 100%는 위 101표에 한정하며 전체 PDF·조판의 완전 일치를 뜻하지 않습니다. 채점 범위·제외 기준·옵션별 수치·재현 방법은 벤치마크 상세에 있습니다.

최근 업데이트

최신 배포: 4.25.40 · 2026-12-03

버전 바뀐 점 실측 변화
4.25.40 PDF 표에서 쪽이 바뀌는 자리의 서로 다른 번호 항목을 한 행으로 합치던 것, DOCX 하위 목록 번호가 상위 항목마다 다시 시작하던 것(w:lvlRestart=0)을 고쳤습니다. 원문자 번호 머리가 섞이거나 두 줄인 표 머리, 기호 글꼴 글머리로 시작하는 입력란 줄도 양식 필드로 잡습니다 쪽 경계 번호 행 4행이 3행으로 → 4행 · 코퍼스 PDF 1,911·DOCX 88문서 변화 0 · 시험 5,530개 실패 0
4.25.39 4.25.38 에서 원문자 번호 머리 칸만 나란한 표 머리 행("① 업무명 ② 성과목표")의 옆 머리 칸을 값으로 짝짓던 것을 고쳐 아래 칸을 값으로 잡습니다. 문단 스타일 제목으로 나온 입력란 줄("발주기관: …")도 양식 필드로 잡습니다
4.25.38 양식 필드 인식이 원문자 번호 항목명("③ 국 적")을 찾고, 묶음 제목("신청인") 옆 항목명을 값으로 잡지 않으며, 인쇄된 "[ ]" 를 선택형으로 봅니다(#263). 큰 글자 라벨 하나짜리 입력란 줄("성명:")도 제목이 되지 않습니다 의료행위 승인신청서 국적·성명 칸 찾음(HWP·PDF 4조합) · 코퍼스 제목 줄 변화 15(전부 입력란)·새 제목 0 · 시험 5,520개 실패 0
4.25.37 값을 채운 서식 입력란 줄도 큰 글자만으로 제목이 되지 않아 양식 필드 인식이 칸을 잃지 않습니다. 양식 채우기에서 "주소" 값이 "주소지" 칸에도 들어가 통째로 거부되던 것을 고쳐, 이름이 꼭 맞는 칸만 채웁니다 거부되던 "주소" 값 → 채움 ("주소지" 칸은 빈칸 유지) · 코퍼스 HWP·HWPX 제목 줄 변화 0 · 시험 5,515개 실패 0
4.25.36 redact 가 표 칸에 나눠 적은 주민·외국인등록번호·전화번호를 칸마다 가립니다(HWPX·HWP 본문·결과 마크다운). 띄어 쓴 이메일과 빈칸으로 나눈 계좌번호도 가립니다. 큰 글자 서식 입력란 줄이 제목이 되어 양식 필드 인식이 칸을 잃던 것을 고쳤습니다 칸 나눔 번호 본문 남음 → 0(residual 0) · 코퍼스 4,307문서 새 탐지 0 · 코퍼스 HWP·HWPX 4,165문서 제목 줄 변화 0 · redact 게이트 통과

이전 버전과 상세 내용은 변경 이력에 있습니다.

자주 묻는 질문

Q. HWP·HWPX 파일을 Markdown으로 바꾸려면? npx kordoc 문서.hwp -o 문서.md를 실행합니다. 한컴오피스 없이 파일을 직접 읽으며, 여러 파일은 npx kordoc *.hwpx -d ./output으로 함께 바꿉니다.

Q. Claude·Cursor 같은 AI가 한글 문서를 읽게 하려면? npx -y kordoc setup으로 MCP를 등록하면 AI가 파일 경로만 받아 HWP·PDF·엑셀을 읽고, 비교하고, 양식을 채웁니다.

Q. 인터넷이 막힌 폐쇄망에서도 되나요? 됩니다. KORDOC_OFFLINE=1이 외부 통신을 모두 막고, OCR도 API 키 없이 로컬 CPU에서 돕니다. 폐쇄망 설치

Q. RAG 색인용으로 쓸 수 있나요? --format chunks가 제목 경로를 붙인 구조 청크와 독립 표 청크를 냅니다. 표를 HTML 없이 받으려면 --table-format gfm(API는 tableFormat: "gfm")을 씁니다. Python·Java에서는 Python SDK·Java SDK로 부릅니다.

Q. OCR 줄 좌표나 다른 모델이 필요하면? --ocr --ocr-lines --format json이 줄별 상자·신뢰도를 내고(--ocr-line-candidates 3이면 줄마다 상위 읽기 후보와 확률도, --ocr-chars 3이면 글자마다 신뢰도·상자·대안도), --ocr-det·--ocr-det-long-side로 검출 모델과 해상도를, --ocr-rec handwriting|auto로 손글씨 인식 모델을 고릅니다. --page-images png는 OCR 경로가 읽은 페이지를 이미지로 함께 냅니다. OCR 줄·모델 선택

문서·보안

Star History

만든 사람

대한민국 지방공무원. 광진구청에서 7년간 HWP 파일과 싸우다가 이걸 만들었습니다. 5개 공공 프로젝트에서 수천 건의 실제 관공서 문서를 파싱하며 검증했습니다.

라이선스: MIT

Questions about kordoc

What is the kordoc MCP server?

Parse Korean documents (HWP, HWPX, PDF, XLSX, DOCX, PPTX) to Markdown; fill forms, diff, render. kordoc is maintained by chrisryugj on GitHub at chrisryugj/kordoc, and works with AI apps that support the Model Context Protocol, such as Claude, Cursor and VS Code.

How do I install the kordoc MCP server?

Add kordoc to your AI app's MCP config with the command npx -y kordoc@4.25.40 mcp. In Claude Code, run claude mcp add --transport stdio kordoc -- npx -y kordoc@4.25.40 mcp. To run kordoc this way you need Node.js installed.

Does kordoc need an API key?

The registry lists no required keys for kordoc. Check the kordoc README for optional settings, and expect a remote server to ask you to sign in the first time you connect.

Is kordoc an official MCP server?

No. kordoc is a community server maintained by chrisryugj. Community servers can be excellent; read the code and the open issues before you give kordoc access to company data.

What license is kordoc under?

kordoc is released under the MIT license, according to its GitHub repository. The license covers the code of kordoc; the service it connects to has its own terms.