Office Word MCP 服务器

Office Word MCP 服务器

效率办公
GongRzhe
claudecursorvscodecodexgeneric
FreeOpen Source

关于此服务器

让 AI 智能体创建、读取和编辑 Microsoft Word 文档的 MCP 服务器。支持生成 .docx 文件、读写文本内容、应用样式格式,实现文档自动化处理。

安装方式

npx -y office-word-mcp-server
官方 README 安装指南(英文原文)

Installing via Smithery

To install Office Word Document Server for Claude Desktop automatically via Smithery:

bash
npx -y @smithery/cli install @GongRzhe/Office-Word-MCP-Server --client claude

Prerequisites

  • Python 3.8 or higher
  • pip package manager

Basic Installation

bash
# Clone the repository
git clone https://github.com/GongRzhe/Office-Word-MCP-Server.git
cd Office-Word-MCP-Server

# Install dependencies
pip install -r requirements.txt

Using the Setup Script

Alternatively, you can use the provided setup script which handles:

  • Checking prerequisites
  • Setting up a virtual environment
  • Installing dependencies
  • Generating MCP configuration
bash
python setup_mcp.py

常见问题

Office Word MCP 能做什么?

让 AI 智能体直接操作 Word 文档:创建新文档并写入内容、读取现有文档的文本和结构、应用字体/字号/颜色等格式、插入表格和列表、添加页眉页脚。适用于自动生成报告、批量处理文档、内容提取等场景。

Office Word MCP 需要安装 Microsoft Office 吗?

不需要。MCP 服务器基于 python-docx 库操作 .docx 文件格式,不依赖 Microsoft Office 软件。因此可以在 Windows、macOS、Linux 上运行,无需购买 Office 许可证。

Office Word MCP 支持中文吗?

完全支持。基于 python-docx 的 Unicode 支持,可以正确处理中文、日文等双字节字符的文档读写和格式设置。