excel-tools-mcp
MCP server for reading and inspecting local Excel files (.xlsx, .xlsm, .xls, .xlsb, .ods) with tools for inspecting metadata, reading ranges, and profiling structure.
README
Excel Tools MCP
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.excel_unmerge_cells: unmerge intersecting merged cells and optionally fill values.
Known boundary:
.xlsis not supported in v0.1.0.excel_unmerge_cellsmodifies the source workbook, so use it carefully.
Current main / v0.1.1 preview
The current repository code is intended for v0.1.1, but it has not been published to npm or PyPI yet.
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.- The old file-modifying
excel_unmerge_cellsimplementation is kept in the codebase, but it is not registered as an MCP tool by default.
Available tools in current main:
excel_inspect: inspect workbook metadata and sheet dimensions.excel_read_range: read a rectangular cell range without merged-cell filling.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.
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-mcp
The 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
After the Python package is published to PyPI, users with uv can run it 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-mcp
You can also install it with pip once it is published:
pip install excel-tools-mcp
excel-tools-mcp
Runtime difference:
npx -> npm package -> Node launcher -> Python MCP server
uvx -> PyPI package -> Python MCP server
pip -> PyPI package -> Python MCP server
Local Development
Install from the local checkout:
pip install -e .
excel-tools-mcp
Or run the module directly:
python3 -m excel_tools.server
For a local npx-style test:
npm start
Tool 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.json
VS 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
Current package metadata still uses version 0.1.0 until the next release is cut.
Before publishing v0.1.1:
- Update
pyproject.tomlversion to0.1.1. - Update
package.jsonversion to0.1.1. - Build and publish the Python package to PyPI.
- Publish the npm launcher if the npx route should install v0.1.1.
Basic npm publish flow:
npm login
npm publish --access public
Basic PyPI publish flow:
python3 -m build
python3 -m twine upload dist/*
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。