excel-tools-mcp
You can use this MCP server to read and inspect local Excel workbooks read-only, returning compact structured data to an AI assistant.
Inspect workbook metadata: file size, sheet count, sheet names, dimensions, and reading backend.
Read rectangular cell ranges from a chosen sheet, with optional merged-cell analysis and virtual anchor-value filling without modifying the source file.
Profile worksheet structure by summarizing row patterns based on data types and merged-cell state, with configurable scan limits.
Work with
.xlsx,.xlsm,.xls,.xlsb, and.odsfiles in v0.1.1 using read-only tools.Expose MCP tools:
excel_inspect,excel_read_range_normalized, andexcel_profile_structure.Support only local file paths and return structured success/error responses.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@excel-tools-mcp profile structure of report.xlsx on Sheet1"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Excel Tools MCP
已停止维护 / No longer maintained
随着 AI 助手的沙箱执行、文件处理等能力不断完善,本工具已停止维护。仓库仅作为一段探索记录与纪念保留。
As AI assistants' sandbox execution, file handling, and related capabilities have developed, this tool is no longer maintained. This repository is preserved solely as a record of an earlier exploration and as a keepsake.
Excel Tools MCP is a standalone Model Context Protocol server for reading and inspecting local Excel files. It is designed for AI assistants that need a compact, structured view of spreadsheets without loading an entire workbook into context.
The project supports two distribution paths:
npm / npx: a Node.js launcher starts the Python MCP server.
PyPI / uvx / pip: run the Python MCP server directly.
Only local file paths are supported.
Version Status
Published v0.1.0
The first published release supports .xlsx files through openpyxl.
Available tools:
excel_inspect: inspect workbook metadata and sheet dimensions.excel_read_range: read a rectangular cell range.excel_profile_structure: summarize row structure patterns.
Known boundary:
.xlsis not supported in v0.1.0.
Published v0.1.1
New and changed behavior:
Read-only tools support
.xlsx,.xlsm,.xls,.xlsb, and.ods..xlsxand.xlsmare read withopenpyxl..xls,.xlsb, and.odsare read withpython-calamine.excel_read_range_normalizedreads a range and virtually fills merged cells from their anchor values without modifying the file.
Available tools in v0.1.1:
excel_inspect: inspect workbook metadata and sheet dimensions.excel_read_range_normalized: read a rectangular range, analyze merged cells, and optionally return anchor-filled data.excel_profile_structure: summarize row structure patterns and merged-cell structure.
Related MCP server: xls-mcp-servers
Run With npx
This is the easiest route for MCP clients that already support Node-based server launch commands.
{
"mcpServers": {
"excel-tools-mcp": {
"type": "stdio",
"command": "npx",
"args": ["--yes", "@wasziyang/excel-tools-mcp"]
}
}
}Requirements:
Node.js 20+
Python 3.10+
The npm package is a launcher. It creates or reuses a cached Python environment, installs the Python MCP server, and starts it over stdio.
Terminal test:
npx --yes @wasziyang/excel-tools-mcpThe command may appear to do nothing. That is normal for an MCP stdio server: it waits for the MCP host to send JSON-RPC messages over stdin.
Custom Python Path
By default, the launcher searches for python3, then python.
Set EXCEL_TOOLS_MCP_PYTHON only when Python is installed somewhere unusual:
{
"mcpServers": {
"excel-tools-mcp": {
"type": "stdio",
"command": "npx",
"args": ["--yes", "@wasziyang/excel-tools-mcp"],
"env": {
"EXCEL_TOOLS_MCP_PYTHON": "/absolute/path/to/python"
}
}
}
}Run With PyPI / uvx
Users with uv can run the PyPI package directly:
{
"mcpServers": {
"excel-tools-mcp": {
"type": "stdio",
"command": "uvx",
"args": [
"--from",
"excel-tools-mcp",
"excel-tools-mcp"
]
}
}
}Terminal test:
uvx --from excel-tools-mcp excel-tools-mcpYou can also install it with pip:
pip install excel-tools-mcp
excel-tools-mcpRuntime difference:
npx -> npm package -> Node launcher -> Python MCP server
uvx -> PyPI package -> Python MCP server
pip -> PyPI package -> Python MCP serverLocal Development
Install from the local checkout:
pip install -e .
excel-tools-mcpOr run the module directly:
python3 -m excel_tools.serverFor a local npx-style test:
npm startTool Arguments Example
{
"file_path": "/absolute/path/to/report.xlsx",
"sheet": "Sheet1",
"start_cell": "A1",
"end_cell": "D20"
}For Windows paths:
{
"file_path": "C:\\Users\\Alice\\Documents\\report.xlsx",
"sheet": "Sheet1",
"start_cell": "A1",
"end_cell": "D20"
}Windows, WSL, and VS Code
If your mcp.json lives under a Windows path such as:
C:\Users\<you>\AppData\Roaming\Code\User\mcp.jsonVS Code usually starts the MCP server from Windows, not from WSL. In that case Windows must have Node.js and Python installed, and Excel file paths should be Windows paths.
If you want VS Code on Windows to run the server inside WSL, call wsl explicitly:
{
"mcpServers": {
"excel-tools-mcp": {
"type": "stdio",
"command": "wsl",
"args": [
"bash",
"-lc",
"npx --yes @wasziyang/excel-tools-mcp"
]
}
}
}When the server runs in WSL, use Linux/WSL paths:
{
"file_path": "/mnt/c/Users/Alice/Documents/report.xlsx",
"sheet": "Sheet1",
"start_cell": "A1",
"end_cell": "D20"
}Docker
Build locally:
docker build -t excel-tools-mcp .MCP client config example:
{
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-v",
"/absolute/path/to/excel/files:/workspace",
"excel-tools-mcp"
]
}Inside Docker, pass file paths under /workspace, for example /workspace/report.xlsx.
Docker images are not published yet.
Publishing Notes
Release checklist:
Update versions in
pyproject.toml,package.json, and the npm launcher cache directory.Build and publish the Python package to PyPI.
Publish the npm launcher if the npx route should install the new version.
Basic npm publish flow:
npm login
npm publish --access publicBasic PyPI publish flow:
uv build
python3 -m twine upload dist/*Available Tools
3 toolsexcel_inspectA
检查Excel文件的基本信息,包括表单数量、每个表单的行列数等。
Inputs: request (required). Returns: status, tool_result, status_message
excel_profile_structureB
分析工作表的结构签名(数据类型 + 合并状态)。
Inputs: request (required). Returns: status, tool_result, status_message
excel_read_range_normalizedB
读取指定区域,并在返回数据中虚拟反填合并单元格,不修改源文件。
Inputs: request (required). Returns: status, tool_result, status_message
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 3 tools
Each tool has a clearly distinct purpose: inspection, structure profiling, and reading with merged cell handling. No overlap in functionality.
All tools follow a consistent 'excel_verb_noun' pattern (inspect, profile_structure, read_range_normalized), making the intent clear.
With only 3 tools, the set is small but focused. It covers essential read/inspect operations, though a few more tools for writing or editing would be more comprehensive.
The set is missing any write or modification capabilities (create, update, delete), which are common in Excel workflows. Significant gaps remain.
Maintenance
Related MCP Connectors
MCP server for querying and analyzing data from ad platforms, analytics tools, and spreadsheets
Let AI agents read, check and edit Excel models. Open a workbook or drop in one MCP config. Either way: typed cells, a formula dependency graph, and a verification certificate. Deterministic — no OCR, no model guessing at your numbers.
Read-only MCP over your Excel or Airtable plus the PDFs beside it, joined as one relational dataset.
41An MCP server that provides read access to your cloud storage providers, bank accounts and more.
Related MCP Servers
- AlicenseBqualityDmaintenanceA Model Context Protocol (MCP) server that provides tools for reading Excel (xlsx) files, enabling extraction of data from entire workbooks or specific sheets with results returned in structured JSON format.36Apache 2.0
- AlicenseNot gradedqualityDmaintenanceMCP server for reading and writing .xls (Excel 97-2003) files, enabling data manipulation, sheet listing, and metadata retrieval.MIT
- AlicenseAqualityDmaintenanceMCP server for reading and writing Excel (xlsx) files using SheetJS, providing tools to list sheets, read data, create files, add sheets, and update cells.511 npmMIT
- FlicenseCqualityCmaintenanceAn MCP server for safe .xlsx inspection and controlled workbook writes, enabling spreadsheet reads, search, filtering, aggregation, and preview-based writes with workspace confinement and audit logging.12-