The full upstream README, mirrored here for reference. Install config, tool schemas, adoption signals, and an original overview live on the KitchenSink4XL listing page.
Landing page · llms.txt (machine-readable capability manifest for agents and LLM crawlers)
An Excel (.xlsx) MCP server built against hallucination: every value your AI reads is labeled calculated, cached, or missing, so it never repeats a stale number as a fresh one. Cells and ranges, formulas, server-side query and aggregation, formatting, tables, sort and filter, CSV/JSON import and export, and verified writes that never corrupt a workbook. 129 workbook operations across 69 tools (67 workbook tools plus the two pack toggles). Works with Claude Code, Claude Desktop, Cursor, and any MCP client. Part of the KitchenSink4AI suite with kitchensink4word (Word), kitchensink4ppt (PowerPoint), and kitchensink4web (browser).
New here? Start with the Quickstart.
Here is the dirty secret of every tool that reads Excel files: a spreadsheet remembers its answers, not its thinking. When something changes upstream, the old answers just sit there, looking exactly like real numbers. Most AI tools will read one anyway and confidently report it, and you will make a decision based on it. This server refuses to bluff. Every number it hands your AI comes with the truth attached: freshly calculated, remembered from the last save, or missing, with the affected cells named. And when it really matters, it asks Excel itself to recalculate and prove it.
Insert one column in a real workbook and you find out how much of a spreadsheet lives to the right of where you clicked. Formulas, totals, charts, that table on sheet three that quietly feeds the summary: all of them have opinions about where their cells just went.
Most tools do the cheap version: move the cells, save the file, hope. The damage never shows up when the edit runs. It shows up three days later, in a meeting, in the one total that quietly stopped including its last row.
This server moves everything that should move, and checks the result against what Excel itself would have done. When an edit cannot be done safely, it says no out loud instead of guessing quietly. A refusal costs you a minute. A quiet guess costs you the deal.
manage_worksheet
alone performs seven distinct operations, manage_table nine, validate
runs nine correctness batteries. The operations figure comes from
scripts/count_operations.py, which reads the dispatch values each tool
actually validates, out of committed source, and never from hand-math. Its
docstring carries the counting definition and what is deliberately excluded.
A committed snapshot (scripts/operations_snapshot.json) plus a guard test
make a drifting figure a test failure rather than a marketing decision.enable_tools call. Load every pack and
the full surface measures about 24,200 tokens. All figures come from
scripts/measure_surface.py; see Context cost.The stock is arranged in capability packs, the way a good shop groups what
belongs together. A session opens on the lite core and switches on the pack a
job needs with one call. Numbers below come straight from
scripts/measure_surface.py, never hand-counted.
| Pack | Tools | Approx tokens | What it carries |
|---|---|---|---|
| lite (startup) | 40 | ~14.5k | The everyday bench: an anchored grid view of the workbook, labeled reads of cells and ranges, server-side query and aggregation, formula write and audit, structural row and column edits that carry their references, sort and filter with Excel's own ranking, tables, formatting, import and export, backups, diagnostics, and the enable_tools switchboard |
| design | 9 | ~4.1k | Named cell styles, a format painter, a style-bloat audit, conditional formatting, data validation, images, charts, the full table lifecycle (columns, totals, resize, banding), and named ranges including LAMBDA definitions and a cleanup pass |
| io | 9 | ~2.8k | Page layout and print setup, headers and footers, advisory protection, legacy comments, multi-sheet export, and the read-side inspectors: external links, VBA, existing pivot tables, and data connections |
| com | 11 | ~2.8k | Drives a private hidden Excel instance, never your open session: real recalculation, real pivot tables, goal seek, PDF export, sheet render to image, format conversion, real encryption, sparklines, true autofit, an opens-clean check, and an honest status report |
| Full surface | 69 | ~24.2k | Everything (67 workbook tools plus enable_tools / disable_tools) |
A session begins with the lite core. When a task needs more, the agent turns on the pack by name:
The lite core carries no degraded stand-ins, so the lazy path is a dead end on
purpose: a refusal for out-of-scope work names the exact pack and the exact
call that unlocks it. Power users who want everything loaded from the start
can pin it with KS4XL_MODE=full in the server environment, or a
comma-separated pack list. Administrators can lock the selection with
KS4XL_PACK_POLICY=locked.
Feature grids flatter everybody. Here it is instead as the requests an agent actually gets:
| "Hey, could you…" | 🔌 KitchenSink4XL | haris-musa (openpyxl), 4,155★† | The rest of the aisle* |
|---|---|---|---|
| "Insert a column in the middle, keep every formula pointing where it should." | ✔ formulas, tables, named ranges, charts and cross-sheet links all follow, checked against Excel's own recalculation | ✘ nothing in the docs says otherwise, and openpyxl, the library underneath, states plainly that it does not maintain formulas, tables or charts when rows and columns move | Excel does the shifting itself, on Windows, with the workbook closed and the application running |
| "Is this total current, or left over from the last save?" | ✔ every value labeled calculated, cached or absent, and the stale cells named by address | ✘ reads return the formula string; there is no way to get even the cached value | the COM server recalculates with Excel's own engine, but the value comes back with no freshness marking of any kind |
| "Sort it the way Excel would sort it, blanks and all." | ✔ numbers, then text case-insensitively, then FALSE, TRUE, errors, blanks last, both directions, checked cell for cell against Excel | ✘ no sort tool | Excel's own sort, with the application running |
| "Write a LAMBDA the file can still open afterward." | ✔ modern functions and their declared parameters prefixed correctly; 80 formulas across every documented family opened with no repair prompt | n/d, and no Excel MCP server surveyed documents the modern functions either way, as support or as a limitation | n/d |
| "Read the big workbook without torching my context window." | ✔ compact reads, a grid view, and server-side query and aggregation so the rows stay on the server | ✘ no pagination and no token budgeting anywhere in the docs; with no end cell given it reads the whole used range | the Go server pages reads by cell count, 4,000 cells at a time by default |
| "Recalculate it for real and prove it." | ✔ a private hidden Excel does the arithmetic and the result comes back labeled calculated, never mixed in with cached values | ✘ no recalculation tool, and the documentation never raises the subject | real recalculation on the COM server, which asks for Windows, an installed Excel, an interactive desktop and the workbook closed first |
Capability survey as of 2026-09-04, compiled from public repositories, documentation, and issue trackers. n/d: not documented in the sources surveyed, which is not a claimed absence. The most popular Excel MCP server is haris-musa/excel-mcp-server, 25 tools on openpyxl, last released 2026-04-12; its own open issues #94 and #118 ask for computed values instead of formula text. openpyxl's documentation states that it does not manage dependencies such as formulae, tables and charts when rows or columns are inserted or deleted. * The rest of the aisle: negokaz/excel-mcp-server (Go, seven tools, paginated reads, live editing on Windows), sbroenne/mcp-server-excel (C#, 31 tools over 326 operations driving the real Excel application, the capability ceiling, but Windows with Excel and exclusive access to the file, and no file-based tier). Two newer servers, PSU3D0/agent-spreadsheet and logisky/logisheets-mcp, embed real calculation engines and are worth watching. Microsoft ships no Excel MCP server, and Claude for Excel is an Office add-in rather than an MCP server. † Star counts read from the GitHub API on 2026-09-04, shown for context: stars say how long a shelf has been in view, not what is on it. Corrections welcome: open an issue.
Pick the line that describes you. Most people are the first one.
First launch through uvx downloads and builds the environment and can take 20 to 30 seconds before the server answers; every launch after that starts in about two. If a client reports a timeout on first install, launch once from a terminal and try again.
Download kitchensink4xl.mcpb from the
latest release
and double-click it, or drag it into the Claude Desktop window. Desktop adds
it as an extension and the sink is connected. Nothing to type, nothing to
configure. One-time requirement: uv on your
PATH (pip install uv), which the bundle uses to start the server. If Desktop
does not pick the file up on a double-click, use Settings > Extensions >
Advanced settings > Install extension.
The extension's settings page offers two switches. Verify every save with Excel turns on the deep check, where a real hidden Excel has to open the saved file cleanly or the backup is restored; it is off by default because it costs a round trip through Excel on every write. Limit the server to one folder confines every path the server touches, reads included, to a directory you pick.
One line in a terminal and you are done. It fetches and runs the server for you, so there is nothing to install first.
Install the package and point any MCP client at the executable:
The mode is "lite" (the default), "full", or a comma-separated pack list.
The xl-mcp executable is an equivalent entry point. The installed package is
named xlsx_mcp, so a client that wants an interpreter and a module instead
of a console script can run python -m xlsx_mcp.
python -m xlsx_mcp.server starts the same server and is what releases
before 1.1 support. Running from a clone
works the same way; point the command at the xl-mcp executable in the
clone's virtual environment:
Windows:
macOS and Linux:
The COM pack is an optional extra, pip install kitchensink4xl[com], and it
is a no-op off Windows. On Windows the COM dependency often arrives
transitively with the base install; installing with [com] is the guaranteed
route either way, and harmless to repeat. With no install at all:
uvx kitchensink4xl.
Environment variables the server reads:
| Variable | What it does |
|---|---|
KS4XL_MODE | Startup surface: lite (default), full, or a comma-separated pack list |
KS4XL_PACK_POLICY | auto (default) or locked, which fixes the surface at startup |
KS4XL_ALLOWED_ROOTS | Path sandbox: an os.pathsep-separated list of directories |
KS4XL_VERIFY_COM | 1 makes the deep Excel verification the default for every save |
KS4XL_VALIDATE_COM | 1 routes validate's structure check through Excel's own verdict |
KS4XL_COM_TIMEOUT | Bounds how long a COM call may take |
KS4XL_UPDATE_CHECK | off turns the update check off completely: no network call, no cache file (the older KS4XL_NO_UPDATE_CHECK=1 still works) |
Update check. The server looks for a newer release on PyPI only when you
call get_server_info, never at startup and never on a timer, at most one request
every seven days, capped at two seconds. The check is a single plain HTTPS
GET to pypi.org that sends nothing but the request itself. A failed check is
reported with its reason rather than hidden. Set KS4XL_UPDATE_CHECK=off to turn it off
completely (the older KS4XL_NO_UPDATE_CHECK=1 still works). The server never
downloads or installs anything.
Most MCP servers move into your AI's context like a hoarder: everything, up
front, whether the job needs it or not. This one starts light and only unpacks
a shelf when the work calls for it. Here is the bill, measured by
scripts/measure_surface.py:
| On the meter | Tools | Tokens | When it draws |
|---|---|---|---|
| Lite core | 40 | ~14.5k | From the first message of every session |
| Design pack | 9 | ~4.1k | Only after enable_tools |
Layout plus inspection pack (io) | 9 | ~2.8k | Only after enable_tools |
| COM pack | 11 | ~2.8k | Only after enable_tools, and only on Windows with Excel |
| Everything switched on | 69 | ~24.2k | KS4XL_MODE=full, if you want it all up front |
No other Excel MCP server surveyed publishes what its own tool definitions cost to load. The figures above come from a measuring script that ships with the source, so you can check them yourself. Clients that defer tool schemas until first use pay close to zero until a tool is actually called.
.ks4xl-backups/ folder next to the workbook. manage_backups
lists, restores, and prunes them. Exclude that folder from cloud sync tools:
the slots churn on every edit and sync clients can hold locks that slow
saves down.
The backup slots hold what this server changed, and only that. An edit made
in Excel or any other program is never captured, so prev restores the state
before the last change made here, not before the last change made anywhere.query_range, export_range, and the aggregates read
every row in the range, including rows an autofilter is hiding. Excel's own
SUBTOTAL skips hidden rows; these functions do not, and a filtered sheet can
therefore sum differently here than in Excel's own status bar.verify_com=true
on any mutating call adds the deep check: the produced file has to open in a
real hidden Excel with no repair prompt, or the backup goes back and the
save refuses. KS4XL_VERIFY_COM=1 makes that the default for every save.= character; cell type
decides, so text that merely looks like a formula is not re-armed as one on
copy, move, sort, or reference rewrite.Off by default: with nothing configured, the server reads and writes wherever
you point it. Set KS4XL_ALLOWED_ROOTS to a list of directories separated by
the OS path separator (; on Windows, : elsewhere) and every path the
server touches must resolve inside one of them. Reads are gated as well as
writes, since a read outside the sandbox exfiltrates workbook content just as
surely as a write plants it. The containment check runs on canonicalized
paths, so ..\ traversal, symlink and junction escapes, short names, case
tricks, and lookalike sibling directories are all caught. A blocked call
refuses with a typed error naming the offending path and the allowed roots
before any file is opened.
1,294 tests in tests/unit, plus a separate local COM gate battery that drives a
real Excel. On top of the suite, this release went through the family's
gauntlet:
Zero corruptions across the fixture corpus. That corpus is committed in-tree because the hazard, fidelity and adversarial tests need real Excel-authored workbooks (pivots, slicers, shapes, x14 conditional formatting) that openpyxl cannot author, and every fixture is scrubbed of authoring identity by a test-guarded pass. The corruption figure is the build record's, not a script's output; the script-derived numbers here are the test count and the surface measurements.
This is the newest sink in the family, and it shipped through the hardest gauntlet we have ever run: adversarial rounds through the raw protocol, ground-truth checks against Excel's own arithmetic, interrupted-save torture, and a final round built around one question: can any sequence of operations ruin the only copy of a workbook a business depends on. Every finding was fixed before this release. What it has not had yet is a long life in strangers' spreadsheets, and numbers earn trust in the field. The safety net is structural: a backup before every change, saves that verify before they replace your file, and honest labels on every number it hands you. If Excel is where you live, bring your ugliest workbook to the service counter and tell us what broke.
get_server_info and paste the output
here; it is designed to be safe to share.Atomic saves. Automatic backups before every change. And one extra wire, because this is a spreadsheet: before a release ships, every kind of edit is checked against Excel's own math. The wiring gets inspected before the power goes on.
Provided as-is, without warranty of any kind, per the license; the engineering above is simply how seriously your workbooks are taken. Keep backups. (It makes them for you.)
com_render_sheet needs a real desktop. Rendering a sheet to an image
goes through Excel's clipboard, and a hidden Excel started in a
non-interactive session has no window station to copy through, so the call
fails there. It works from a normal signed-in desktop session, which is
where anyone actually uses it. Every other COM tool runs fine unattended.#REF! when Excel opens the
file. Audit references first when in doubt.recalculate in the COM pack is the fix.KitchenSink4XL is dual-licensed:
AGPL-3.0 (open source). Free for anyone (individuals, academics, and businesses) for any use that complies with the AGPL's terms. Those terms include sharing source, including your modifications, when you distribute the software or make it available over a network.
Commercial license. For organizations that want to build KitchenSink4XL into their own products or services without the AGPL's source-sharing obligations. Contact licensing@kitchensink4.ai.
Copyright (c) 2026 Alvut Consulting, LLC. KitchenSink4AI is a product line of Alvut Consulting, LLC.
Not affiliated with, endorsed by, or sponsored by Microsoft Corporation. Microsoft and Excel are trademarks of the Microsoft group of companies.