Calculator widgets

Developer pilot

The same calculations, wherever you need them

Five reviewed workflows with explicit inputs, structured results and visible assumptions. APIs and MCP use the same engines as the calculator pages and widgets.

Hosted endpoints are disabled in this environment. This is not a released 301-tool API or an uptime commitment.

Try a real calculation

This calls the API in this environment. Unlike the browser-only widgets, API and remote MCP inputs are sent to the server for calculation. The application does not save them.

Hosted pilot is disabled in this environment. The local stdio server still works.

Structured result

Run an example to see its result, units, method and limits.

HTTP API

Set BASE_URL to your enabled environment’s origin. Calculation inputs belong in the POST body, never in a URL.

curl "$BASE_URL/api/v1/calculations" --header 'Content-Type: application/json' --data '{"calculator":"shopping-package-comparison","inputs":{"packageA":{"price":6,"weight":1,"unit":"kg","usablePercent":100},"packageB":{"price":10,"weight":2000,"unit":"g","usablePercent":75},"needed":1,"neededUnit":"kg","currency":"USD"}}'

When enabled: Calculator schemas · OpenAPI contract

JavaScript client

A small ES module works in a browser or Node 24. It preserves input errors and returns the complete calculation contract.

import { calculateToolkitShelf } from './client.js';

const result = await calculateToolkitShelf(
  'shopping-package-comparison',
  {
  "packageA": {
    "price": 6,
    "weight": 1,
    "unit": "kg",
    "usablePercent": 100
  },
  "packageB": {
    "price": 10,
    "weight": 2000,
    "unit": "g",
    "usablePercent": 75
  },
  "needed": 1,
  "neededUnit": "kg",
  "currency": "USD"
},
  { baseUrl: 'http://127.0.0.1:3085' }
);
Download the JavaScript client

Connect an AI application with MCP

The curated server provides five calculation tools, a search tool, a schema resource and a shopping-workflow prompt. It does not call an AI model, browse, save results, or expose private Search Ops.

Local stdio

Install the repository’s dependencies with Node 24, then replace this example path with your checkout.

{
  "mcpServers": {
    "toolkitshelf": {
      "command": "node",
      "args": [
        "/path/to/toolsite/mcp/integrations-stdio.mjs"
      ]
    }
  }
}

Remote Streamable HTTP

Use this environment’s origin followed by /mcp only when its pilot is enabled. No key, cookie or saved session is required. This SDK supports protocol 2025-11-25 and compatible older versions; it does not claim 2026-07-28 support.

One JSON request at a time, maximum 16 KiB. Calculation responses are not cached. The 120 requests/minute budget is per instance, not a global quota or production SLA.

Included workflows

Shopping Package Comparison

Compare mass-labelled packages, assumed usable shares and whole-package checkout cost for the amount needed.

Full calculator and method

Meeting Cost Calculator

Estimate one meeting and its recurring annual cost, including preparation and person-hours.

Full calculator and method

Manual Review Cost Calculator

Estimate human-review labor, net monthly automation savings and implementation payback.

Full calculator and method

Automation ROI Calculator

Model remaining labor, error cost, maintenance and software costs before comparing savings and payback.

Full calculator and method