Back to Home

SpreadJS_mcp

by CharlieNey

Overview

A web application with an AI chat interface alongside a spreadsheet, allowing users to interact with the spreadsheet through natural language using the SpreadJS MCP server to execute operations.

Installation

Run Command
npm start

Environment Variables

  • ANTHROPIC_API_KEY
  • SPREADJS_MCP_PATH
  • SUPABASE_URL
  • SUPABASE_ANON_KEY
  • VITE_API_URL
  • VITE_SPREADJS_LICENSE
  • SPREADJS_MODE
  • SPREADJS_BROWSER_URL
  • SPREADJS_LICENSE_KEY

Security Notes

The `src/tools/io.ts` module allows the AI (driven by user prompts) to read from and write to the local filesystem via tools like `import_json`, `export_json`, `import_csv`, and `export_csv` using a user-provided `filePath`. This poses a critical security risk, as a malicious prompt could instruct the AI to read sensitive server files (e.g., `/etc/passwd`) or write arbitrary files, potentially leading to remote code execution or data exfiltration. Additionally, the backend spawns the MCP server as a child process; while the default path is relative, if `SPREADJS_MCP_PATH` were to be controlled by an attacker, it could lead to arbitrary code execution. The application also handles arbitrary file uploads, which are then analyzed by the AI, increasing the potential attack surface if combined with the filesystem manipulation tools.

Similar Servers

Stats

Interest Score0
Security Score3
Cost ClassMedium
Avg Tokens1500
Stars0
Forks0
Last Update2025-11-26

Tags

SpreadsheetAI ChatWeb ApplicationNode.jsSpreadJS