mechanical-visual-truth
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.
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: AgentCAD
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.
Work on physical engineering projects, inspect CAD/BIM, run simulations, and manage project context
Governed data discovery, exact queries, decisions, simulations, and runtime utilities over MCP.
Related MCP Servers
AlicenseNot gradedqualityCmaintenanceEnables agents to create and manipulate 3D CAD models using natural language via MCP, with git-based versioning and manufacturing output generation.2Apache 2.0- AlicenseNot gradedqualityDmaintenanceEnables engineering agents to perform parametric CAD operations through a controlled MCP gateway built on FreeCAD, with transactions, diagnostics, and reproducible verification.4GNU 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
- AlicenseAqualityBmaintenanceEnables MCP clients to inspect and measure native B-rep geometry, create and edit CAD models, export results, and optionally review models or prepare print jobs locally.11MIT