npm package

MCP over stdio · offline

Run the construction calculator engine on your own machine

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.0Package version
  • stdioTransport
  • 20.12+Node.js
  • NoneAccount or key

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 · 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
Questionnpm packageRemote server
Where it computesIn the process on your computerOn Cloudflare's network
What crosses the networkNothing, once the package is installedEach request and its answer
Transportstdio, one JSON message per lineStreamable HTTP
Trade endpoints and REST routesNot includedIncluded
VersionThe one you installed or pinnedAlways the current release

Need the per-trade typed tools or plain HTTP? Use the remote MCP server.