Universal Excel safe read/write and visual audit MCP server for .xlsx files with OWASP formula injection defense, backup mechanisms, and pixel-level visual auditing capabilities
Server has 13 tools with schemas and descriptions present, but quality is inconsistent. Naming is generally verb-forward (read_, grep_, copy_, preview_, commit_, append_, adjust_, inject_, get_) which is good. However, descriptions are verbose and often include implementation details (e.g., 'iter_rows(min_row=)', 'xlScreen + xlBitmap', 'Stdin IPC signal') rather than user-facing intent. Many descriptions exceed 200 chars and bury key information. Parameters lack type constraints (no enums for categorical inputs like col_widths format). Error handling is minimal, most tools return generic error strings without recovery guidance. Output schemas are not formally documented; responses are JSON strings rather than structured objects. Security concerns: file paths are user-provided with no validation against path traversal; OWASP sanitization only covers formula injection, not file system attacks.
调整指定列的物理宽度。col_widths 为 JSON 字符串,格式:{"N": 45.5, "O": 15.0, "B": 28} 键为列字母,值为 Excel 列宽单位(约等于默认字体下的字符数)。操作前自动备份。
在指定 Sheet 末尾追加新行。rows 为 JSON 字符串,格式:[["值1", "值2", ...], ["值3", "值4", ...]]。每个内层数组代表一行,按列顺序填充。
确认写入:执行完整的四步防御链。Step 1: 备份原文件 (.bak) Step 2: OWASP 清洗所有待写入值 Step 3: openpyxl 写入 + 即时验证读回 Step 4: 输出变更摘要日志。updates 格式同 preview_write。reason: 写入原因(记录到日志)。
从模板文件复制生成新的清单文件。如不指定 template_path,使用默认模板 E:\lin\空分析.xlsx。dest_path 为新文件的完整路径。
[The Inspector] 扫描合并单元格和列宽度,用于解决排版中的「空间盲区」问题。
对 Excel 指定区域进行高清截图渲染。range_str 可以是 'B1:C20' 或单列字母 'O'。
在指定 Sheet 中全表搜索包含关键字的行,返回匹配结果。比 read_excel_rows 范围读取快 100 倍,是「找内容」的首选工具。pattern: 搜索关键字(不区分大小写,支持中文)max_results: 最多返回行数,默认 50
Descriptions are implementation-focused rather than user-intent focused. Many exceed 200 chars and include technical details (e.g., 'iter_rows(min_row=)', 'xlScreen + xlBitmap', 'Stdin IPC signal') that confuse LLM tool selection. Should state WHAT the tool does and WHEN to use it, not HOW it works internally.
No output schemas documented. Tools return JSON strings without formal schema definitions. LLMs cannot plan downstream calls or extract fields reliably. E.g., read_excel_schema returns {file, sheets[{name, max_row, max_col, header_sample}]} but this is inferred from code, not declared.
File path parameters accept arbitrary strings with no validation. No checks for path traversal (../../../etc/passwd), symlink attacks, or access control. OWASP sanitization only covers formula injection, not file system security.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | F | 44 | 2026-07-28+ | v2 |
贯彻 excel_aesthetics_loop 三原则的行高美学引擎(V3.2 隔离 + Stream IPC 版)。执行流程:通过 Stdin IPC 信号唤起 core/com_bridge.py 执行 Native COM 操作。
预览写入效果,不实际修改文件。返回每个单元格的 旧值→新值 对比。updates 参数为 JSON 字符串,格式:[{"row": 6, "col": "B", "value": "A1,A28~A31"}, ...] col 可以是字母 (A-U) 或数字 (1-21)。
[V3.1 新增] 提取 Excel 内嵌图片。返回所有图片的路径列表及其所在单元格坐标。
读取指定 Sheet 的指定行范围,返回 JSON 格式数据。适合查看已有清单内容或验证写入结果。[V2.2] 改用 iter_rows(min_row=) 直接跳至目标行,避免全表顺序扫描。
读取指定 Excel 文件的结构概览:所有 Sheet 名、各 Sheet 行数/列数/表头。用于在写入前了解文件结构。
读取指定 Sheet 的 Schema,并自动捕获「高危列 (备注/单号/附件)」的高清视觉快照。返回 JSON 包含数据结构及生成的图片路径。
Parameters lack type constraints and enums. E.g., col_widths is a JSON string with no schema; range_str accepts arbitrary strings; pattern in grep_rows has no length limit. LLMs cannot validate inputs before calling.
Error handling is minimal. Most tools return generic error strings ('Error: 文件不存在', 'Error: 读取失败') without recovery guidance. No distinction between retryable, user-fixable, or fatal errors. LLMs cannot determine next steps.