Python Hwpx Automation logo

Python Hwpx Automation

Automates local HWPX reading, editing, form filling, validation, previewing, and document generation through MCP.

Install Python Hwpx Automation

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "python-hwpx-automation": {
      "command": "uvx",
      "args": [
        "python-hwpx-automation"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

uvx python-hwpx-automation

Process exited before answering initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

python-hwpx-automation MCP server exposes Python-based HWPX document automation to MCP clients through the `hwpx-automation-mcp` command. It can inspect local documents, apply targeted edits, fill tables and forms, generate documents, render previews, extract Markdown, and validate or repair files. Install the optional `[mcp]` extra when you need the MCP adapter, and set workspace roots so the client can access approved folders. Reach for it when an agent needs to work with Korean HWPX files without Hancom Office or Windows; PDF rendering through Hancom is a separate capability.

Use cases

  • Inspect HWPX outlines, tables, text, and matches
  • Fill forms and verify the resulting document
  • Create HWPX documents from structured plans or Markdown
  • Apply targeted edits and preserve backups
  • Render documents to PDF and page images with Hancom Office

Key features

  • Local HWPX inspection and editing through MCP
  • Declarative document creation and mail merge
  • Form filling, table calculations, and tracked edits
  • Preview rendering, Markdown extraction, validation, and repair
  • Workspace-root restrictions and save-time integrity checks
  • Minimal tool profile for smaller local models

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

4/4 checks healthy over the last 10d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 10d ago via OSV.dev · python-hwpx-automation (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars70Stargazers on the source repository.
Last commit1d agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.

How Python Hwpx Automation works

What python-hwpx-automation does

python-hwpx-automation adds an automation layer on top of the python-hwpx engine for working with HWPX documents. Its MCP adapter lets an AI agent inspect, create, modify, preview, validate, and repair files in approved local workspaces. The package can also be used directly from Python or through the hwpx command-line interface without MCP.

Document workflows include outline and text inspection, text search and replacement, table and form operations, declarative document creation, tracked edits, paragraph and page formatting, image insertion, mail merge, and Markdown conversion. Additional generators cover items such as photo sheets, nameplates, and organization charts. An optional ingestion extra adds support for reading PDF, DOCX, XLSX, HTML, and TXT through a MarkItDown adapter.

How it works

Install the MCP extra and start hwpx-automation-mcp as a standard local MCP process. The client passes tool calls to the Python automation layer, which operates on files inside configured workspace roots. Reading tools do not save documents; editing tools save when called. A safer workflow is to copy a document first, make the smallest required change, read it again, and validate the result.

The package uses structured operations rather than asking models to edit raw HWPX XML. Normal saves pass through a single save pipeline that checks document integrity, XML, package identifiers, and open safety. Capability checks can reject mismatched core, automation, and plugin versions. A minimal profile exposes six focused tools for smaller local models: read_outline, apply_text_changes, replace_text, stage_text, create_from_markdown, and validate_document.

Setup and configuration

Use Python 3.10 or newer, then install the adapter:

Terminal
pip install "python-hwpx-automation[mcp]"
hwpx-automation-mcp

Configure the MCP client to launch the command, or use uvx with the package’s mcp extra. Set HWPX_AUTOMATION_WORKSPACE_ROOTS to a JSON array of allowed absolute directories, such as ["~/Documents"]. Windows paths must be escaped as JSON. If the variable is empty, the process working directory is used, which can prevent GUI clients from reaching documents.

Useful settings include HWPX_AUTOMATION_PROFILE=minimal, HWPX_AUTOMATION_ADVANCED=1, HWPX_AUTOMATION_MAX_CHARS for response limits, HWPX_AUTOMATION_AUTOBACKUP for pre-save backups, and HWPX_AUTOMATION_QUALITY for the default save policy. The ingest extra is needed for non-HWPX document input.

Tools and capabilities

The default tool set includes:

  • Inspecting document information, maps, outlines, tables, text, and matches.
  • Searching and replacing text, applying command batches, and recording tracked edits.
  • Analyzing, applying, and verifying form fills, plus computing table totals and subtotals.
  • Creating documents from plans, merging data into templates, and checking official-document style.
  • Changing paragraph and page settings and inserting pictures.
  • Rendering HTML or PNG previews, converting HWPX to Markdown, repairing files, and checking server health.

Advanced mode adds inspection and validation tools. The separate render-pdf command can create a PDF and page PNGs through Hancom Office on macOS or Windows.

Limitations and notes

Workspace traversal outside approved roots and symlink escapes are rejected. URL inputs are restricted to HTTPS and public IP addresses by default; private or loopback HTTPS targets require an explicit setting, while link-local, metadata, and reserved addresses remain blocked.

Editing calls save immediately, so review work should happen on a copied document. The PDF renderer requires Hancom Office and a supported host platform, unlike the regular HWPX automation features. Long text can be staged in smaller pieces with stage_text and referenced by draft_id when using the minimal profile.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Python Hwpx Automation

python-hwpx-automation is an MCP server that connects AI agents to local HWPX documents through the python-hwpx engine. Its main tools inspect document structure and text, edit and fill forms, create documents, render previews, extract Markdown, validate files, and repair HWPX documents within configured workspaces.

Install the MCP extra with `pip install "python-hwpx-automation[mcp]"`, then run `hwpx-automation-mcp`. You can also configure an MCP client to launch the command through `uvx`. Python 3.10 or newer is required.

Set `HWPX_AUTOMATION_WORKSPACE_ROOTS` to a JSON array containing the allowed document directories, such as `["~/Documents"]`. Absolute paths and `~` are supported; Windows paths must use JSON escaping. Files outside the configured roots are rejected.

Yes. Cursor can run it from its MCP settings file as a standard local server. Configure the server command or use `uvx` with the package’s `[mcp]` extra, and set `HWPX_AUTOMATION_WORKSPACE_ROOTS` so the process can reach the intended folders.

Yes, but PDF rendering uses the separate `render-pdf` command and requires Hancom Office on macOS or Windows. It can produce a PDF and page PNGs; the regular MCP automation features do not require Hancom Office or Windows.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewPython Hwpx Automation AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/python-hwpx-automation?style=directory)](https://allmcps.com/mcp/python-hwpx-automation)
HTML Embed
<a href="https://allmcps.com/mcp/python-hwpx-automation"><img src="https://allmcps.com/api/badge/python-hwpx-automation?style=directory" alt="Python Hwpx Automation on AllMCPs" /></a>