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/*
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.