Skip to main content
Glama

Excel Tools MCP

一个提供读取、写入和分析 Excel 文件工具的 MCP 服务器。基于 Python、pandasopenpyxl 构建。

安装使用

1.在 Glosc Copilot 中使用

2.配置使用

{ "servers": { "Excel-Tools": { "type": "stdio", "command": "python", "args": [ "main.py" ] } } }

MCP 工具

  • get_excel_sheet_names(filepath):
    获取 Excel 文件中的工作表名称列表。

  • read_excel_sheet(filepath, sheet_name):
    读取指定工作表的数据。返回一个兼容 JSON 的记录列表(字典列表)。

  • read_all_excel_sheets(filepath):
    读取 Excel 文件中的所有工作表。返回一个字典,键为工作表名称,值为记录列表。

  • create_excel_file(filepath, data, sheet_name="Sheet1"):
    创建一个新的 Excel 文件。
    data 必须是表示字典列表的 JSON 字符串(例如:[{"col1": 1, "col2": "a"}, ...])。

  • add_excel_sheet(filepath, data, sheet_name):
    向现有的 Excel 文件添加一个新的工作表(如果文件存在则追加)。
    data 必须是表示字典列表的 JSON 字符串。

  • analyze_excel_structure(filepath, output_path=None):
    分析 Excel 文件的结构(行数、列名、数据类型、空值计数)。
    如果提供了 output_path,则将分析结果保存为 JSON 文件;否则,返回 JSON 字符串。

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

Latest Blog Posts

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/glosc-ai/Excel-Tools-MCP'

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