mcp-office-writer
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-office-writerconvert my report.docx to PDF"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-office-writer
MCP 服务器:创建、编辑、读取 Office 文档(Word / Excel / PowerPoint / PDF / 纯文本)。
功能速览
类别 | 工具 |
读取 |
|
创建 |
|
Markdown 转换 |
|
编辑 |
|
高保真转换 (dsoffice) |
|
活动文档 (Windows COM) |
|
PPT 优化 |
|
活动 PPT 流程图 |
|
结构化编辑 |
|
质量验证 |
|
特性:场景模板(学术/报告/公文/合同等,支持国内字号)、模板继承、{{key}} 占位符合并、
原子写入(atomic_save,失败不损坏原文件)、输入文件安全校验(大小/解压炸弹)、
PDF 扫描件 OCR 回退(Tesseract)、COM 活动文档回滚、超时保护。
高保真转换(dsh-libreoffice-kit)
convert_to_pdf / render_document_pages / recalculate_excel_formulas 封装
DeepSeek 开源的 dsh-libreoffice-kit
(dsoffice CLI,内置精简版 LibreOffice 引擎,无需本机安装 LibreOffice/Office):
convert_to_pdf:docx/xlsx/pptx 及 97-2003 二进制格式(.doc/.xls/.ppt)、.rtf → PDF, 缺失字体按字形度量替换(版式最接近原样)并在missing_fonts中报告render_document_pages:Office/PDF → 逐页 PNG(指定页码、Excel 区域、dpi),适合预览图/验收截图recalculate_excel_formulas:重算 xlsx 公式写回缓存值(弥补 openpyxl 公式无缓存值, 转换后read_excel_workbook的 data_only 模式可见数值)
环境要求:Node.js ≥ 22.19,npm install -g @deepseek-ai/libreoffice-kit;
Windows x64 需 MSVC v14 运行库。缺失时三个工具返回带安装指引的错误信息。
Related MCP server: docx-mcp
启动
start.bat或直接:
.\venv\Scripts\python.exe -I -X utf8 -m mcp_office_writer开发
rem 依赖安装(venv 已建好时)
.\venv\Scripts\python.exe -m pip install -e ".[dev]"
rem 运行测试
.\venv\Scripts\python.exe -m pytest tests -q测试套件 83 个用例:单元(文档操作、PDF 回环、dsoffice 封装层、COM 失败分支、超时守卫、安全回归)+ MCP stdio 端到端(中文往返)。
配置(环境变量)
MCP_OFFICE_OCR=0:关闭 PDF 扫描件 OCRTESSERACT_CMD:Tesseract 可执行文件路径(默认D:\cherry-workplace\tools\tesseract\tesseract.exe)MCP_OFFICE_OCR_LANG:OCR 语言,默认chi_sim+engMCP_OFFICE_DSOFFICE:dsoffice 可执行文件路径(默认从 PATH 查找)
This server cannot be deployed
Maintenance
Related MCP Connectors
Composable APIs for document extraction, image transformation, and document & sheet generation.
Generate PDF/DOCX/XLSX/PPTX from templates+JSON. Convert Office/HTML/MD to PDF. Universal templating
Document API for AI-native software: render PDFs, e-sign, PAdES-seal, and verify.
Cloud PDF generation from HTML, CSS and XSL-FO, with PDF/A and PDF/UA support.
Related MCP Servers
- AlicenseBqualityDmaintenanceProvides comprehensive document processing, including reading, converting, and manipulating various document formats with advanced text and HTML processing capabilities.16167 npm19MIT
- AlicenseBqualityDmaintenanceEnables comprehensive management of Microsoft Word documents with 30+ tools for reading, writing, formatting, template merging, image extraction, equation extraction, and style application.241MIT
- AlicenseBqualityCmaintenanceEnables complete Office document lifecycle management for AI agents, including creation, editing, conversion, and templating of DOCX, XLSX, PPTX, PDF, and EML files.4031 PyPIMIT
- FlicenseNot gradedqualityBmaintenanceEnables processing of Office documents (DOCX, XLSX, PPTX, PDF, Markdown) through 21 tools for reading, creating, editing, converting, comparing, and analyzing documents.-