WorkbookAPI

com.workbookapi由 workbookapi.com 发布v0.1.2更新于 Nov 7, 2026

Check and calculate local Excel workbooks with AI agents. Files stay on your machine.

已验证STDIO仅桌面文件与存储数据与分析

概览

AI 生成的概览

本地 MCP 服务器,让助手在本机检查、校验并重算 Excel 工作簿,无需上传文件。

可以做什么
  • 查看工作簿的工作表、已用区域、定义名称和日期系统,便于选择输入与输出
  • 将重算公式与 Excel 保存值比对,列出不一致项及原因
  • 基于本地工作簿修改常量输入并计算单个情景的指定输出
  • 在一次调用中比较同一工作簿的多组输入,返回数值、错误与耗时
适用场景
适合需要信任或探索电子表格模型的场景:核对保存值与重算公式是否一致、对常量做假设分析,或在选定输入输出前先了解工作簿结构。
运行要求
通过 npx 从 npm 包 workbookapi-mcp 在用户本机以本地进程运行,仅限桌面端,不支持网页执行。未声明认证、环境变量或请求头。
安装前请注意
结果取决于工作簿自身的日期系统与公式支持情况,依赖计算值前应查看返回的功能标志、跳过计数和不一致项。文件保留在本地,但助手会看到工具返回的数值与错误。

安装

在 SourceWeft 中

  1. 打开 控制台中的 WorkbookAPI,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

工具

4

check_workbook

Use before trusting a workbook's calculations to compare recalculated formulas with Excel's saved values. Returns compared/matching totals, up to 200 mismatches with formula, saved/recalculated values and cause, feature flags, skipped counts, the workbook's dateSystem ("1900" or "1904"), and load/recalculation milliseconds. Dates are serial numbers in the workbook's date system. Above the 20000-byte response budget, mismatch details are shortened with an explicit message and totals retained. Only eligible cached formulas are compared; a matching check does not cover skipped cells or unsupported features.

输入参数path必填

describe_workbook

Use to discover sheets, used ranges, defined names and the workbook's dateSystem ("1900" or "1904") before choosing inputs and outputs. Dates are serial numbers in the workbook's date system. Names include values up to 100 cells, or range address and dimensions for larger blocks (expression arrays have a null address). Pass sheet for referenced constant or blank inputs and terminal formula outputs. Lists are capped at 100 entries. Above the 20000-byte response budget including both copies, named values are omitted with valuesOmitted: true; discovery lists may be shortened with an explicit message. Static discovery can miss dynamic or structured references.

输入参数path必填sheet

calculate

Use to calculate one scenario from a local workbook with changed constant inputs and selected cells, ranges or defined names as outputs. Returns full-precision numbers, strings, booleans, null for direct blanks and {error: code} for spreadsheet errors; named references to blanks return 0, dates are serial numbers in the workbook's date system and ranges are arrays of rows. Each call starts from the original workbook and includes compatibility warnings; formula cells cannot be inputs. Responses are capped at 20000 bytes including both copies; oversized results return an explicit error.

输入参数path必填inputs必填outputs必填

run_scenarios

Use to compare many input sets for the same workbook and outputs in one call. Returns indexed rows with values or errors, warnings and elapsed milliseconds. Dates are serial numbers in the workbook's date system. Each scenario starts from the original workbook and all its outputs share one recalculation. Runs stop at 10,000 scenarios, 100,000 output values, 20000 bytes including both response copies, cancellation or the time budget (55 seconds, with a 60-second hard deadline), reporting completed count and truncation. An engine crash during a scenario adds an error row counted in completed and stops the run; a crash before scenarios start returns an error. Resume by sending scenarios.slice(completed); check truncationReason before retrying and reduce outputs for output limits.

输入参数path必填outputs必填scenarios必填

版本历史

3
  1. v0.1.2最新Nov 5, 2026
  2. v0.1.1Oct 31, 2026
  3. v0.1.0Oct 26, 2026

评分

已满足适用检查项的 65%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分
  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分
  • 文档15 分

    请声明包含 README 的 GitHub 仓库,或在 OAuth 受保护资源元数据中提供 resource_documentation。

  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。