MCP server for reading and writing HWP/HWPX Korean word processor files. Extracts text, tables, and images from Hangul documents.
Project description
hangul-mcp
MCP server for reading and writing HWP/HWPX (Korean Hangul word processor) files.
Works with Claude Code, Claude Desktop, VS Code Copilot, Cursor, ChatGPT, and any MCP-compatible client.
Install
# Claude Code
claude mcp add hangul -- uvx hangul-mcp
# Claude Desktop / Other clients (settings JSON)
{
"mcpServers": {
"hangul": {
"command": "uvx",
"args": ["hangul-mcp"]
}
}
}
Tools
Read
| Tool | Description |
|---|---|
read_hwp |
Read full document (text + tables + images) |
read_hwp_text |
Extract text only |
read_hwp_tables |
Extract tables as markdown |
list_hwp_images |
List embedded images |
extract_hwp_images |
Save images to disk |
Write
| Tool | Description |
|---|---|
fill_hwp_template |
Fill template placeholders (e.g. {{name}} -> John) |
replace_hwp_text |
Find and replace text |
create_hwpx_document |
Create new HWPX document with text and tables |
Examples
Read an HWP file
> Read /path/to/document.hwp
# document.hwp
Format: .HWP | Paragraphs: 23 | Tables: 2 | Images: 1
| Name | Position | Company |
| --- | --- | --- |
| Kim | CTO | Acme |
...
Fill a template
> Fill template /path/to/form.hwp with {"{{name}}": "Kim", "{{company}}": "Acme"}
Saved: form_filled.hwp
Total 2 replacements
'{{name}}' -> 1
'{{company}}' -> 1
Create a new document
> Create HWPX with text "Employee Info" and a table [["Name", "Role"], ["Kim", "CTO"]]
HWPX document created: employee.hwpx
Supported Formats
| Format | Read | Write |
|---|---|---|
| HWP (v5.0) | Text, tables, images | Text replacement |
| HWPX (OWPML) | Text, tables, images | Text replacement, create new |
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hwp_mcp-0.1.1.tar.gz.
File metadata
- Download URL: hwp_mcp-0.1.1.tar.gz
- Upload date:
- Size: 29.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6420d4101bb6f28c6e9eaf1c651109291ed6b435d0d713dce278adb25a1dc96
|
|
| MD5 |
31ed12546d555b341876adc8e482c41d
|
|
| BLAKE2b-256 |
19023caeb7309f2ad36524aefca9d020ce47177e369a9a1b77649e0a1935f159
|
File details
Details for the file hwp_mcp-0.1.1-py3-none-any.whl.
File metadata
- Download URL: hwp_mcp-0.1.1-py3-none-any.whl
- Upload date:
- Size: 20.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5f8187dd687b724762d6eee4a14e65507f56d7e149a7968fe135cacb43d50246
|
|
| MD5 |
4ac44248c2d270e67fa53aa0ee9027dc
|
|
| BLAKE2b-256 |
ec903bc8768604df53ec86b7562ddac8b2825481da01b28e8b19bb86268a7355
|