# kordoc

> kordoc is an MCP server for files and documents. Parse Korean HWP, HWPX, PDF and Office files to Markdown, then fill, diff and render. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Platforms:** CLI, macOS, Windows, Linux
- **Repository:** https://github.com/chrisryugj/kordoc
- **MCP Registry name:** io.github.chrisryugj/kordoc
- **Categories:** [files and documents](https://ai-powered.com/categories/files-and-documents)
- **Listing updated:** 2026-11-23

## About

kordoc was written, per its README, by a civil servant tired of Korea's document hell. It reads HWP 3.x and 5.x, HWPX, HWPML, PDF, XLS/XLSX, DOCX, PPTX and images, and returns Markdown or structured data. It works as a library, CLI and MCP server with 22 tools covering parsing, comparison, generation, review and rendering.

Beyond reading, it can convert HWP to HWPX, write Markdown back to HWPX or HWP with official-document presets, fill form fields and apply stamps, mask personal data, and run lint gates on notation. OCR runs locally on CPU and `KORDOC_OFFLINE=1` blocks all external traffic, which suits closed networks. The README publishes benchmark tables, for example 10,342 of 10,342 HWPX tables matching structure and a 0.965 overall score on the opendataloader-bench PDF set, measured by the project itself.

`npx -y kordoc setup` registers it in Claude Desktop, Claude Code, Cursor and Codex; it needs Node.js 20 or newer.

## Features

- **Korean format support:** HWP, HWPX, HWPML plus PDF, Office files and images.
- **Local OCR:** Scanned pages are read without an API key.
- **Form filling:** Fills fields and applies stamps in HWPX documents.
- **Compare and lint:** Block- and cell-level diffs and public-language checks.
- **Offline mode:** `KORDOC_OFFLINE=1` stops all outside communication.
- **RAG chunking:** Outputs structured chunks with heading paths.

## Good for

- Convert HWP files to Markdown without Hanword installed
- Fill government forms from JSON values
- Diff two versions of an official report
- Prepare Korean documents for a RAG index
- Mask personal data in documents

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add kordoc -- npx -y kordoc
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

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

### Claude Desktop (claude_desktop_config.json)

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

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

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

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

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

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add kordoc -- npx -y kordoc
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.kordoc]
command = "npx"
args = ["-y", "kordoc"]
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

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

Or run: gemini mcp add -s user kordoc npx -- -y kordoc

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

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

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

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

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

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

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

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

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

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

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

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

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

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

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

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

## FAQ

### Do I need Hancom Office?

No; files are read directly.

### Does kordoc work offline?

Yes, with `KORDOC_OFFLINE=1`; OCR runs on the local CPU.

### How do I register kordoc?

Run `npx -y kordoc setup`.

### What Node version?

Node.js 20 or newer on macOS, Linux or Windows.

### How do I add kordoc to Claude Code?

Run this command in your terminal: claude mcp add kordoc -- npx -y kordoc

### What are the best alternatives to kordoc?

The closest alternatives to kordoc are Scholar Sidekick, UltraTransfer, Stashpad, loremfile and Hilvana.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Scholar Sidekick](https://ai-powered.com/mcp/scholar-sidekick): Scholar Sidekick is a freemium MCP server for education and exams.
- [UltraTransfer](https://ai-powered.com/mcp/ultratransfer): UltraTransfer is an open-source MCP server for files and documents.
- [Stashpad](https://ai-powered.com/mcp/stashpad): Stashpad is an open-source MCP server for files and documents.
- [loremfile](https://ai-powered.com/mcp/loremfile): loremfile is a free MCP server for developer tools.
- [Hilvana](https://ai-powered.com/mcp/hilvana): Hilvana is an open-source MCP server for files and documents.
- [JSON CSV XML YAML TOML Data Format Converter](https://ai-powered.com/mcp/json-csv-xml-yaml-toml-data-format-converter): JSON CSV XML YAML TOML Data Format Converter is a paid MCP server for files and documents.
- [Jdrive](https://ai-powered.com/mcp/jdrive): Jdrive is a freemium MCP server for files and documents.
- [Extractivio](https://ai-powered.com/mcp/extractivio): Extractivio is a freemium MCP server for files and documents.

---
Source: https://ai-powered.com/mcp/kordoc
