Spreadsheet MCP logo

Spreadsheet MCP

by PSU3D0

Analyze and edit XLSX/XLSM workbooks with structured reads, formula inspection, rich grid exchange, forks, and verification.

Install Spreadsheet MCP

Run the project’s own setup commands, in order.

Setup steps from the project

PSU3D0/spreadsheet-mcp installs with its own steps rather than a config we can generate, so these are copied as-is. Follow them in order and run the commands in a terminal. Source: github.com

  1. 1. Install
    curl -fsSL https://raw.githubusercontent.com/PSU3D0/agent-spreadsheet/main/install.sh | sh
    
  2. 2. Install
    curl -fsSL https://raw.githubusercontent.com/PSU3D0/agent-spreadsheet/main/install.sh | sh -s -- --mcp
    
  3. 3. Install
    npm i -g agent-spreadsheet
    
  4. 4. Install
    cargo install agent-spreadsheet-mcp
    
  5. 5. Install
    docker pull ghcr.io/psu3d0/agent-spreadsheet-mcp:latest
    
  6. 6. Install
    docker pull ghcr.io/psu3d0/agent-spreadsheet-mcp:latest-full
    

Overview

PSU3D0/spreadsheet-mcp MCP server provides agent-accessible analysis and editing for XLSX and XLSM workbooks. It exposes structured inspection, layout rendering, rich grid import/export, formula-only replacement, fork edit tracking, manifest execution, and workbook verification through MCP tools. Stateful workbook caching supports multi-turn workflows and avoids treating spreadsheets as unstructured files. Reach for it when an agent needs targeted cell metadata, spreadsheet-aware edits, or proof of workbook changes rather than UI automation.

Use cases

  • Inspect targeted cells with formulas and formatting metadata
  • Render spreadsheet ranges with layout and merge information
  • Replace text inside formulas without changing ordinary cell values
  • Import or export richly formatted spreadsheet regions
  • Verify edits made to workbook forks

Key features

  • Structured cell and layout inspection
  • Rich grid import and export
  • Formula-only replacement with preview mode
  • Workbook caching and fork edit tracking
  • SheetPort manifest execution
  • Workbook comparison and verification

Tools9

What Spreadsheet MCP lets your agent do. Expand a tool for its parameters.

Self-reported~219 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

27/28 checks healthy over the last 111d

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars66Stargazers on the source repository.
Last commitTodayMost recent push to the default branch.
Tools exposed9Callable tools this server registers over MCP.
Directory activity7 viewsConfig copies, upvotes, and views on AllMCPs.

How Spreadsheet MCP works

What PSU3D0/spreadsheet-mcp does

PSU3D0/spreadsheet-mcp MCP server gives agents a structured interface for reading, analyzing, modifying, and checking Excel workbooks. Its documented workbook targets are .xlsx and .xlsm files, with support for values, formulas, styles, number formats, layout details, column sizes, borders, merged cells, and workbook edits.

The server is intended for multi-step agent sessions rather than only one-shot file conversion. Workbook state can be retained in a cache, and fork-oriented workflows let an agent work with alternate workbook states and later inspect the edits made to a fork. The available operations are exposed as MCP tools with JSON-oriented results.

How it works

A typical workflow starts with a focused inspection. inspect_cells returns detailed metadata for up to 25 selected cells, while layout_page describes a bounded sheet range with structural layout information and can optionally include an ASCII grid. grid_export produces a richer range representation that includes cell content, formulas, formats, styles, column dimensions, and merges.

Changes can be exchanged through grid_import, which accepts the corresponding rich grid-style data. For formula maintenance, replace_in_formulas searches formula bodies only and supports plain-text or regular-expression replacement. It can preview a change before applying it, reducing the chance of altering ordinary cell text unintentionally.

The server also supports workflow-oriented operations. execute_manifest runs a SheetPort manifest with JSON inputs. get_edits lists edits applied to a fork, and verify_workbook compares baseline and current workbooks or fork identifiers. Verification reports target proof along with new, resolved, and pre-existing errors; it is intended as the summary and proof step after recalculation.

Tools and capabilities

PSU3D0/spreadsheet-mcp exposes these documented tools:

  • inspect_cells for targeted cell metadata, including values, formulas, styles, and number formats.
  • layout_page for layout-aware range inspection with optional ASCII output.
  • grid_export and grid_import for rich, structured range exchange.
  • replace_in_formulas for previewable plain-text or regex changes inside formulas.
  • execute_manifest for running SheetPort manifests with JSON inputs.
  • get_edits for reviewing changes made to a fork.
  • verify_workbook for comparing workbook or fork states and reporting verification results.
  • close_workbook for removing a workbook from the server cache.

The repository documentation also describes region detection, token-efficient reads, workbook forking, and recalculation as part of the broader spreadsheet interaction stack. The listed MCP tools provide the inspection, mutation, execution, cache, and verification surfaces needed to use those workflows from an agent.

Setup and configuration

Install the MCP package with Cargo:

bash
cargo install agent-spreadsheet-mcp

The repository also publishes Docker images, including a slim read-only image and a full image intended for writing, recalculation, and screenshots. Prebuilt binaries are available through the project’s GitHub Releases, while the broader project supports Linux and macOS native release assets.

PSU3D0/spreadsheet-mcp is a fit for agents that need structured spreadsheet work over supported Excel files. It is less suited to workflows that require .xls or .xlsb writing, since the repository describes those formats as discovery/read-oriented only.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Spreadsheet MCP

PSU3D0/spreadsheet-mcp is an MCP server that connects AI agents to XLSX and XLSM workbooks for structured spreadsheet work. Its main tools inspect cells, render layouts, export and import rich grids, replace formula text, execute SheetPort manifests, track fork edits, close cached workbooks, and verify workbook changes.

Install it with Cargo using `cargo install agent-spreadsheet-mcp`. The project also provides Docker images and prebuilt release assets, including a slim image for read-only use and a full image for writing, recalculation, and screenshots.

Yes, `inspect_cells` returns values, formulas, styles, and number formats for up to 25 selected cells. `layout_page` and `grid_export` provide additional range-level layout, formatting, merge, and column-size information.

Use `replace_in_formulas`, which searches formula bodies rather than ordinary cell text. It supports plain-text and regular-expression matching and can preview the proposed replacement before applying it.

Yes, `verify_workbook` compares baseline and current workbooks or fork identifiers and reports target proof plus new, resolved, and pre-existing errors. `get_edits` lists the edits applied to a fork.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewSpreadsheet MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/psu3d0-spreadsheet-mcp?style=directory)](https://allmcps.com/mcp/psu3d0-spreadsheet-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/psu3d0-spreadsheet-mcp"><img src="https://allmcps.com/api/badge/psu3d0-spreadsheet-mcp?style=directory" alt="Spreadsheet MCP on AllMCPs" /></a>