Excel文件服务添加福利群:解决AI开发者的「MCP实战痛点」
一个用于读取和写入 MS Excel 数据的模型上下文协议(MCP)服务器。
🪟仅限 Windows:
更多详细信息,请参阅 工具 部分。
通过将以下配置添加到 MCP 服务器配置中,excel-mcp-server 会自动安装。
对于 Windows:
{
"mcpServers": {
"excel": {
"command": "cmd",
"args": ["/c", "npx", "--yes", "@negokaz/excel-mcp-server"],
"env": {
"EXCEL_MCP_PAGING_CELLS_LIMIT": "4000"
}
}
}
}

对于其他平台:
{
"mcpServers": {
"excel": {
"command": "npx",
"args": ["--yes", "@negokaz/excel-mcp-server"],
"env": {
"EXCEL_MCP_PAGING_CELLS_LIMIT": "4000"
}
}
}
}

通过 Smithery 自动为 Claude Desktop 安装 Excel MCP Server:
npx -y @smithery/cli install @negokaz/excel-mcp-server --client claude
excel_describe_sheets列出指定 Excel 文件的所有工作表信息。
参数:
fileAbsolutePath
excel_read_sheet分页读取 Excel 工作表中的值。
参数:
fileAbsolutePath
sheetName
range
showFormula
showStyle
excel_screen_capture[仅限 Windows] 对 Excel 工作表进行分页截图。
参数:
fileAbsolutePath
sheetName
range
excel_write_to_sheet将值写入 Excel 工作表。
参数:
fileAbsolutePath
sheetName
newSheet
range
values
excel_create_table在 Excel 工作表中创建表格
参数:
fileAbsolutePath
sheetName
range
tableName
excel_copy_sheet将现有工作表复制到新工作表
参数:
fileAbsolutePath
srcSheetName
dstSheetName
excel_format_range使用样式信息格式化 Excel 工作表中的单元格
参数:
fileAbsolutePath
sheetName
range
styles
border: 边框样式数组(类型、颜色、样式)font: 字体样式(粗体、斜体、下划线、大小、删除线、颜色、垂直对齐)fill: 填充/背景样式(类型、图案、颜色、阴影)numFmt: 自定义数字格式字符串decimalPlaces: 小数位数(0-30)您可以通过以下环境变量更改 MCP 服务器的行为:
EXCEL_MCP_PAGING_CELLS_LIMIT单次分页操作中读取的最大单元格数。
[默认值:4000]
版权所有 (c) 2025 Kazuki Negoro
excel-mcp-server 根据 MIT 许可证 发布。