Spreadsheet Builder

io.github.theluckystrike由 GitHub 帳號 theluckystrike 發布v0.21.1更新於 Nov 2, 2026

Open, inspect, filter, edit and convert xlsx and csv files from your AI chat. Processing is local.

已驗證Streamable HTTP可網頁執行檔案與儲存資料與分析

概覽

AI 產生的概覽

讓助理開啟、檢視、查詢、擴充並轉換 xlsx 與 csv 試算表,可本機執行或透過託管端點使用。

可以做什麼
  • 檢視試算表:工作表名稱、推測的標題列、欄位型別、範例值與空白數
  • 以表格、JSON 或 CSV 讀取資料列,支援分頁或 A1 範圍
  • 一次呼叫完成篩選、分組、彙總與排序,並提供整欄統計與不分大小寫的儲存格搜尋
  • 將資料列寫入新檔、附加或覆寫,新增計算欄,並在 xlsx、csv 與 json 之間轉換
  • 在託管端點上管理已載入的試算表,並查看或啟用 Pro 授權
適用情境
適合在對話中詢問 Excel 或 CSV 檔案的內容、需要分組彙總或欄位統計而不想手動加總資料列,或想衍生新欄位並以另一種格式另存而不更動原始檔案時使用。
執行需求
可使用 Claude Desktop 的 .mcpb 套件,或以 Node.js 從原始碼建置(README 要求建置用 22 或更新版本,執行用 18 或更新版本)。託管端點需要 Authorization bearer 權杖,可用匿名權杖或 Pro 授權金鑰;Pro 也可透過 MCP_LICENSE_KEY 設定。本機使用不需 API 金鑰。
安裝前請注意
寫入會更動檔案:sheet_write 的 overwrite 模式會取代內容,寫入 xlsx 時該工作表會依值重建,公式、格式、圖表與合併儲存格會遺失,請先備份。免費版讀取上限為 5,000 列與 5 MB,寫入超過 500 列會被拒絕;Pro 為一次性付費授權。託管端點會在你的權杖下保存上傳的試算表,上限 2 MB。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Spreadsheet Builder,將其新增到工作區。
  2. 連接 Authorization token 憑證。它們會被私密儲存,絕不會在公開頁面上展示。
  3. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/io.github.theluckystrike%2Fspreadsheet-builder/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "spreadsheet-builder": {
      "type": "http",
      "url": "https://mcp.zovo.one/mcp/spreadsheet-builder",
      "headers": {
        "Authorization": "Bearer <YOUR_TOKEN>"
      }
    }
  }
}

README

mcp-spreadsheet

Featured on Awesome MCP Servers - directory listing | live hosted endpoint, free tier, no signup.

Hand your AI assistant a spreadsheet and talk to it. Point it at any .xlsx, .xlsm, .xlsb, .xls, .ods, .csv or .tsv file on your machine and ask what is in it, filter it, compute a new column, or save it in another format. It handles the messy parts of real files for you: it guesses which row holds the headers, sniffs whether a CSV is separated by commas, semicolons or tabs, keeps quoted commas and newlines intact, reads numbers out of $1,250.00 style text, and reports per-column types and empty counts. It never edits your original file: every write goes to a new path unless you explicitly choose overwrite. Nothing leaves the machine, and there is no API key to get.

In the official MCP Registry (io.github.theluckystrike/excel-spreadsheet-xlsx-csv).

Listed on the AI Product Index - live remote endpoint at mcp.zovo.one/s/spreadsheet, free tier, no signup.

[spreadsheet demo]

Read, query and extend real spreadsheets from chat without ever touching the original file.

60-second install

Use spreadsheet.mcpb v0.22.9 in Claude Desktop. Published checksums and the versioned download catalog identify the exact release. The npm package is not published.

For a source installation, use Node.js 22 or newer and build the shared dependency first:

sh
git clone https://github.com/theluckystrike/mcp-servers.gitcd mcp-serversnpm cinode scripts/bootstrap-timezone.mjsnpm run build -w packages/mcp-license -w servers/spreadsheet

Merge this entry into Claude Desktop's mcpServers, or into .cursor/mcp.json for Cursor. Replace the absolute path with your checkout:

json
{  "mcpServers": {    "spreadsheet": {      "command": "node",      "args": ["/absolute/path/mcp-servers/servers/spreadsheet/dist/index.js"]    }  }}

For Claude Code:

sh
claude mcp add spreadsheet -- node /absolute/path/mcp-servers/servers/spreadsheet/dist/index.js

To run in Pro mode set MCP_LICENSE_KEY in the same config block, or call license_activate once with your key.

Spreadsheet update

Version 0.22.9 uses the vendor's patched SheetJS 0.20.3. Numeric date cells now follow the time actually stored in the workbook. Some numeric-date files produced by older versions can display 30 seconds differently in historical-offset timezones such as Ho Chi Minh. No guessed offset is added to your data. Reading does not rewrite the source file.

Tools

ToolWhat it does
sheet_infoSheet names, size, guessed header row, per-column type, sample values, empty counts
sheet_readRead rows as a text table, JSON records or CSV; limit/offset paging or an A1 range
sheet_queryFilter with where, group_by + aggregate (sum, count, avg, min, max), pick columns with select, sort (aggregate aliases too), limit
sheet_statscount, empty, distinct, min, max, sum, mean, median per column (top values for text columns)
sheet_findFind text anywhere in the workbook; returns cell addresses and a row preview
sheet_writeWrite rows (objects or arrays) as a new file, an append, or an explicit overwrite
sheet_add_columnAdd a computed column from a formula, saved to a new file. Numeric results are rounded like their inputs (2 decimals in, 2 decimals out); decimals overrides
sheet_convertConvert a sheet to csv, xlsx or json
license_statusFree or Pro, and where to upgrade
license_activateActivate a Pro key (verified offline)

Resource template: sheet://<path> returns the sheet_info summary for that file. Resource: sheet://recent lists the files this server has opened since it started, most recent first (in memory only, nothing is written to disk, so the list is empty again after a restart).

Prompt: explore_sheet walks an unfamiliar file, sheet_info first, then concrete sheet_query calls built from the columns it actually found.

What you can say

You sayTool
"Open sales.xlsx and tell me what's in it."sheet_info
"Show me the first 50 rows."sheet_read
"Which rep sold the most units in the North region? Top 5 with totals."sheet_query (group_by + aggregate)
"How many empty cells are in the Email column, and what's the median order size?"sheet_stats
"Find every row that mentions 'refund'."sheet_find
"Write this as a new sheet called Q3 Results."sheet_write
"Add a Revenue column that's Units times Unit Price, save it as a CSV next to the original."sheet_add_column
"Convert this xlsx to JSON."sheet_convert
"Am I on the free plan or Pro?"license_status
"Here's my license key, activate it."license_activate

Worked example

From docs/USER_VALUE_R2.md, a 400-row fixture with a title row and a blank row above the real header (row 3), sheets Sales / Reps / Notes, prices stored as strings like "1,516.16". One call, ground truth confirmed against the generator: Turing 650, Hopper 567, Linus T 551, Lovelace 486, Liskov 290.

You: Which rep sold the most units in the North region? Top 5 with totals.
  sheet_query {    path: "/Users/you/sales.xlsx", sheet: "Sales",    where: "[Region] = \"North\"",    group_by: ["Rep"],    aggregate: [{ col: "Units", fn: "sum", as: "total_units" }],    sort: { col: "total_units", dir: "desc" },    limit: 5  }
Assistant: Query: where [Region] = "North"; group by Rep; sum Units as total_units;sort total_units desc; limit 55 groups from 102 of 400 rows, showing 5
Alan Turing     650Grace Hopper    567Linus T         551Ada Lovelace    486Barbara Liskov  290

The response now echoes the exact query it ran (the Query: line) before the numbers, so a filter you did not ask for, an accidental AND [Status] = "Closed", say, is visible instead of silently narrowing the answer.

A second example, adding a column and saving without touching the source:

You: Add a Revenue column and save it as a CSV next to the original.
  sheet_add_column {    path: "/Users/you/sales.xlsx", sheet: "Sales",    name: "Revenue", formula: "[Units] * [Unit Price]",    out_path: "/Users/you/sales.csv"  }
Assistant: Wrote 400 rows (401 lines with header) to sales.csv.Revenue = Units * Unit Price on every row, total 10,142,542.04.Source file untouched.

The where and formula language

A small expression language, parsed and evaluated directly. There is no eval and no code execution: a bare word is always a column name, never a JavaScript value.

  • Columns: [Unit Price] for names with spaces, Qty otherwise. Lookup is case insensitive.
  • Comparisons: = != > >= < <= contains startswith endswith
  • Logic: AND OR NOT and parentheses. AND binds tighter than OR.
  • Arithmetic in formulas: + - * % / with the usual precedence.
  • Strings: 'single' or "double" quotes; double a quote to escape it.
[Qty] >= 5 AND ([Status] = "open" OR [Region] contains "north")[Amount] > 1000 AND NOT [Customer] startswith 'Test'

Formula example for sheet_add_column: [Qty] * [Unit Price]. When every column the formula reads holds at most 2 decimals, the result is rounded to 2 decimals, so [Amount] * 1.23 on money gives 40.79 rather than 40.7868. Pass decimals (0-10) to choose the precision yourself.

Numbers written as text in a CSV are converted by pattern, not by length: 1250.00, 12.00 and 1,250.00 all become numbers in the xlsx output, so Excel's own SUM counts them. Identifier-shaped and ambiguous values stay text: 007 keeps its leading zeros and 1.250,00 is left alone rather than guessed at.

Text comparisons ignore case and surrounding whitespace. Values like $1,250.00, 1 250, and 12% compare as numbers, so [Amount] > 1000 works on a column your spreadsheet stored as text.

Free vs Pro

FreePro
Every tool that reads a file (sheet_info, sheet_read, sheet_query, sheet_stats, sheet_find, sheet_add_column, sheet_convert)Files up to 5 MB and 5,000 rowsNo limit (up to the 50 MB file ceiling)
sheet_write, sheet_add_column, sheet_convertUp to 500 rows written per file; over that nothing is written and the tool says soNo limit
Sheets, formats, expression languageAllAll

Over a free read limit the tool still does the work and returns the part it is allowed to return (the first 5,000 rows), with a note saying what was left out. Over the free write limit nothing at all is written: a partial file that looks complete is worse than no file, so the tool refuses, tells you the row count and the cap, and suggests a free workaround (filter the rows down first, or write in 500-row batches). Nothing fails silently.

Get Pro

$19 one-time for this server, $39 for every server, lifetime: https://mcp.zovo.one/buy/spreadsheet

How it stores data

This server keeps no database of its own, it reads and writes the spreadsheet files you point it at, directly on your disk, and nothing else. Every write (sheet_write, sheet_add_column, sheet_convert in overwrite mode) goes to a temporary file in the same directory first, then is renamed into place, so an interrupted write leaves either the untouched original or the complete new file, never a truncated one. Because there is no shared state file, there is no advisory lock to take: two calls writing to two different output paths cannot collide, and a call to overwrite the same file twice in a row is simply two writes in sequence. To back up your data, back up the spreadsheet files themselves, there is nothing else to copy.

Limits and honest caveats

  • Free reads cap at 5,000 rows and 5 MB; free writes cap at 500 rows per file and refuse rather than truncate, you get an error naming the row count and the cap, never a shorter file that looks complete.
  • The hard ceiling is 50 MB regardless of tier; a file over that is refused outright with a clear message rather than risking memory exhaustion.
  • The where/formula language is intentionally small: no regular expressions, no custom functions, no cross-sheet references in a single formula. It covers comparisons, boolean logic and arithmetic, nothing more.
  • Writing an xlsx replaces one sheet, not the workbook. sheet_write with append or overwrite reads the whole workbook, swaps the sheet you named and writes every other sheet back, so Sheet2 and its data survive an append to Sheet1. What is not preserved is the sheet being written: it is rebuilt from values, so formulas, cell formatting, conditional formatting, charts, data validation and merged cells on that one sheet become plain values. Other sheets keep their cells as read. Take a copy first if the target sheet carries formatting you cannot recreate.
  • Numbers written as text are read with locale-aware rules. 1,250.00, 1 250.00, $1,250.00, 12,99, 1.234,56 and EUR 1 250,00 all read as numbers; a decimal comma is only accepted in the unambiguous shape (a comma with exactly two digits at the end, dots or spaces grouping). Anything that mixes separators another way (1,2500.00) stays text rather than being guessed at. Values with leading zeros (007) and integers too large for exact arithmetic (over 9,007,199,254,740,991) stay text so they are never silently altered.
  • Dates keep their cell type. A date cell read from an xlsx stays a date through queries and through a conversion back to xlsx. In text, CSV and JSON output it is rendered as ISO: 2026-09-04 for a date, 2026-09-03T15:30:00 when the cell carries a time.
  • sheet_info's header-row guess is a heuristic (looks for the first row with lower emptiness and higher text density than the rows above it). It handles a title row and a blank row above the header; it is not proof against every layout, and you can always confirm what it picked before querying.

Troubleshooting

  • npx hangs or fails to find the package: npm publish for this package is pending. Use the .mcpb bundle or the clone-and-build path above until it lands.
  • Using the .mcpb bundle: it installs into Claude Desktop directly; there is no separate config step.
  • Using the clone path: the server binary is servers/spreadsheet/dist/index.js after npm run build. Point your client's command at node with that absolute path as the only argument.
  • Node version: requires Node >= 18. Check with node -v.
  • "Path does not exist": the message includes the resolved absolute path (with ~ expanded), check it against where the file actually lives, especially inside a sandboxed or containerized client.
  • A write is refused with a row-count message: you hit the free 500-row write cap. Filter the data down with sheet_query first, write in batches, or activate Pro.
  • Nothing shows up / silent failures: logs go to stderr only, never stdout. In Claude Desktop check Settings -> Developer -> the server's log file; in Claude Code check the terminal or --mcp-debug.

Safety

  • Paths that do not exist are refused with the resolved path in the message; ~ is expanded.
  • Files over 50 MB are refused with a clear message rather than exhausting memory.
  • sheet_add_column and sheet_convert write to a new file and refuse to clobber an existing one unless you pass out_path yourself.
  • sheet_write with mode: "new_file" refuses to write over an existing file. Only mode: "overwrite" replaces file contents.
  • Output files are written to a temporary name and renamed into place, so an interrupted write cannot truncate a file.

Privacy

All data stays local. Files are read from and written to your own disk, license keys are verified offline with an embedded public key, and the server makes no network requests at all.

Repeated checks on CSV exports

For a repeated CSV export workflow, the local CSV rule-check guide shows how to check additions, removals and maximum absolute price increases against one saved policy. Try the free browser demo before deciding whether the exact rules fit your files; your CSV data stays in that demo's browser and is not transferred from this MCP server.

The guide describes a separate proposed finite offline Node CLI pack at USD 7 once. No live checkout or preorder is available, and it is not part of this MCP server's Pro license. The free demo performs the same rule logic; the proposed paid benefit is a reusable local bundle and CLI workflow. It accepts only UTF-8 CSV with identical ordered headers and a single unique key, up to 1 MB and 5,000 rows per file. It does not import into a store or guarantee import safety.

Optional asynchronous workflow feedback can help identify repeated supported CSV checks, one-off uses, or inputs that need mapping first. Share only general workflow information; no CSV files, contact details, calls or payment are needed.

Pairs with

FAQ

Yes. sheet_info guesses the header row and reports which row it picked, so an export with a title line and a blank line above the real headers opens correctly without you specifying anything.

It groups. sheet_query takes group_by plus aggregate with sum, count, avg, min or max, and can sort by an aggregate alias, so top-N-by-category questions are a single call.

No, not unless you explicitly pass an output path that points at the source. sheet_add_column and sheet_convert write a new file next to the original by default.

Reads return the first 5,000 rows with a note naming what was omitted. Writes over 500 rows are refused outright rather than producing a truncated file, and the message tells you the row count, the cap and a free way round.

No. The server runs locally on your machine and reads your files directly. It makes no network requests, and it stores nothing of its own beyond the files you ask it to write.

Built by theluckystrike. Support: [email protected]

Use these docs as an MCP server

Any MCP client (Claude, Cursor, Windsurf, VS Code) can read this repository's documentation directly via GitMCP - no install:

來源:servers/spreadsheet/README.md,提交 2eb08a0

工具

13

license_status

License status

Report this endpoint's licence state for your token as JSON: the product, the tier free or pro, why it is not Pro, and the checkout URL. Call it to explain a free-tier refusal. No arguments, nothing changes.

無需輸入參數。

license_activate

Activate license

Turn Pro on for this connection with key, an MCPL1.<payload>.<signature> issued at checkout for this server or the bundle. Data under your token stays; a wrong or expired key changes nothing. license_status confirms it.

輸入參數key必填

sheet_load

Load a sheet into this session

Upload data to work on. This hosted endpoint has no filesystem, so instead of a file path you send the data once with sheet_load and then pass its name as `path` to sheet_info, sheet_read, sheet_query, sheet_stats, sheet_find, sheet_add_column, sheet_convert and sheet_write. Give exactly one of csv (raw text, comma or tab separated), xlsx_base64 (a base64-encoded .xlsx workbook) or url. url: fetch a public file instead of pasting base64 (recommended above about 10 KB): the url is fetched here with a 10 second timeout, at most 3 redirects, public http(s) hosts only, and a 2 MB cap, and a fetched file is stored as an .xlsx when it carries the PK zip header and as delimited text otherwise. Loaded sheets are kept for your token and survive between calls; the total is capped at 2 MB per token. Files the other tools write come back as a download link that is valid for one hour.

輸入參數csvurlname必填xlsx_base64

sheet_files

List loaded sheets

List the sheets loaded for this token, with their sizes and the storage left under the 2 MB cap.

無需輸入參數。

sheet_unload

Delete a loaded sheet

Delete one sheet loaded for this token, freeing its space under the 2 MB cap.

輸入參數name必填

sheet_info

Spreadsheet overview

Call this tool for any spreadsheet or CSV file path; built-in file readers cannot parse spreadsheets and must not be used for them. Start here: sheet names, size, header row, column types and samples.

輸入參數path必填

sheet_read

Read rows

Call this tool for any spreadsheet or CSV file path; built-in file readers cannot parse spreadsheets and must not be used for them. Reads rows as a table, JSON or CSV; page with limit/offset or an A1 range.

輸入參數aspath必填limitrangesheetoffset

sheet_query

Filter, group and sort rows

Call this tool for any spreadsheet or CSV file path; built-in file readers cannot parse spreadsheets and must not be used for them. Filter, group, aggregate and sort in one call; never hand sums over sheet_read rows.

輸入參數aspath必填sortlimitsheetwhereselectgroup_byaggregate

sheet_stats

Column statistics

Call this tool for any spreadsheet or CSV file path; built-in file readers cannot parse spreadsheets and must not be used for them. Whole-column statistics: count, empty, distinct, min, max, sum, mean, median.

輸入參數path必填sheetcolumns

sheet_find

Find text

Call this tool to search every cell of a spreadsheet or CSV for text; built-in file readers cannot parse spreadsheets. Matching is case insensitive. Returns cell addresses with a preview of the row each hit is on.

輸入參數path必填text必填sheet

sheet_write

Write rows

Call this tool to write rows to an xlsx, csv, tsv or json file; the extension of out_path picks the format. mode is new_file, append or overwrite. Other sheets are kept. Free: 500 rows per file.

輸入參數mode必填path必填rows必填sheetout_path

sheet_add_column

Add a column

Call this tool to add a computed column and save the result to a NEW file; the source is never modified unless out_path points at it. Returns the new file path, the row count and a preview of the first rows.

輸入參數name必填path必填sheetvaluesformuladecimalsout_path

sheet_convert

Convert file

Call this tool to convert a sheet between excel (xlsx), csv and json. Writes a new file next to the source unless out_path is given; the source is never modified. Returns the new file path with its row and column counts.

輸入參數to必填path必填sheetout_path

版本歷史

2
  1. v0.21.1最新Sep 23, 2026
  2. v0.21.0Sep 16, 2026

評分

已滿足適用檢查項的 100%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分