mcp-excel

mcp-excel

Enables AI assistants to read and write local Excel and CSV files, supporting editing, styling, and image insertion.

Category
Visit Server

README

<!-- 对应 docs/03-detailed-design.md 第 4.1 节:触点一 npm 包说明页 -->

mcp-excel —— 让 AI 助手直接读写你电脑上的 Excel 文件

<p align="center"> <a href="https://www.npmjs.com/package/mcp-excel"><img src="https://img.shields.io/npm/v/mcp-excel" alt="npm version"></a> <a href="https://www.npmjs.com/package/mcp-excel"><img src="https://img.shields.io/npm/dm/mcp-excel" alt="npm downloads"></a> <a href="https://nodejs.org/"><img src="https://img.shields.io/badge/node-%3E%3D20-brightgreen" alt="node version"></a> <a href="./LICENSE"><img src="https://img.shields.io/npm/l/mcp-excel" alt="license"></a> </p>

支持 .xlsx / .xls / .csv 格式。

<!-- 第 4.1 节第 2 点:它能干什么 -->

它能干什么

  • 读取本地 Excel / CSV 文件,让 AI 直接回答表格内容相关的问题。
  • 新建 .xlsx 文件,并创建多张初始工作表。
  • 修改单元格、批量写入二维数组、设置 Excel 公式。
  • 设置字体、填充色、边框、对齐、数字格式,合并单元格、调整列宽行高美化表格。
  • 对工作表区域排序、筛选、去重。
  • 把本地 png / jpg / gif 图片插入到工作表指定位置。

<!-- 第 4.1 节第 3 点:安装与配置。配置示例必须原样可用 -->

安装与配置

需要 Node.js 20 或以上。在 AI 助手的 MCP 配置中加入:

{
  "mcpServers": {
    "excel": {
      "command": "npx",
      "args": ["-y", "mcp-excel"]
    }
  }
}

保存配置后,重启 AI 助手即可生效。

<!-- 第 4.1 节第 4 点:使用示例 -->

使用示例

  • 帮我看看 D:\报表\2026年销售记录.xlsx 里“一月”那张表,总销售额是多少?
  • 新建一个 Excel,12 张 Sheet,每张是一个月考勤表,第一行写姓名和 1 到 31 号。
  • 把“费用表” B5 的 3000 改成 3500,最后加一行合计。

<!-- 第 4.1 节第 5 点:支持的格式与限制。如实写明,防止错误预期 -->

支持的格式与限制

  • .xlsx:全功能支持。
  • .xls:仅支持读取;如需修改,请先在 Excel / WPS 中另存为 .xlsx
  • .csv:支持读写单元格值,但仅有一张工作表,不支持样式、合并单元格、图片等。
  • 修改含有图表、数据透视表、宏(如 .xlsm 中的 VBA)的文件时,这些元素可能在保存过程中丢失。
  • 本工具写入的公式不带缓存计算结果,需要在 Excel / WPS 中打开一次后才会显示计算值。

<!-- 第 4.1 节第 6 点:隐私说明 -->

隐私说明

所有处理都在你自己的电脑上完成,不上传任何数据。

<!-- 第 4.1 节第 7 点:License -->

License

MIT

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured