Before you start
No account yet? Start a free trial: 14 days, no card. Upload a workbook and declare its inputs and outputs in the dashboard or through the API, then create a key under API keys. The server calculates models in your account; it can't read files on your computer.
Claude and ChatGPT
In ChatGPT, WorkbookAPI is in the plugin directory: open it in ChatGPT and press Install plugin, or open Plugins and search for WorkbookAPI.
In Claude, add it as a custom connector with this URL. No key is needed in either app.
https://mcp.workbookapi.com/mcpOpen Plugins, press Add, then Add custom connector, and paste the URL.
- A WorkbookAPI page opens. Sign in with your work email, or start a free trial.
- Open the email link in the same browser.
- Check that the request comes from Claude or ChatGPT, then press Allow.
Then ask in a chat, for example:
- List my WorkbookAPI models
- What inputs does my loan model take?
- Run my loan model at 6.5% and at 7%
The app can list, read and calculate your models. It can't upload, change or delete them, see your files or formulas, or manage keys, billing or your account. Disconnect it at any time in the dashboard under API keys → Connected apps. A connection ends after 30 days without use or 90 days after you allowed it; then connect again.
Claude Code, Cursor, VS Code and Codex CLI use the key URL below, not this one.
Claude Code, Cursor, VS Code and Codex CLI
Server URL: https://api.workbookapi.com/mcp. Send your API key in the header Authorization: Bearer <key>.
An admin key lets the assistant list your models and read their inputs and outputs. A calculate-only key only calculates: give the assistant the model ID and the input and output names yourself. If a config file leaks, a calculate-only key exposes less.
Keep the key in your user settings or an environment variable, never in a project file you commit. A key found in a URL is revoked at once.
Set WORKBOOKAPI_KEY to your key first (VS Code asks for it instead).
Claude Code
claude mcp add --transport http --scope user workbookapi-remote \
https://api.workbookapi.com/mcp \
--header "Authorization: Bearer $WORKBOOKAPI_KEY"Cursor
~/.cursor/mcp.json
{
"mcpServers": {
"workbookapi-remote": {
"url": "https://api.workbookapi.com/mcp",
"headers": { "Authorization": "Bearer ${env:WORKBOOKAPI_KEY}" }
}
}
}If Cursor shows the server as disabled, turn it on in Cursor's MCP settings.
VS Code
User configuration (Command Palette: "MCP: Open User Configuration")
{
"inputs": [
{
"type": "promptString",
"id": "workbookapi-key",
"description": "WorkbookAPI API key",
"password": true
}
],
"servers": {
"workbookapi-remote": {
"type": "http",
"url": "https://api.workbookapi.com/mcp",
"headers": { "Authorization": "Bearer ${input:workbookapi-key}" }
}
}
}Codex CLI
~/.codex/config.toml
[mcp_servers.workbookapi-remote]
url = "https://api.workbookapi.com/mcp"
bearer_token_env_var = "WORKBOOKAPI_KEY"Tools
| Tool | What it does | Key | Bills |
|---|---|---|---|
list_models | lists your models, newest first | admin key or connected app | nothing |
get_model | reads a model's declared inputs and outputs | admin key or connected app | nothing |
calculate | calculates one scenario | any key or connected app | 1 scenario |
run_scenarios | calculates up to 10,000 scenarios in one call | any key or connected app | 1 scenario per returned row with outputs |
Billing and limits
Calculations through the MCP server count against your plan exactly like API calls: the same scenarios, rate limits and refusals.
Each result is limited to 20,000 bytes so it fits in the assistant's context. run_scenarios returns as many rows as fit and says where to continue; rows it doesn't return are not billed.
The server never retries a calculation, and a lost response may already be billed. For large batches, call the API directly.
Local MCP server
The npm package workbookapi-mcp runs on your computer. It checks a workbook and finds its inputs and outputs there, with no account; to calculate, it uploads the workbook with your API key: npx -y workbookapi-mcp (Node.js 20+).