maycad-mcp
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.
maycad-mcp
Deterministic Python SDK, CLI, and 75-Tool MCP Server for Autonomous AI-Driven MayCAD (MayTec) 3D Aluminum Profile Engineering
maycad-mcp enables AI agents (Claude Code, Claude Desktop, Codex, Cursor, Antigravity, or any MCP client) and Python/CLI automation scripts to design, inspect, validate, modify, render, and export industrial MayTec aluminum extrusion assemblies programmatically—with zero simulated mouse clicks, zero screen-coordinate clicking, and zero vision-based GUI scraping.
Independent Open-Source Bridge: maycad-mcp does not redistribute any proprietary MayCAD binaries, library.zip bytecode, or .bindata catalog databases. It requires a legally installed, licensed copy of MayCAD 64-bit on Windows and leaves all original installation files 100% unmodified.
Live Verified Showcases
1. Eight-Corner Poly-Joint Test Frame (800 × 600 × 600 mm, PROF40-4040L)
Built autonomously end-to-end through the live MCP STDIO protocol (examples/eight_corners_demo/build_eight_corners.py): all eight corners of a cube frame use eight distinct MayTec joining methods simultaneously—without collisions (0 interference) and producing a 19-row native MayTec BOM.

Corner | Connection Type | MayTec Profile / Part | Article No. |
Corner 1 (Top Front-Left) | 3-Way Sphere Corner Piece |
|
|
Corner 2 (Top Front-Right) | 3-Way Cubic Black Corner Piece |
|
|
Corner 3 (Top Back-Left) | 3-Way Segment Corner Piece |
|
|
Corner 4 (Top Back-Right) | 45° Polyamide Corner Piece |
|
|
Corner 5 (Bottom Front-Left) | Cast Gusset Brackets + Fasteners |
|
|
Corner 6 (Bottom Front-Right) | Steel 90° Angle Brackets |
|
|
Corner 7 (Bottom Back-Left) | 45° Mitered Diagonal Struts ( |
|
|
Corner 8 (Bottom Back-Right) | Internal Concealed Connectors + Plastic Endcap |
|
|
2. Parametric Heavy Industrial Workbench (2000 × 800 × 900 mm → 2400 × 800 × 900 mm)
Verified across a full 17-step live MCP acceptance suite (Acceptance Report): parametric creation, real catalog lookup, outer-envelope vs. cut-length accounting (1920 / 720 / 844 mm → 2320 mm), automatic SceneMap.postprocess fastening (20/20 connectors), 3D OBB SAT collision checking (0 collisions), 6 m bar cutting optimization (85.42% utilization), headless OpenGL FBO multi-view rendering, native PDF drawing (615,274 bytes), 3-view DXF + panel DXF, and transfer.exe-verified AP214 STEP solid export (162,440 bytes, 184 vertices / 276 faces).

Related MCP server: Adlor MCP CAD
Why Deterministic Architecture Instead of UI Automation?
Deep technical inspection of MayCAD 12.10 (Build: 292, RESEARCH.md) confirmed:
framedesigner.exe(py2exe, CPython 2.7.18 x64 + PyQt4 4.11.4) provides no official public SDK, CLI modeling mode, COM/ActiveX interface, Named Pipe, or local HTTP control API;-testand-docserverbranches in bytecode are permanently disabled by hardcodedBRANCH_UIDchecks.Windows UI Automation (
UIAutomation) inspects the liveQGLWidgetviewport and sees only 24 genericPanenodes with zero clickable menu/button/input controls.However, the native
.scenev14 format (XML / AES-256-CBC wrapper) is lossless and deterministic, and loading the unmodifiedC:\Program Files\MayTec\MayCad-64\python27.dllinside an isolated child worker process gives direct headless access to MayCAD's nativeapp.Application(False),catalog.fdcache.FDCache,SceneMap.postprocess,BillMaytec,CutList,DxfPanelExporter,FdConstructionDocDrawable, and hardware OpenGL FBOpdf_get_frame_image.
flowchart LR
Agent["AI Agent / MCP Client<br/>(Claude, Codex, Cursor, Antigravity)"] -->|STDIO / Streamable HTTP<br/>75 MCP Tools| MCP["maycad_mcp.server<br/>(FastMCP / MCPServer)"]
CLI["maycad CLI / Python Scripts"] --> SDK["maycad_mcp.sdk<br/>(MayCADSDK)"]
MCP --> SDK
SDK --> Scene["Scene Codec & Geometry<br/>(v14 XML/AES + 3D OBB SAT + Millimeter Units)"]
SDK --> Catalog["Read-Only Product Catalog<br/>(fdcatalogMAYTEC.bindata)"]
SDK --> Worker["Py27Worker Client<br/>(127.0.0.1 TCP + Token Auth)"]
Worker --> Py27["Isolated Child Process<br/>(python27.dll + app.Application)"]
Py27 --> MayCAD["Local MayCAD 12.10<br/>(Unmodified Install Dir)"]
SDK --> Exporters["AP214 STEP / DXF / BOM / CutList / PDF / Report"]
Exporters -->|transfer.exe validation| MayCADCapability & Honest Boundary Matrix
Capability | Status | Implementation & Verified Notes |
Read / Write | Verified | Lossless roundtrip against 13 contrast scenes + official |
Native MayCAD Kernel Execution ( | Verified | Persistent loopback-TCP child process with token auth, crash/timeout cleanup, stale PID lock recovery |
Real MayTec Product Catalog Search | Verified | Reads |
Missing Catalog Fields ( | Honest |
|
3D Modeling, Assembly & 13 Parametric Templates | Verified | Distinguishes outer envelope vs. centerline vs. exact cut length; supports linked parameter resize ( |
3D Interference & Missing Connector Checks | Verified | OBB SAT collision check, joint detection, duplicate check, auto-connect via |
Native BOM, CutList, DXF & Headless PDF Drawing | Verified |
|
AP214 Solid B-Rep STEP Export | Verified (Local) | MayCAD cloud STEP API returns HTTP |
Headless OpenGL FBO Viewport Screenshots | Verified (Ortho) | Uses native |
Euler-Bernoulli Deflection & Stress Heuristic | Heuristic Only | Uses real catalog |
Visual Clicking / Screen-Coordinate Automation | Zero | Audited all 58 |
75 MCP Tools Overview
All 75 tools across 9 functional domains are documented in detail in docs/TOOLS.md:
Domain | Module | Count | Key Capabilities |
System & Session |
| 6 | Diagnostics ( |
Project Lifecycle |
| 11 | Create, open, save, save-as, inspect, object tree, snapshot, rollback, validate, undo, redo |
Catalog |
| 6 | Search profiles/connectors/accessories, inspect profile/connector specs, query compatibility |
3D Modeling |
| 12 | Add profile by origin or 2 points, modify, move, rotate, copy, mirror, linear/circular array, batch execute |
Assembly |
| 10 | Add connectors/panels/endcaps/feet/casters/corner pieces/brackets, detect joints, auto-connect, validate |
Parametric Design |
| 7 |
|
Engineering Analysis |
| 10 | Collision check, connectivity, envelope dimensions, duplicates, missing connectors, weight, bbox, beam deflection, cut optimizer, profile recommender |
Exporters |
| 6 |
|
3D Visualization |
| 7 | Headless OpenGL FBO screenshots, camera aim, projection state, isolate objects, highlight objects, fit-all, 6 standard views |
Requirements
OS: Windows 10 / 11 (64-bit)
MayCAD: Local licensed installation of MayCAD 64-bit (tested on MayCAD 12.10 Build 292 at
C:\Program Files\MayTec\MayCad-64; override viaMAYCAD_INSTALL_DIRenvironment variable if installed elsewhere)Python: Python
>= 3.10(recommended3.13viauvor standardvenv)OpenGL: Working Windows OpenGL graphics driver for headless FBO rendering (
view_*andexport_drawing)
Installation & Quick Start
1. Clone and Install
git clone https://github.com/wubianluori/maycad-mcp.git
cd maycad-mcp
.\scripts\install.ps1If MayCAD is installed in a custom directory:
$env:MAYCAD_INSTALL_DIR = "D:\Program Files\MayTec\MayCad-64"
.\scripts\install.ps12. Verify Health Diagnostics & Run Tests
# Check MayCAD installation, Py27 kernel, catalog DB, OpenGL FBO, and transfer.exe
.\scripts\health_check.ps1
# Run the complete unit and live MayCAD integration suite
.\scripts\run_tests.ps13. Start the MCP Server
# Default: STDIO transport (for AI desktop/IDE clients)
.\scripts\start_mcp.ps1
# Streamable HTTP transport (localhost-bound, recommended with Bearer token)
.\scripts\start_mcp.ps1 -Transport streamable-http -HostAddr 127.0.0.1 -Port 8765 -AuthToken "your-secret-token"4. Connect Your AI Client
Ready-to-edit client templates are provided in configs/ and explained in docs/CLIENTS.md:
Client | Template |
Antigravity | |
Claude Desktop | |
Claude Code | |
OpenAI Codex | |
Cursor | |
Generic STDIO / HTTP |
Replace C:\path\to\maycad-mcp in the chosen config with your cloned directory path and set PYTHONUTF8=1.
CLI & Python SDK Usage
Standalone CLI (maycad)
The CLI works completely independently of the MCP Server with UTF-8 Chinese path support, --json, --dry-run, --timeout, and automatic .maycad_backups/ write protection (docs/CLI.md):
# Inspect environment
maycad doctor --json
# Search catalog & inspect profile moments of inertia
maycad catalog search 4040 --series 40 --json
maycad catalog profile PROF40-4040L --json
# Generate a 2000 x 800 x 900 mm workbench, resize to 2400 mm, export STEP & BOM & screenshot
maycad design create-workbench --output bench.scene --length 2000 --width 800 --height 900 --json
maycad design update-parameters --project bench.scene --params-json '{"length_mm": 2400}' --output bench_2400.scene --json
maycad export step --project bench_2400.scene --output bench_2400.step --json
maycad export bom --project bench_2400.scene --output bom.csv --format csv --json
maycad view screenshot --project bench_2400.scene --output iso.png --view isometric --width 900 --height 900 --jsonPython SDK (MayCADSDK)
from maycad_mcp.sdk import MayCADSDK
sdk = MayCADSDK()
status = sdk.run_diagnostics()
assert status["ok"]
# Create a parametric frame and auto-connect joints with native MayTec connectors
sdk.create_frame("cube.scene", frame_type="cube_frame", length_mm=800, width_mm=600, height_mm=600)
sdk.auto_connect("cube.scene", style="internal")
# Run geometry interference check, export STEP + BOM, and render isometric PNG
collisions = sdk.check_collision("cube.scene")
sdk.export_step("cube.scene", "cube.step")
sdk.export_bom("cube.scene", "cube_bom.json", fmt="json")
sdk.screenshot("cube.scene", "cube_iso.png", view="isometric", width=960, height=960)Repository Structure
maycad-mcp/
├── src/maycad_mcp/
│ ├── sdk/ # Unified MayCADSDK public facade
│ ├── server.py # Official MCP Server (STDIO & Bearer Streamable HTTP)
│ ├── cli.py # Standalone `maycad` CLI
│ ├── tools/ # 75 MCP tools across 9 domain modules
│ ├── backends/ # Isolated python27.dll loopback-TCP worker, safety locks, read-only UI monitor
│ ├── scene/ # .scene v14 XML + AES-256-CBC lossless parser & atomic writer
│ ├── catalog/ # Read-only interface over fdcatalogMAYTEC.bindata
│ ├── geometry/ # Millimeter coordinate transforms, outer/centerline/cut envelopes, OBB SAT, joints
│ ├── modeling/ # Add, move, rotate, resize, copy, mirror, array, batch operations
│ ├── assembly/ # Connectors, panels, endcaps, leveling feet, casters, corner pieces, brackets
│ ├── parametric/ # 13 parametric frame/workbench/gantry/enclosure topologies & linked updates
│ ├── analysis/ # Interference, missing connectors, 1D FFD cut optimizer, beam deflection heuristic
│ ├── exporters/ # AP214 STEP (transfer.exe verified), DXF, BOM, CutList, PDF, Markdown/JSON reports
│ └── visualization/ # Headless hardware OpenGL FBO screenshot controller
├── tests/
│ ├── unit/ # Unit tests for catalog, geometry, safety locks, .scene roundtrip
│ ├── integration/ # Live Py27 kernel, catalog, SDK E2E, exporters/CLI, STDIO MCP tests
│ └── fixtures/ # 13 minimal contrast .scene fixtures & diff summary
├── examples/
│ ├── workbench_acceptance/ # 17-step live MCP workbench acceptance suite & exports
│ └── eight_corners_demo/ # 8-distinct-corner cube frame built live via MCP STDIO
├── configs/ # Ready-to-use MCP client configurations
├── scripts/ # PowerShell install, health check, test, and launch helpers
├── docs/ # SCENE_FORMAT.md, TOOLS.md, CLI.md, CLIENTS.md, TROUBLESHOOTING.md, roadmap
├── RESEARCH.md # Deep reverse-engineering & architecture research report on MayCAD 12.10
├── CHANGELOG.md # Release changelog
└── LICENSE # MIT LicenseDocumentation Index
Technical Architecture Research (
RESEARCH.md) — Complete MayCAD 12.10 binary, bytecode, registry, UIA, and kernel investigation report.scenev14 Format Specification (docs/SCENE_FORMAT.md) — Empirical reverse-engineering across 16 official samples and 13 contrast scenesMCP Tools Reference (
docs/TOOLS.md) — Complete specification of all 75 MCP toolsCLI Manual (
docs/CLI.md) — Subcommands, exit codes,--json, and--dry-runusageClient Integration Guide (
docs/CLIENTS.md) — Antigravity, Codex, Claude Code, Claude Desktop, Cursor, HTTP setupKnown Issues & Roadmap (
docs/KNOWN_ISSUES_AND_ROADMAP.md) — Verified capability boundaries and future enhancementsTroubleshooting (
docs/TROUBLESHOOTING.md) — Common Windows/MayCAD/OpenGL issues and fixesWorkbench 17-Step Acceptance Report (
examples/workbench_acceptance/ACCEPTANCE_REPORT.md)
License & Legal Notice
maycad-mcpis released under the MIT License.MayCAD and MayTec are trademarks of MayTec Aluminium Systemtechnik GmbH. This project is an independent third-party automation and interoperability bridge and is not affiliated with or endorsed by MayTec.
Users must hold a valid local license for MayCAD to run live kernel operations. No proprietary MayCAD executables, DLLs, bytecode archives, or product databases are included in this repository.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Headless CAD engine & MCP server for 2D/3D drafting, solids, DXF/SVG export, and automation.
Parametric 3D CAD for AI agents: build print-ready parts, check them, export STL, 3MF or STEP.
MCP server for progressive tool usage at any scale (see https://klavis.ai)
Generate game-ready 3D models, textures, and audio from natural language, over MCP.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceAn MCP server that gives AI agents genuine 3D spatial understanding of Autodesk Fusion 360, enabling exact measurements, collision analysis, and free-space placement search, plus Fusion-native parametric authoring for clean, human-editable models.MIT
- FlicenseNot gradedqualityDmaintenanceAn open-source MCP server that bridges AI agents to Autodesk Revit and IFC geometry, providing ASME B31.3 pipe thickness verification, UK HSE Legionella compliance auditing, and 3D BIM property inspection.1-
- AlicenseNot gradedqualityBmaintenanceA local MCP server that lets coding agents turn conversational prompts into deterministic, re-runnable recipes for 3D objects, walkable worlds, and playable games, all stored on your own disk without API keys or cloud rendering. Those recipes can be edited in place and exported to the browser, Godot, Unity, Unreal, Blender, glTF/OpenUSD, or print-ready STL and 3MF at true scale.3Apache 2.0
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to perceive, navigate, interact with, and build inside Minecraft through typed, bounded operations, including deterministic blueprints, verified builds, repair, and creative-mode flight or teleport. Runs as a provider-neutral MCP server or an interactive dev shell, exposing movement, voxel manipulation, inventory, chat, and diagnostics tools.3Apache 2.0