The Excel File Processing MCP Server is a microservice designed to handle Excel file operations efficiently. Built on the Model Context Protocol (MCP), it provides functionalities for reading, writing, and analyzing Excel files. This server is ideal for applications requiring automated Excel data processing and integration with other MCP-based services.
To install the server automatically via Smithery, run the following command:
npx -y @smithery/cli install @zhiweixu/excel-mcp-server --client claude
Add the following configuration to your MCP servers configuration:
Windows Platform:
{
"mcpServers": {
"excel": {
"command": "cmd",
"args": ["/c", "npx", "--yes", "@zhiweixu/excel-mcp-server"],
"env": {
"LOG_PATH": "[set an accessible absolute path]"
}
}
}
Other Platforms:
{
"mcpServers": {
"excel": {
"command": "npx",
"args": ["--yes", "@zhiweixu/excel-mcp-server"],
"env": {
"LOG_PATH": "[set an accessible absolute path]"
}
}
}
Note:
LOG_PATH
is optional. If not set, logs will be stored in thelogs
folder under the application root directory.
Parameters:
fileAbsolutePath
: Absolute path of the Excel file headerRows
: Number of header rows (default: 1) exportExcelStructure
sourceFilePath
: Source Excel file path targetFilePath
: Target Excel file path headerRows
: Number of header rows (default: 1) Parameters:
fileAbsolutePath
: Absolute path of the Excel file readDataBySheetName
Parameters:
fileAbsolutePath
: Absolute path of the Excel file sheetName
: Name of the sheet to read headerRow
: Header row number (default: 1) dataStartRow
: Data start row number (default: 2) readSheetData
fileAbsolutePath
: Absolute path of the Excel file headerRow
: Header row number (default: 1) dataStartRow
: Data start row number (default: 2) Parameters:
fileAbsolutePath
: Absolute path of the Excel file sheetName
: Name of the sheet to write data
: Array of data to write writeSheetData
fileAbsolutePath
: Absolute path for the new Excel file data
: Object containing multiple sheet data fileAbsolutePath
: Absolute path of the Excel file to clear from cache @modelcontextprotocol/sdk
: ^1.7.0 xlsx
: ^0.18.5 typescript
: ^5.8.2 @types/node
: ^22.13.10 nodemon
: ^3.1.9 ts-node
: ^10.9.2 This project is licensed under the MIT License. For detailed license information, see the LICENSE file.
Excelๆฐๆฎๅค็ๅพฎๆๅก