excel-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
excel-mcp
An MCP server for reading, writing, and analyzing Excel files with formula-aware parsing.
Unlike other Excel MCP servers that only read cell values, excel-mcp understands formulas — it can extract formula text, evaluate formula results, and validate computed values. It also provides structured writing with batch operations, templates, and verification.
Powered by openpyxl for reliable data operations and Formualizer for formula analysis.
Features
Bulk data reading — read sheets as tables with automatic header detection, pagination, and total-row skipping
Cell-level access — read specific cells or ranges by coordinates
Formula extraction — get formula text, AST trees, and cell dependencies (with Formualizer)
Structured writing — create workbooks, write data in batches, add formulas, format cells, create tables
Template mode — copy .xlsx templates preserving formatting and formulas, then fill with data
Verification — re-open written files and verify row counts, spot values
Data validation — compare Excel values against expected values (e.g. database totals)
Conditional formatting — cell-is rules, color scales, data bars
Multiple transports — stdio (default, for Claude Code/Cursor) and streamable-http (for Docker sidecars)
Graceful degradation — works with openpyxl alone; Formualizer adds formula intelligence
Related MCP server: mcp-excel
Installation
# Basic (reader + writer, openpyxl only)
pip install excel-mcp
# With formula analysis (+ Formualizer)
pip install "excel-mcp[analyzer]"
# Everything
pip install "excel-mcp[all]"
# Or run directly with uvx
uvx excel-mcpConfiguration
Claude Code / Claude Desktop / Cursor (stdio)
Add to your .mcp.json or MCP settings:
{
"mcpServers": {
"excel": {
"command": "uvx",
"args": ["excel-mcp"]
}
}
}With Formualizer support:
{
"mcpServers": {
"excel": {
"command": "uvx",
"args": ["--from", "excel-mcp[all]", "excel-mcp"]
}
}
}Docker (streamable-http)
Pre-built images are published to GitHub Container Registry on every push to main.
# docker-compose.yml
services:
mcp-excel:
image: ghcr.io/av-volgin/excel-mcp:latest
container_name: mcp-excel
mem_limit: 256m
restart: unless-stopped
volumes:
- /path/to/excel/files:/data:roThe MCP endpoint is available at http://mcp-excel:8000/mcp (POST).
Health check endpoint: http://mcp-excel:8000/healthz (GET).
Built-in healthcheck, exposed port 8000.
To update: docker compose pull mcp-excel && docker compose up -d mcp-excel
Tool groups
You can enable only the tool groups you need:
excel-mcp --tools reader # 3 tools: list_sheets, read_sheet, read_cell_range
excel-mcp --tools writer # 8 tools: create, write, format, tables, templates, verify
excel-mcp --tools analyzer # 3 tools: get_formulas, get_cell_value, validate_totals
excel-mcp --tools all # all 14 tools (default)Tools
Reader (3 tools)
Tool | Description |
| List all sheets with metadata (dimensions, tables) |
| Read a sheet as a table with auto headers, pagination, total-row skipping |
| Read raw cell values from a specific range |
Writer (8 tools)
Tool | Description |
| Create a new .xlsx file with named sheets |
| Write a 2D array of data to a range (batch, not cell-by-cell) |
| Write a formula to a cell with optional number format |
| Apply styles (font, fill, border, alignment, number format) |
| Create an Excel table with optional totals row |
| Add conditional formatting (cell-is, color scale, data bar) |
| Copy a .xlsx template preserving formatting and formulas |
| Re-open a file and verify row counts, spot values |
Analyzer (3 tools)
Tool | Description |
| Extract formulas with optional AST parsing (Formualizer) |
| Read a single cell by coordinates with formula info |
| Compare cell values against expected values (0.01 tolerance) |
CLI options
excel-mcp [OPTIONS]
Options:
--tools {reader,writer,analyzer,all} Tool groups to register (default: all)
--transport {stdio,streamable-http} Transport protocol (default: stdio)
--host HOST Host to bind for HTTP (default: 127.0.0.1)
--port PORT Port for HTTP transport (default: 8000)
--no-dns-rebinding-protection Disable DNS rebinding protection (Docker/proxy)Architecture
┌──────────────────────────────────────────────────────┐
│ excel-mcp (MCP Server) │
│ │
│ ┌─────────────┐ ┌──────────────┐ ┌──────────────┐ │
│ │ reader │ │ writer │ │ analyzer │ │
│ │ (openpyxl) │ │ (openpyxl) │ │ (Formualizer │ │
│ │ │ │ │ │ + openpyxl │ │
│ │• list_sheets │ │• create_wb │ │ fallback) │ │
│ │• read_sheet │ │• write_data │ │ │ │
│ │• read_range │ │• write_formula│ │• get_formulas│ │
│ │ │ │• format_range│ │• get_cell_val│ │
│ │ Bulk data │ │• create_table│ │• validate │ │
│ │ extraction │ │• cond_format │ │ │ │
│ │ │ │• template │ │ Formula- │ │
│ │ │ │• verify │ │ aware │ │
│ └─────────────┘ └──────────────┘ └──────────────┘ │
│ │
│ Transport: stdio | streamable-http (/mcp) │
│ Health: /healthz (GET, HTTP mode only) │
└──────────────────────────────────────────────────────┘Development
git clone https://github.com/avolgin/excel-mcp.git
cd excel-mcp
uv venv .venv && source .venv/bin/activate
uv pip install -e ".[dev]"
pytest # 50 tests
ruff check src/License
MIT — see LICENSE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Excel analytics: inspect, query (JSON rows), charts, and JSON-to-xlsx workbook writing.
The Excel engine for AI agents: read, check and edit Excel models over MCP.
Formula-backed WorkPaper tools for workbook readback, input edits, and JSON persistence.
Explain and analyse Excel workbooks: formulas, dependencies, issues and what-if scenarios.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables reading and writing MS Excel data, including values, formulas, sheets, tables, and cell formatting, with optional screen capture on Windows.4,524 npmMIT
- FlicenseNot gradedqualityDmaintenanceProvides full read and write access to Excel workbooks (sheets, cell ranges, tables, formulas, formatting, and cross-workbook references) via MCP, running locally or as an HTTP/SSE service.-
- AlicenseNot gradedqualityCmaintenanceEnables reading and writing MS Excel files, including cell values, formulas, sheet creation, copying, formatting, and on Windows, live editing and screen captures.MIT
- AlicenseAqualityBmaintenanceEnables building, editing, reading and converting spreadsheets through file-in/file-out tools, including live formulas, tables, conditional formatting, charts and PivotTables. Supports xlsx, csv, tsv, json, html and pdf input and output on Windows, macOS and Linux.9Apache 2.0