# Run the construction calculator engine on your own machine

> Run the construction calculator engine on your own machine: npx -y craftquantities-engine starts a local MCP server over stdio. Node 20.12+, no account…

Page: https://craftquantities.com/developers/npm/ (developer documentation). This is the page's Markdown copy; the HTML page is the canonical version.

`craftquantities-engine` is the engine behind this site, packed as an MCP server your client starts as a local process. Same tools and same answers as the remote server, with no request leaving the computer it runs on.

- 1.9.0 Package version
- stdio Transport
- 20.12+Node.js
- None Account or key

**On this page Install and connect**

## Install and connect

Let the client start it with `npx`, or install it once and name the command. Pick the form your client takes:

```
npx -y craftquantities-engine
```

[craftquantities-engine on npm](https://www.npmjs.com/package/craftquantities-engine) · version 1.9.0

## What it needs

- Node.js 20.12 or newer, on Windows, macOS or Linux. The package has no dependencies of its own.
- An MCP client that starts a server from a command: most desktop assistants and code editors do.
- A network connection only for the first download; after that it answers offline.

Claude Desktop reads `claude_desktop_config.json`, Cursor `.cursor/mcp.json` and VS Code `.vscode/mcp.json`, where the top-level key is `servers` rather than `mcpServers`. Installed globally with `npm install -g craftquantities-engine`, the command is simply `craftquantities-engine`.

## Check it without a client

The server reads one JSON-RPC message per line on stdin and writes one answer per line on stdout; its logs go to stderr. Pipe a single call into it to see an answer:

_One call from a shell_

```
echo '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"calculate","arguments":{"slug":"concrete-calculator","inputs":{"slabLength":"3 m","slabWidth":"3 m","slabThickness":"10 cm"}}}}' | npx -y craftquantities-engine
```

`craftquantities-engine --version` prints the version and `--help` the usage. It speaks the MCP revisions 2026-07-28, 2025-11-25, 2025-06-18, 2025-03-26.

## Versions and updates

The package and the remote engine share one version number, 1.9.0 today. An older install gives the older answers, so a client that must match the site should start it with `npx -y`, which fetches the latest release, or pin an exact version and move it on purpose.

_Compare the versions_

```
npm view craftquantities-engine version
npx -y craftquantities-engine@1.9.0 --version
```

## Local or remote

**How the local package differs from the remote MCP server**

| Question | npm package | Remote server |
|---|---|---|
| Where it computes | In the process on your computer | On Cloudflare's network |
| What crosses the network | Nothing, once the package is installed | Each request and its answer |
| Transport | stdio, one JSON message per line | Streamable HTTP |
| Trade endpoints and REST routes | Not included | Included |
| Version | The one you installed or pinned | Always the current release |

Need the per-trade typed tools or plain HTTP? Use the [remote MCP server](https://craftquantities.com/developers/mcp/).

On this page

At a glance

**Package version**

1.9.0

**Transport**

stdio

**Node.js**

20.12+

**Account or key**

None

Addresses

- MCP`api.craftquantities.com/mcp`
- REST`api.craftquantities.com/v1`
- Files`craftquantities.com/api/v1`
- OpenAPI [api.craftquantities.com/openapi.json](https://api.craftquantities.com/openapi.json)

Check before you build

- [How the maths is checked](https://craftquantities.com/validation/)
- [The vectors as a benchmark](https://craftquantities.com/benchmark/)
- [Service status](https://craftquantities.com/status/)
- [Embed a calculator instead](https://craftquantities.com/embeds/)

[Home](https://craftquantities.com/)

Developers

Developers & integrations

- [Overview and live call](https://craftquantities.com/developers/)
- [API reference](https://craftquantities.com/developers/api-reference/)
- [Static JSON API](https://craftquantities.com/api/)
- [Remote MCP server](https://craftquantities.com/developers/mcp/)
- [npm package](https://craftquantities.com/developers/npm/)
- [Command line](https://craftquantities.com/developers/cli/)
- [WebMCP in the browser](https://craftquantities.com/developers/webmcp/)
- [Claude and ChatGPT](https://craftquantities.com/ai/)
- [Embeds and WordPress](https://craftquantities.com/embeds/)
- [Browser extension](https://craftquantities.com/tools/browser-extension/)
- [Changelog](https://craftquantities.com/developers/changelog/)
- [Service status](https://craftquantities.com/status/)

On this page

- Install and connect
- What it needs
- Check it without a client
- Versions and updates
- Local or remote

---
Source: https://craftquantities.com/developers/npm/
Craft Quantities: free to read, cite and link to; the pages are not licensed for republication. Quantities only: no prices, no design and no certification.
