hwpx-mcp-server
[!NOTE] 公開トレイン:
python-hwpx 6.2.1 → python-hwpx-automation 7.0.2 → hwpx-plugin 2.0.1(automation 7.0.2 · plugin 2.0.1 released 2026-08-16, Windows 保存修復パッチトレイン — 保存修復 #98・アップロードパス案内 #75、core と契約34a91560759dc47a不変)。 公開座標はリモートの真実(core・automation PyPI と plugin GitHub Release・marketplace・実際の marketplace インストール)を観測した後にのみ 昇格されます — リリース runbook
python-hwpx エンジンの上で文書作成・
フォーム入力・試験問題レイアウト・安全なエージェントワークフローを提供するアプリケーションレイヤーです。
基本インストールは MCP なしで Python API と hwpx CLI で使い、
モデルコンテキストプロトコル(MCP) サーバーは必要なときに
[mcp] extra で追加します。ハングルオフィスも Windows も不要なので、Python が動く
ChatGPT チャット内でもそのまま動作します。
リポジトリ | 役割 | |
📦 | HWPX 文書を読み・修正し・作成する純粋 Python エンジン | |
🔌 | 作成・フォーム入力ワークフロー、 | |
🎯 | エージェントが適切なツールを選ぶのを助けるプラグイン/スキルバンドル |
Python 自動化を始める
pip install python-hwpx-automationfrom hwpx_automation import create_document_from_plan
document = create_document_from_plan(
{
"schemaVersion": "hwpx.document_plan.v1",
"title": "회의 결과",
"blocks": [{"type": "paragraph", "text": "결정 사항"}],
}
)
document.save_to_path("meeting-result.hwpx")python -m hwpx_automation --help と hwpx help は同じ task CLI を実行します。
Related MCP server: hwpx-mcp-server
MCP アダプターを始める
pip install "python-hwpx-automation[mcp]"
hwpx-automation-mcpMCP クライアント設定ファイルに以下のブロック 1 つで hwpx サーバーを掴みます — Claude Desktop は
claude_desktop_config.json、VS Code は .vscode/mcp.json(キーが mcpServers の代わりに servers)、
Gemini CLI は ~/.gemini/settings.json、Cursor・Windsurf は各エディターの MCP 設定ファイルです。
{
"mcpServers": {
"hwpx": {
"command": "uvx",
"args": [
"--from",
"python-hwpx-automation[mcp]==7.0.2",
"hwpx-automation-mcp"
],
"env": {
"HWPX_AUTOMATION_WORKSPACE_ROOTS": "[\"~/Documents\"]"
}
}
}
}HWPX_AUTOMATION_WORKSPACE_ROOTS には文書があるフォルダー(絶対パスまたは ~)を
指定してください。Windows は "[\"C:\\\\hwpx\"]" のように書きます。値を空にすると GUI
クライアントはサーバーをシステムディレクトリーから起動するため、すべての文書パスが
ブロックされます — 最初から指定することを推奨します。残りのオプションは
環境変数 の表を参照してください。
非 HWPX 文書(PDF/DOCX/XLSX/HTML/TXT)を
document_to_markdownで読むにはpip install "python-hwpx-automation[ingest]"で MarkItDown adapter を一緒に インストールします。要件:Python >= 3.10·python-hwpx >= 5.0.0。
既存の hwpx-mcp-server 配布・import・コンソール・設定キーも 6.x の間そのまま動作します —
全リストと維持ルール: 6.x 互換サーフェス
何をするか
基本モードで多数の HWPX ツールを提供し、高度モード(HWPX_AUTOMATION_ADVANCED=1)で点検・検証用ツールが追加されます。
読み取り・探索 —
get_document_info、get_document_map(アウトライン・表マップ・アンカーを 1 回の呼び出しで)、find_text(保存しない)検索・置換・編集 —
search_and_replace、apply_document_commands(異種編集の原子的適用・dry-run・ロールバック・冪等キー)、add_tracked_edit(変更履歴)表・フォーム入力 —
analyze_form_fill→apply_form_fill→verify_form_fillバイト保存トランザクション、table_compute(合計・小計)文書生成・公文書 — 宣言型
create_document_from_plan、inspect_official_document_style(行政規定 lint)、mail_merge書式・画像・ジェネレーター —
set_paragraph_format・set_page_setup、insert_picture、写真台紙・名札・組織図プレビュー・抽出・復旧・診断 —
render_preview(HTML/PNG 自己検証)、hwpx_to_markdown、repair_hwpx、mcp_server_health
詳細: ユースケース · スキル優先ワークフロー
安全に使う方法
最初からすべてのツールを覚える必要はありません。通常は次のように流れます。
読み取り —
get_document_info→get_document_outline/get_document_text→find_text、get_table_mapで必要な部分だけ把握します。(保存しない)安全な修正 —
copy_documentでコピーを作成し、最小の変更(search_and_replace、set_table_cell_text、apply_document_commands)を適用した後、再度読み取って確認し、レビューが終わったコピーを渡します。
核心は copy first · smallest edit · re-read after edits です。修正ツールは 呼び出し直後に保存されるため、レビュー用の作業は必ずコピーで行ってください。
モデルは operation/plan のみを送り、raw XML を直接編集しません。通常の保存
パスは python-hwpx の単一 SavePipeline ゲートを通過して整合性・XML・OPC/ID・
開封安全性を検査し、ゲートが失敗したら何も書き込みません。capability
handshake は core/automation/plugin バージョン+ハッシュ skew を fail-closed で遮断します。
セキュリティ詳細: ハードニングガイド · 旧名との互換
識別子: 6.x 互換サーフェス
位置契約 —
paragraph_indexは本文直下の段落の 0-based インデックスです。表内の段落はここに混ぜず、{"kind":"table_cell_paragraph","table_index":0,"row":0,"col":1,"cell_paragraph_index":0}のようなlocationオブジェクトで指定し、get_table_map/find_textが返した値をそのまま渡せます。
環境変数
変数 | 説明 | デフォルト値 |
| 許可する workspace 絶対パスの JSON 配列(複数 root 対応)。相対パスは最初の root 基準 | unset → プロセス cwd。degenerate cwd は |
| テキスト返却ツールの基本最大長 |
|
|
|
|
|
|
|
| URL ベース HWPX fetch timeout |
|
|
|
|
| グローバル基本保存ゲートポリシー( |
|
|
|
|
| durable workflow SQLite パス。既存の | 既存 6.x 状態パス |
| ログレベル |
|
同一 suffix の既存 HWPX_MCP_* キーは 6.x の間 fallback として維持され、両キーが
一緒にある場合は HWPX_AUTOMATION_* が優先します。render・workflow・oracle・plugin
連携用の保存キー全リストと workflow DB パスルールは
6.x 互換サーフェス にあります。
パスは基本的に workspace 外 traversal と symlink escape を拒否し、URL 入力は HTTPS・公開 IP のみ 許可します。原子 rename を提供しないホストの並行性注意事項は ハードニングガイド を参照してください。
コントリビューション
good first issue · マイルストーン · Discussions · CONTRIBUTING · CHANGELOG
python -m pip install -e ".[test]" # 테스트 의존성
python -m pytest -q # 전체 테스트
python scripts/run_conformance.py run \
--tier structural --check tests/conformance/golden/structural.json謝辞
コアライブラリ python-hwpx の上で動作し、以下の公開標準・プロジェクトに恩恵を受けています。
OWPML — オープンワードプロセッサマークアップ言語 (KS X 6101) — HWPX が基盤とする韓国産業標準
hancom-io/hwpx-owpml-model — OWPML 要素構造参照モデル · neolord0/hwpxlib — オラクルサンプルコーパス
edwardkim/rhwp — 冪等性・検証ゲート設計のインスピレーション
License · Maintainer
Apache-2.0 (LICENSE · NOTICE) — Kohkyuhyun @airmang · kokyuhyun@hotmail.com
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections. Dates show when Glama detected each change.
No tool schema history has been recorded yet.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Connectors
An agent-first office suite Claude & ChatGPT read and write over one MCP URL.
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Document-to-Markdown MCP server — convert PDF, Office and HTML into LLM-ready Markdown.
- mcpweaveOAuthcom.mcpweave
Korea-native MCP gateway: Korean commerce, payments, messaging, gov & finance APIs for AI agents.
Related MCP Servers
- -licenseAqualityNot gradedmaintenanceEnables reading, editing, and creating Korean HWPX documents through python-hwpx library. Supports document creation, paragraph/table/image insertion, metadata management, and workspace-restricted file operations with automatic backup functionality.8-
- AlicenseNot gradedqualityDmaintenanceAn MCP server for reading, editing, and creating Hangul Word Processor (.hwpx) files. It enables users to extract text, perform find-and-replace operations, and modify font styles through automated XML patching.30MIT
- AlicenseAqualityAmaintenanceAn MCP server for reading, writing, and managing Korean Hangul Word Processor (HWP/HWPX) files. It allows users to extract content, fill templates, and create new documents directly through AI assistants.3424880MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to control Hancom's HWP/HWPX documents (Korean word processor) via COM interface on Windows, supporting creation, editing, formatting, and export.MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/airmang/python-hwpx-automation'
If you have feedback or need assistance with the MCP directory API, please join our Discord server