drawmath
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
drawmath
Metric and imperial values on a technical drawing, converted with the factors and rounding a shop actually uses — locally, with no network call and nothing to configure.
Give drawmath one value, one printed callout, or one thread
designation and it answers in the other system: lengths and
GD&T values, ± tolerances, diameters with their fit class,
surface roughness, weights and threads. Each answer carries
the exact converted value alongside the rounded display
value, says how it was derived (exact, rounded, table
or nearest), and gives a confidence score.
Precision
Factors are the international definitions: 25.4 mm per inch and 0.45359237 kg per pound.
Display values follow shop-floor convention: a 0.01 mm step becomes a 4-decimal inch value.
Worked examples:
84±0.1mm becomes3.3071±0.0039in,Ø30 H7becomesØ1.1811 H7,Ø40 H7becomesØ1.5748 H7, and Ra 1.6 µm becomes Ra 63 µin.Threads are matched against a metric/UNC chart covering M2–M30, snapped by major diameter when there is no exact counterpart:
M8becomes5/16-18 UNC,M6becomes1/4-20 UNC, and1/4-20 UNCbecomesM6. A matched thread is a nearest standard, never an interchangeable one — every thread result says so explicitly.
Related MCP server: Drawing Converter (Metric ⇄ Imperial)
Tools
This is a labelled subset of the original five-tool surface. Three tools are built:
convert_value— one value:value(for example"84±0.1 mm","Ø30 H7","Ra 1.6","2.5 kg"or"M8"), with an optionalkind(length,tolerance,gdt,roughness,weight,threadorauto) and an optionaldirection(metric_to_imperial,imperial_to_metricorauto). The result JSON gives exact and display values, the derivation method and a confidence score.convert_text— a whole callout string:text, with an optionaldirection. Notation is preserved — symbols, fit classes and multipliers stay where they were — and angles are left untouched.lookup_thread— a thread cross-reference: give adesignationsuch as"M8"or"1/4-20 UNC"for its chart row and nearest counterpart in the other system, or omit it for the full M2–M30 chart.
Two original tools are omitted from this subset:
extract_drawing_text and convert_drawing_pdf. They
depend on a PDF text-extraction and stamping engine that
cannot be reproduced from the published specification,
and this build carries no PDF library. The original's
convert-drawing prompt is likewise out of scope, as
prompts sit outside this program's tool parity scope.
Argument shapes are labelled reconstructions: the published material pins behaviour and worked examples, not parameter tables, so each tool takes the primary string its behaviour implies plus the optional direction or kind that behaviour calls for.
CLI
npx @reneturcios/drawmath convert_value '{"value":"84±0.1 mm"}'
npx @reneturcios/drawmath convert_text '{"text":"Ø30 H7"}'
npx @reneturcios/drawmath lookup_thread '{"designation":"M8"}'
npx @reneturcios/drawmath lookup_thread '{}'
npx @reneturcios/drawmath --versionExit codes: 0 on success, 1 on a runtime error, 2 on
a usage error.
MCP server
npx -y @reneturcios/drawmath mcpMCP client config:
{
"mcpServers": {
"drawmath": {
"command": "npx",
"args": ["-y", "@reneturcios/drawmath", "mcp"]
}
}
}Docker
docker run -i ghcr.io/cloudcorprecords/drawmath
docker run --rm ghcr.io/cloudcorprecords/drawmath convert_text '{"text":"M8"}'Development
npm install
npm run build # tsc -> dist/
npm test # tsx --test test/*.test.ts (fixture arithmetic only, no network)
npm run dev # run the CLI from sourceLicense
MIT — Copyright (c) 2026 Rene Turcios
This server cannot be deployed
Maintenance
Related MCP Connectors
Fast multi-format CAD previews, geometry checks and conversion; measure and share in the workspace.
AI-callable calculators and engineering models with real formulas. No hallucinated math.
Read title blocks, parts lists, revision history and notes from 2D engineering drawings.
CAD in ChatGPT and Claude: editable parts, STEP/STL/drawings, in-chat 3D, automatic checks.
Related MCP Servers
- AlicenseNot gradedqualityAmaintenanceVerified unit conversion and dimensional analysis for AI agents. 190+ units, 31 domain formulas (clinical, physics, aerospace, SRE), physical constants with uncertainty propagation. Refuses invalid conversions structurally: the tool that won't convert mg to mL and knows the difference between torque and energy.AGPL 3.0
- AlicenseAqualityCmaintenanceConvert technical-drawing PDFs and engineering callouts between metric and imperial — values stamped in place, threads cross-referenced, shop-floor rounding.125MIT
- AlicenseNot gradedqualityBmaintenanceEnables evaluating mathematical expressions and converting between units such as length, weight, temperature, volume, and time.478 npmMIT
- FlicenseNot gradedqualityAmaintenanceEnables AI agents to create, edit, read back, and validate engineering drawings — including P&ID sheets, mechanical parts, and architectural plans — against ISO standards such as GD&T, dimension tolerances, title blocks, and takeoffs. Runs either live through AutoCAD COM on Windows or headlessly through ezdxf anywhere, with selectable tool packs and a search-based discovery mode to keep the advertised tool surface small.-