MCP server · Audited from source
Hwp Document MCP server
by treesoop/hwp-mcpMIT licenceAudited 7 Oct 2026 · source df994e675b26
Is it safe? Yes — SAFE, grade B (89/100). It exposes 34 tools: 19 read, 11 write and 4 destructive. The audit recorded 8 findings (0 critical, 0 high, 1 medium, 7 low). Maintainer's description: MCP server for reading and writing HWP/HWPX (Korean Hangul) documents — built on rhwp. 34 tools, Claude/Cursor/ChatGPT compatible.
Cite
Cite this page
ModelsAtlas. “Hwp Document MCP server (treesoop/hwp-mcp)”. Retrieved 7 Oct 2026. https://modelsatlas.com/mcp/treesoop/hwp-document
Trust audit
Audit 0.4.1 · full source read 7 Oct 2026
8 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.
What the source does
- FilesystemDeclared1 observation
- NetworkNone observedNothing seen in the source
- ShellNone observedNothing seen in the source
- DependenciesNot pinnedSome ranges float
- SecretsNone foundNo keys in source
“Declared” means the server says it does this and the source agrees. Browser, file and shell access are expected of some kinds of server.
Five audit layers
| Layer | What we check | Result |
|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS 5 findings |
L1 Static source | Secrets, path traversal, supply chain | PASS 2 findings |
L2 Instructions | Prompt injection and authority framing in docs and tool descriptions | PASS |
L3 Inventory | Declared tools match the source | WARN 1 finding |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED |
Provenance & runtime
Who published it, and what the audit could and could not run
Provenance
- Repository owner
treesoopUser accountAccount type recorded when we read the repository. - PackagePublished on npm
hwp-mcpat version 0.3.0 - LicenceMITFrom the repository, as read at the audited commit.
- Last push3 months agoActivity of the repository when we read it.
- Source commit readdf994e675b26The audit covers exactly this commit, read on 7 Oct 2026.
Runtime
- Sandbox runNot run yetThis audit read the source only; it did not execute the server.
- Tool inventory34 declaredRead from the source and classed read, write or destructive.
Every value here is read from the record's own repository and audit.Suggest a correction
Findings (8)
Sorted by severity
MEDIUMFilesystem / pathmcp.destructive_tools
delete_hwp_image, delete_hwp_paragraph, delete_hwp_table_column, delete_hwp_table_row
- Why
- 4 tool(s) can delete or overwrite
- Fix
- prefer a read-only mode or scoped tokens; the page states the blast radius
LOWInventory / provenanceinv.binary · test/fixtures/empty.hwp
empty.hwp
- Why
- a compiled or binary member cannot be reviewed from source
- Fix
- ship source, or explain the binary in the README
LOWInventory / provenanceinv.binary · test/fixtures/simple.hwp
simple.hwp
- Why
- a compiled or binary member cannot be reviewed from source
- Fix
- ship source, or explain the binary in the README
LOWInventory / provenanceinv.binary · test/fixtures/template.hwp
template.hwp
- Why
- a compiled or binary member cannot be reviewed from source
- Fix
- ship source, or explain the binary in the README
LOWInventory / provenanceinv.binary · test/fixtures/text_only.hwpx
text_only.hwpx
- Why
- a compiled or binary member cannot be reviewed from source
- Fix
- ship source, or explain the binary in the README
LOWInventory / provenanceinv.binary · test/fixtures/with_equation.hwp
with_equation.hwp
- Why
- a compiled or binary member cannot be reviewed from source
- Fix
- ship source, or explain the binary in the README
LOWFilesystem / pathfs.traversal · test/fixtures/build-fixtures.ts:4
import { initRhwp } from "../../src/core/wasm-init.js";- Why
- No further detail recorded for this rule.
- Fix
- —
LOWSupply chainsupply.unpinned · package.json
@modelcontextprotocol/sdk, jszip, @types/node, tsx, typescript, vitest
- Why
- 6 dependency range(s) float
- Fix
- pin exact versions or ship a lockfile
Tools it exposes
34 declared in source · 4 destructive
4 tools can delete or overwrite. An agent that can be talked into calling a tool can be talked into calling this one, so give it a token scoped to what you need.
| Tool | Risk | What it does |
|---|---|---|
delete_hwp_image | destructive | Delete a BinData/ ZIP entry inside an .hwpx (effectively removes the embedded image bytes). Args: file_path, target (basename or full entry), output_path (optional). |
delete_hwp_paragraph | destructive | Delete the Nth paragraph (0-based) from an .hwpx body. Args: file_path, index, output_path (optional). |
delete_hwp_table_column | destructive | Delete the Mth column (0-based) from the Nth table in an .hwpx (removes one <hp:tc> from every row). Args: file_path, table_index, col_index, output_path (optional). |
delete_hwp_table_row | destructive | Delete the Mth row (0-based) from the Nth table (0-based) in an .hwpx. Args: file_path, table_index, row_index, output_path (optional). |
apply_hwp_paragraph_style | write | Apply paragraph formatting (alignment·indent·line_spacing) to the Nth paragraph in an .hwpx. Adds a new paraPr to header.xml and retargets the paragraph |
apply_hwp_text_style | write | Apply formatting (color/bold/italic/underline/font_size) to the first run that contains target_text. Adds a new charPr to header.xml and retargets the matching <hp:run>. Color is a 6-digit hex (e.g. |
create_hwpx_document | write | Create a new .hwpx file from a JSON content list of {type: |
extract_hwp_images | write | Save every embedded image to disk. Args: file_path, output_dir (optional; defaults to <file>_images/). |
insert_hwp_image | write | Insert a new image into an .hwpx — adds the file to BinData/, registers it in content.hpf, and appends a paragraph with an inline <hp:pic>. Args: file_path, source_path, ext (png/jpg/bmp/gif; auto from source_path if omitted), output_path (optional). |
insert_hwp_table | write | Insert a real OWPML table at the end of an .hwpx body (proper <hp:tbl>/<hp:tr>/<hp:tc>). headers and rows are both JSON string arrays — |
merge_hwp_cells_horizontal | write | Merge horizontal cells in a row of a table by setting colSpan on the first cell and removing the absorbed cells. Args: file_path, table_index, row, col_start, col_count (>=2), output_path (optional). |
merge_hwp_cells_vertical | write | Merge vertical cells across rows in a single column by setting rowSpan on the first cell and removing absorbed cells in following rows. Args: file_path, table_index, col, row_start, row_count (>=2), output_path (optional). |
set_hwp_cell_text | write | Replace a single cell |
set_hwp_field_value | write | Set a Hancom field |
set_hwp_paragraph_text | write | Replace the entire text of the Nth paragraph (0-based) in an .hwpx body with new text. The paragraph attributes (paraPr/style refs) are preserved; runs are collapsed into a single <hp:run> with the new text. Args: file_path, index, text, output_path (optional). |
append_hwp_paragraph | read | Append a new paragraph to the end of an .hwpx document body. Clones the last paragraph |
append_hwp_table_column | read | Append a new column to the Nth table in an .hwpx. |
append_hwp_table_row | read | Append a new row to the Nth table (0-based) in an .hwpx. |
fill_hwp_template | read | Fill multiple placeholders in an HWPX template. |
get_hwp_field_value | read | Get a Hancom field |
get_hwp_info | read | Get document metadata (version, page count, section count, fonts used, totals for tables/images/footnotes/equations/headers/footers). Args: file_path. |
get_hwp_page_def | read | Get per-section page definition (paper size, margins, columns) and section properties. Useful for understanding document layout. Args: file_path. |
list_hwp_bindata | read | List ZIP entries under BinData/ inside an .hwpx (image and binary attachments). Useful before replace_hwp_image. Args: file_path. |
list_hwp_fields | read | List Hancom-style fields ( |
list_hwp_images | read | List embedded images (mime, byte length, locator) in an HWP/HWPX file. Args: file_path. |
read_hwp | read | Read full HWP/HWPX document content as text + tables (markdown) + image listing. Args: file_path (absolute path). |
read_hwp_tables | read | Extract every table from an HWP/HWPX file as GitHub-flavored markdown. Args: file_path. |
read_hwp_text | read | Extract plain body text from an HWP/HWPX file (no tables, no images). Args: file_path. |
render_hwp_all_pages | read | Render every page of an HWP/HWPX as SVG files in a directory. Args: file_path, output_dir (default <file>_pages/), max_pages (optional limit). |
render_hwp_equation_svg | read | Render an OWPML equation script (e.g. |
render_hwp_html | read | Render a single page of an HWP/HWPX as HTML. Useful for AI consumption when SVG isn |
render_hwp_page | read | Render a single page of an HWP/HWPX document as SVG. If output_path is omitted, the raw SVG string is returned inline (useful for direct LLM consumption). Args: file_path, page (0-based, default 0), output_path (optional). |
replace_hwp_image | read | Replace an embedded image inside an .hwpx by overwriting its BinData/ ZIP entry with new file contents. |
replace_hwp_text | read | Find and replace text in an HWPX file. v0.2: only .hwpx is supported as input/output. Args: file_path, old_text, new_text, output_path (optional). |
Install
Package version 0.3.0 · audited commit df994e6
One-click links open your editor with the config below filled in, exactly as the snippets show it, pinned to version 0.3.0. The audit covers commit df994e6 only.
claude mcp add hwp-mcp -- npx -y [email protected]
{
"mcpServers": {
"hwp-mcp": {
"command": "npx",
"args": [
"-y",
"[email protected]"
]
}
}
}The command pins the package version recorded in the source (0.3.0); the audit covers commit df994e675b26. Transport: stdio. No environment variables required.
Audit history
- ✓SAFE B 89 / 100
First audit ·
df994e675b26
README badge
For maintainers · updates on every re-audit
[](https://modelsatlas.com/mcp/treesoop/hwp-document/)
The badge always shows the latest audit; a maintainer cannot pin an old verdict.
Other ratings
Cited, never blended into our score
No third-party security ratings are recorded for this server yet. When they exist they appear here with their source and date, beside, not inside, our grade.
Questions about Hwp Document MCP server
What is the Hwp Document MCP server?
What tools does Hwp Document expose?
Is Hwp Document safe to connect to an agent?
What credentials does Hwp Document need?
How does Hwp Document run?
How current is this page?
Sources
- treesoop/hwp-mcp on GitHub — the source we read, its licence, stars and activityObserved · 7 Oct 2026
- ModelsAtlas trust audit — SAFE verdict for commit df994e675b26Observed · 7 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What is the Hwp Document MCP server?
- What tools does Hwp Document expose?
- Is Hwp Document safe to connect to an agent?