
kordoc MCP Server: Setup for Claude Code, Cursor and Other Apps
Lets Claude or Cursor read Korean HWP, HWPX, PDF and Office files as Markdown, fill forms, compare versions and mask personal data.
kordoc is a library and command line tool for Korean documents, and it also runs as an MCP server on your computer. It reads files you point it at and writes new files for forms, edits and masked copies. No account or API key is needed. Paths must be absolute, and an environment variable can limit it to one folder.
Good for
- Korean public-sector staff who work with HWP and HWPX documents
- Developers who feed Korean documents into search or RAG
- Anyone who needs HWP files turned into Markdown, PDF or images
- Reviewers who compare old and new versions of a regulation
Works in
12 should work
Tap an app to see how to set it up and any known problems.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Supports local MCP servers.
Client does not support this transport.
Client does not support this transport.
Install kordoc MCP
Claude Code
- 1
Copy this prompt.
Add the kordoc MCP server to Claude Code. Run this command: claude mcp add kordoc -- npx -y kordoc mcp Then check that it loaded and tell me if I need to sign in or restart.
- 2
Paste it into Claude Code. It shows the change and asks before running it.
Requires Node.js, Node.js 20 or newer.
The server starts with the mcp subcommand. The README also has a setup command that registers it in the apps it finds. On Windows, Claude Desktop may need cmd with /c as the command. Set KORDOC_ROOT to a folder to limit file access.
Built from the package data we hold. Not yet tested by us.
Tools
Reads a document and returns it as Markdown
Converts HWP, HWPX, PDF, XLSX, DOCX, PPTX and PNG, JPG or WebP images to Markdown. Images are read with built-in OCR.
Try: “Read ~/Documents/공문.hwpx and summarise it.”
Files ·
parse_documentReads only some pages
Parses a page range of a document.
Try: “Read pages 3 to 5 of report.pdf.”
Files ·
parse_pagesPulls out one table
Extracts the Nth table from a document.
Try: “Get the second table from budget.hwpx.”
Files ·
parse_tableReads title, author and dates
Reads document properties without parsing the whole file.
Try: “Who wrote this document and when?”
Files ·
parse_metadataIdentifies the file type
Detects the format from the file contents, such as hwpx, hwp, pdf or docx.
Try: “What type of file is this?”
Files ·
detect_formatSplits a document into search chunks
Parses a document into structured chunks for RAG, keeping headings as a path and putting tables in their own chunks.
Try: “Split guide.pdf into chunks for indexing.”
Files ·
parse_chunksShows what changed between two documents
Compares two documents block by block and lists added, removed and changed parts. HWP and HWPX can be compared with each other.
Try: “Compare the old and new regulation files.”
Files ·
compare_documentsReads the fields of a form
Extracts label and value pairs from a Korean form document as JSON.
Try: “List the fields in application.hwpx.”
Files ·
parse_formFills in a form
Fills blank fields in a form and writes a new document. Built-in standard government templates are available. HWPX output keeps the original formatting.
Try: “Fill in this application with the values from values.json.”
Write ·
fill_formEdits text and keeps the formatting
Writes your edited Markdown back into an HWPX or HWP file, keeping fonts, tables, seals and logos. It can also copy a sample file's format for new content.
Try: “Update the dates in notice.hwpx and save a new file.”
Write ·
patch_documentAdds a seal or signature image
Places a seal or signature image next to an anchor phrase and saves a new HWPX.
Try: “Stamp the seal next to "담당자".”
Write ·
place_sealAdds a comment to a document
Adds a memo to the text at an anchor phrase and saves a new HWPX.
Try: “Add a memo on the budget line.”
Write ·
add_memoMasks personal data
Finds ID numbers, phones, emails, cards, accounts and more, and writes a masked copy. A dry run only reports what it finds.
Try: “Mask personal data in list.hwpx and save list_masked.hwpx.”
Write ·
redact_documentMakes an HWPX document from Markdown
Creates a Korean official-style HWPX document from Markdown, with presets, templates or an agency pack.
Try: “Turn this Markdown into a report HWPX.”
Write ·
generate_documentCopies a table style
Extracts the table style of a reference HWPX as JSON so generated tables can match it.
Try: “Take the table style from sample.hwpx.”
Files ·
extract_profileBuilds an agency style pack
Builds a .kpack from a few of an organization's HWPX files, keeping layout and logos but clearing text and personal details.
Try: “Make a style pack from these three reports.”
Write ·
build_agency_packReads an agency pack's writing rules
Shows a .kpack summary and writing guidance before documents are generated from it.
Try: “What are the rules in 광양시.kpack?”
Files ·
agency_pack_infoChecks a government document
Checks notation, plain language, tone, structure and budget numbers in a text or file, and returns findings with line numbers.
Try: “Lint this draft against official document rules.”
Files ·
lint_documentConverts HWP to HWPX
Converts HWP files to HWPX and saves them. HWP 5.x keeps its formatting. It refuses to overwrite an existing file unless you give a path.
Try: “Convert old.hwp to HWPX.”
Write ·
convert_to_hwpxShows a document as images or files
Renders HWPX or HWP as PNG or JPEG images, or saves SVG, HTML or PDF files, so you can check a result.
Try: “Render page 1 of the generated report.”
Write ·
render_documentCuts tables and images out of pages
Renders a document and saves cropped images of tables, pictures and shapes with a regions list.
Try: “Crop all tables from report.hwpx.”
Write ·
crop_regionsFinds and classifies tables
Extracts tables from HWPX or HWP and labels them as data tables, layout tables like org charts, or uncertain.
Try: “Which tables in report.hwpx are real data tables?”
Write ·
extract_tables
From the official docs
Permissions
medium risk · 3 things to watch
Medium risk
The assistant can read any Korean document you point it at and save new files, such as filled forms and masked copies. Set KORDOC_ROOT to one folder so it cannot reach the rest of your computer.
What it can do
- Read your data
- Create and change things
- Delete things
- Read-only mode
Watch out for
It writes new document files
Fill, patch, convert, mask and render tools save files. Each needs an output path, and the path is checked for allowed file types, symbolic links and the allowed folder. github.com
Documents can hold personal data
Files you open are read into the chat. Use the masking tool first, or set KORDOC_ROOT so it only reaches one folder. github.com
Offline mode is available
Setting KORDOC_OFFLINE=1 blocks all outside communication, and KORDOC_ROOT limits file access to a folder. github.com
Security advisories
No published security advisories as of Nov 1, 2026.
Technical details
| Turning on read-only | No read-only switch is documented. KORDOC_ROOT limits file access to one folder, and KORDOC_OFFLINE=1 blocks all outside communication. |
|---|---|
| Sign-in and keys | No account or key. |
Questions
Is kordoc an MCP server or a library?
Both, plus a command line tool. The MCP server is started with the mcp subcommand, which the install box above includes.
Which file types does it read?
HWP 3.x and 5.x, HWPX, HWPML, PDF, XLS, XLSX, DOCX, PPTX and PNG, JPG or WebP images. Images use built-in OCR.
Does it need an API key or internet?
No key. The README describes a closed-network mode: KORDOC_OFFLINE=1 blocks all outside communication.
Can I limit which folders it can reach?
Yes. Set KORDOC_ROOT to a folder and MCP file access stays inside it. Output files also cannot overwrite agent config files or follow symbolic links.
Can it overwrite my original file?
The tools write to a new output path, and the masking tool refuses an output path that equals the input. HWP to HWPX conversion refuses to overwrite an existing file unless you give a path.
What is the fastest way to set it up?
Run the setup command from the README. It finds installed apps such as Claude Desktop, Claude Code, Cursor and Codex and registers the server for you.
Information
updated Nov 2, 2026
- Publisher
- Community
- Package
kordoc- Registry
- npm
- Transport
- stdio
- Auth
- None
- Version
- 4.24.30
- License
- MIT
- Last commit
- Oct 31, 2026
- Open issues
- 0
- Listed in
- Official MCP registry
Sources
Docs, issue trackers and discussions this page is built from. Issues, quotes and findings above link to their own source.
Show all 4Hide
- github.com · github.com
- github.com · github.com
- github.com · github.com
- github.com · github.com