返回市场
麦普Excel服务器

麦普Excel服务器

作者:bigcoder845 星标更新:2025-04-12

项目介绍

mcp-excel-server

项目概述

MCP Excel Server 是基于 Spring AI MCP 框架开发的一个项目。其主要功能是通过 MCP 协议为大型语言模型(LLMs)提供读写本地 Excel 文件的能力。通过这个项目,AI 可以像人类一样调用本地工具,突破静态知识库的限制,实现动态交互。

特性

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

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

环境要求

Java 17 及以上版本

安装与配置

步骤 1:执行以下命令进行打包:

mvn clean package -Dmaven.test.skip=true

步骤 2:配置 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: 生成的结果: