Excel MCP logo

Excel MCP

Reads messy .xlsx workbooks through MCP, including multiple sheets, offset headers, and merged-cell values.

Install Excel MCP

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

Setup steps from the project

excel-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
    pip install "excel-agent-mcp[mcp]"
    

Overview

The excel-mcp MCP server lets AI agents inspect local .xlsx workbooks without relying on pasted spreadsheet content. It exposes tools to list sheets, preview layouts, detect or specify table headers, read records, and export tables as CSV. Merged-cell values are forward-filled, while parsing confidence and warnings identify results that need review. Reach for it when workbooks contain title rows, blank space, multiple sheets, or other formatting that can confuse an agent.

Use cases

  • Inspect workbook sheets and dimensions
  • Preview report layouts before parsing
  • Extract tables with title rows above headers
  • Review merged-cell data with provenance signals
  • Export worksheet tables as CSV

Key features

  • Lists worksheets and dimensions
  • Previews worksheet rows as a grid
  • Auto-detects or accepts explicit header rows
  • Forward-fills merged-cell values
  • Reports header confidence and table warnings
  • Exports tables as CSV

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.

16/16 checks healthy over the last 76d

Adoption & maintenance

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

Last commit3mo agoMost recent push to the default branch.
Directory activity19 viewsConfig copies, upvotes, and views on AllMCPs.

How Excel MCP works

What excel-mcp does

The excel-mcp MCP server gives an MCP client structured access to local Excel workbooks in .xlsx format. It is designed for files whose data does not begin at cell A1, including reports with title rows, notes, blank rows, multiple worksheets, and merged cells.

Instead of asking an agent to infer structure from pasted spreadsheet text, the server reads the workbook with code and returns the discovered table. It can identify the header row automatically or use an explicitly supplied row, then represent the table as records. The excel-mcp MCP server focuses on reading and inspecting workbooks; the documented tools do not provide spreadsheet editing operations.

How it works

An MCP client starts the server as a local process using the excel-agent-mcp command. The agent supplies a workbook path and, where needed, a sheet name or row count. The server examines the workbook and returns sheet metadata, a layout preview, structured table data, or CSV text.

For automatic header detection, read_table reports the selected row, whether the header was explicit or detected, and a confidence value from 0 to 1. It also reports table-level warnings and whether the result looks clean. When a merged cell spans several rows, values may be copied downward; forward_filled_columns identifies columns containing those inferred values.

Setup and configuration

Install the package with Python 3.10 or newer:

Terminal
pip install "excel-agent-mcp[mcp]"

Configure an MCP client to launch excel-agent-mcp over stdio. Claude Desktop, Cursor, Windsurf, VS Code with GitHub Copilot, and Cline are documented examples. Configuration file names and JSON keys differ between clients; VS Code uses a servers key, type: "stdio", and requires Copilot Agent mode.

The optional EXCEL_MCP_ALLOWED_DIR environment variable can restrict file access to a single directory. This is useful when the agent should not be able to open workbooks elsewhere on the machine. The server can also be called directly from Python through the excel_mcp.reader module.

Tools and capabilities

The excel-mcp MCP server provides four documented tools:

  • list_sheets(path) returns worksheet names and their dimensions.
  • preview_sheet(path, sheet, rows) returns the first requested rows as a grid for layout inspection.
  • read_table(path, sheet) returns the detected table as records, along with parsing decisions and warnings.
  • sheet_to_csv(path, sheet) converts the table into CSV text.

An agent can use list_sheets and preview_sheet before selecting a worksheet or checking where its table begins. read_table is appropriate when structured rows are needed, while sheet_to_csv is useful when the next step expects plain CSV.

Limitations and notes

Header detection is not guaranteed to be correct. A low header_confidence value indicates that the chosen header was uncertain; callers can provide an explicit header_row when the automatic result is wrong. Unnamed columns, mostly empty tables, and other issues appear through table warnings.

Forward-filled values from merged cells are inferred from the merged region rather than read independently from every row. Consumers should treat those values as derived. The provided examples and installation instructions target local .xlsx files and stdio-based MCP clients. The project is licensed under MIT.

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 Excel MCP

excel-mcp is an MCP server that connects AI agents to local .xlsx Excel workbooks. Its main tools list sheets, preview worksheet rows, read tables with detected or explicit headers, and convert sheets to CSV. It also reports header confidence, warnings, and columns whose values were forward-filled from merged cells.

Install it with `pip install "excel-agent-mcp[mcp]"` using Python 3.10 or newer. Then configure your MCP client to launch the `excel-agent-mcp` command over stdio and restart the client when required.

Yes, excel-mcp works with Cursor. Add an `excel-agent-mcp` stdio server entry to the global `~/.cursor/mcp.json` file or the project-level `.cursor/mcp.json` file. Cursor supports hot reloading for this configuration.

Set `EXCEL_MCP_ALLOWED_DIR` to restrict the agent to one folder.

It detects the table header row automatically or reports an explicitly supplied row. `read_table` includes the header source, confidence score, table warnings, and selected header row so an agent can review uncertain parsing.

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