MCP Server Spreadsheet logo

MCP Server Spreadsheet

Read, edit, search, and query .xlsx, .csv, and .ods files through cell tools and DuckDB SQL.

Install MCP Server Spreadsheet

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": {
    "mcp-server-spreadsheet": {
      "command": "uvx",
      "args": [
        "mcp-server-spreadsheet"
      ],
      "env": {
        "MCP_SPREADSHEET_ROOT": "YOUR_VALUE_HERE"
      }
    }
  }
}

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

Values are written into the snippet above so you can paste it as is. They never leave your browser.

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

Overview

The mcp-server-spreadsheet MCP server reads and writes .xlsx, .csv, and .ods files through a unified MCP tool interface. It supports cell, range, row, column, sheet, workbook, and search operations alongside DuckDB SQL queries and mutations. Each call supplies a file path and optional sheet name, with no persistent sessions or handles. Reach for it when an agent needs structured spreadsheet inspection, edits, cross-sheet analysis, or SQL-based updates.

Use cases

  • Inspect workbook structure and used ranges
  • Update spreadsheet cells, rows, columns, and ranges
  • Search sheets for values or regular expressions
  • Analyze related sheets with DuckDB SQL
  • Apply SQL updates and deletes to spreadsheet data

Key features

  • Supports .xlsx, .csv, and .ods files
  • Provides cell, range, row, column, and sheet operations
  • Runs DuckDB SELECT queries across sheets
  • Writes SQL INSERT, UPDATE, and DELETE changes back to files
  • Preserves existing formatting while editing values
  • Supports optional directory-scoped file access

Tools25

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

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

12/12 checks healthy over the last 45d

What it can do

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

Runs commands · 2Can delete or modify data · 5Read-only tools · 20
Network at startup2 connections
Files written at startup10

Observed 2026-10-30 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 17d ago via OSV.dev · mcp-server-spreadsheet (PyPI)

Adoption & maintenance

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

GitHub stars2Stargazers on the source repository.
Last commit3mo 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 exposed25Callable tools this server registers over MCP.
Directory activity1 viewsConfig copies, upvotes, and views on AllMCPs.

How MCP Server Spreadsheet works

What mcp-server-spreadsheet MCP server does

The mcp-server-spreadsheet MCP server gives agents data-only access to Excel workbooks, CSV files, and OpenDocument spreadsheets. It can inspect workbook structure, read values, change cells and ranges, manage rows and columns, search sheet contents, and create or copy files. Existing formatting is preserved, but the server reads and writes values rather than formatting properties.

CSV files are represented as single-sheet workbooks using the sheet name default. Excel and ODS files can contain multiple sheets. The supported formats differ in formula handling: formulas remain as strings in .xlsx, are not preserved in .ods, and do not apply to CSV. Values loaded from CSV are inferred as integers, floating-point numbers, or text.

How it works

Operations are stateless. Every sheet-level call includes a file path and may include a sheet; when omitted, the first sheet is used. Row and column positions are one-based, and cells use A1 references such as B3 or $B$2.

The server offers two modes that can be mixed against the same file. Direct workbook tools handle individual cells, rectangular ranges, rows, columns, sheets, and searches. The SQL mode loads sheet data into an in-memory DuckDB database. Read-only SELECT statements support joins between sheets, grouping, aggregates, subqueries, filtering, sorting, and limits. INSERT, UPDATE, and DELETE statements write their changes back to the spreadsheet.

SQL calls accept optional header_row and data_start_row values. These can be a single row number for all sheets or mappings for different sheets, which supports workbooks with title rows, units rows, or headers below the first row.

Setup and configuration

Python 3.10 or newer is required. The recommended installation runs the published package with uvx:

config.json
{
  "mcpServers": {
    "mcp-server-spreadsheet": {
      "command": "uvx",
      "args": ["mcp-server-spreadsheet"]
    }
  }
}

The same stdio configuration is documented for Claude Desktop and Claude Code. A source checkout can be run with uv sync, followed by uv run main.py, or configured through uv run --directory ... main.py.

Set MCP_SPREADSHEET_ROOT to restrict file arguments to one directory tree. If it is unset, any path accessible to the server process may be used. Writes are saved atomically by writing a temporary file and replacing the target.

Tools and capabilities

The mcp-server-spreadsheet MCP server includes tools for:

  • Listing, creating, and copying workbook files.
  • Listing, adding, renaming, deleting, and copying sheets.
  • Reading complete sheets, ranges, cells, and used-range dimensions.
  • Writing cells or 2D ranges, appending or inserting rows, deleting rows, and clearing ranges.
  • Inserting or deleting columns and copying ranges, including between sheets.
  • Searching for literal values or regular-expression matches.
  • Describing SQL table columns, inferred types, row counts, and sample values.
  • Running read-only queries or SQL mutations through DuckDB.

Sheet creation, deletion, and copying are not available for CSV files because CSV is modeled as one sheet.

Limitations and notes

The server does not provide formatting operations. Formula behavior depends on the file format, and SQL table names based on sheet names containing spaces must be quoted. SQL mutations preserve rows above a configured header_row, while direct edits operate on the specified cell or range. File access is controlled by the operating system unless MCP_SPREADSHEET_ROOT is configured.

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 MCP Server Spreadsheet

mcp-server-spreadsheet is an MCP server that connects AI agents to .xlsx, .csv, and .ods spreadsheet files. Its main tools read and write cells, ranges, rows, columns, and sheets, search contents, and run DuckDB SQL queries or mutations across spreadsheet data.

Install it through an MCP client with `uvx mcp-server-spreadsheet`, which uses the published package and does not require a local checkout. For development, clone the repository, run `uv sync`, and launch it with `uv run main.py`.

The server runs over stdio, so a client that supports configuring a standard stdio MCP process can use the same `uvx mcp-server-spreadsheet` command.

Set `MCP_SPREADSHEET_ROOT` to the directory tree that the server may access. File paths outside that root are rejected. If the variable is unset, paths accessible to the server process are allowed.

Yes. Its DuckDB SQL tools support joins across sheets, grouping, aggregates, subqueries, filtering, and sorting. Use `sql_query` for read-only SELECT statements and `sql_execute` for INSERT, UPDATE, or DELETE operations that write changes back to the file.

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