Spreadsheet MCP Server

Spreadsheet MCP Server

spreadsheet-mcp•byzephyrdeng

A TypeScript Model Context Protocol server for viewing, filtering, sorting, and updating CSV and XLSX spreadsheet files through LLM or API integration.

License: MIT License•Runtime: Awaiting documentation review•Category: file systems-docs

WHAT IT DOES

  • •Views spreadsheet information and previews a specified number of rows, returning results as a JSON string with a two-dimensional array.
  • •Filters rows by column and condition and returns matching results as a JSON string with a two-dimensional array.
  • •Sorts rows by column in ascending or descending order and returns them as a JSON string with a two-dimensional array.
  • •Adds new worksheets to existing XLSX files or creates new files, and supports both CSV and XLSX input.

BEST FOR

  • •Inspecting spreadsheet structure and previewing rows before further processing with an LLM.
  • •Querying CSV or XLSX data by filtering and sorting rows to narrow down matching records.
  • •Writing new data into a new worksheet within an existing XLSX file or a newly created file.

ABOUT SPREADSHEET-MCP

Spreadsheet MCP Server is cataloged as an MCP server attributed to zephyrdeng. A TypeScript Model Context Protocol server for viewing, filtering, sorting, and updating CSV and XLSX spreadsheet files through LLM or API integration. It is categorized under file systems-docs. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Spreadsheet MCP Server are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Which file formats does the server support?

It supports both CSV and XLSX spreadsheet files.

How many rows does the preview return by default?

The rows parameter defaults to 10; a value of 0 shows only the header, and there is no maximum limit.

Can the server write data to a spreadsheet?

Yes, it can write data into a new worksheet of an XLSX file.

Upstream README

View this exact version on GitHub

README.md · 6e6e7783bfcd · Fetched 2026-11-13 10:14:10 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

English | 中文

Spreadsheet MCP Server (@zephyr-mcp/spreadsheet)

一个基于 TypeScript 的模型上下文协议 (MCP) 服务器,用于通过 LLM 或 API 集成来查看、筛选、排序和更新 CSV/XLSX 电子表格文件。

功能特性

  • 查看电子表格信息并预览行
  • 按列和条件筛选行
  • 按列排序行 (升序/降序)
  • 向现有 XLSX 文件添加新工作表或创建新文件
  • 支持 CSV 和 XLSX 文件
  • 以包含二维数组的 JSON 字符串形式返回结果 (用于查看/筛选/排序)
  • 技术栈:TypeScript, fastmcp, papaparse, xlsx, zod

安装与使用

此包设计为直接使用 npx 运行。典型用法无需安装。

先决条件

  • Node.js v18+ (推荐 LTS 版本)

运行 MCP 服务器

在 stdio 模式下启动服务器 (用于与 Cline 等工具集成):

npx @zephyr-mcp/spreadsheet

服务器将启动并通过标准输入/输出监听 MCP 命令。

开发

设置

  1. 克隆仓库:
    git clone https://github.com/your-username/spreadsheet-mcp.git # 替换为你的仓库 URL
    cd spreadsheet-mcp
    
  2. 安装依赖:
    npm install
    

开发模式运行

使用 tsx 进行带热重载的开发:

npm run dev

构建

使用 Vite 将 TypeScript 编译为 JavaScript (输出到 dist/):

npm run build

测试

使用 Vitest 运行测试:

# 运行所有测试一次并生成覆盖率报告
npm test

# 在监视模式下运行测试
npm run test:watch

发布 (维护者使用)

本项目使用 release-it 自动化发布流程,包括版本号更新、Changelog 生成、Git 打标、npm 发布以及创建 GitHub Releases。

发布先决条件:

  • 确保你拥有仓库的推送权限。
  • 确保你拥有在 npm 上发布到 @zephyr-mcp scope 的权限。
  • 如果在 CI 中运行发布,请在 GitHub 仓库中配置必要的 secrets (例如 NPM_TOKEN,如果默认 token 权限不足,可能还需要用于创建 GitHub Release 的 PAT_TOKEN)。

步骤:

  1. 确保你的本地 main 分支是最新状态,并且工作目录是干净的。
  2. 确保所有计划发布的变更都已合并到 main 分支。
  3. 运行发布命令:
    npm run release
    
  4. release-it 将引导你完成整个过程:
    • 根据 Conventional Commits 确定下一个版本号。
    • 通过配置的钩子运行测试 (npm test) 和构建 (npm run build)。
    • 更新 CHANGELOG.md。
    • 提交变更 (package.json, CHANGELOG.md)。
    • 创建 Git 标签。
    • 将提交和标签推送到远程仓库。
    • 将包发布到 npm。
    • 创建 GitHub Release。

贡献

欢迎贡献!请遵循以下指南:

  1. 分支: 为你的功能或错误修复创建一个新分支。
  2. 提交: 遵循 Conventional Commits 规范编写提交信息。这对 release-it 自动生成 Changelog 和更新版本号至关重要。
  3. 代码风格: 保持一致的代码风格 (可以考虑添加 ESLint 等 linter)。
  4. 测试: 为新功能或错误修复在 tests/ 目录下添加测试。确保所有测试通过 (npm test)。
  5. Pull Request: 向 main 分支提交 Pull Request。

项目结构

.
├── .github/workflows/       # GitHub Actions 工作流 (CI)
│   └── ci.yml
├── dist/                    # 编译后的 JavaScript 输出 (Git 忽略)
├── node_modules/            # 依赖项 (Git 忽略)
├── src/                     # 源代码
│   ├── server.ts            # MCP 服务器入口, 工具注册
│   └── spreadsheetUtils.ts  # 电子表格解析、筛选、格式化、写入
├── tests/                   # 单元/集成测试
│   └── server.test.ts
├── .gitattributes
├── .gitignore
├── .release-it.json         # release-it 配置
├── CHANGELOG.md             # 自动生成的更新日志
├── LICENSE
├── package.json
├── README.md                # 本文档 (中文)
├── README.en.md             # 英文文档
├── tsconfig.json
└── vite.config.ts           # Vite & Vitest 配置

示例工具

  • view_spreadsheet: 查看文件信息并预览指定行数。返回包含文件信息和预览数据(二维数组)的 JSON 字符串。rows 参数指定预览行数(0 表示仅表头,默认为 10,无最大限制)。
  • filter_spreadsheet: 按列和条件筛选行。返回包含筛选结果(二维数组)的 JSON 字符串。rows 参数指定返回的最大行数(默认为所有匹配行,无最大限制)。
  • sort_spreadsheet: 按列排序行。返回包含排序结果(二维数组)的 JSON 字符串。rows 参数指定返回的最大行数(默认为所有行,无最大限制)。
  • update_spreadsheet_with_new_sheet: 将数据写入 XLSX 文件的新工作表

许可证

MIT License © 2025 Zephyr

作者

Zephyr

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Spreadsheet MCP Server from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/spreadsheet-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related file systems-docs MCP Servers

Alternative and complementary servers in the same category

View all in file systems-docs →

A Model Context Protocol server for global law with read-only tools to find and read provisions by date, trace the law behind each word, search text and changes, and check cases or briefs against law in force.

Repository stats unavailable
Files & Documentation
LoreKeeper MCP server
lorekeeper-rpg-lorekeeper-com•lore-keeper

Hosted MCP server for tabletop RPG worlds that organizes messy notes and documents into a private store and lets MCP apps search lore, read documents, find characters, and optionally generate character or world pictures.

Repository stats unavailable
Files & Documentation

An MCP server that gives AI assistants scoped file system operations inside a project directory, with read-only reference projects plus git and GitHub tools.

Repository stats unavailable
Files & Documentation