Skip to main content
Glama

Excel MCP Server

by yzfly

Excel MCP 服务器

提供全面的 Excel 文件管理和数据分析功能的 MCP 服务器。

特征

  • Excel文件操作
    • 读取多种 Excel 格式(XLSX、XLS、CSV、TSV、JSON)
    • 编写和更新 Excel 文件
    • 获取文件信息和工作表名称
  • 数据分析
    • 汇总统计和描述分析
    • 数据质量评估
    • 数据透视表
    • 过滤和查询数据
  • 可视化
    • 从 Excel 数据生成图表和绘图
    • 创建数据预览
    • 将可视化结果导出为图像

安装

  1. 创建新的 Python 环境(推荐):
# Using uv (recommended) uv init excel-mcp-server cd excel-mcp-server uv venv source .venv/bin/activate # On Windows: .venv\Scripts\activate # Or using pip python -m venv .venv source .venv/bin/activate # On Windows: .venv\Scripts\activate
  1. 安装依赖项:
# Using uv uv pip install -r requirements.txt # Or using pip pip install -r requirements.txt

与 Claude Desktop 集成

  1. 安装Claude Desktop
  2. 打开“设置”并转到“开发人员”选项卡
  3. 编辑claude_desktop_config.json
{ "mcpServers": { "command": "uvx", "args": [ "mcp-excel-server" ], "env": { "PYTHONPATH": "/path/to/your/python" } } }

可用工具

文件读取

  • read_excel :读取 Excel 文件
  • get_excel_info :获取文件详细信息
  • get_sheet_names :列出工作表名称

数据分析

  • analyze_excel :执行统计分析
  • filter_excel :按条件过滤数据
  • pivot_table :创建枢轴表
  • data_summary :生成全面的数据摘要

数据可视化

  • export_chart :生成图表
    • 支持折线图、条形图、散点图、直方图

文件操作

  • write_excel :写入新的 Excel 文件
  • update_excel :更新现有的 Excel 文件

可用资源

  • excel://{file_path} :获取文件内容
  • excel://{file_path}/info :获取文件结构信息
  • excel://{file_path}/preview :生成数据预览图

提示模板

  • analyze_excel_data :Excel 数据分析的指导模板
  • create_chart :帮助创建数据可视化
  • data_cleaning :协助数据清理

使用示例

  • “分析我的sales_data.xlsx文件”
  • “为 product_sales.csv 创建条形图”
  • “在employees.xlsx中筛选出30岁以上的员工”
  • “生成部门销售额数据透视表”

安全注意事项

  • 仅从指定路径读取文件
  • 限制文件大小
  • 防止意外文件覆盖
  • 严格控制数据转换操作

依赖项

  • 熊猫
  • numpy
  • matplotlib
  • 西伯恩

执照

MIT 许可证

Install Server
A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

hybrid server

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

MCP 服务器提供全面的 Excel 文件操作、数据分析和可视化功能,可处理各种电子表格格式,如 XLSX、CSV 和 JSON。

  1. 特征
    1. 安装
      1. 与 Claude Desktop 集成
        1. 可用工具
          1. 文件读取
          2. 数据分析
          3. 数据可视化
          4. 文件操作
        2. 可用资源
          1. 提示模板
            1. 使用示例
              1. 安全注意事项
                1. 依赖项
                  1. 执照

                    Related MCP Servers

                    • A
                      security
                      A
                      license
                      A
                      quality
                      Provides Excel file manipulation capabilities. This server enables workbook creation, data manipulation, formatting, and advanced Excel features.
                      Last updated -
                      20
                      1,007
                      Python
                      MIT License
                      • Linux
                      • Apple
                    • A
                      security
                      A
                      license
                      A
                      quality
                      A Model Context Protocol (MCP) server that provides tools for reading Excel (xlsx) files, enabling extraction of data from entire workbooks or specific sheets with results returned in structured JSON format.
                      Last updated -
                      3
                      5
                      Python
                      Apache 2.0
                      • Linux
                      • Apple
                    • -
                      security
                      A
                      license
                      -
                      quality
                      A thin wrapper around the OpenPyXl Python library that exposes Excel file operations as a Model Context Protocol (MCP) server, allowing Claude and other MCP clients to fetch and analyze data from Excel files.
                      Last updated -
                      9
                      Python
                      MIT License
                      • Apple
                    • -
                      security
                      A
                      license
                      -
                      quality
                      This MCP server integrates with Google Drive to allow listing, reading, and searching files, as well as the ability to read and write to Google Sheets.
                      Last updated -
                      91
                      JavaScript
                      MIT License

                    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/yzfly/mcp-excel-server'

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