
xlvane: XLSX workbooks
io.github.DevXord由 GitHub 账号 DevXord 发布v1.3.3更新于 Nov 5, 2026
XLSX tools: inspect, read, diff and validate workbooks; write, edit and convert with --allow-write.
概览
面向 XLSX 工作簿的本地 MCP 服务器,让助手检查、读取、比对和校验表格,并可选地写入、编辑或转换文件。
- 可以做什么
- 检查工作簿:工作表(含隐藏表)、已用区域、表头行、列类型与样例、合并单元格、公式和警告
- 按表头把工作表行读取为对象,支持分页,日期以 ISO 8601 返回
- 逐单元格比对两个工作簿,并按列规则校验,指出每个问题所在的单元格
- 把行写入新的 XLSX 文件(报告预设),或设置单元格、追加行并保持其余内容不变
- 在 XLSX 与 CSV、TSV、JSON 之间互相转换,CSV 输出会转义类似公式的文本
- 适用场景
- 适合助手需要在本机处理表格文件而不写代码的场景:查看工作簿结构、抽取行用于分析、比较两个版本的差异,或生成和更新 XLSX 报表。
- 运行要求
- 通过 npx 从 npm 包以 stdio 方式在本地运行,需要 Node.js 22 或更高版本。必须至少指定一个 --root 目录;只有加上 --allow-write 才会注册写入工具。可选限制:--max-file-size、--max-rows、--max-response-chars、--max-cells。无需账号、API 密钥或环境变量。
安装
在 SourceWeft 中
- 打开 控制台中的 xlvane: XLSX workbooks,将其添加到工作区。
- 为需要使用其工具的对话启用该服务。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
其他 MCP 客户端
参照 仓库 中的启动说明。
README
@xlvane/mcp
An MCP (Model Context Protocol) server for XLSX files, built on xlvane and the official MCP TypeScript SDK (@modelcontextprotocol/server 2.4.0, protocol revision 2026-07-28). An MCP client, such as a coding agent, can inspect, read, compare and validate workbooks, and optionally write, edit and convert them, through tools instead of code.
Requires Node.js 22 or later. Dependencies: xlvane and @modelcontextprotocol/server (which brings @modelcontextprotocol/core and zod).
Start
Many MCP clients take a configuration like this one; check your client's documentation for its exact format and file:
The server speaks MCP over stdin and stdout; messages for people go to stderr.
Tools
Every tool has a JSON Schema for its input and returns its result as structuredContent and as JSON text. Errors are tool results with isError: true and the XlvError data: a stable code, the location, a hint and details (docs/errors.md).
Security
- Directories: files are read and written only inside the
--rootdirectories. Paths are checked after symbolic links are resolved, so.., absolute paths and links that lead outside are refused (XLV_E_PATH_NOT_ALLOWED). A file is checked again after it is opened (the path must still lead to the same file), so swapping it for a link meanwhile does not help. Writing through a symbolic link is refused. A path outside the roots gets the same answer whether or not something exists there, also when it is reached through a symbolic link inside a root. Only regular files are read. Messages on stderr show control characters as\uXXXX. - Read-only by default: the write tools exist only with
--allow-write. They create files exclusively and replace an existing file only when the call passes"overwrite": true, through a temporary file and a rename; the replacement keeps the file's permission bits (not setuid, setgid or sticky), and read-only files are not replaced.edit_cellswrites formulas as given (for exampleHYPERLINK(...)); they are calculated when a spreadsheet application opens the file. Any file name inside a root may be written, also dot files such as.gitignore; choose the roots accordingly. - Limits: files above
--max-file-sizeare refused for reading and writing (convertto JSON stops building the text at that size), workbooks above--max-cellscells are refused, and results above--max-response-charsare cut (read_table) or refused. The official MCP SDK closes the connection after a message larger than 10 MiB. The xlvane reader applies its limits for untrusted files (ZIP bombs, XML without DTDs or entities, the budgets of xlvane 1.1.1).validatelists at most 1 000 problems (problemsTotalcounts all). - File content is data: values, sheet names and other text come from the files and may contain any text, also text meant to influence a model. The server returns it as data and does not interpret it.
- No code execution: macros are never run, external links are never followed, and formulas are not calculated.
API
createServer({ roots, allowWrite, maxFileBytes, maxRows, maxResponseChars, maxCells, cwd }) returns an McpServer to connect to any transport; runCli(args) is the command line.
Links
- Changes in each version: CHANGELOG.md
- Bugs and questions: GitHub issues
- Reporting a vulnerability: SECURITY.md
License: MIT. The MCP SDK is licensed under Apache-2.0.
来源:packages/mcp/README.md,提交 3a56eb8
工具
0版本历史
4- v1.3.3最新Nov 5, 2026
- v1.3.2Nov 4, 2026
- v1.3.0Nov 4, 2026
- v1.2.2Nov 3, 2026
评分
已满足适用检查项的 50%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
- 近 30 天内可连通25 分
请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。
- 已声明认证方式10 分
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
- 已列出工具15 分
请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。
- 描述必需15 分
- 图标10 分
- 文档15 分
- 许可证10 分