jun-skills-hwpx-v2
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@jun-skills-hwpx-v2 Turn 'meeting.md' into a HWPX document."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
jun-skills-hwpx-v2
Unified HWPX (Hangul Word Processor) MCP Server
Markdown 문서를 HWPX로 변환하거나, 기존 HWPX 템플릿을 분석하여 서식을 유지하면서 새로운 내용으로 문서를 생성하는 통합 MCP 서버입니다.
Copyright (c) 2026 이창준, (주)파워솔루션 | MIT License
두 가지 워크플로우
1. Markdown → HWPX (템플릿 불필요)
Markdown 파일을 바로 HWPX 문서로 변환합니다. 표지, 머리글/바닥글, 자동 번호 매기기를 지원합니다.
"report.md를 한글 문서로 변환해줘"사용 도구: convert_md_to_hwpx
2. HWPX 템플릿 → HWPX (서식 유지)
기존 HWPX 문서의 서식(글꼴, 여백, 스타일)을 그대로 유지하면서 내용만 교체합니다. 공문, 보고서, 회의록 등 정해진 양식이 있을 때 사용합니다.
"이 공문 양식에 맞춰서 새 문서를 만들어줘"사용 도구: analyze_hwpx → extract_hwpx_xml → build_hwpx → validate_hwpx → page_guard_hwpx
Related MCP server: doc-ops-mcp
설치
자동 설치 (권장)
macOS / Linux:
curl -LsSf https://raw.githubusercontent.com/cjLee-cmd/jun-skills-hwpx-v2/main/install.sh | bashWindows (PowerShell):
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/cjLee-cmd/jun-skills-hwpx-v2/main/install.bat" -OutFile "$env:TEMP\install.bat"; & "$env:TEMP\install.bat"설치 스크립트가 자동으로 수행하는 작업:
uv설치 (없는 경우)소스 다운로드 (
~/jun-skills-hwpx-v2)의존성 설치 (
uv sync)MCP 서버 자동 등록:
Claude Code (
~/.claude.json)Claude Desktop (
claude_desktop_config.json)Gemini CLI (
~/.gemini/settings.json)
수동 설치
git clone https://github.com/cjLee-cmd/jun-skills-hwpx-v2.git ~/jun-skills-hwpx-v2
cd ~/jun-skills-hwpx-v2
uv syncMCP 설정 파일에 다음을 추가:
{
"mcpServers": {
"hwpx": {
"command": "uv",
"args": ["run", "--directory", "/path/to/jun-skills-hwpx-v2", "python", "scripts/mcp_server.py"]
}
}
}클라이언트 | 설정 파일 경로 |
Claude Code |
|
Claude Desktop (macOS) |
|
Claude Desktop (Windows) |
|
Gemini CLI |
|
MCP 도구 목록
도구 | 설명 |
| Markdown → HWPX 변환 (표, 코드블록, 리스트, 인용문, 표지, 머리글/바닥글 지원) |
| HWPX 문서 구조 분석 (글꼴, 스타일, 레이아웃 추출) |
| HWPX에서 header.xml / section0.xml 추출 |
| 템플릿 + XML → HWPX 조립 |
| HWPX 구조 무결성 검증 |
| 레퍼런스 대비 페이지 수 드리프트 검사 |
| HWPX에서 텍스트 추출 |
CLI 직접 실행
cd ~/jun-skills-hwpx-v2
# Markdown → HWPX
uv run python scripts/md2hwpx.py input.md output.hwpx --title "보고서 제목"
# HWPX 분석
uv run python scripts/analyze_template.py template.hwpx사용 예시
Claude / Gemini에서 사용
# Markdown → HWPX (템플릿 없이)
"이 마크다운 파일을 한글 문서로 변환해줘"
"report.md를 HWPX로 만들어줘. 제목은 '월간 보고서'"
# HWPX 템플릿 기반
"이 한글 문서를 분석해줘" (analyze_hwpx)
"이 양식에 맞춰 새 문서를 만들어줘" (전체 워크플로우)
"공문 양식으로 문서를 작성해줘" (내장 템플릿 사용)내장 템플릿
templates/ 폴더에 다음 양식이 포함되어 있습니다:
템플릿 | 설명 |
| 기본 스켈레톤 |
| 공문 |
| 보고서 |
| 회의록 |
| 제안서 |
요구 사항
Python 3.10+
uv (설치 스크립트가 자동 설치)
git
라이선스
MIT License - 자유롭게 사용, 수정, 배포할 수 있습니다.
Available Tools
7 toolsanalyze_hwpxA
Analyze an existing HWPX file and return its full structure.
Outputs font definitions, border/fill styles, character styles (charPr), paragraph styles (paraPr), page/margin settings, and the complete body structure including all paragraphs and tables with cell details.
Use this as the first step when the user provides a reference HWPX file for replication or editing.
Inputs: hwpx_path (required). Returns: result
build_hwpxA
Build an HWPX file from a template and optional XML overrides.
Workflow:
Start from the base template skeleton.
Optionally overlay a document-type template (gonmun/report/minutes).
Optionally override header.xml (styles) and/or section0.xml (body).
Pack as a valid HWPX archive and validate.
When a user provides a reference HWPX, first call analyze_hwpx() and extract_hwpx_xml() to get the header/section XML, then write a new section0.xml with only the required text changes, and pass it here.
Inputs: output_hwpx (required), title, creator, template, +2 more. Returns: result
convert_md_to_hwpxA
Convert a Markdown file to HWPX format.
Use this when the user wants to create an HWPX document from a Markdown file WITHOUT providing a reference HWPX template. Generates a complete document with cover page, page headers/footers, heading auto-numbering, native tables, code blocks, lists, and blockquotes.
Inputs: input_md (required), output_hwpx (required), title, author, +1 more. Returns: result
extract_hwpx_xmlA
Extract header.xml and section0.xml from an HWPX file.
Use this to get the raw XML from a reference HWPX so you can:
Read the exact charPrIDRef/paraPrIDRef/borderFillIDRef values in use
Copy the header.xml for reuse in build_hwpx()
Edit section0.xml text nodes and pass the modified file to build_hwpx()
Inputs: hwpx_path (required), extract_dir. Returns: result
extract_text_hwpxB
Extract plain text content from an HWPX file.
Inputs: hwpx_path (required), fmt, include_tables. Returns: result
page_guard_hwpxA
Check that output HWPX has not drifted in page count vs a reference.
Best for SAME-STRUCTURE edits (filling values into a form, replacing text in-place without adding/removing paragraphs or tables). When sections are added, removed, or restructured, expected differences will be reported as failures — in that case use validate_hwpx for integrity checks instead.
Compares paragraph count, table count, table dimensions, explicit page/column breaks, and overall text length between reference and output.
Inputs: output_hwpx (required), reference_hwpx (required), max_text_delta, max_paragraph_delta. Returns: result
validate_hwpxA
Validate the structural integrity of an HWPX file.
Checks: valid ZIP, required files, mimetype content/position/compression, and XML well-formedness.
Inputs: hwpx_path (required). Returns: result
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 7 tools
Each tool targets a distinct operation: validation, conversion from Markdown, structure analysis, template-based building, raw XML extraction, page-count verification, and plain text extraction. No two tools have overlapping purposes, and the descriptions clearly differentiate them.
Most tools follow a verb_hwpx pattern (validate_hwpx, analyze_hwpx, build_hwpx), but convert_md_to_hwpx and extract_hwpx_xml deviate. The extract_hwpx_xml and extract_text_hwpx tools especially have inconsistent ordering of source/object (hwpx before xml vs. after text). While all names start with a verb, the overall pattern is not uniform.
With 7 tools covering creation, analysis, extraction, validation, and page-count verification, the count is well-scoped for an HWPX manipulation server. Each tool earns its place without redundancy or bloat.
The tool set provides full lifecycle coverage: create (convert_md_to_hwpx, build_hwpx), read/analyze (analyze_hwpx, extract_hwpx_xml, extract_text_hwpx), and verify (validate_hwpx, page_guard_hwpx). Editing is achievable via the build_hwpx workflow with extracted XML, leaving no obvious gaps.
Maintenance
Related MCP Connectors
Document-to-Markdown MCP server — convert PDF, Office and HTML into LLM-ready Markdown.
Document conversion MCP server: PDF to Markdown, image OCR, spreadsheet parsing.
Generate PDF, Word (.docx) and PowerPoint (.pptx) documents from Markdown over MCP.
Document to Markdown MCP server: PDF, Word, PowerPoint, Excel and HTML, with OCR for large files.
Related MCP Servers
- AlicenseAqualityCmaintenanceMCP server for seamless document format conversion using Pandoc, supporting Markdown, HTML, PDF, DOCX (.docx), csv and more.1587MIT
- AlicenseBqualityDmaintenanceA universal MCP server for document processing, conversion, and automation. Handle PDF, DOCX, HTML, Markdown, and more through a unified API and toolset.1318 npm140MIT
- FlicenseAqualityDmaintenanceAn MCP server that enables LLMs to convert HWP and HWPX documents into Markdown for analysis and processing. It supports document conversion via local file paths or Base64 content across various MCP-compatible clients.2-
- MIT