Creates a new Excel workbook with specified sheets
Reads data from a specified range in an Excel worksheet
Writes data to a specified range in an Excel worksheet
Reads data from multiple ranges in an Excel worksheet
Writes data to multiple ranges in an Excel worksheet
Lists all worksheets in an Excel workbook
Adds a new worksheet to an Excel workbook
Deletes a worksheet from an Excel workbook
Renames a worksheet in an Excel workbook
Applies formatting to cells in an Excel worksheet
Creates a chart in an Excel worksheet
Creates a pivot table in an Excel worksheet
Lists all Excel files in the specified directory
Excel File Manipulation is a powerful tool that enables AI agents to create, read, and modify Excel workbooks programmatically. It provides comprehensive functionality for data manipulation, formatting, visualization, and analysis within Excel files, all without requiring Microsoft Excel to be installed. With support for both stdio and SSE transport protocols, this tool can be integrated into desktop applications for local file manipulation or web-based services for remote file handling. It offers a complete suite of Excel operations including worksheet management, data reading/writing, formatting, chart creation, and pivot table generation.
Excel File Manipulation allows AI agents to work with Excel files programmatically, providing a comprehensive set of tools for creating, reading, and modifying Excel workbooks without requiring Microsoft Excel to be installed.
pip install excel-mcp-server
git clone https://github.com/haris-musa/excel-mcp-server.git
cd excel-mcp-server
uv pip install -e .
The Excel MCP server supports two transport modes to fit different use cases:
Ideal for direct integration with desktop tools that manipulate local files:
excel-mcp-server stdio
Perfect for web-based applications and remote connections:
excel-mcp sse
You can customize the host and port:
excel-mcp sse --host 127.0.0.1 --port 8080
FASTMCP_PORT
: Server port (default: 8000)EXCEL_FILES_PATH
: Directory for Excel files (default: ./excel_files
)Add one of these configurations to Cursor:
For stdio transport (local integration):
{
"mcpServers": {
"excel-stdio": {
"command": "uv",
"args": ["run", "excel-mcp-server", "stdio"]
}
}
}
For SSE transport (web-based applications):
{
"mcpServers": {
"excel": {
"url": "http://localhost:8000/sse",
"env": {
"EXCEL_FILES_PATH": "/path/to/excel/files"
}
}
}
}
For Claude Desktop, use the stdio transport configuration.
Once configured, you can ask your AI assistant to perform Excel operations like:
The AI will use the appropriate tools to execute these operations on Excel files.