Listed from the MCP registry; nobody on Odel publishes it.

Is this yours? Claim it
MCP server: One MCP server.

WorkbookAPI

@workbookapiRun by its publisher: served from their own domain, namespace checked by the registry.MCP server · External

Check Excel workbooks locally; calculate them through the WorkbookAPI hosted API.

Freeno charge per call

One address for any MCP client. No sign-in needed on this server.

What it does

3 read1 act

Grouped by tool name. At most: creates or changes data: records, files, settings.

What it costs

Free

Odel charges nothing per call. The publisher may charge for its own service.

Tools

4 · grouped by tool name · checked 24 Nov 2026

Read · 3Look things up

  • list_models
  • get_model
  • calculate

Act · 1Change something

  • run_scenarios
Try it in the Inspector
README13 min read

workbookapi-mcp

This repository holds the documentation, licence and registry manifest of the npm package workbookapi-mcp. The package is distributed on npm; its source is not published here. Questions and bug reports: open an issue here or write to hello@workbookapi.com.

WorkbookAPI MCP lets an AI assistant check Excel workbooks locally and calculate through the WorkbookAPI hosted API. check_workbook and describe_workbook are free local tools that need no account. Five hosted tools use your API key.

Start a 14-day free trial: 1 model, 1,000 scenarios, no card. Create an API key in the dashboard. A calc key (wbk_calc_…) is enough when the assistant only calculates; upload_model, get_model and set_interface need an admin key (wbk_admin_…). See the API reference.

Install and connect

Requires Node.js 20 or newer. The package has no runtime dependencies. npx downloads it from npm. You can also npm install -g workbookapi-mcp and use workbookapi-mcp instead of npx -y workbookapi-mcp. Replace the example key below with your own in your local client configuration. Omit the key to use only the two local tools. Never put the key in a file that is committed to a repository; project-level MCP configuration usually is.

Claude Code

sh
claude mcp add --env WORKBOOKAPI_API_KEY=wbk_admin_YOUR_KEY workbookapi -- npx -y workbookapi-mcp

Claude Desktop

Add to your Claude Desktop MCP configuration, then restart Desktop:

json
{
  "mcpServers": {
    "workbookapi": {
      "command": "npx",
      "args": ["-y", "workbookapi-mcp"],
      "env": {"WORKBOOKAPI_API_KEY": "wbk_admin_YOUR_KEY"}
    }
  }
}

Cursor

Use the same JSON, including the env entry for your key, in the user-level ~/.cursor/mcp.json. Enable the server in Cursor's MCP settings. See Cursor's MCP configuration.

Codex CLI

Add to the user-level ~/.codex/config.toml:

toml
[mcp_servers.workbookapi]
command = "npx"
args = ["-y", "workbookapi-mcp"]
tool_timeout_sec = 330

[mcp_servers.workbookapi.env]
WORKBOOKAPI_API_KEY = "wbk_admin_YOUR_KEY"

The timeout allows two scenario requests, each with a 150-second client limit. Other hosted requests have a 70-second client limit, except uploads (150 seconds). See Codex's MCP configuration.

Usual flow

  1. check_workbook compares saved values; describe_workbook discovers references.
  2. upload_model sends the workbook and returns a model_id.
  3. set_interface declares stable API names for inputs and outputs.
  4. calculate or run_scenarios uses those names with the model id.
json
{"path":"/models/loan-model.xlsx"}
json
{"model_id":"mdl_…","inputs":[{"name":"principal","ref":"Inputs!B2","type":"number"}],"outputs":[{"name":"payment","ref":"Summary!B2"}]}
json
{"model_id":"mdl_…","inputs":{"principal":100000},"outputs":["payment"]}

Tools

All tools return the same JSON as text and MCP structured content. Hosted API fields keep their snake_case names and include request_id. Joined scenario results use request_ids. Local tools keep their existing field names. Paths are local; prefer absolute paths. Relative paths resolve from the server's working directory. The two local tools bill no scenarios and make no network request.

check_workbook

Compare formulas with Excel's saved values. Returns cells, matched, matchedStrict, mismatches (cell, formula, expected, got, cause), features, excluded, loadMs, and evalMs, using the same check as the site. engine is the first 8 lowercase hex characters of the loaded binary's SHA-256. dateSystem is "1900" or "1904"; dates are serial numbers in that system. matched uses relative tolerance 1e-6 and matchedStrict uses 1e-9. Values in mismatches use {k,v} where k is n (number), s (string), b (boolean), e (error), or empty. The mismatch list is capped at 200 and mismatchesTruncated reports the cap. The response budget can shorten this list further, with an explicit message; matching totals are retained. ok means the check completed; inspect matching totals and feature flags before trusting results.

json
{"path":"/models/loan-model.xlsx"}

describe_workbook

Discover sheets with used ranges and defined names with their definitions and current values. Pass sheet to include inputLike constants referenced by formulas and outputLike formulas with no formula dependents. Each list is capped at 100, with total counts and truncation flags. These are static candidates: dynamic references, structured table references, charts and VBA may use cells that this discovery cannot identify. Range names include range with address, width and height; ranges larger than 100 cells omit value. Expression arrays have dimensions and a null address because they need not refer to worksheet cells. Invalid names include valueError. Internal print names are omitted. When the response budget is exceeded, named values are removed with valuesOmitted: true and an explicit message, retaining definitions and ranges. Discovery lists may be shortened further to fit the budget. Discovery includes referenced blank cells; very large ranges are scanned sparsely and set referencesIncomplete. The result includes dateSystem ("1900" or "1904"); date values use that system.

json
{"path":"/models/loan-model.xlsx","sheet":"Inputs"}

upload_model

Inputs: path, optional model_id. Sends the whole workbook and its base file name to the hosted API, in multipart field file. Without model_id it creates a model; with it, uploads a new version. Returns the API model id, version id, file name and compatibility report; new versions also return previous_version_id and changed_inputs. Oversized reports shorten only mismatch details, keeping totals and an explicit flag/message. Bills no calculation scenarios; a new model uses a model slot and uploads count against the API's daily upload allowance.

get_model

Input: model_id. Sends that id to the hosted API. Returns model metadata, active version and interface. Bills no calculation scenarios. If the interface exceeds the response budget, it is omitted with interface_omitted: true, input_count, output_count and a message: it is saved on the server; raise WORKBOOKAPI_MCP_MAX_RESPONSE_BYTES to read it. All other API fields stay. interface: null still means no interface has been declared.

set_interface

Inputs: model_id, inputs and outputs (arrays of objects). Sends the id and declarations to the hosted API, replacing the whole interface. Inputs declare name, ref, type (number, string, boolean), optional min/max or allowed. Outputs declare name and ref. The API validates declarations; a rejected interface leaves the previous one in force. Returns the API model_id, version_id, interface and request_id. Bills no calculation scenarios. An oversized interface is omitted as for get_model, with counts and a message confirming it was saved; this is a successful result, with all other API fields retained.

calculate

Inputs: model_id, optional inputs (declared name → number/string/boolean), outputs (declared output names), as_of (YYYY-MM-DD or RFC 3339 with offset). Sends the model id and those values to the hosted API. Omitted inputs keep saved values; omitted outputs select all declared outputs; omitted as_of uses today. Returns outputs, warnings, model_id, version_id, engine_build, request_id, billed_scenarios and as_of when supplied, unchanged. Bills 1 scenario on success, including outputs that hold spreadsheet errors. An output is a scalar or array of rows; spreadsheet errors use {"error":"#N/A"}. A result too large for the MCP response budget returns advice to select fewer outputs by name, with billed_scenarios retained.

run_scenarios

Inputs: model_id, scenarios (1–10,000 objects with optional inputs), optional outputs and as_of. Sends the id and given values to the hosted API. Each scenario uses the saved workbook with its own inputs. Bills only API rows with outputs; error rows are not billed. No request is retried automatically.

To protect quota, the tool sends one scenario first, measures its row, then sends at most one further batch estimated to fit the remaining MCP response budget with a 25% row-size margin. Unsent rows are not billed. A first error row stops the call: correct or drop it before sending the rest. Later rows larger than the estimate may be dropped from the end: dropped_rows and the message disclose them, and their rows with outputs were billed.

Returns request_ids in request order, model/version/build, as_of when present, rows with caller indexes, requested, completed, truncated, truncation_reason (the last API response's value), total billed_scenarios, warnings (the ordered union of distinct lines), and resume advice when truncated. stop_reason is api, response_budget, first_row_error or api_error. If the second request fails, the first row remains, billed_scenarios stays the first response's count, and the mapped error is in api_error:

  • An API error body with a code means the second request was refused and billed nothing. The message names the code, error and any hint, then says: "Rows from index 1 were not calculated and not billed. Send scenarios.slice(1) when the cause is resolved." A quota_exceeded error with integer remaining also says "At most scenarios remain in this period."
  • With no usable answer, unconfirmed_scenarios counts the scenarios sent in the second request. The message says: "The second request sent the scenarios with indexes 1 to and no usable answer came back; up to of them may still have been billed. Sending them again may bill them again."

If the model version or engine changes between requests, top-level version_id and engine_build describe the second response; first_row_version holds those two fields for row 0. A message names both versions and engines even when every row fits; any truncation advice follows it.

For successful responses, resume with scenarios.slice(completed); dropped rows that you resend bill again. For a failed second request, follow its message before resending. A lost response, unreadable or invalid body, or client cancellation/timeout may still have been billed; calculation errors without an API error body explicitly say so.

What leaves the machine

ToolSent to the hosted API
check_workbookNothing; local, no network request
describe_workbookNothing; local, no network request
upload_modelWhole workbook file, file name, model id for a new version
get_modelModel id
set_interfaceModel id and input/output declarations
calculateModel id, input values, output names, as_of when given
run_scenariosModel id, scenarios sent, output names, as_of when given

Hosted requests send the key only as an Authorization header to the configured API origin. The server does not follow redirects or retry requests. Tool results never expose the key. Your assistant receives tool results, so its privacy settings still apply.

Limits

Local check and describe

The two local tools read only local .xlsx, .xlsm, .xltx and .xltm files up to 50 MiB (52,428,800 bytes). Before decompression, an estimate from the ZIP directory refuses estimated engine memory after calculation above 3,584 MiB, targeting 512 MiB below the 4 GiB ceiling for export and fragmentation. It uses 128 MiB + file bytes + 3 × inflated model-part bytes, fitted to the corpus and shared-formula/data-heavy books. Media, embeddings, printer settings and pivot-cache records are excluded from model-part bytes.

This is an engine-memory estimate, and can undershoot workbooks with many distinct, unshared formulas. The independent review measured these examples on the release engine (MiB; d600k has one formula and three constants per row, e300k has three distinct terms per formula):

BookZIP sizeInflated/ZIP ratioEstimateAfter calculationAfter serialization
d600k27.1 MB4.85231,1071,338
e300k18.9 MB5.24271,4381,772

For these shapes, the worker deadline and isolation provide the limit: a book that exceeds it ends in a worker error (deadline or engine trap), never a crashed MCP server. Admission helps protect engine memory; it does not model the JavaScript compatibility check's memory. A large book can therefore return a worker out-of-memory error on a machine with little RAM, even when its engine fits. ZIP sizes are advisory, so admission is not a security boundary. The check also stops before joining XML text that exceeds Node's maximum string length (536,870,888 UTF-16 code units), even when the engine model would fit. The two local tools never write workbook files, upload content, request network resources, run telemetry or check for updates. Your assistant receives the tool results, so its own privacy settings still apply.

Add-in and macro function cells keep Excel's saved values and are excluded from comparison; describe_workbook reports their count and function names. VBA does not run; Power Query and external connections do not refresh. Pivot tables, What-If Analysis data tables and external links have limited or unsupported support. Volatile formulas and other skipped cells are not verified. A matching check applies only to eligible saved values, not every possible scenario. Local operations have a 60-second deadline and run in order.

Hosted API

Workbook uploads are limited to 10 MiB (10,485,760 bytes). The API admits models whose measured calculation memory is at most 110 MiB. JSON bodies for calculation, scenarios and interface are limited to 8 MiB. API responses are limited to 8 MiB; one scenario's serialized outputs to 4 MiB. An interface has at most 4,096 inputs, 100 outputs and 10,000 output cells per scenario. Scenario requests accept at most 10,000 scenarios and stop at 100,000 output values. A calculate operation has 30 seconds of processor time; scenarios start no new part after 25 seconds. The API reports truncation and bills only rows with outputs. Error responses bill no scenarios. See the API reference for details.

The MCP response budget defaults to 20,000 bytes, counting both copies and JSON escaping. Check shortens mismatches; describe omits named values and may shorten discovery lists; uploads shorten report mismatches. Select fewer or smaller outputs by name if a calculation exceeds it. Scenario calls estimate a smaller batch before spending quota. Oversized saved interfaces are omitted with counts. Hosted errors halve details until they fit and set details_truncated: true. If still too large, only error, code, status, request_id, hint, retry_after_seconds and billed_scenarios are retained when present. A generic response-size error is the last resort if those fields alone do not fit.

Environment variables

VariableMeaning
WORKBOOKAPI_API_KEYRequired for hosted tools; wbk_admin_… or wbk_calc_…. Read and trimmed at each call; the trimmed key is used for Authorization and redaction. Remaining whitespace or line breaks are refused before any request.
WORKBOOKAPI_API_URLAPI origin, default https://api.workbookapi.com (also when empty). HTTPS required except HTTP on localhost, 127.0.0.1 or [::1]. Credentials, a path other than /, query and fragment are refused before any request. Read at each call.
WORKBOOKAPI_MCP_MAX_RESPONSE_BYTESMCP response budget including both copies; integer bytes from 4,096 to 8,388,608, default 20,000. Set before starting.

License

Noncommercial use: PolyForm Strict 1.0.0, as reproduced in LICENSE. Evaluation: PolyForm Free Trial 1.0.0, for less than 32 consecutive calendar days. Customers: account holders may run the unmodified published software for checking, describing and calling the hosted API; see LICENSE for the full permission.

Versions up to 0.1.6 remain MIT. Third-party components retain their own licences: THIRD_PARTY_LICENSES.txt and dist/DEPENDENCY_LICENSES.txt.

Similar modules

Browse Spreadsheets