Skip to main content
Glama

MCP Sheet Parser

by yuqie6
MIT License
3
  • Apple

convert_to_html

Convert Excel/CSV files to browser-viewable HTML while preserving styles, colors, and fonts. Ideal for multi-sheet files, offering options to target specific sheets and handle large files with pagination. Returns structured JSON with conversion details.

Instructions

将Excel/CSV文件转换为可在浏览器中查看的HTML文件。保留原始样式、颜色、字体等格式。支持多工作表文件,可选择特定工作表或转换全部。大文件可使用分页功能。返回结构化JSON,包含成功状态、生成的文件信息和转换摘要。

Input Schema

NameRequiredDescriptionDefault
file_pathYes源表格文件的绝对路径,支持 .csv, .xlsx, .xls, .xlsb, .xlsm 格式。
header_rowsNo【可选】将文件顶部的指定行数视为表头。默认为 1。
output_pathNo输出HTML文件的路径。如果留空,将在源文件目录中生成一个同名的 .html 文件。
page_numberNo【可选】要查看的页码,从1开始。默认为1。用于浏览大型文件的特定页面。
page_sizeNo【可选】分页时每页显示的行数。默认为100行。用于控制大型文件转换后HTML的单页大小。
sheet_nameNo【可选】要转换的单个工作表的名称。如果留空,将转换文件中的所有工作表。

Input Schema (JSON Schema)

{ "properties": { "file_path": { "description": "源表格文件的绝对路径,支持 .csv, .xlsx, .xls, .xlsb, .xlsm 格式。", "type": "string" }, "header_rows": { "description": "【可选】将文件顶部的指定行数视为表头。默认为 1。", "type": "integer" }, "output_path": { "description": "输出HTML文件的路径。如果留空,将在源文件目录中生成一个同名的 .html 文件。", "type": "string" }, "page_number": { "description": "【可选】要查看的页码,从1开始。默认为1。用于浏览大型文件的特定页面。", "type": "integer" }, "page_size": { "description": "【可选】分页时每页显示的行数。默认为100行。用于控制大型文件转换后HTML的单页大小。", "type": "integer" }, "sheet_name": { "description": "【可选】要转换的单个工作表的名称。如果留空,将转换文件中的所有工作表。", "type": "string" } }, "required": [ "file_path" ], "type": "object" }
Install Server

Other Tools from MCP Sheet Parser

Related Tools

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/yuqie6/MCP-Sheet-Parser-cot'

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