Xlsx Audit Mcp

io.github.arose26由 GitHub 账号 arose26 发布v0.1.0更新于 Nov 3, 2026

Audit Excel workbooks: formula dependency tracing, circular references, risk smells. Local only.

发布方自己的服务:audit.domains - Domain Valuation

已验证STDIO仅桌面开发者工具数据与分析

概览

AI 生成的概览

本地 MCP 服务器,用于审计 Excel 工作簿:追踪公式的前导与从属单元格,标记循环引用和高风险公式模式。

可以做什么
  • 汇总工作簿:工作表、范围、公式数量、定义名称与外部链接
  • 列出公式及其单元格地址和缓存值,可按 INDIRECT、VLOOKUP 等函数筛选
  • 追踪单个单元格的公式、值、前导与从属单元格,包括通过区域间接引用它的单元格
  • 对整个模型执行审计,输出按风险排序的报告,涵盖循环引用、易变函数、公式内硬编码常量、外部链接、合并单元格和超长公式
适用场景
适合审阅或排查电子表格模型而非编辑它:想知道某个合计由什么驱动、改动某个假设会影响哪些单元格,或在依赖某份工作簿前判断它是否脆弱。
运行要求
以 stdio 本地进程运行,从 npm 包 xlsx-audit-mcp 安装(通常通过 npx),需要 Node.js 与 npm。仅支持桌面客户端;未声明认证、API 密钥或环境变量。读取本地 .xlsx 文件。
安装前请注意
它会读取本地工作簿文件,助手因此能看到其内容,不过 README 称数据不会离开本机。它不计算公式,只显示文件中的缓存值;R1C1 记法和结构化表格引用只被计数而不解析,结果可能不完整。它只做只读审计,不能编辑。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Xlsx Audit Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

xlsx-audit-mcp

An MCP server that audits Excel workbooks. Other Excel MCP servers read and write your data — this one reviews your model:

  • "What feeds the Total cell on the Summary sheet?" — precedent tracing
  • "If I change this assumption, what breaks?" — dependent tracing, including cells that consume it through ranges like SUM(A1:A40)
  • "Audit this workbook" — circular references with example chains, volatile functions (INDIRECT, OFFSET, NOW, RAND...), hardcoded constants buried inside formulas, external workbook links, merged cells, extra-long formulas

Spreadsheet mistakes are famously expensive. This is the "trace precedents" discipline auditors apply by hand, exposed to an LLM for a whole workbook at once. Local files only; nothing leaves your machine.

Quick start

Claude Code

bash
claude mcp add xlsx-audit -- npx -y xlsx-audit-mcp

Claude Desktop — add to claude_desktop_config.json:

json
{  "mcpServers": {    "xlsx-audit": {      "command": "npx",      "args": ["-y", "xlsx-audit-mcp"]    }  }}

Then: "Audit C:\models\budget-2026.xlsx and tell me what looks fragile."

Tools

ToolWhat it does
workbook_overviewSheets, dimensions, formula counts, defined names, external links
list_formulasFormulas with addresses and cached values, filterable (INDIRECT, VLOOKUP, ...)
trace_cellOne cell's formula, value, precedents, and dependents (direct + via ranges)
audit_workbookRanked risk report across the whole model

How it works

  • Reference tokenizer that understands real formulas: string literals are stripped first (the "A1" in INDIRECT("A1") is not a reference), function names can't collide (the G10 in LOG10(...) is not a cell), $ absolutes, quoted sheet names ('My Data'!A1), and ranges are handled.
  • Shared formulas are materialized. Excel stores filled formulas once with an offset scheme; the loader translates them per-cell (relative refs shifted, absolutes preserved), so dependency queries see what each cell actually computes.
  • Ranges are never expanded for storage — dependents queries use range-containment tests, and cycle detection caps range fan-out (a SUM(A:A) can't explode the graph; capped ranges are reported, not silently dropped).
  • No formula evaluation. Cached values from the file are shown instead — no spreadsheet engine dependency.

Known limitations: R1C1 notation and structured table references ([@Column]) are counted but not resolved into the graph.

Development

bash
npm installnpm test                 # offline tests — synthetic workbooks built in-suitenpm run build            # tsc → dist/node scripts/smoke.mjs   # end-to-end: generates a workbook, drives the server over stdio

Architecture: src/xlsx.ts (zip + XML → workbook model) and src/formulas.ts (tokenizer, graph, smells) are pure logic; src/index.ts is the MCP wiring.

License

MIT

来源:README.md,提交 ba65234

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.1.0最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

其他 Audit 集成