Skip to main content
Glama

excel-mcp-server

Excel MCP 服务器

模型上下文协议 (MCP) 服务器,让您无需安装 Microsoft Excel 即可操作 Excel 文件。使用您的 AI 代理创建、读取和修改 Excel 工作簿。

特征

  • 📊 创建和修改 Excel 工作簿
  • 📝 读取和写入数据
  • 🎨 应用格式和样式
  • 📈 创建图表和可视化
  • 📊 生成数据透视表
  • 🔄 管理工作表和范围
  • 🔌 双传输支持:stdio 和 SSE

快速入门

先决条件

  • Python 3.10 或更高版本

安装

  1. 克隆存储库:
git clone https://github.com/haris-musa/excel-mcp-server.git cd excel-mcp-server
  1. 使用 uv 安装:
uv pip install -e .

运行服务器

服务器支持两种传输模式:stdio和SSE。

使用 stdio 传输(默认)

Stdio 传输非常适合与 Cursor Desktop 或本地开发等工具直接集成,可以操作本地文件:

excel-mcp-server stdio
使用 SSE 传输

SSE 传输非常适合基于 Web 的应用程序和远程连接,它们可以操作远程文件:

excel-mcp sse

您可以为 SSE 服务器指定主机和端口:

excel-mcp sse --host 127.0.0.1 --port 8080

与AI工具一起使用

游标 IDE

  1. 将此配置添加到 Cursor,并根据您的需要选择适当的传输方法:

Stdio 传输连接(用于本地集成):

{ "mcpServers": { "excel-stdio": { "command": "uv", "args": ["run", "excel-mcp-server", "stdio"] } } }

SSE 传输连接(用于基于 Web 的应用程序):

{ "mcpServers": { "excel": { "url": "http://localhost:8000/sse", "env": { "EXCEL_FILES_PATH": "/path/to/excel/files" } } } }
  1. Excel 工具将通过您的 AI 助手提供。

远程托管和传输协议

该服务器支持 stdio 和 SSE 传输协议,以实现最大的灵活性:

  1. 与 Claude Desktop 一起使用:
    • 使用 Stdio 传输
  2. 托管您的 MCP 服务器 (SSE):

环境变量(用于 SSE 传输)

  • FASTMCP_PORT :SSE 传输的服务器端口(默认值:8000)
  • EXCEL_FILES_PATH :Excel 文件目录(默认值: ./excel_files

可用工具

该服务器提供了一套全面的 Excel 操作工具。查看TOOLS.md获取所有可用工具的完整文档。

执照

MIT 许可证 - 详情请参阅许可证

-
security - not tested
A
license - permissive license
-
quality - not tested

hybrid server

The server is able to function both locally and remotely, depending on the configuration or use case.

提供 Excel 文件操作功能。此服务器支持工作簿创建、数据操作、格式化以及高级 Excel 功能。

  1. 特征
    1. 快速入门
      1. 先决条件
      2. 安装
      3. 运行服务器
    2. 与AI工具一起使用
      1. 游标 IDE
      2. 远程托管和传输协议
    3. 环境变量(用于 SSE 传输)
      1. 可用工具
        1. 执照

          Related MCP Servers

          • A
            security
            A
            license
            A
            quality
            Provides efficient handling of large Excel files through automatic chunking and pagination, using MCP to enable seamless file reading and management features such as sheet selection and error handling.
            Last updated -
            1
            19
            JavaScript
            MIT License
          • -
            security
            A
            license
            -
            quality
            A Model Context Protocol server that enables AI assistants to read from and write to Microsoft Excel files, supporting formats like xlsx, xlsm, xltx, and xltm.
            Last updated -
            6,446
            276
            Go
            MIT License
            • Linux
            • Apple
          • A
            security
            A
            license
            A
            quality
            Enables seamless reading, writing, and analyzing of Excel files through Model Context Protocol, with features for worksheet management, structure analysis, and automated caching.
            Last updated -
            8
            212
            11
            TypeScript
            MIT License
            • Linux
            • Apple
          • -
            security
            A
            license
            -
            quality
            Provides Excel file manipulation capabilities without requiring Microsoft Excel installation, enabling workbook creation, data manipulation, formatting, and advanced Excel features.
            Last updated -
            Python
            MIT License
            • Linux
            • Apple

          View all related MCP servers

          MCP directory API

          We provide all the information about MCP servers via our MCP API.

          curl -X GET 'https://glama.ai/api/mcp/v1/servers/haris-musa/excel-mcp-server'

          If you have feedback or need assistance with the MCP directory API, please join our Discord server