Skip to main content
Glama

SheetCraft MCP — Local Excel (.xlsx / .csv) Intelligence Server

100% offline Model Context Protocol (MCP) server & CLI for Excel spreadsheets.
Give Claude Code, Cursor, Windsurf, Claude Desktop, and Antigravity direct local tools to inspect, audit broken formulas & truncated SUM() ranges, diff two workbook versions, query/aggregate rows, convert CSVs without stripping leading zeros, and generate styled OOXML .xlsx workbooks — zero cloud uploads, zero Python setup, zero runtime dependencies.

License: MIT Node.js >= 18 Zero Dependencies


Quick Start (1 Line — No Install Needed)

Add sheetcraft-mcp to your MCP client config (runs instantly via npx with Node 18+):

Claude Desktop / Cursor / Windsurf (mcpServers)

{
  "mcpServers": {
    "sheetcraft": {
      "command": "npx",
      "args": ["-y", "github:hoanghoang290393/sheetcraft-mcp"]
    }
  }
}

Claude Code CLI

claude mcp add sheetcraft -- npx -y github:hoanghoang290393/sheetcraft-mcp

Standalone CLI Mode (Audit or Diff from Terminal)

# Deep formula & accounting integrity audit (0-100 Health Score)
npx -y github:hoanghoang290393/sheetcraft-mcp --audit ./Q4_Report.xlsx

# Diff two workbook versions matched by a unique key column (SKU / Account ID)
npx -y github:hoanghoang290393/sheetcraft-mcp --diff ./Q3.xlsx ./Q4.xlsx SKU

# Audit every .xlsx workbook in a directory
npx -y github:hoanghoang290393/sheetcraft-mcp --batch-audit ./finance-reports

Related MCP server: SheetForge MCP

8 Built-in MCP Tools

Tool

What it does

inspect_workbook

Summarizes every sheet: dimensions, headers, formula count, error count, merged regions, and sample rows.

read_sheet

Paginated sheet reader with optional column filtering and raw formula inspection (=SUM(C2:C10)).

audit_workbook

Deep integrity audit: detects #REF!/#DIV/0!/#VALUE!/#NAME?/#N/A, truncated SUM/AVERAGE ranges missing bottom rows, currencies/numbers stored as text, exact duplicate rows, and returns a 0–100 Health Score.

diff_workbooks

Compares two .xlsx files by cell coordinates or by key_column (e.g. SKU, ID), showing added/removed sheets, rows, numeric delta, and % change.

query_sheet

Filters (eq, neq, contains, gt, gte, lt, lte), groups (group_by), aggregates (count, sum, avg), and sorts rows directly without writing code.

create_styled_workbook

Creates clean multi-sheet OOXML .xlsx workbooks with bold frozen navy headers (A2), AutoFilter, auto-fitted widths, native USD/EUR/GBP/percent formatting, preserved leading zeros, and live Excel formulas (=SUM(...)).

convert_csv_to_xlsx

Converts UTF-8 CSV/TSV files into styled .xlsx workbooks while preserving leading-zero ZIP/SKU codes and typing US/EU currencies & percentages.

batch_audit_folder

Scans an entire folder (optional recursive: true) of .xlsx/.xlsm/.xls files and ranks them from lowest to highest Health Score.


Why Local & Zero-Dependency?

  • Safe for confidential financial & HR spreadsheets: Your files never leave your machine — no external APIs, no telemetry.

  • Catches silent accounting bugs: Standard readers miss numbers accidentally stored as text ("$8,500.00" ignored by SUM) and SUM(C2:C48) formulas that forgot rows 49–50. audit_workbook catches both automatically.

  • Standards-compliant .xlsx output: Generated workbooks pass strict openpyxl -W error (zero warnings) and open cleanly in Microsoft Excel, LibreOffice Calc, and Apple Numbers.


Companion Spreadsheet & Automation Tools (by MacAppKit)

Built by the team behind MacAppKit:


Development & Testing

# Rebuild single-file zero-dependency executable
node scripts/build.mjs

# Run full MCP JSON-RPC 2.0 stdio + openpyxl E2E test suite
node tests/e2e.test.mjs

License

MIT

Tool Schema Changelog

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

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      C
      quality
      B
      maintenance
      Local-first Excel MCP server for AI agents enabling structured reads, workbook introspection, and safer .xlsx mutation without Microsoft Excel or LibreOffice.
      86
      520 PyPI
      3
      MIT
    • A
      license
      Not graded
      quality
      A
      maintenance
      A local MCP server that lets Claude, Cursor, Codex, or any MCP client work with Office documents on your Mac: evaluate spreadsheet formulas, read/write XLSX and PPTX, extract structured DOCX content, and merge/split/protect PDFs. 100% local, no network calls, no account. 14 tools.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Local MCP server that connects Claude to real Excel .xlsx files for financial and operational analysis. Enables reading, comparing, cleaning, reconciling, and writing to Excel files without cloud dependency.
      1
      MIT