hwp-mcp
by treesoop·★ 26·综合分 44
MCP服务器让AI能够读取、编辑和创建韩文HWP/HWPX文档,提供34种专用工具。
概述
hwp-mcp是一个基于rhwp引擎构建的专业MCP服务器,提供处理韩文Hangul文档(.hwp/.hwpx)的全面功能。它包含34种工具用于读写操作,包括文档解析、模板填充、文本替换、表格操作、图像提取和渲染为SVG/HTML。该服务器作为rhwp Rust+WASM引擎与AI之间的适配器,使Claude、Cursor和ChatGPT等MCP兼容客户端能通过自然语言操作文档。虽然两种格式都支持读取,但目前仅支持.hwpx写入,对.hwp的写入功能已在计划中。
试试问 AI
装完之后,这里有 7 个你可以让 AI 做的事:
什么时候选它
当需要处理韩国 Hangul 文档并希望 AI 代理能够读取、分析或修改它们时,特别是当您已经在使用 Claude/Cursor/ChatGPT 时。
什么时候不要选它
如果您主要需要处理 .hwp 文件(而非 .hwpx),因为写功能有限,或者您需要尚未实现的功能如图表处理或高级样式定义,请不要选择此工具。
此 server 暴露的工具
从 README 抽取出 12 个工具read_hwpReads HWP document content including text and tables
fill_hwp_templateFills placeholders in a HWP template
replace_hwp_textReplaces text in a HWP document
get_hwp_infoRetrieves metadata and statistics about a HWP document
render_hwp_pageRenders a specific HWP page as SVG
list_hwp_imagesLists all embedded images in a HWP document
set_hwp_paragraph_textReplaces the entire text of a specific paragraph
insert_hwp_imageInserts a new image into a HWP document
create_hwpx_documentCreates a new HWPX document with text content
read_hwp_tablesExtracts tables from a HWP document as markdown
set_hwp_cell_textSets text in a specific table cell
append_hwp_paragraphAdds a new paragraph to the end of a HWP document
可对比工具
安装
安装
Claude Code
claude mcp add hwp-mcp -- npx -y hwp-mcpClaude Desktop / Cursor / VS Code (设置JSON)
{
"mcpServers": {
"hwp-mcp": {
"command": "npx",
"args": ["-y", "hwp-mcp"]
}
}
}需要Node.js 20或更高版本。
FAQ
- 支持哪些文档格式?
- 读取支持.hwp和.hwpx两种格式。写入目前仅支持.hwpx,对.hwp的写入支持已在v0.3计划中。
- 我可以将此用于除Claude之外的AI助手吗?
- 是的,hwp-mcp兼容任何支持MCP服务器的客户端,包括Cursor、ChatGPT等。
- 它是否支持图表和书签等复杂文档功能?
- 这些功能尚未实现。当前覆盖率约为85%,主要功能如.hwp写入支持、图表和样式定义已在v0.3计划中。
hwp-mcp 对比
最后更新于 · 由 README + GitHub 公开数据自动生成。