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-engineclaude mcp add craftquantities -- npx -y craftquantities-engine{
"mcpServers": {
"craftquantities": { "command": "npx", "args": ["-y", "craftquantities-engine"] }
}
}{ "command": "cmd", "args": ["/c", "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:
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-enginecraftquantities-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.
npm view craftquantities-engine version
npx -y craftquantities-engine@1.9.0 --versionLocal or remote
| 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.