Skip to main content
Glama

spreadsheet-audit-mcp

An MCP server that lets Claude (or any MCP client) audit an .xlsx workbook for the errors that quietly break spreadsheet models. Local and read-only: it opens the file you point it at, never writes to it, never uses the network.

What it checks

Rule

Severity

What it catches

CALC-ERROR

HIGH

#DIV/0!, #REF!, #N/A, #VALUE!, #NAME? after an independent recalculation (pure-Python formulas engine)

CACHED-ERROR

HIGH

error values stored in the file by the last app that saved it

TYPED-OVER

HIGH

a hard-coded number sitting inside a filled-down formula run

PATTERN-BREAK

HIGH

the one formula that differs from consistent neighbours above and below

EXT-LINK

HIGH

formulas that read another file

NAME-REF

HIGH

named ranges that point to #REF!

MAGIC-NUMBER

MEDIUM

rates and thresholds buried in formulas instead of labelled inputs (rounding tolerances like <=0.005 are ignored)

LOOKUP-APPROX

MEDIUM

VLOOKUP with approximate match (omitted or TRUE)

HIDDEN-SHEET

MEDIUM

hidden or very-hidden sheets

HIDDEN-ROWCOL, VOLATILE

LOW

hidden rows/columns; INDIRECT, OFFSET, TODAY, NOW, RAND

Repeated MAGIC-NUMBER, VOLATILE and LOOKUP-APPROX hits are grouped per sheet with a count, so 700 repeats do not bury the real problems.

Related MCP server: excel-mcp

Tools

Tool

What it does

audit_workbook

Full audit (path, recalc, min_severity, limit).

inspect_cell

One cell's formula, stored result and the cells it reads (path, sheet, cell).

Install and use

Requires Node 18+, Python 3.9+ with openpyxl (and optionally formulas for the recalculation check): pip install openpyxl formulas.

npm install
npm test        # 14 Python tests + 8 end-to-end MCP client checks

Claude Desktop / Claude Code config:

{ "mcpServers": { "spreadsheet-audit": { "command": "node", "args": ["/absolute/path/to/server.mjs"] } } }

Then ask: "Audit ./budget.xlsx and tell me which findings could change the bottom line."

Honest limits

Heuristic. It points at where models usually go wrong; it cannot prove a model is right, and some findings are intentional (for example a sensitivity grid with fixed steps). If the recalculation engine cannot handle a workbook it says so in recalculation_note and the static checks still run.

Need a spreadsheet model built or reviewed, or a custom MCP server for your tools?

Open an issue or message the author.

License: MIT

Available Tools

2 tools
audit_workbookAudit a spreadsheet for formula and model errorsA
Read-onlyIdempotent

Audits an .xlsx workbook: error values after an independent recalculation, typed-over formulas, formulas that break the pattern of their neighbours, hard-coded numbers inside formulas, approximate-match lookups, volatile functions, external links, hidden sheets/rows/columns and broken named ranges. Heuristic: it points at where models usually go wrong, it cannot prove a model is right.

Inputs: path (required), limit, recalc, min_severity.

inspect_cellShow one cell's formula and what it readsA
Read-onlyIdempotent

Returns the formula (or value), the stored result if the file has one, and the cells the formula reads. Use it to follow a suspicious number back to its inputs.

Inputs: cell (required), path (required), sheet (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.7/5.0

    Scored across 2 tools

    Disambiguation5/5

    The two tools are cleanly separated: audit_workbook performs a whole-file heuristic sweep, while inspect_cell zooms in on a single cell's formula, value, and precedents. The drill-down workflow is explicitly described, so an agent can always tell which to reach for.

    Naming Consistency5/5

    Both names follow the same verb_noun snake_case convention (audit_workbook, inspect_cell), with verbs that accurately mirror each tool's scope. No stylistic deviations.

    Tool Count3/5

    Two tools is at the thin edge for a spreadsheet auditing server; the surface is coherent but leaves no room for reporting, filtering, or remediation operations. It works as a minimal diagnose-then-drill pair, nothing more.

    Completeness3/5

    Detection and follow-up tracing are covered, but there is no way to export or summarize findings, fix/annotate flagged issues, or compare across workbooks. For a read-only audit domain this is workable, but agents will hit dead ends on any remediation or reporting task.

    Maintenance

    ActivitySlowing
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      50 tools and 400 functions for working with Excel/.xlsx spreadsheets — read/write, recalculate formulas, diff, repair broken references, and audit. Built for AI agents.
      50
      3,087 npm
      6
      MIT
    • F
      license
      C
      quality
      C
      maintenance
      An MCP server for safe .xlsx inspection and controlled workbook writes, enabling spreadsheet reads, search, filtering, aggregation, and preview-based writes with workspace confinement and audit logging.
      12
      -
    • A
      license
      A
      quality
      C
      maintenance
      Audits Excel workbooks by tracing cell dependencies and detecting circular references, volatile functions, and other formula risks, enabling natural-language audit queries on local files.
      4
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI coding agents to edit real .xlsx workbooks in place through spreadsheet-native tools like describe, find, read, write, and structural edits, recalculating formulas without Excel, LibreOffice, or Python. Every change comes back as a review link showing changed cells before and after, and nothing is written until the user accepts, while charts, pivots, and VBA data return byte-identical.
      11
      Apache 2.0