HWP MCP Server

HWP MCP Server

Enables AI assistants to control Hancom's HWP/HWPX documents (Korean word processor) via COM interface on Windows, supporting creation, editing, formatting, and export.

Category
访问服务器

README

HWP MCP Server

License: MIT Python MCP

한글(HWP) 문서를 AI 어시스턴트가 제어할 수 있게 해주는 MCP(Model Context Protocol) 서버입니다.

Windows 환경에서 한글 프로그램의 COM 인터페이스를 활용하여 HWP/HWPX 문서를 완벽하게 읽고, 쓰고, 편집할 수 있습니다.

Features

  • 문서 관리: 생성, 열기, 저장, 닫기
  • 텍스트 편집: 삽입, 검색, 치환, 삭제
  • 표 조작: 생성, 셀 편집, 행/열 추가/삭제
  • 서식 적용: 글꼴, 정렬, 스타일
  • 이미지 삽입: 이미지 추가 및 크기 조정
  • 내보내기: PDF, 텍스트 변환

Requirements

항목 요구사항
OS Windows 10/11
한글 2010 이상 (HWPFrame.HwpObject 지원)
Python 3.10+
MCP Client Claude Desktop, Claude Code 등

Installation

# 저장소 클론
git clone https://github.com/realcoding2003/readwrite-hwp-mcp.git
cd readwrite-hwp-mcp

# 의존성 설치
pip install -r requirements.txt

Configuration

Claude Desktop

%APPDATA%\Claude\claude_desktop_config.json 파일에 추가:

{
  "mcpServers": {
    "hwp": {
      "command": "python",
      "args": ["-m", "src.server"],
      "cwd": "C:\\path\\to\\readwrite-hwp-mcp"
    }
  }
}

Claude Code (CLI)

claude mcp add hwp python -m src.server --cwd /path/to/readwrite-hwp-mcp

Usage

MCP 클라이언트에서 사용 가능한 도구 예시:

# 새 문서 생성
hwp_create

# 문서 열기
hwp_open path="C:\Documents\report.hwp"

# 텍스트 삽입
hwp_insert_text text="안녕하세요"

# 표 생성
hwp_create_table rows=3 cols=4

# PDF 내보내기
hwp_export_pdf path="C:\Documents\report.pdf"

MCP Tools

MVP (1단계)

도구 설명
hwp_connect 한글 프로그램 연결
hwp_create 새 문서 생성
hwp_open 문서 열기
hwp_save 문서 저장
hwp_insert_text 텍스트 삽입
hwp_create_table 표 생성

전체 도구 목록은 API 문서를 참조하세요.

Documentation

문서 설명
기획서 프로젝트 기획 및 로드맵
아키텍처 시스템 구조
배포 가이드 설치 및 실행
API 문서 MCP 도구 상세

Development

# 개발 환경 설정
pip install -r requirements-dev.txt

# 테스트 실행
pytest

# 린트
ruff check src/

Contributing

기여를 환영합니다! 다음 단계를 따라주세요:

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'feat: add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

커밋 메시지는 Conventional Commits 형식을 따릅니다.

Related Projects

이 프로젝트는 다음 프로젝트들을 참고하여 개발되었습니다:

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选