# kordoc [Health: Active]

**Category:** 🏢 Workplace & Productivity  
**Repository:** https://github.com/chrisryugj/kordoc  
**GitHub Stars:** 3181  
**npm Downloads (last month):** 322710  
**Views:** 4  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/kordoc

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

## Claude Desktop Quick Installation
Install path detected from listing signals. Uses `npx` (confidence: high):

```json
"mcpServers": {
  "kordoc": {
    "command": "npx",
    "args": ["-y","kordoc","mcp"]
  }
}
```

## Documentation

## What kordoc does

kordoc handles document workflows centered on Korean files and government-style paperwork. It reads HWP 3.x and 5.x, HWPX, HWPML, PDF, XLS/XLSX, DOCX, PPTX, PNG, JPG, and WebP files, producing Markdown, intermediate structured data, page-oriented text, or RAG-ready chunks. Tables are represented as structured content, with options such as GitHub-Flavored Markdown for table output.

The project can also create and modify documents. Markdown can be converted to HWPX using government-document presets, sample templates, tables, formulas, and charts. Existing HWP and HWPX files can be compared or patched at block and cell level, while layout-preserving extraction supports edits that retain source formatting. Form workflows include field and placeholder filling, standard draft-document formats, and seal placement.

## How it works

The package is available as a Node.js library, command-line program, and MCP server. The CLI can process one file, a group of files, or a directory tree. Batch conversion supports file-level parallelism through `--jobs`, although additional workers increase memory use. A typical conversion writes Markdown from an input path, while JSON output exposes document metadata and structured blocks.

OCR runs locally for scans and image-based documents. OCR options can return line boxes and confidence values, select detection models, and choose recognition behavior. The same processing engine supports document linting, page and region extraction, previews, rendering, and masking of personal information. HWP files can also be converted to HWPX while preserving many source elements, including text styling, tables, images, shapes, formulas, headers, footnotes, and charts.

## Setup and configuration

Node.js 20 or newer is required, with support for macOS, Linux, and Windows. Install the package with `npm install kordoc`, or invoke the CLI without a local installation through `npx kordoc`. PDF and OCR dependencies are included by default; using `--omit=optional` limits those capabilities.

Run `npx -y kordoc setup` to register the MCP server with supported clients, then restart the client. VS Code and Cursor provide one-click installation links, and Claude Code can install the project plugin through its marketplace commands. The package is listed in the official MCP Registry.

For disconnected environments, set `KORDOC_OFFLINE=1` to block external communication. `KORDOC_ROOT` can restrict the filesystem area available to MCP operations. Local CPU OCR works without an API key, which suits offline or closed-network deployments.

## Tools and capabilities

The MCP interface covers 22 tools spanning:

- Parsing documents into Markdown, structured blocks, page text, and retrieval chunks.
- Comparing documents and applying block-, cell-, or layout-aware edits.
- Generating HWPX files from Markdown, presets, templates, or institution packs.
- Filling fields and placeholders, producing standard government drafts, and adding seals.
- Converting HWP to HWPX and preserving source formatting where supported.
- Running language, public-sector style, structural, budget-calculation, and AI-writing checks.
- Rendering, previewing, extracting regions, and masking personal information.

Institution packs collect formatting patterns from example documents and apply them to newly generated files. Validation reports skipped edits with their reasons, helping callers review changes that could not be applied.

## Limitations and notes

Formatting preservation depends on the source document and operation. The tool reports edits it cannot apply rather than silently presenting them as complete. OCR quality varies with scans, handwriting, layout, and tables, so extracted text and structure should be checked for high-stakes use. Parallel processing consumes more memory, and removing optional dependencies reduces PDF and OCR support. The package is released under the MIT license.

_Full upstream README: https://allmcps.com/mcp/kordoc/readme_

