MCP server for generating professional Word and Excel documents with enterprise-grade styling
This server provides 16 tools for Word and Excel document generation with consistent naming patterns (verb_noun: word_create, excel_add_sheet, etc.) and explicit tool registration via the MCP SDK. However, critical gaps significantly limit production readiness: (1) Descriptions are inconsistent, many are present but extremely brief (10-30 chars), falling well below the 50-200 char baseline for LLM optimization. E.g., 'word_add_heading' is described as '添加标题(支持1-6级)' (~18 chars, in Chinese) with no explanation of when/why to use it. (2) Output schemas are entirely undocumented, no tool returns type information, forcing LLMs to guess what fields come back. (3) Error handling is absent from visible code, no recovery guidance, no retryability classification, no actionable error messages. (4) Input schemas are present and mostly well-constrained (enums for template types, theme names, etc.) but descriptions within schemas are minimal (Chinese, often one-word). (5) Tool composition is sound, each tool has a single responsibility and names clearly distinguish actions (word_add_paragraph vs word_add_table), but the interface does not account for multi-language users (descriptions are Chinese-only). All tools use the same document ID pattern for chaining, enabling composition, but lack guidance on how IDs are generated or persisted. Security: no visible secrets exposure, but file write operations (word_create, excel_create) accept user-provided outputPath with no validation against path traversal. The server is usable but needs substantial work on descriptions, output documentation, and error handling to meet production standards.
写入图表数据到指定位置(exceljs 不支持直接创建图表对象,数据写入后可在 Excel 中手动创建图表)
添加公式
添加工作表
创建 Excel 工作簿
合并单元格
保存工作簿
设置列宽
写入表格数据
Output schemas entirely undocumented. No tool specifies what fields the response contains, forcing LLMs to infer structure. This violates the baseline that 100% of A+ tools document return types and violates pattern:tool-description requirement that LLMs need explicit output documentation to plan downstream calls.
Tool descriptions are far below LLM-optimized baseline. Average length ~25 - 40 chars (target 50 - 200). Examples: 'word_add_heading' = '添加标题(支持1-6级)', 'word_add_list' = '添加有序/无序列表'. These are too brief to guide LLM selection and violate pattern:tool-description critical check: 'Keep descriptions between 10 - 1024 characters. Too short lacks context for selection.'
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | F | 47 | 2026-07-28+ | v2 |
| 2026-03-09 | F | 36 | - | v1 |
添加代码块
添加 Mermaid 流程图/架构图(自动转换为图片插入)
添加标题(支持1-6级)
添加有序/无序列表
添加正文段落
添加表格
创建一个新的 Word 文档
保存文档
No error handling documentation. Code visible in src/index.ts shows `throw new Error('Unknown tool')` with no guidance on recovery, retryability, or user-fixable errors. Violates pattern:recovery-guide: 'Error responses must tell the LLM what to do next: ... A raw error code or stack trace gives the agent nothing to act on.'
Parameter descriptions are minimal and in Chinese only. 'docId', 'mermaid', 'formula', 'range' appear without detail on format, constraints, or edge cases. Violates pattern:tool-description: 'Add a non-empty description to every input parameter. LLMs cannot infer parameter meaning from names alone.' Multilingual descriptions unavailable.
No path validation on outputPath parameter. word_create and excel_create accept user-provided outputPath without checking for path traversal (../../../etc/passwd) or permission denials. Violates pattern:tool-gateway: 'Treat all agent-provided input as untrusted. Sanitize against SQL injection, command injection, and path traversal.'
Descriptions in English only; tool annotations present but sparse. Tool annotations (readOnlyHint, destructiveHint, idempotentHint, openWorldHint) are all hardcoded to false for word_* and excel_* tools, but destructiveHint should likely be true for word_save and excel_save (irreversible file writes). Violates accurate annotation pattern:command-tool.
No confirmation or dry-run support for destructive operations. word_save and excel_save irreversibly write to disk with no undo, no confirmation, and no dry-run option. Violates pattern:confirmation-request: 'Irreversible operations (delete, send, publish) should support a dry-run or confirmation step.'