Hwpx MCP Server

Local setup required. This server has to be cloned and prepared on your machine before you register it in Claude Code.
1

Set the server up locally

Run this once to clone and prepare the server before adding it to Claude Code.

Run in terminal
npm install
npm run build
2

Register it in Claude Code

After the local setup is done, run this command to point Claude Code at the built server.

Run in terminal
claude mcp add hwpx-mcp-server -- node "<FULL_PATH_TO_HWPX_MCP_SERVER>/dist/index.js"

Replace <FULL_PATH_TO_HWPX_MCP_SERVER>/dist/index.js with the actual folder you prepared in step 1.

README.md

MCP server for reading and editing .hwpx (Hangul Word Processor) files.

hwpx-mcp-server

MCP server for reading and editing .hwpx (Hangul Word Processor) files.

Features

Tool Description
hwpx_read_text Extract all text from a .hwpx file
hwpx_edit_text Find and replace text
hwpx_set_style Change font/size/bold/italic/underline
hwpx_create Create a new .hwpx file

Installation

npm install
npm run build

Usage with gemini-cli

Add to your ~/.gemini/settings.json:

{
  "mcpServers": {
    "hwpx": {
      "command": "node",
      "args": ["/absolute/path/to/hwpx-mcp-server/dist/index.js"]
    }
  }
}

Development

npm run dev   # watch mode
npm run build # compile TypeScript
npm start     # run server

HWPX Structure

HWPX is a ZIP-based XML format:

doc.hwpx (ZIP)
├── mimetype               # must be first, uncompressed
├── META-INF/container.xml
└── Contents/
    ├── content.hpf        # manifest
    └── section0.xml       # body text (hp:t tags)

Notes

  • HWPX only (not legacy binary .hwp)
  • Style editing uses regex-based XML patching — open in 한글 to verify layout
  • mimetype entry must remain uncompressed (ZIP store method)

Tools (4)

hwpx_read_textExtract all text from a .hwpx file
hwpx_edit_textFind and replace text within a .hwpx file
hwpx_set_styleChange font, size, bold, italic, or underline styles
hwpx_createCreate a new .hwpx file

Configuration

claude_desktop_config.json
{"mcpServers": {"hwpx": {"command": "node", "args": ["/absolute/path/to/hwpx-mcp-server/dist/index.js"]}}}

Try it

Extract all the text from the document located at /documents/report.hwpx.
Find all occurrences of 'Draft' in /documents/proposal.hwpx and replace them with 'Final'.
Change the font style to bold for the document at /documents/memo.hwpx.
Create a new HWPX file named 'summary.hwpx' with the content 'Meeting Minutes'.

Frequently Asked Questions

What are the key features of Hwpx MCP Server?

Extract text content from .hwpx files. Perform find-and-replace operations on document text. Modify font styles including bold, italic, and underline. Create new .hwpx documents programmatically.

What can I use Hwpx MCP Server for?

Automating text updates in Hangul Word Processor documents. Batch processing document styles across multiple .hwpx files. Extracting data from HWPX archives for analysis. Programmatically generating standardized document templates.

How do I install Hwpx MCP Server?

Install Hwpx MCP Server by running: npm install && npm run build

What MCP clients work with Hwpx MCP Server?

Hwpx MCP Server works with any MCP-compatible client including Claude Desktop, Claude Code, Cursor, and other editors with MCP support.

Turn this server into reusable context

Keep Hwpx MCP Server docs, env vars, and workflow notes in Conare so your agent carries them across sessions.

Need the old visual installer? Open Conare IDE.
Open Conare