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 整合