chrisryugj/kordoc
📄 한국 공문서를 AI가 읽고 쓰게 합니다. HWP·HWPX·PDF·오피스·스캔 이미지를 Markdown으로, Markdown을 HWPX 공문서로 바꾸고 양식 채우기·신구대조·서식 보존 편집까지. 라이브러리·CLI·MCP 서버 | Korean documents for AI: HWP, HWPX, PDF, Office and scans to Markdown, and Markdown back to HWPX. Library, CLI and MCP server.
What it solves
Kordoc tackles the pain of Korean official documents. These files (HWP, HWPX, PDF, etc.) are hard for AI to read or write because of complex table structures and formatting. Kordoc converts them to clean Markdown and structured data, and can also generate official documents from Markdown, so AI systems and humans can work with them easily.
How it works
Kordoc works as three tools: a library (JavaScript/TypeScript, with Python and Java SDKs), a CLI (npx kordoc ...), and an MCP server that plugs into AI assistants like Claude, Cursor, VS Code. It reads many formats (HWP 5.x, HWPX, HWPML, PDF, XLS/XLSX, DOCX, PPTX, images) and outputs Markdown, JSON, or RAG chunks. It also generates HWPX/HWP from Markdown, preserving official formatting like table structures, footnotes, and styling. It can do OCR locally, compare documents, fill forms, apply agency-specific templates, and check compliance.
Who it's for
Built by a Korean civil servant who spent 7 years dealing with document hell, kordoc is aimed at developers, AI engineers, and government or enterprise teams who need to process or produce Korean official documents at scale. It's especially useful for AI agents that need to read or write these files, and for anyone building automated document pipelines in Korean.
Highlights
- High accuracy: 100% table-structure match on a corpus of 2,424 HWPX files with 10,342 tables.
- Public benchmark: scored 0.965 on opendataloader-bench, higher than 12 other parsers (measured 4.24.50).
- Supports many formats: HWP 5.x, HWPX, HWPML, PDF, XLS/XLSX, DOCX, PPTX, images (PNG, JPG, WebP, TIFF, GIF, BMP, AVIF, HEIC, PCX).
- Can generate HWPX/HWP from Markdown, preserving formatting, and offers presets for official documents.
- Works offline: OCR runs locally on CPU, no API key needed.
- Includes a CLI, library API, and MCP server with 22 tools for AI agents.
- Available as a plugin for Claude and listed on the official MCP registry.
Related
- Project
- Project
- Project
- Project
- Project