Excel MCP Server

Integrations

  • Utilizes NumPy for data analysis operations, enabling statistical calculations and numerical operations on Excel data.

  • Leverages pandas for Excel file operations, data manipulation, filtering, and pivot table creation across multiple file formats.

  • Built on Python, allowing execution of Python-based data analysis and Excel management operations.

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 许可证

You must be authenticated.

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

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

  1. Features
    1. Installation
      1. Integration with Claude Desktop
        1. Available Tools
          1. File Reading
          2. Data Analysis
          3. Data Visualization
          4. File Operations
        2. Available Resources
          1. Prompt Templates
            1. Usage Examples
              1. Security Considerations
                1. Dependencies
                  1. License
                    ID: vda5rccucp