mcp-server_word-translator
MCP DOCX Translator
用于通过 Google Translate API 翻译 DOCX 文档的 MCP 服务器,完整保留原始标记和结构。
特点
✅ 完整保留格式(样式、表格、图片、列表)
✅ 直接处理 XML,无需转换为中间格式
✅ 对源文档和翻译后文档进行结构验证
✅ 通过批处理和缓存优化请求
✅ 通过流式处理支持大型文档
✅ 详细的日志记录和报告
Related MCP server: gdocs-mcp-server
安装
npm install
npm run build配置
创建 .env 文件:
GOOGLE_API_KEY=your_api_key_here使用
npm startMCP 工具
translate_docx- 翻译 DOCX 文档validate_translation- 验证现有翻译get_translation_status- 当前操作状态
架构
项目由 7 个独立模块组成:
DocxParser - 从 DOCX 中提取和解析 XML
TranslationService - 与 Google Translate API 集成
StructureValidator - 验证文档结构
DocumentReconstructor - 使用翻译内容重建文档
QualityChecker - 检查翻译质量
FileManager - 文件管理和日志记录
MCP Server Core - 编排和工具注册
更多详情请参阅 CLAUDE.md
开发
npm run dev # watch mode
npm test # тесты
npm run lint # линтинг许可证
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Translate PDFs, scans, Office files and EPUB across 475 languages and styles, preserving layout.
Accurate, brand-controlled translation for text, code, images, and documents with terminology.
Real .docx and .xlsx files from structured data, with automatic Hebrew/Arabic RTL.
Deterministic DOCX/PPTX/XLSX/PDF parser: track changes, comments, headers, footers, merged cells.
Related MCP Servers
- AlicenseCqualityDmaintenanceEnables creation, editing, and management of Word documents through JSON schema with support for rich content including text formatting, tables, images, code blocks, and lists. Provides comprehensive DOCX operations including opening existing documents, modifying content, and saving files to disk.1211 npm1MIT
- FlicenseNot gradedqualityDmaintenanceEnables reading, editing, and rewriting Google Docs documents with tools that support full content replacement, appending, heading-based insertion, and style-preserving rewrites.-
- AlicenseNot gradedqualityDmaintenanceEnables AI agents to generate, edit, validate, and render Word documents programmatically via MCP, ensuring correct OOXML structure and style.3MIT
- AlicenseCqualityCmaintenanceEnables programmatic processing of DOCX/OOXML files through MCP, covering text, tables, images, headers/footers, structured data tags, comments, and track changes.2922 npmMIT