About Hwp MCP
Hwp MCP is an MCP server published by treesoop in the AI category: mCP server for reading and writing HWP/HWPX (Korean Hangul) documents — built on rhwp. 34 tools, Claude/Cursor/ChatGPT compatible. Conduid read 36 tools from its source: append_hwp_paragraph, append_hwp_table_column, append_hwp_table_row, apply_hwp_paragraph_style, apply_hwp_text_style, convert_hwp_markdown and 30 more. It is published to npm as hwp-mcp and starts with npx.
The repository has 113 stars and 18 forks, is licensed MIT, and its last commit was on 19 Nov 2026. The latest release is v0.2.1 (26 May 2026): isMain guard so the server launches when invoked via the bin symlink (npm i -g, npx). The release before it was v0.2.0 (29 Apr 2026). It passes all 5 static checks Conduid ran on the repository. Its topics include hancom, hancom-office, hangul, hwp, hwpx and korean.
Install
claude mcp add hwp-mcp-815c -- npx -y hwp-mcpnpx -y hwp-mcpgit clone https://github.com/treesoop/hwp-mcpTools (36)
append_hwp_paragraphAppend a new paragraph to the end of an .hwpx document body. Clones the last paragraph's structure (paraPr/charPr/style refs) and replaces text. Args: file_path, text, output_path (optional).append_hwp_table_columnAppend a new column to the Nth table in an .hwpx. `cells` is a JSON string array of cell texts (one per row, top-to-bottom). Args: file_path, table_index, cells, output_path (optional).append_hwp_table_rowAppend a new row to the Nth table (0-based) in an .hwpx. `cells` is a JSON string array of cell texts (length should match table column count). Args: file_path, table_index, cells, output_path (optional).apply_hwp_paragraph_styleApply paragraph formatting (alignment·indent·line_spacing) to the Nth paragraph in an .hwpx. Adds a new paraPr to header.xml and retargets the paragraph's paraPrIDRef. align: LEFT|CENTER|RIGHT|JUSTIFY|DISTRIBUTE. Args: file_path, paragraph_index, align/indent/line_spacing (any subset), output_path (optional).apply_hwp_text_styleApply formatting (color/bold/italic/underline/font_size) to the first run that contains target_text. Adds a new charPr to header.xml and retargets the matching <hp:run>. Color is a 6-digit hex (e.g. 'FF0000'). Args: file_path, target_text, color/bold/italic/underline/font_size (any subset), output_path (optional).convert_hwp_markdownConvert an HWP/HWPX document to Markdown preserving document flow order: tables as GFM in place, images extracted with relative links, equations inline ($…$), footnotes at end. If output_path is omitted, the Markdown string is returned inline with image placeholders. Args: file_path, output_path (optional .md path), image_dir (optional, default <md name>_images/ next to output).create_hwpx_documentCreate a new .hwpx file from a JSON content list of {type:'text',text} items. Tables (type:'table',headers,rows) are rendered as flat text rows in v0.2. Args: output_path (must end with .hwpx), content (JSON string of items).delete_hwp_imageDelete a BinData/ ZIP entry inside an .hwpx (effectively removes the embedded image bytes). Args: file_path, target (basename or full entry), output_path (optional).delete_hwp_paragraphDelete the Nth paragraph (0-based) from an .hwpx body. Args: file_path, index, output_path (optional).delete_hwp_table_columnDelete the Mth column (0-based) from the Nth table in an .hwpx (removes one <hp:tc> from every row). Args: file_path, table_index, col_index, output_path (optional).delete_hwp_table_rowDelete the Mth row (0-based) from the Nth table (0-based) in an .hwpx. Args: file_path, table_index, row_index, output_path (optional).extract_hwp_imagesSave every embedded image to disk. Args: file_path, output_dir (optional; defaults to <file>_images/).fill_hwp_templateFill multiple placeholders in an HWPX template. `replacements` is a JSON object string, e.g. {"{{name}}":"Kim","{{company}}":"Acme"}. v0.2: .hwpx only. Args: file_path, replacements, output_path (optional).get_hwp_field_valueGet a Hancom field's current value by name. Args: file_path, name.get_hwp_infoGet document metadata (version, page count, section count, fonts used, totals for tables/images/footnotes/equations/headers/footers). Args: file_path.get_hwp_page_defGet per-section page definition (paper size, margins, columns) and section properties. Useful for understanding document layout. Args: file_path.hwp_engine_statusReport hwp-mcp engine status: local tool count, rhwp binary version/source, how many rhwp tools are available vs exposed, active profile, and any error. No args.insert_hwp_imageInsert a new image into an .hwpx — adds the file to BinData/, registers it in content.hpf, and appends a paragraph with an inline <hp:pic>. Args: file_path, source_path, ext (png/jpg/bmp/gif; auto from source_path if omitted), output_path (optional).insert_hwp_tableInsert a real OWPML table at the end of an .hwpx body (proper <hp:tbl>/<hp:tr>/<hp:tc>). headers and rows are both JSON string arrays — `headers` is a single-row array of strings, `rows` is an array of row arrays. Args: file_path, headers, rows, output_path (optional).list_hwp_bindataList ZIP entries under BinData/ inside an .hwpx (image and binary attachments). Useful before replace_hwp_image. Args: file_path.list_hwp_fieldsList Hancom-style fields (`<hp:fldBegin>`/end pairs) in the document, with name and type when available. Useful before fill_hwp_template. Args: file_path.list_hwp_imagesList embedded images (mime, byte length, locator) in an HWP/HWPX file. Args: file_path.merge_hwp_cells_horizontalMerge horizontal cells in a row of a table by setting colSpan on the first cell and removing the absorbed cells. Args: file_path, table_index, row, col_start, col_count (>=2), output_path (optional).merge_hwp_cells_verticalMerge vertical cells across rows in a single column by setting rowSpan on the first cell and removing absorbed cells in following rows. Args: file_path, table_index, col, row_start, row_count (>=2), output_path (optional).read_hwpRead full HWP/HWPX document content as text + tables (markdown) + image listing. Args: file_path (absolute path).read_hwp_tablesExtract every table from an HWP/HWPX file as GitHub-flavored markdown. Args: file_path.read_hwp_textExtract plain body text from an HWP/HWPX file (no tables, no images). Args: file_path.render_hwp_all_pagesRender every page of an HWP/HWPX as SVG files in a directory. Args: file_path, output_dir (default <file>_pages/), max_pages (optional limit).render_hwp_equation_svgRender an OWPML equation script (e.g. 'TIMES LEFT ( {a} over {b} RIGHT )') to SVG. Args: script, font_size (HWP units, default 1300), color (default 0).render_hwp_htmlRender a single page of an HWP/HWPX as HTML. Useful for AI consumption when SVG isn't ideal. Args: file_path, page (0-based, default 0), output_path (optional).render_hwp_pageRender a single page of an HWP/HWPX document as SVG. If output_path is omitted, the raw SVG string is returned inline (useful for direct LLM consumption). Args: file_path, page (0-based, default 0), output_path (optional).replace_hwp_imageReplace an embedded image inside an .hwpx by overwriting its BinData/ ZIP entry with new file contents. `target` accepts either basename ('image1.bmp') or full entry path ('BinData/image1.bmp'). Args: file_path, target, source_path, output_path (optional).replace_hwp_textFind and replace text in an HWPX file. v0.2: only .hwpx is supported as input/output. Args: file_path, old_text, new_text, output_path (optional).set_hwp_cell_textReplace a single cell's text in a table inside an .hwpx. Args: file_path, table_index, row, col (all 0-based), text, output_path (optional).set_hwp_field_valueSet a Hancom field's value by name in an .hwpx (writes the new text between the matching `<hp:fldBegin name=...>` and `<hp:fldEnd>`). Use list_hwp_fields first to discover names. Args: file_path, name, value, output_path (optional).set_hwp_paragraph_textReplace the entire text of the Nth paragraph (0-based) in an .hwpx body with new text. The paragraph attributes (paraPr/style refs) are preserved; runs are collapsed into a single <hp:run> with the new text. Args: file_path, index, text, output_path (optional).Security checks
- ✓README presentThe repository's README runs to about 2.4K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedA lockfile pins dependency versions.
- ✓No dynamic code executionScanned 14 source files and found no eval, dynamic Function or shell execution.
1 check has not been run yet.
Releases
README
The repository's README runs to about 2.4K words, fetched a month ago. The original in the repository is authoritative.
Read full README