Xlsx Tools MCP logo

Xlsx Tools MCP

Reads and edits .xlsx workbooks while preserving untouched structure, styles, formulas, and comments.

Install Xlsx Tools MCP

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "xlsx-tools-mcp": {
      "command": "uvx",
      "args": [
        "xlsx-tools-mcp"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Automated check passed— started and listed 29 tools correctly ().

Overview

xlsx-tools-mcp MCP server gives agents read and write access to Excel .xlsx workbooks through 29 stdio MCP tools. It uses python-calamine for fast reads, openpyxl for structure-preserving edits, and optionally LibreOffice to recalculate formulas after writes. Agents can inspect sheets, read and search ranges, aggregate data, modify cells, manage workbook structure, apply styles, and create tables or charts. Reach for it when an agent needs to update existing workbooks without broadly replacing their formatting or layout.

Use cases

  • Read structured data from existing Excel workbooks
  • Update cells and formulas without replacing untouched formatting
  • Search, query, and aggregate worksheet data
  • Create Excel tables and native charts
  • Restore a workbook from an automatic backup

Key features

  • Structure-preserving .xlsx reads and writes
  • Formula recalculation through headless LibreOffice
  • Fast reads with calamine and openpyxl fallback
  • Sheet, row, column, range, and formatting operations
  • Native Excel tables and charts
  • Per-file locking, backups, and path confinement

Tools29

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

Verified live~6.1k 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.

21/21 checks healthy over the last 83d

What it can do

From the 29 tools this server returned when we ran it.

Can delete or modify data · 3Read-only tools · 26
Network at startup2 connections
Files written at startup18

Observed 2026-11-13 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 14d ago via OSV.dev · xlsx-tools-mcp (PyPI)

Adoption & maintenance

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

GitHub stars5Stargazers on the source repository.
Last commit7d agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed29Callable tools this server registers over MCP.
Directory activity40 viewsConfig copies, upvotes, and views on AllMCPs.

How Xlsx Tools MCP works

What xlsx-tools-mcp MCP server does

The xlsx-tools-mcp MCP server connects MCP clients to local Excel .xlsx files. Its 29 tools cover workbook inspection, cell and range reads, value searches, data aggregation, querying, cell and formula writes, sheet management, row and column operations, formatting, tables, charts, and formula recalculation.

Edits are designed to leave untouched workbook content in place. The write path uses openpyxl to load and save the existing file, which can preserve styles, merged cells, comments, formulas, and other content outside the requested change. Automatic per-file locking serializes concurrent operations so calls do not interleave on the same workbook.

How it works

Read operations primarily use python-calamine, a Rust-backed parser that provides fast type inference. The server falls back to openpyxl when a request needs formulas, styles, comments, or when calamine cannot parse the file. Aggregation and querying use pandas, with AST validation for expressions supplied to those operations.

Value and formula writes can invoke LibreOffice in headless mode after saving. LibreOffice recalculates formulas, and the server scans the resulting workbook for Excel errors such as #REF!, #DIV/0!, and #N/A. Without LibreOffice, writes still complete through openpyxl, but formulas are not recomputed and a warning is returned.

The xlsx-tools-mcp MCP server also supports path confinement through an allowed-directory setting, automatic backup files before writes, and atomic backup restoration. Formula-writing tools reject selected external or potentially unsafe formulas by default, including formulas using WEBSERVICE, HYPERLINK, INDIRECT, RTD, CALL, or REGISTER.

Setup and configuration

Python 3.10 or newer is required. Install the published package with pip install xlsx-tools-mcp, run it with xlsx-tools-mcp, or use uvx xlsx-tools-mcp without cloning the repository. Source installation is also available through git clone, uv sync, and uv run xlsx-tools-mcp.

The server uses standard stdio transport and is registered with an MCP client rather than normally run as a standalone interactive process. Claude Code can add it with claude mcp add xlsx-tools-mcp -- uvx xlsx-tools-mcp. OpenCode configuration can use the same uvx command.

LibreOffice is optional and recommended when formula results must be current. The server searches for soffice or libreoffice on PATH, along with standard macOS and Windows installation paths. XLSX_MCP_ALLOWED_DIRS restricts file access, XLSX_MCP_AUTO_BACKUP controls the default backup behavior, and XLSX_MCP_FILES preloads workbooks that can then be referenced by alias or without a full path. Values for directory and file lists accept commas or semicolons.

Tools and capabilities

  • List sheets and inspect cell ranges.
  • Search workbook values and query or aggregate sheet data.
  • Write values and formulas, append rows, and insert or delete rows and columns.
  • Rename, copy, or clear sheets and ranges; auto-fit columns and apply styles.
  • Create native Excel tables with autofilters and styles.
  • Create bar, line, pie, and scatter charts.
  • Recalculate formulas and report generated Excel error values.

Limitations and notes

The xlsx-tools-mcp MCP server is intended for .xlsx files. LibreOffice recalculation re-exports the workbook, so it is not a bit-perfect preservation step; pivot tables, charts, data validation, some formats, and some defined names may change. For complex workbooks where that risk matters, value and formula write tools support recalculate=False to save with openpyxl only.

Formula recalculation is not available without LibreOffice. External-formula blocking can be bypassed with allow_external_formulas=True, so callers should use that option only when those formulas are acceptable. Path confinement applies when its environment variable is configured; otherwise the server does not impose that directory boundary.

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 Xlsx Tools MCP

xlsx-tools-mcp is an MCP server that connects AI agents to local Excel .xlsx workbooks. Its main tools read sheets and ranges, search and aggregate data, write values and formulas, manage sheets, rows, and columns, apply styles, create tables and charts, and optionally recalculate formulas through LibreOffice.

Install it with `uvx xlsx-tools-mcp` or `pip install xlsx-tools-mcp`. You can also clone the source, run `uv sync`, and start it with `uv run xlsx-tools-mcp`. Register the stdio command with an MCP client such as Claude Code.

It uses LibreOffice in headless mode after value or formula writes. LibreOffice recomputes the workbook, then the server scans for Excel errors and includes them in the result. Without LibreOffice, writes succeed but formula results are not recomputed.

Yes, openpyxl-based writes preserve content outside the requested edit, including styles, merged cells, and comments in supported cases. LibreOffice recalculation can re-export the workbook and may alter charts, pivot tables, data validation, some formats, or defined names.

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 PreviewXlsx Tools MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/xlsx-tools-mcp?style=directory)](https://allmcps.com/mcp/xlsx-tools-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/xlsx-tools-mcp"><img src="https://allmcps.com/api/badge/xlsx-tools-mcp?style=directory" alt="Xlsx Tools MCP on AllMCPs" /></a>