excel-mcp
Documentation
Excel MCP Server
A Model Context Protocol (MCP) server implementation that provides Excel file manipulation capabilities without requiring Microsoft Excel installation. This server enables workbook creation, data manipulation, formatting, and advanced Excel features.
Requirements
- Python 3.10+
- MCP SDK 1.2.0+
- OpenPyXL 3.1.2+
Components
Resources
The server provides Excel workbook manipulation through OpenPyXL:
- Creates and modifies Excel workbooks
- Manages worksheets and ranges
- Handles formatting and styles
- Supports charts and pivot tables
Tools
This server provides a comprehensive set of Excel manipulation tools. For detailed documentation of all available tools, their parameters, and usage examples, please refer to TOOLS.md.
The tools include capabilities for:
- Workbook and worksheet management
- Data reading and writing
- Formatting and styling
- Charts and visualizations
- Pivot tables and data analysis
See TOOLS.md for complete documentation.
Features
- Full Excel Support: Comprehensive Excel functionality
- Data Manipulation: Read, write, and transform data
- Advanced Features: Charts, pivot tables, and formatting
- Error Handling: Comprehensive error handling with clear messages
Usage
Environment Configuration
The server can be configured using the following environment variables:
- `EXCEL_FILES_PATH`: Directory where Excel files will be stored (default: `./excel_files`)
You can set this in different ways:
Windows CMD:
set EXCEL_FILES_PATH=C:\path\to\excel\files
uv run excel-mcp-serverWindows PowerShell:
$env:EXCEL_FILES_PATH="C:\path\to\excel\files"
uv run excel-mcp-serverLinux/MacOS:
export EXCEL_FILES_PATH=/path/to/excel/files
uv run excel-mcp-serverOr in Claude Desktop config:
{
"mcpServers": {
"excel": {
"command": "uv run excel-mcp-server",
"transport": "sse",
"env": {
"EXCEL_FILES_PATH": "/path/to/excel/files"
}
}
}
}Starting the Server
Start the server:
uv run excel-mcp-serverThe server will start in SSE mode and wait for connections from MCP clients.
Connecting in Cursor IDE
After starting the server, connect to the SSE endpoint in Cursor IDE:
http://localhost:8000/sseThe Excel MCP tools will be available through the agent.
For available tools and their usage, please refer to TOOLS.md.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Frequently asked questions
What is excel-mcp?
excel-mcp is a Model Context Protocol (MCP) server listed in the TrackMCP directory.
How do I install excel-mcp?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is excel-mcp open source?
Yes — it is hosted on GitHub at https://github.com/fish0710/excel-mcp and has 7 stars.
Related MCP tools
This MCP server integrates with your Google Drive and Google Sheets, to enable creating and modifying spreadsheets. Python-based implementation.
🙌 OpenHands: Code Less, Make More for the Model Context Protocol. Enhance AI assistants with powerful integrations. Python-based implementation.
Universal memory layer for AI Agents; Announcing OpenMemory MCP - local and secure memory management. Python-based implementation.
基于大模型搭建的聊天机器人,同时支持 微信公众号、企业微信应用、飞书、钉钉 等接入,可选择ChatGPT/Claude/DeepSeek/文心一言/讯飞星火/通义千问/ Gemini/GLM-4/Kimi/LinkAI,能处理文本、语音和图片,访问操作系统和互联网,支持基于自有知识库进行定制企业智能客服。
An LLM agent that conducts deep research (local and web) on any given topic and generates a long report with citations. Built for the Model Context Protocol to
🚀 The fast, Pythonic way to build MCP servers and clients Trusted by 19900+ developers. Trusted by 19900+ developers. Trusted by 19900+ developers.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP