mcp for handling hwp
HWP-MCP๋ ํ๊ธ ์๋ ํ๋ก์ธ์(HWP)๋ฅผ Claude์ ๊ฐ์ AI ๋ชจ๋ธ์ด ์ ์ดํ ์ ์๋๋ก ํด์ฃผ๋ Model Context Protocol(MCP) ์๋ฒ์ ๋๋ค. ์ด ํ๋ก์ ํธ๋ ํ๊ธ ๋ฌธ์๋ฅผ ์๋์ผ๋ก ์์ฑ, ํธ์ง, ์กฐ์ํ๋ ๊ธฐ๋ฅ์ AI์๊ฒ ์ ๊ณตํฉ๋๋ค.
git clone https://github.com/jkf87/hwp-mcp.git
cd hwp-mcp
pip install -r requirements.txt
pip install mcp
Claude ๋ฐ์คํฌํฑ ์ค์ ํ์ผ์ ๋ค์๊ณผ ๊ฐ์ด HWP-MCP ์๋ฒ๋ฅผ ๋ฑ๋กํ์ธ์:
{
"mcpServers": {
"hwp": {
"command": "python",
"args": ["๊ฒฝ๋ก/hwp-mcp/hwp_mcp_stdio_server.py"]
}
}
}
hwp_create()
hwp_insert_text("์ํ๋ ํ
์คํธ๋ฅผ ์
๋ ฅํ์ธ์.")
# ํ
์ด๋ธ ์์ฑ
hwp_insert_table(rows=5, cols=2)
# ํ
์ด๋ธ์ ๋ฐ์ดํฐ ์ฑ์ฐ๊ธฐ
hwp_fill_table_with_data([
["์", "ํ๋งค๋"],
["1์", "120"],
["2์", "150"],
["3์", "180"],
["4์", "200"]
], has_header=True)
# ํ์ ์ฐ์๋ ์ซ์ ์ฑ์ฐ๊ธฐ
hwp_fill_column_numbers(start=1, end=10, column=1, from_first_cell=True)
hwp_save("๊ฒฝ๋ก/๋ฌธ์๋ช
.hwp")
hwp_batch_operations([
{"operation": "hwp_create"},
{"operation": "hwp_insert_text", "params": {"text": "์ ๋ชฉ"}},
{"operation": "hwp_set_font", "params": {"size": 20, "bold": True}},
{"operation": "hwp_save", "params": {"path": "๊ฒฝ๋ก/๋ฌธ์๋ช
.hwp"}}
])
hwp-mcp/
โโโ hwp_mcp_stdio_server.py # ๋ฉ์ธ ์๋ฒ ์คํฌ๋ฆฝํธ
โโโ requirements.txt # ์์กด์ฑ ํจํค์ง ๋ชฉ๋ก
โโโ hwp-mcp-๊ตฌ์กฐ์ค๋ช
.md # ํ๋ก์ ํธ ๊ตฌ์กฐ ์ค๋ช
๋ฌธ์
โโโ src/
โ โโโ tools/
โ โ โโโ hwp_controller.py # ํ๊ธ ์ ์ด ํต์ฌ ์ปจํธ๋กค๋ฌ
โ โ โโโ hwp_table_tools.py # ํ
์ด๋ธ ๊ด๋ จ ๊ธฐ๋ฅ ์ ๋ฌธ ๋ชจ๋
โ โโโ utils/ # ์ ํธ๋ฆฌํฐ ํจ์
โ โโโ __tests__/ # ํ
์คํธ ๋ชจ๋
โโโ security_module/
โโโ FilePathCheckerModuleExample.dll # ๋ณด์ ๋ชจ๋
๊ธฐ๋ณธ์ ์ผ๋ก ํ๊ธ ํ๋ก๊ทธ๋จ์ ์ธ๋ถ์์ ํ์ผ ์ ๊ทผ ์ ๋ณด์ ๊ฒฝ๊ณ ๋ฅผ ํ์ํฉ๋๋ค. ์ด๋ฅผ ์ฐํํ๊ธฐ ์ํด FilePathCheckerModuleExample.dll
๋ชจ๋์ ์ฌ์ฉํฉ๋๋ค. ๋ง์ฝ ๋ณด์ ๋ชจ๋ ๋ฑ๋ก์ ์คํจํด๋ ๊ธฐ๋ฅ์ ์๋ํ์ง๋ง, ํ์ผ ์ด๊ธฐ/์ ์ฅ ์ ๋ณด์ ๋ํ ์์๊ฐ ํ์๋ ์ ์์ต๋๋ค.
ํ๊ธ ํ๋ก๊ทธ๋จ์ด ์คํ ์ค์ด์ง ์์ ๊ฒฝ์ฐ ์ฐ๊ฒฐ์ ์คํจํ ์ ์์ต๋๋ค. ํ๊ธ ํ๋ก๊ทธ๋จ์ด ์ค์น๋์ด ์๊ณ ์ ์ ์๋ํ๋์ง ํ์ธํ์ธ์.
ํ ์ด๋ธ์ ๋ฐ์ดํฐ๋ฅผ ์ ๋ ฅํ ๋ ์ปค์ ์์น๊ฐ ์์๊ณผ ๋ค๋ฅด๊ฒ ๋์ํ๋ ๊ฒฝ์ฐ๊ฐ ์์์ผ๋, ํ์ฌ ๋ฒ์ ์์๋ ์ด ๋ฌธ์ ๊ฐ ํด๊ฒฐ๋์์ต๋๋ค. ํ ์ด๋ธ์ ๋ชจ๋ ์ ์ ์ ํํ๊ฒ ๋ฐ์ดํฐ๊ฐ ์ ๋ ฅ๋ฉ๋๋ค.
hwp_table_tools.py
) ์ถ๊ฐhwp_fill_column_numbers
ํจ์์ from_first_cell
์ต์
์ถ๊ฐ์ด ํ๋ก์ ํธ๋ MIT ๋ผ์ด์ ์ค์ ๋ฐ๋ผ ๋ฐฐํฌ๋ฉ๋๋ค. ์์ธํ ๋ด์ฉ์ LICENSE ํ์ผ์ ์ฐธ์กฐํ์ธ์.
ํ๋ก์ ํธ ๊ด๋ จ ๋ฌธ์๋ GitHub ์ด์, ์ฝ๋์ค๋ฅผ ํตํด ํด์ฃผ์ธ์.
No configuration available
This service may require manual configuration, please check the details on the left
Related projects feature coming soon
Will recommend related projects based on sub-categories