Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hwp_mcp-0.1.0.tar.gz (29.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hwp_mcp-0.1.0-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

Details for the file hwp_mcp-0.1.0.tar.gz.

File metadata

  • Download URL: hwp_mcp-0.1.0.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

Hashes for hwp_mcp-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6bea415edbf2a97e8531f1c4bc63a1e784dbc0e93f977db535d6e14c1a6cbca5
MD5 daef5e2c2e208dfbbb4b0dca9a974b55
BLAKE2b-256 5978b14f306a957ae0760bdbc3b293d637eda9bcc7ab1add2e15911140f85a21

See more details on using hashes here.

File details

Details for the file hwp_mcp-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: hwp_mcp-0.1.0-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

Hashes for hwp_mcp-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4a44ff2529770df986310eb9e271cbddd68158c01b541d5c2933ff599a34812e
MD5 0593e51ccd8ad341afb10d6438cfe4a1
BLAKE2b-256 29cd082b39083ddd49a3e15aea50163f28b18dfe2b0399ff42a3aa556ccc450f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page