# PSU3D0/spreadsheet-mcp [Health: Active]

**Category:** 🏢 Workplace & Productivity  
**Repository:** https://github.com/PSU3D0/spreadsheet-mcp  
**GitHub Stars:** 66  
**Views:** 7  
**Installs:** 0  
**Upvotes:** 0  
**Directory Page:** https://allmcps.com/mcp/psu3d0-spreadsheet-mcp

## Description
High-performance, token-efficient spreadsheet analysis/editing (xlsx/xlsm) with region detection, structured reads, formula/style inspection, forking mechanics, and recalculation. Cross-platform.

## Tools
Capabilities this server exposes over MCP:

- **inspect_cells** — detail-view for up to 25 individual cells with full metadata (value, formula, style, number format)
- **layout_page** — render a sheet range with layout semantics (column widths, borders, merges) as JSON and optionally an ASCII grid
- **grid_export** — export a range as a rich grid payload with per-cell values, formulas, number formats, styles, column sizes, and merges
- **close_workbook** — evict a workbook from cache
- **execute_manifest** — execute a SheetPort manifest with JSON inputs
- **verify_workbook** — compare baseline/current workbook or fork ids and report target proof plus new/resolved/preexisting errors; the summary-first proof step after `recalculate`
- **grid_import** — import a rich grid payload (values, formulas, styles, formats, column sizes, merges)
- **replace_in_formulas** — find and replace text in formula bodies only, plain text or regex, preview or apply
- **get_edits** — list all edits applied to a fork

## Claude Desktop Quick Installation
No generated config for this server: it installs through its own setup steps.

The project's own setup steps (from https://github.com/PSU3D0/spreadsheet-mcp), copied verbatim. Follow them in order; they are not an mcpServers config.

1. Install:

```sh
curl -fsSL https://raw.githubusercontent.com/PSU3D0/agent-spreadsheet/main/install.sh | sh
```

2. Install:

```sh
curl -fsSL https://raw.githubusercontent.com/PSU3D0/agent-spreadsheet/main/install.sh | sh -s -- --mcp
```

3. Install:

```sh
npm i -g agent-spreadsheet
```

4. Install:

```sh
cargo install agent-spreadsheet-mcp
```

5. Install:

```sh
docker pull ghcr.io/psu3d0/agent-spreadsheet-mcp:latest
```

6. Install:

```sh
docker pull ghcr.io/psu3d0/agent-spreadsheet-mcp:latest-full
```

## Documentation

## 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.

_Full upstream README: https://allmcps.com/mcp/psu3d0-spreadsheet-mcp/readme_

