HWP MCP Server
Click on "Install 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., "@HWP MCP ServerConvert the open document to PDF"
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.
HWP MCP Server
MCP (Model Context Protocol) server that enables LLMs to read and modify binary HWP (한글) documents via the HWP COM API.
Architecture
LLM ↔ MCP Server (Python/FastMCP) ↔ PowerShell Bridge (JSON stdin/stdout) ↔ HWP COM API ↔ 한글Python MCP server manages a long-running PowerShell subprocess that hosts HWP COM objects.
Related MCP server: Advanced HWP MCP Server
Requirements
Windows (HWP COM API is Windows-only)
한컴오피스 한글 installed (provides HWP COM server)
PowerShell 5.1+ (included with Windows)
Python >= 3.11
Installation
uv pip install -e .Usage
Run MCP Server
python -m hwp_mcp.serverClaude Desktop Config
{
"mcpServers": {
"hwp": {
"command": "uv",
"args": ["run", "--directory", "/path/to/hwp-mcp", "hwp-mcp"]
}
}
}MCP Tools (140)
HWP COM API 199 HParameterSet 100% coverage
Document Management (5)
Tool | Description |
| Open HWP document |
| Close document |
| List open documents |
| Save document |
| Save as different name/format |
Read (5)
Tool | Description |
| Extract full text |
| Get paragraph list |
| Get table list |
| Get table data (2D array) |
| Search text |
Write (5)
Tool | Description |
| Replace text |
| Insert text |
| Set table cell text |
| Append paragraph |
| Set document content from text data |
Formatting (3)
Tool | Description |
| Character formatting (font, size, bold, color, etc.) |
| Paragraph formatting (alignment, line spacing) |
| Page formatting (margins, orientation) |
Table (3)
Tool | Description |
| Create table |
| Add table row |
| Delete table row |
Advanced (5)
Tool | Description |
| Execute arbitrary HWP action (power user) |
| Convert HWP → HWPX |
| Convert HWP → PDF |
| Batch convert files (HWP, PDF, DOCX, etc.) |
| File security settings (copy/print restriction) |
Cursor & Navigation (11)
Tool | Description |
| Move cursor to specified position |
| Get current cursor position |
| Set cursor position (list, para, pos) |
| Get cursor position as set |
| Set cursor position from set |
| Get selection start/end positions |
| Select text range by coordinates |
| Get current selection info |
| Clear selection |
| Delete selected content |
| Initialize document scan |
Field (12)
Tool | Description |
| Create named field (template placeholder) |
| Check if field exists |
| Get all field names |
| Read field text |
| Set field text |
| Get field name at cursor |
| Set current field name |
| Move cursor to field |
| Rename field |
| Modify field properties |
| Set field control properties |
| Batch fill multiple fields |
Advanced Table (11)
Tool | Description |
| Add table column |
| Delete table column |
| Merge cells |
| Split cell |
| Cell style (background, vertical alignment) |
| Table border style |
| Table → text conversion |
| Text → table conversion |
| Swap table rows/columns |
| Apply table template |
Enhanced Formatting (5)
Tool | Description |
| Extended character properties (kerning, spacing, shadow, etc.) |
| Bullet style |
| Numbering style |
| Tab stops |
| Create/delete/apply styles |
Page & Section (10)
Tool | Description |
| Section definition (binding margin, text flow) |
| Page border and background |
| Multi-column layout |
| Page number |
| Header/footer |
| Footnote style |
| Master page |
| Hide page elements (header/footer, etc.) |
| Page number control (restart numbering) |
| Text direction (horizontal/vertical) |
Image & Equation (3)
Tool | Description |
| Insert picture |
| Insert background picture |
| Insert equation |
Form Control (3)
Tool | Description |
| Insert form control (button, checkbox, etc.) |
| Set form control properties |
| Read form data |
Document Info (5)
Tool | Description |
| Document metadata (page count, modified state) |
| Document summary (title, author) |
| Extract specific page text |
| Total page count |
| Export page as image |
Print & Export (3)
Tool | Description |
| Print document |
| Set watermark (text/image) |
| Save document as image |
Utility (4)
Tool | Description |
| Unit conversion (mm, pt, hwpunit) |
| RGB/Hex → HWP color value |
| Run HWP macro |
| File metadata (without opening) |
Bookmark & Hyperlink (6)
Tool | Description |
| Insert bookmark |
| Insert hyperlink |
| Jump to hyperlink target |
| Insert index mark |
| Insert auto number field |
| Insert cross reference |
Header/Footer & Caption (2)
Tool | Description |
| Drop cap (decorative first letter) |
| Table/image caption |
Document Operations (8)
Tool | Description |
| Sort text |
| Spell check |
| Track changes |
| Mail merge |
| Generate table of contents |
| Insert another file |
| Document password |
| Save selection to file |
Compatibility & Settings (3)
Tool | Description |
| Document compatibility mode |
| HWP view properties (zoom, view mode, etc.) |
| HWP engine properties (spell check, auto-save, etc.) |
Control & Object (4)
Tool | Description |
| Delete selected control |
| Find control |
| Check X object existence |
| Release scan resources |
Style & Script (4)
Tool | Description |
| Import style |
| Export style |
| Run HWP script |
| Get script source |
System & Security (11)
Tool | Description |
| Register COM module |
| DRM authority |
| Lock/unlock command |
| Check command lock status |
| Message box mode |
| Get message box mode |
| Check action enabled |
| Replace action handler |
| Get HWP COM property |
| Set HWP COM property |
| String → HWP enum value |
HParameterSet Actions (10)
Tool | Description | HParameterSet Count |
| Table actions | 14 |
| File actions | 11 |
| Draw object actions | 22 |
| Shape actions | 6 |
| Style/border actions | 6 |
| Form actions | 13 |
| Document info actions | 9 |
| Hanja/conversion actions | 11 |
| Selection/position actions | 6 |
| Miscellaneous actions | 69 |
Project Structure
hwp-mcp/
├── src/hwp_mcp/
│ ├── __init__.py
│ ├── _core.py # FastMCP instance & shared helpers
│ ├── server.py # Entry point, imports all tool modules
│ ├── bridge.py # PowerShell subprocess manager
│ ├── commands.py # JSON command builders
│ └── tools/ # MCP tool definitions (140 tools)
│ ├── cursor.py
│ ├── doc_info.py
│ ├── document.py
│ ├── drawing.py
│ ├── field.py
│ ├── form.py
│ ├── formatting.py
│ ├── hparam.py
│ ├── hwpobject.py
│ ├── page_section.py
│ ├── print_export.py
│ ├── system.py
│ ├── table.py
│ ├── text.py
│ └── utility.py
├── scripts/
│ ├── hwp_bridge.ps1 # PowerShell COM bridge dispatcher
│ └── handlers/ # 12 handler modules
│ ├── document.ps1
│ ├── text.ps1
│ ├── table.ps1
│ ├── style_format.ps1
│ ├── action.ps1
│ ├── cursor_selection.ps1
│ ├── field.ps1
│ ├── draw_object.ps1
│ ├── form_control.ps1
│ ├── document_info.ps1
│ ├── print_export.ps1
│ ├── utility.ps1
│ └── hwpobject_methods.ps1
├── tests/
│ ├── test_bridge.py # Bridge unit tests
│ ├── test_commands.py # Command builder unit tests
│ └── test_server.py # Server tool unit tests
└── pyproject.tomlDevelopment
uv pip install -e ".[dev]"
pytest tests/ -v
ruff check src/ tests/Limitations
Windows only: HWP COM API requires Windows
한글 required: 한컴오피스 한글 must be installed
Binary HWP only: HWPX (XML-based) needs a separate server
License
MIT
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 Servers
- -licenseAquality-maintenanceEnables 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
- Flicense-qualityDmaintenanceEnables comprehensive control of Korean Hangul (HWP) documents with 59 features including document manipulation, text editing, formatting, table operations, PDF export, and advanced automation capabilities like template filling and document structure analysis.6
- Alicense-qualityFmaintenanceEnables AI models to read, create, and edit Korean HWPX documents with advanced support for tables, paragraphs, styles, and images. It features enhanced stability through atomic file writing and smart layout recalculation to prevent document corruption.31MIT
- Alicense-qualityAmaintenanceEnables AI agents to read, search, and modify HWPX documents directly via MCP, without requiring Hancom Word Processor. Supports pure Python, cross-platform operation.65Apache 2.0
Related MCP Connectors
OCR for images and Korean ID documents
File conversion: PDF, DOCX, STT, TTS, watermarking
OCR, transcription, file extraction, and image generation for AI agents via MCP.
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/mjyoo2/hwp-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server