Craft Quantities: construction material calculators

v1.9.2
com.craftquantities/engine Checked 2 days ago Published 3 days ago

Construction quantities from cited calculators, takeoffs, planners, drawings, cut plans.

The Craft Quantities engine as a local MCP server over stdio. It is the same engine that answers at https://api.craftquantities.com/mcp, built from the same code, run on your machine. Version 1.9.0. An older install gives older answers. To see the published version, run npm view craftquantities-engine version, or compare with the live engine's serverInfo.version. Node.js 20.12 or newer, on Windows, macOS or Linux. It has no dependencies.

Summary extracted from the README.

craftquantities-engine

The Craft Quantities engine as a local MCP server over stdio. It is the same engine that answers at https://api.craftquantities.com/mcp, built from the same code, run on your machine.

  • Construction quantities from the site's cited calculators, plus its takeoffs, room planner, House Estimator, Construction Canvas drawings (create, edit, export), cut plans and cutting templates, in metric and US units.
  • Since 1.9.0: a project's scope of work, share links (made and read), a room measured from its sketched corners, the formula library and the how-to guides.
  • No prices. Hours appear only as planning bands; money appears only when you supply your own rates.
  • Nothing is sized. The engine counts materials. It never designs or certifies structure.
  • Offline. Requests never leave the process. Nothing is logged or stored.
  • Every answer names the craftquantities.com page it came from and gives a citation (CC BY 4.0).

Version 1.9.0. An older install gives older answers. To see the published version, run npm view craftquantities-engine version, or compare with the live engine's serverInfo.version.

Requirements

Node.js 20.12 or newer, on Windows, macOS or Linux. It has no dependencies.

Use it from an MCP client

Most clients start a stdio server from a JSON config.

Claude Desktop (claude_desktop_config.json), Cursor (.cursor/mcp.json) and VS Code (.vscode/mcp.json, which uses "servers" as the top-level key in place of "mcpServers"):

{
  "mcpServers": {
    "craftquantities": {
      "command": "npx",
      "args": ["-y", "craftquantities-engine"]
    }
  }
}

Claude Code:

claude mcp add craftquantities -- npx -y craftquantities-engine

Installed globally (npm install -g craftquantities-engine), the command is craftquantities-engine:

{
  "mcpServers": {
    "craftquantities": { "command": "craftquantities-engine" }
  }
}

On Windows, some clients cannot start npx directly. If yours is one of them, use "command": "cmd", "args": ["/c", "npx", "-y", "craftquantities-engine"].

What it speaks

MCP over stdio: one JSON-RPC message per line on stdin, one answer per line on stdout, and logs on stderr. It supports the initialize-era revisions (2025-03-26, 2025-06-18, 2025-11-25) and the stateless 2026-07-28 revision. It offers the same 65 tools, the same resources (the MCP Apps views among them) and the same prompts as the remote endpoint, because it is the same handler. What changed in each version: CHANGELOG.md.

A quick check, without a client:

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 says how to use it.

Not included

The REST routes and the per-trade endpoints (/mcp/<trade>) are on the remote engine only. The OpenAPI description is at https://api.craftquantities.com/openapi.json.

Licence

See LICENSE.md. The answers are CC BY 4.0. Credit them as "Craft Quantities — craftquantities.com".