NE

negokaz/excel-mcp-server

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

1045 stars 136 forks 质量 70 趋势 23MIT

一个模型上下文协议(MCP)服务器,用于读写MS Excel数据

概览

一个模型上下文协议(MCP)服务器,用于读写MS Excel数据。 - 读写文本值 - 读写公式 - 创建新工作表 - 实时编辑 - 从表格中捕捉屏幕图像 更多细节请参见工具部分。 - xlsx(Excel手册)- xlsm(支持Excel宏的手册)- xltx(Excel模板)- xltm(支持Excel宏的模板) 通过在 MCP 服务器配置中添加以下配置,自动安装 Excel-MCP-server。 通过Smithery自动安装Claude Desktop 的 Excel MCP Server : 列出指定Excel文件中的所有表格信息。

概述(AI 翻译)

一个模型上下文协议(MCP)服务器,用于读写MS Excel数据。

特色

  • 读写文本值
  • 读写公式
  • 创建新表格

🪟仅限Windows:

  • 实时剪辑
  • 从工作表中截取屏幕图像

更多细节请参见工具部分。

要求

  • Node.js 20.x 或更高版本

支持的文件格式

  • xlsx(Excel书)
  • xlsm(支持Excel宏的书籍)
  • xltx(Excel 模板)
  • xltm(支持Excel宏的模板)

安装

通过NPM安装

通过在 MCP 服务器配置中添加以下配置,自动安装 Excel-MCP-server。

Windows版:

其他平台:

通过Smithery安装

通过Smithery自动安装Claude Desktop 的 Excel MCP Server :

工具

excel_describe_sheets

列出指定Excel文件中的所有表格信息。

争论:

  • fileAbsolutePath
  • Excel文件的绝对路径

excel_read_sheet

用页码从Excel表格中读取数值。

争论:

  • fileAbsolutePath
  • Excel文件的绝对路径
  • sheetName
  • Excel 文件中的工作表名称
  • range
  • Excel表格中可读取的单元格范围(例如,“A1:C10”)。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Excel MCP Server

A Model Context Protocol (MCP) server that reads and writes MS Excel data.

Features

  • Read/Write text values
  • Read/Write formulas
  • Create new sheets

🪟Windows only:

  • Live editing
  • Capture screen image from a sheet

For more details, see the tools section.

Requirements

  • Node.js 20.x or later

Supported file formats

  • xlsx (Excel book)
  • xlsm (Excel macro-enabled book)
  • xltx (Excel template)
  • xltm (Excel macro-enabled template)

Installation

Installing via NPM

excel-mcp-server is automatically installed by adding the following configuration to the MCP servers configuration.

For Windows:

{
    "mcpServers": {
        "excel": {
            "command": "cmd",
            "args": ["/c", "npx", "--yes", "@negokaz/excel-mcp-server"],
            "env": {
                "EXCEL_MCP_PAGING_CELLS_LIMIT": "4000"
            }
        }
    }
}

For other platforms:

{
    "mcpServers": {
        "excel": {
            "command": "npx",
            "args": ["--yes", "@negokaz/excel-mcp-server"],
            "env": {
                "EXCEL_MCP_PAGING_CELLS_LIMIT": "4000"
            }
        }
    }
}

Installing via Smithery

To install Excel MCP Server for Claude Desktop automatically via Smithery:

npx -y @smithery/cli install @negokaz/excel-mcp-server --client claude

Tools

excel_describe_sheets

List all sheet information of specified Excel file.

Arguments:

  • fileAbsolutePath
    • Absolute path to the Excel file

excel_read_sheet

Read values from Excel sheet with pagination.

Arguments:

  • fileAbsolutePath
    • Absolute path to the Excel file
  • sheetName
    • Sheet name in the Excel file
  • range
    • Range of cells to read in the Excel sheet (e.g., “A1:C10”). [default: first paging range]
  • showFormula
    • Show formula instead of value [default: false]
  • showStyle
    • Show style information for cells [default: false]

excel_screen_capture

[Windows only] Take a screenshot of the Excel sheet with pagination.

Arguments:

  • fileAbsolutePath
    • Absolute path to the Excel file
  • sheetName
    • Sheet name in the Excel file
  • range
    • Range of cells to read in the Excel sheet (e.g., “A1:C10”). [default: first paging range]

excel_write_to_sheet

在 GitHub 查看完整 README

安装

npx --yes @negokaz/excel-mcp-server
新手?先看 mcpskill.org 教程 →

配置

{ "mcpServers": { "excel": { "command": "cmd", "args": ["/c", "npx", "--yes", "@negokaz/excel-mcp-server"], "env": { "EXCEL_MCP_PAGING_CELLS_LIMIT": "4000" } } } }