hwpx-mcp-server
[!NOTE] Öffentlicher Zug:
python-hwpx 6.2.1 → python-hwpx-automation 7.0.2 → hwpx-plugin 2.0.1(automation 7.0.2 · plugin 2.0.1 veröffentlicht am 2026-08-16, Windows-Speicher-Reparatur-Patch-Zug — Speicher-Reparatur #98·Upload-Pfad-Hinweis #75, core und Vertrag34a91560759dc47aunverändert). Öffentliche Koordinaten werden erst nach Beobachtung der entfernten Wahrheit (core·automation PyPI und plugin GitHub Release·marketplace·tatsächliche marketplace-Installation) hochgestuft — Release-Runbook
Eine Anwendungsschicht auf Basis der python-hwpx-Engine für Dokumenterstellung,
Formularausfüllung, Prüfungsbogen-Satz und sichere Agenten-Workflows.
Die Basisinstallation funktioniert ohne MCP über die Python-API und die hwpx-CLI;
der Model Context Protocol (MCP)-Server wird bei Bedarf
über das [mcp]-Extra hinzugefügt. Weder Hancom Office noch Windows sind erforderlich, sodass es
auch direkt in einem ChatGPT-Chat mit Python funktioniert.
Repository | Rolle | |
📦 | Reine-Python-Engine zum Lesen, Bearbeiten und Erstellen von HWPX-Dokumenten | |
🔌 | Erstellungs- und Formularausfüll-Workflows, | |
🎯 | Plugin-/Skill-Bündel, das Agenten hilft, die passenden Werkzeuge auszuwählen |
Erste Schritte mit der Python-Automatisierung
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 und hwpx help führen dieselbe Task-CLI aus.
Related MCP server: hwpx-mcp-server
Erste Schritte mit dem MCP-Adapter
pip install "python-hwpx-automation[mcp]"
hwpx-automation-mcpEin einziger Block in der MCP-Client-Konfigurationsdatei genügt, um den hwpx-Server zu erfassen — bei Claude Desktop ist es
claude_desktop_config.json, bei VS Code .vscode/mcp.json (Schlüssel servers statt mcpServers),
bei Gemini CLI ~/.gemini/settings.json, bei Cursor·Windsurf die jeweilige MCP-Konfigurationsdatei des Editors.
{
"mcpServers": {
"hwpx": {
"command": "uvx",
"args": [
"--from",
"python-hwpx-automation[mcp]==7.0.2",
"hwpx-automation-mcp"
],
"env": {
"HWPX_AUTOMATION_WORKSPACE_ROOTS": "[\"~/Documents\"]"
}
}
}
}Geben Sie in HWPX_AUTOMATION_WORKSPACE_ROOTS den Ordner mit den Dokumenten an (absoluter Pfad oder ~).
Unter Windows schreiben Sie es wie "[\"C:\\\\hwpx\"]". Wenn der Wert leer bleibt, startet der GUI-Client den Server im Systemverzeichnis, wodurch alle Dokumentpfade blockiert sind — es wird empfohlen, ihn von Anfang an anzugeben. Die übrigen Optionen finden Sie in der Tabelle Umgebungsvariablen.
Um Nicht-HWPX-Dokumente (PDF/DOCX/XLSX/HTML/TXT) mit
document_to_markdownzu lesen, installieren Sie den MarkItDown-Adapter mitpip install "python-hwpx-automation[ingest]"mit. Anforderungen:Python >= 3.10·python-hwpx >= 5.0.0.
Bestehende hwpx-mcp-server-Distributionen, Imports, Konsolen und Konfigurationsschlüssel funktionieren während 6.x weiterhin unverändert —
vollständige Liste und Wartungsregeln: 6.x-Kompatibilitätsoberfläche
Was es tut
Im Basismodus werden zahlreiche HWPX-Werkzeuge bereitgestellt; im erweiterten Modus (HWPX_AUTOMATION_ADVANCED=1) kommen Werkzeuge für Prüfung und Validierung hinzu.
Lesen·Navigieren —
get_document_info,get_document_map(Gliederung·Tabellenkarte·Anker in einem Aufruf),find_text(speichert nicht)Suchen·Ersetzen·Bearbeiten —
search_and_replace,apply_document_commands(atomare Anwendung heterogener Bearbeitungen·Dry-Run·Rollback·Idempotenzschlüssel),add_tracked_edit(Änderungsverfolgung)Tabellen·Formularausfüllen —
analyze_form_fill→apply_form_fill→verify_form_fillbyte-erhaltende Transaktion,table_compute(Summen·Zwischensummen)Dokumenterstellung·Amtsschreiben — deklaratives
create_document_from_plan,inspect_official_document_style(Verwaltungsvorschriften-Lint),mail_mergeFormatierung·Bilder·Generatoren —
set_paragraph_format·set_page_setup,insert_picture, Fototafel·Namensschild·OrganigrammVorschau·Extraktion·Reparatur·Diagnose —
render_preview(HTML/PNG-Selbstvalidierung),hwpx_to_markdown,repair_hwpx,mcp_server_health
Weitere Details: Anwendungsfälle · Skill-first-Workflows
Sichere Verwendung
Sie müssen nicht von Anfang an alle Werkzeuge auswendig lernen. Normalerweise läuft es so ab:
Lesen —
get_document_info→get_document_outline/get_document_text→find_text,get_table_map, um nur die benötigten Teile zu erfassen. (Speichert nicht)Sichere Bearbeitung — Mit
copy_documenteine Kopie erstellen, die kleinste Änderung (search_and_replace,set_table_cell_text,apply_document_commands) anwenden, danach erneut lesen und prüfen, dann die geprüfte Kopie übergeben.
Der Kern ist copy first · smallest edit · re-read after edits. Bearbeitungswerkzeuge speichern sofort beim Aufruf, daher müssen Überprüfungsarbeiten unbedingt an einer Kopie durchgeführt werden.
Das Modell sendet nur Operationen/Pläne und bearbeitet das rohe XML nicht direkt. Der normale Speicherpfad
durchläuft das einzelne SavePipeline-Gate von python-hwpx, das Integrität·XML·OPC/ID·
Öffnungssicherheit prüft; schlägt das Gate fehl, wird nichts geschrieben. Der Capability-Handshake
blockiert core/automation/plugin-Versions- und Hash-Skews fail-closed.
Sicherheitsdetails: Härtungsleitfaden · Kompatibilitätskennungen mit alten Namen:
6.x-Kompatibilitätsoberfläche
Positionsvertrag —
paragraph_indexist der 0-basierte Index eines Absatzes direkt im Haupttext. Absätze in Tabellen werden hier nicht gemischt, sondern über einlocation-Objekt wie{"kind":"table_cell_paragraph","table_index":0,"row":0,"col":1,"cell_paragraph_index":0}angegeben; die vonget_table_map/find_textzurückgegebenen Werte können direkt übergeben werden.
Umgebungsvariablen
Variable | Beschreibung | Standardwert |
| JSON-Array der zulässigen Workspace-Absolutpfade (mehrere Roots unterstützt). Relative Pfade relativ zum ersten Root | unset → Prozess-cwd. Degeneriertes cwd wird mit |
| Standardmaximallänge für Textrückgabe-Werkzeuge |
|
| Bei |
|
| Bei |
|
| Timeout für URL-basiertes HWPX-Fetch |
|
| Bei |
|
| Globale Standard-Speicher-Gate-Policy ( |
|
| Bei |
|
| Pfad zur dauerhaften Workflow-SQLite. Hat Vorrang vor bestehendem | Bestehender 6.x-Statuspfad |
| Protokollebene |
|
Bestehende HWPX_MCP_*-Schlüssel mit gleichem Suffix bleiben während 6.x als Fallback erhalten; wenn beide Schlüssel
vorhanden sind, haben HWPX_AUTOMATION_* Vorrang. Die vollständige Liste der erhaltenen Schlüssel für Render·Workflow·Oracle·Plugin-
Integration und die Regeln für den Workflow-DB-Pfad finden Sie in der
6.x-Kompatibilitätsoberfläche.
Pfade lehnen standardmäßig Traversal außerhalb des Workspace und Symlink-Escapes ab; URL-Eingaben erlauben nur HTTPS·öffentliche IPs. Hinweise zur Nebenläufigkeit auf Hosts ohne atomares Rename finden Sie im Härtungsleitfaden.
Mitwirken
good first issue · Meilensteine · 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.jsonDanksagungen
Funktioniert auf der Kernbibliothek python-hwpx und verdankt den folgenden öffentlichen Standards und Projekten viel.
OWPML — Open Word Processor Markup Language (KS X 6101) — der koreanische Industriestandard, auf dem HWPX basiert
hancom-io/hwpx-owpml-model — Referenzmodell der OWPML-Elementstruktur · neolord0/hwpxlib — Oracle-Beispielkorpus
edwardkim/rhwp — Inspiration für das Idempotenz- und Validierungs-Gate-Design
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