Excel Integration

•
7
•

Enables large language models to read and write local Excel files using the MCP protocol.

This project, built on the Spring AI MCP framework, empowers large language models (LLMs) with the ability to interact with local Excel files. By leveraging the MCP protocol, the server allows AI agents to dynamically read and write data to Excel spreadsheets, effectively providing them with access to external data and the ability to perform real-world operations beyond their static knowledge base.

주요 기능

013 GitHub stars
02Returns Excel content in JSON format.
03Reads local Excel files (both .xlsx and .xls formats).
04Writes JSON data to specified local Excel files.
05Integrates with LLM clients supporting the MCP protocol (e.g., Claude, Cursor, Cherry Studio).

사용 사례

01Creating AI-powered workflows that involve reading, processing, and writing data to Excel.
02Enabling LLMs to access and process data stored in Excel files.
03Automating data entry and manipulation in Excel spreadsheets through AI agents.

mcp-excel-server

项目概述

mcp-excel-server 是一个基于 Spring AI MCP 框架开发的项目,其主要功能是借助 MCP 协议,为大语言模型(LLM)提供对本地 Excel 文件进行读取和写入操作的能力。通过本项目,AI 能够像人类一样调用本地工具,突破静态知识库的限制,实现动态交互。

功能特性

  • Excel 文件读取:能够读取本地 Excel 文件(支持 .xlsx 和 .xls 格式),并将内容以 JSON 格式返回。

  • Excel 文件写入:可以把 JSON 数据写入到指定的本地 Excel 文件中。 与 LLM 集成:可与支持 MCP 协议的 LLM 客户端集成,如 Claude、Cursor 和 Cherry Studio 等。

环境要求

Java 17 及以上

安装与配置

第一步:执行下列命令打包:

mvn clean package -Dmaven.test.skip=true

第二步:配置MCP Server

{
  "mcpServers": {
    "AUM5itYnoMcxPiU2vFa3Z": {
      "name": "Excel操作",
      "type": "stdio",
      "description": "",
      "isActive": true,
      "command": "java",
      "args": [
        "-Dspring.ai.mcp.server.stdio=true",
        "-Dspring.main.web-application-type=none",
        "-Dfile.encoding=UTF-8",
        "-jar",
        "{your_path}/mcp-excel-server-0.0.1-SNAPSHOT.jar"
      ]
    }
  }
}

功能演示

order.xlsx: 生成的结果: