Hangul Word Processor MCP server

Enables direct creation, editing, and formatting of Korean documents in Hangul Word Processor (HWP) format through Python or Node.js interfaces that control the HWP COM interface.
Back to servers
Provider
jkf87
Release date
Mar 20, 2025
Language
TypeScript
Stats
106 stars

HWP-MCP is a Model Context Protocol (MCP) server that allows AI models like Claude to control the Korean word processor (HWP). It enables AI to automatically generate, edit, and manipulate Korean documents, providing functionality for document creation, text editing, table manipulation, and automated report generation.

System Requirements

  • Windows operating system
  • HWP (Korean word processor) installed
  • Python 3.7 or higher
  • Required Python packages (listed in requirements.txt)

Installation

  1. Clone the repository:
git clone https://github.com/jkf87/hwp-mcp.git
cd hwp-mcp
  1. Install dependencies:
pip install -r requirements.txt
  1. (Optional) Install the MCP package:
pip install mcp

Usage

Using with Claude

Register the HWP-MCP server in your Claude desktop configuration file:

{
  "mcpServers": {
    "hwp": {
      "command": "python",
      "args": ["path/hwp-mcp/hwp_mcp_stdio_server.py"]
    }
  }
}

Key Features and Examples

Create a New Document

hwp_create()

Insert Text

hwp_insert_text("Enter your desired text here.")

Create Tables and Input Data

# Create a table
hwp_insert_table(rows=5, cols=2)

# Fill the table with data
hwp_fill_table_with_data([
    ["Month", "Sales"], 
    ["January", "120"], 
    ["February", "150"], 
    ["March", "180"], 
    ["April", "200"]
], has_header=True)

# Fill a column with sequential numbers
hwp_fill_column_numbers(start=1, end=10, column=1, from_first_cell=True)

Save a Document

hwp_save("path/document_name.hwp")

Batch Operations

hwp_batch_operations([
    {"operation": "hwp_create"},
    {"operation": "hwp_insert_text", "params": {"text": "Title"}},
    {"operation": "hwp_set_font", "params": {"size": 20, "bold": True}},
    {"operation": "hwp_save", "params": {"path": "path/document_name.hwp"}}
])

Troubleshooting

Security Module Issues

By default, the HWP program displays security warnings when accessing files externally. The FilePathCheckerModuleExample.dll module is used to bypass this. The functionality will still work if the security module registration fails, but security dialogs may appear when opening/saving files.

HWP Connection Failure

Connection may fail if the HWP program is not running. Ensure that the HWP program is installed and working properly.

Table Data Input Issues

There were issues with cursor positioning when inputting data into tables, but these have been resolved in the current version. Data is now accurately entered into all cells of a table.

How to add this MCP server to Cursor

There are two ways to add an MCP server to Cursor. The most common way is to add the server globally in the ~/.cursor/mcp.json file so that it is available in all of your projects.

If you only need the server in a single project, you can add it to the project instead by creating or adding it to the .cursor/mcp.json file.

Adding an MCP server to Cursor globally

To add a global MCP server go to Cursor Settings > MCP and click "Add new global MCP server".

When you click that button the ~/.cursor/mcp.json file will be opened and you can add your server like this:

{
    "mcpServers": {
        "cursor-rules-mcp": {
            "command": "npx",
            "args": [
                "-y",
                "cursor-rules-mcp"
            ]
        }
    }
}

Adding an MCP server to a project

To add an MCP server to a project you can create a new .cursor/mcp.json file or add it to the existing one. This will look exactly the same as the global MCP server example above.

How to use the MCP server

Once the server is installed, you might need to head back to Settings > MCP and click the refresh button.

The Cursor agent will then be able to see the available tools the added MCP server has available and will call them when it needs to.

You can also explictly ask the agent to use the tool by mentioning the tool name and describing what the function does.

Want to 10x your AI skills?

Get a free account and learn to code + market your apps using AI (with or without vibes!).

Nah, maybe later