spreadsheet-mcp-app

spreadsheet-mcp-app

Enables AI assistants to present interactive spreadsheets within conversations, allowing users to view, edit, import, and export Excel/CSV data directly through the chat interface.

Category
Visit Server

README

📊 交互式电子表格 MCP App

一个在 AI 对话中提供可交互电子表格的 MCP App,基于 Skybridge 框架构建。

✨ 特性

  • 📥 智能导入 - 支持 XLSX、CSV 格式
  • ✏️ 实时编辑 - 像 Excel 一样直接修改单元格
  • 📤 轻松导出 - 导出为 CSV
  • 🤖 MCP Apps 支持 - 在 Claude Code Desktop 中弹出交互式表格编辑器
  • 🔒 安全隔离 - iframe 沙箱渲染

🚀 快速开始

本地开发

# 1. 安装依赖
npm install

# 2. 启动开发服务器
npm run dev

# 3. 使用 cloudflared 隧道(可选,用于连接 Claude)
cloudflared tunnel --url http://localhost:3000

连接 Claude

使用 cloudflared 创建隧道,然后将隧道 URL 添加到 Claude 的 MCP 配置中:

{
  "mcpServers": {
    "spreadsheet": {
      "url": "https://xxx.trycloudflare.com/mcp"
    }
  }
}

部署到 Vercel

# 1. 安装 Vercel CLI
npm i -g vercel

# 2. 登录
vercel login

# 3. 部署
vercel --prod

部署后,MCP 端点地址为:https://your-app.vercel.app/mcp

📖 使用方法

在 Claude Code Desktop 中使用

  1. 配置 MCP Server:
{
  "mcpServers": {
    "spreadsheet": {
      "url": "https://your-app.vercel.app/mcp"
    }
  }
}
  1. 在对话中:
    • 上传 Excel/CSV 文件
    • 查看交互式表格
    • 编辑数据
    • 导出数据

工具说明

  • spreadsheet - 将数据展示为交互式电子表格
  • import_spreadsheet - 导入 Excel/CSV 文件并显示为表格

🛠 技术栈

  • 前端: React 19 + jspreadsheet-ce
  • 框架: Skybridge(MCP Apps 全栈框架)
  • 后端: Express 5 + MCP SDK
  • Excel 处理: SheetJS (xlsx)
  • 部署: Vercel / 任意 Node.js 服务器

📁 项目结构

spreadsheet-mcp-app/
├── server/
│   ├── src/
│   │   ├── index.ts       # Express 应用入口
│   │   ├── server.ts      # Skybridge McpServer + widget 注册
│   │   └── middleware.ts  # MCP 传输中间件
│   └── utils/
│       └── excel-parser.ts # Excel/CSV 解析器
├── web/
│   ├── src/
│   │   ├── helpers.ts     # 类型安全的 Skybridge hooks
│   │   ├── index.css      # Widget 样式
│   │   └── widgets/
│   │       └── spreadsheet.tsx # 电子表格 React 组件
│   └── vite.config.ts     # Vite 构建配置
├── package.json
├── tsconfig.json
└── README.md

📄 许可证

MIT License

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured