mechanical-visual-truth
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mechanical-visual-truthvalidate my fixture-stage contract, build it, and render proof images"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Mechanical Visual Truth
Project-independent mechanical CAD, STEP verification, proof rendering and MCP tools.
One declarative YAML contract drives real CadQuery/Open CASCADE solids, STEP export, native technical drawings, VTK proof renders, sampled animation and audits. Use the command line, Python API, or a local stdio MCP client.

Explore the drawings, renders, STEP downloads and motion proof →
Install
Python 3.12 is the supported runtime. A fresh virtual environment is recommended.
git clone https://github.com/ufukefekaya-tr/mechanical-visual-truth.git
cd mechanical-visual-truth
python3.12 -m venv .venv
.venv/bin/python -m pip install -e '.[dev]'
.venv/bin/mvt doctorVTK uses offscreen rendering. On Linux, install the platform's OpenGL/EGL runtime; an Xvfb session is another option on hosts without a suitable driver. No cloud account or model API key is required.
Related MCP server: kernelCAD
Start any project
mvt project init ./my-assembly --template fixture-stage
mvt contract validate ./my-assembly
mvt build ./my-assembly
mvt render ./my-assembly --set proofs
mvt audit ./my-assembly
mvt animate build ./my-assembly --sequence shuttleAvailable templates: fixture-stage, linear-actuator, instrument-enclosure.
They are original synthetic examples, with no customer models or vendor CAD.
Paths are explicit; projects can live outside this source checkout.
Edit the contract to define entities, dimensions, materials, cameras and audit requirements. Primitive geometry and hash-locked local STEP/BREP sources can share one entity registry. A source belongs to its contract directory; it is never discovered through another project, a global library or a server path.
# Preview geometry before producing a STEP deliverable:
mvt build ./my-assembly --no-step
# Inspect any STEP, or create a true vector projection drawing:
mvt step inspect ./part.step --json
mvt step drawing ./part.step ./part-drawing.svg --title 'Example part'The drawing contains orthographic projections and overall dimensions in mm. It is not a GD&T, tolerance, material or manufacturing approval package.
MCP
Start a workspace-scoped server with the official Python MCP SDK:
mvt-mcp --workspace /absolute/path/to/workspaceExample MCP host configuration (replace the two paths):
{
"mcpServers": {
"mechanical-visual-truth": {
"command": "/absolute/path/to/.venv/bin/mvt-mcp",
"args": ["--workspace", "/absolute/path/to/workspace"]
}
}
}The tools create/read/update contracts, validate, build, render, audit, animate, inspect STEP, draw SVG and list artifacts. Inputs use workspace-relative paths. CAD workers are serialized and time bounded. Existing contract updates require their current hash. There is no shell, arbitrary-code, publish or automatic acceptance tool. See MCP tools and boundaries.
What an audit proves
Actual B-rep geometry, declared counts, placements, envelope and constraints.
Independent STEP reload with solid inventory, validity, volume, bounds and geometry comparisons.
Contract/model/source hashes connecting geometry, images and generated runs.
Sampled motion checks only for the actors, pairs and times explicitly declared.
Concept visualization, geometric verification and physical/safety qualification are separate. A geometry PASS does not certify a mechanism, motor, load capacity, manufacturing drawing or safe machine. Presentation-only imagery never becomes the geometric master. Missing or deferred checks remain visible.
Reproduce and extend
pytest
python scripts/generate_gallery.py
python -m buildThe gallery generator uses temporary copies of the bundled contracts and records artifact hashes. Development lessons recovered from later STEP-producing tools are described in Upstreamed improvements. Customer parts, private project state and old Git history are excluded from this public tree.
Optional workspace governance includes a local index, acceptance ledger, compact handoffs and reversible rules. It is not required for CAD or MCP use. See operations, animation, and the repository skills.
License and authorship
Copyright 2026 Ufuk Efe Kaya.
Original source, documentation, synthetic example geometry and generated example media are dual licensed under MIT OR Apache-2.0, at your option. See LICENSE, LICENSE-MIT, LICENSE-APACHE and NOTICE. Dependencies retain their own licenses.
This server cannot be deployed
Maintenance
Related MCP Connectors
Fast multi-format CAD previews, geometry checks and conversion; measure and share in the workspace.
Headless CAD engine & MCP server for 2D/3D drafting, solids, DXF/SVG export, and automation.
Agent-first CAD: editable .kcad.ts source, deterministic review, OpenCASCADE kernel.
Governed data discovery, exact queries, decisions, simulations, and runtime utilities over MCP.
Related MCP Servers
AlicenseNot gradedqualityBmaintenanceEnables agents to create and manipulate 3D CAD models using natural language via MCP, with git-based versioning and manufacturing output generation.1Apache 2.0- AlicenseNot gradedqualityAmaintenanceEnables agent-driven CAD design through deterministic source files (.kcad.ts), including model evaluation, validation, and export to STEP/STL via MCP tools for review and introspection.149 npm33MIT
- AlicenseNot gradedqualityBmaintenanceEnables engineering agents to perform parametric CAD operations through a controlled MCP gateway built on FreeCAD, with transactions, diagnostics, and reproducible verification.2GNU Lesser General Public v2.1 only
- AlicenseNot gradedqualityBmaintenanceEnables AI agents and software to create, edit, inspect, validate, and export CAD geometry through MCP using backend-neutral typed operations, with FreeCAD/OpenCascade as the authoritative B-rep backend and JSCAD preview.1Apache 2.0