Skip to main content
Glama
Mavline

mcp-server_word-translator

by Mavline

MCP DOCX Translator

用于通过 Google Translate API 翻译 DOCX 文档的 MCP 服务器,完整保留原始标记和结构。

特点

  • ✅ 完整保留格式(样式、表格、图片、列表)

  • ✅ 直接处理 XML,无需转换为中间格式

  • ✅ 对源文档和翻译后文档进行结构验证

  • ✅ 通过批处理和缓存优化请求

  • ✅ 通过流式处理支持大型文档

  • ✅ 详细的日志记录和报告

安装

npm install
npm run build

配置

创建 .env 文件:

GOOGLE_API_KEY=your_api_key_here

使用

npm start

MCP 工具

  • translate_docx - 翻译 DOCX 文档

  • validate_translation - 验证现有翻译

  • get_translation_status - 当前操作状态

架构

项目由 7 个独立模块组成:

  1. DocxParser - 从 DOCX 中提取和解析 XML

  2. TranslationService - 与 Google Translate API 集成

  3. StructureValidator - 验证文档结构

  4. DocumentReconstructor - 使用翻译内容重建文档

  5. QualityChecker - 检查翻译质量

  6. FileManager - 文件管理和日志记录

  7. MCP Server Core - 编排和工具注册

更多详情请参阅 CLAUDE.md

开发

npm run dev      # watch mode
npm test         # тесты
npm run lint     # линтинг

许可证

MIT

-
license - not tested
Not graded
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

  • Real .docx and .xlsx files from structured data, with automatic Hebrew/Arabic RTL.

  • Generate PDF/DOCX/XLSX/PPTX from templates+JSON. Convert Office/HTML/MD to PDF. Universal templating

  • Use your own Word templates to convert Markdown → DOCX/PDF/HTML from any MCP-compatible AI.

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Mavline/mcp-server_word-translator'

If you have feedback or need assistance with the MCP directory API, please join our Discord server