aicad-mcp
Reads and converts SVG paths, rectangles, circles, polygons, and Bezier curves into AutoCAD R12 DXF polylines in millimeters, and exports spur gear profiles as SVG.
This server has a remotely hosted endpoint. Open its connector listing for connection details, authentication requirements, and setup instructions:
aicad-mcp — Open-Source Parametric CAD MCP Server, CLI & TypeScript Library
Generate watertight binary .stl, exact B-rep .step (ISO-10303-21), .svg, and AutoCAD R12 .dxf parts for 3D printing directly from Claude, Cursor, Windsurf, your terminal, or Node.js.
Powered by Manifold and OpenCascade / replicad running locally in Node/WASM — with a free interactive browser CAD workbench at aicadhub.com.
Looking for visual interactive 3D editing or free-form AI Text-to-CAD for hinges, snap-fit enclosures, and arbitrary custom parts? Try the hosted web studio at https://aicadhub.com/studio · Hosted zero-install HTTP MCP endpoint:
https://aicadhub.com/api/mcp

Why aicad-mcp?
Unlike text-to-mesh generators that output non-manifold triangles with arbitrary units, aicad-mcp guarantees exact millimeter tolerances and closed solids checked on every export:
Watertight 3D Printing Geometry: Every exported STL is verified as a closed, consistently oriented single body (
manifold-3d).Exact B-rep STEP (
ISO-10303-21): Spur gears, L-brackets, spacers, reducers, open boxes, and functional library mounts export as exact analytic B-rep CAD solids (replicad/ OpenCascade), ready for Fusion 360, Onshape, SolidWorks, or Bambu Studio / PrusaSlicer.Real 3D Printing Engineering Standards: Built-in Gridfinity 42 mm / 7 mm standard (
0.25 mmper-side clearance,4.75 mmstepped foot, stacking lip,6.5 × 2.4 mmmagnet pockets), involute spur gears (14.5°/20°/25°pressure angle, undercut warning, meshed center distance), and metricM2–M10FDM clearance + brass heat-set insert boss dimensions.100% Local & Offline-Capable: Runs natively in Node.js (
>=20) with zero API keys or rate limits.
Related MCP server: techhand-print-fab
Quick Start: Connect as an MCP Server
Option 1: Local Stdio MCP Server (Exports .stl / .step / .svg / .dxf directly to disk)
Works with Claude Desktop, Cursor, Claude Code, Windsurf, and Devin / Antigravity.
{
"mcpServers": {
"aicad": {
"command": "npx",
"args": ["-y", "github:ACs-del/aicad-mcp"]
}
}
}git clone https://github.com/ACs-del/aicad-mcp.git
cd aicad-mcp
npm install
npm run buildThen configure your MCP client:
{
"mcpServers": {
"aicad": {
"command": "node",
"args": ["/absolute/path/to/aicad-mcp/dist/mcp-server.js"]
}
}
}Option 2: Zero-Install Hosted HTTP MCP Endpoint (Math, Sizing, Parsing & SVG→DXF)
Add the stateless JSON-RPC 2.0 endpoint directly — no Node install required:
{
"mcpServers": {
"aicadhub": {
"url": "https://aicadhub.com/api/mcp"
}
}
}Claude Code one-liner:
claude mcp add --transport http aicadhub https://aicadhub.com/api/mcpTry live payloads at https://aicadhub.com/mcp.
Available MCP Tools (10 Tools)
Tool | What it does |
| Builds a watertight Gridfinity bin or baseplate ( |
| Generates an involute spur gear or meshed 2-gear pair ( |
| Parses natural-language dimensions ( |
| Builds any of 8 ready-to-print functional parts ( |
| Lists all 8 functional designs with parameter names, defaults, and min/max millimeter bounds. |
| Converts 2D SVG paths, rects, circles, polygons, and Beziers into AutoCAD R12 ( |
| Parses & validates a natural-language bracket, spacer, reducer, or box prompt without exporting files. |
| Computes pitch/base/outside/root diameters, undercut risk, and meshed center distance. |
| Returns exact millimeter envelope, foot taper, lip height, interior span, and magnet pocket dimensions. |
| Looks up |
CLI Usage (aicad)
After installing globally (npm i -g github:ACs-del/aicad-mcp) or inside a cloned checkout (node dist/cli.js):
1. Gridfinity Bin & Baseplate Generator
aicad gridfinity --x 2 --y 1 --height 3 --compartments-x 2 --magnets --stl gf-2x1.stl --step gf-2x1.stepVerified output:
[aicad] Gridfinity bin (2x1)
Bounds: 83.5 x 41.5 x 25.4 mm
Volume: 27.08 cm³ (~33.6 g PLA)
Mesh: 2,672 triangles | watertight=true | bodies=1
Preview: https://aicadhub.com/gridfinity-generator
STL saved: .../gf-2x1.stl (133,684 bytes)
STEP saved: .../gf-2x1.step (6,359,397 bytes, faceted)
2. Involute Spur Gear Generator (Exact B-Rep STEP)
aicad gear --teeth 20 --module 2 --bore 6 --stl gear-20t.stl --step gear-20t.step --svg gear-20t.svgVerified output:
[aicad] Involute spur gear (gear-20t-m2)
Bounds: 44 x 44 x 10 mm
Volume: 11.95 cm³ (~14.8 g PLA)
Mesh: 2,800 triangles | watertight=true | bodies=1
Preview: https://aicadhub.com/gear-generator
Pitch Ø: 40.000 mm | Outer Ø: 44.000 mm | Root Ø: 35.000 mm
STL saved: .../gear-20t.stl (140,084 bytes)
STEP saved: .../gear-20t.step (2,159,033 bytes, exact B-rep)3. Prompt-to-Parametric Part, Library Parts, Clearances & SVG→DXF
# Parse plain English or Chinese into an exact bracket / spacer / reducer / box
aicad part "L-bracket 60 x 40 x 35 mm, 4 mm thick, M4 holes" --stl bracket.stl --step bracket.step
# Customize one of the 8 functional library parts
aicad library list
aicad library wall-hook --set reach=30 --stl hook.stl --step hook.step
# Metric M2-M10 FDM bolt clearance & brass heat-set insert sizing chart
aicad clearance all
# SVG -> AutoCAD R12 DXF for laser cutters & CNC
aicad svg2dxf mounting-plate.svg --unit mm --out mounting-plate.dxfTypeScript / Node.js SDK
import { writeFile } from 'node:fs/promises'
import {
generateGridfinity,
generateSpurGear,
generateParametricPart,
lookupFastenerClearance,
} from 'aicad-mcp'
// 1. Watertight 2x1x3 Gridfinity bin
const bin = await generateGridfinity({ x: 2, y: 1, height: 3, compartmentsX: 2, magnets: true })
await writeFile('gridfinity-2x1.stl', bin.stlBuffer)
// 2. Involute spur gear with exact ISO-10303-21 STEP export
const gear = await generateSpurGear({ teeth: 20, module: 2, bore: 6 })
const step = await gear.exportStepBuffer() // step.faceted === false (exact B-rep)
await writeFile('gear-20t.step', step.buffer)
// 3. Natural-language parametric bracket
const bracket = await generateParametricPart('L-bracket 60 x 40 x 35 mm, 4 mm thick, M4 holes')
console.log(bracket.dimensionsMm, `${bracket.estimatedPlaGrams} g PLA`)
// 4. M3 heat-set insert reference
console.log(lookupFastenerClearance('M3'))Local Open Source vs. AI CAD Hub Web Studio
Capability |
| |
Gridfinity bins & baseplates | ✅ Unlimited local STL / STEP | ✅ Free interactive 3D builder |
Involute spur gears & pairs | ✅ STL / exact STEP / SVG | ✅ Free live preview & sliders |
Parametric bracket / spacer / reducer / box | ✅ STL / exact B-rep STEP | ✅ Free instant preview & checks |
Fastener & heat-set insert clearances + SVG→DXF | ✅ CLI + MCP tools | ✅ Free web tools & guides |
Arbitrary custom parts (hinges, vents, enclosures, mounts) from natural language | — | ✅ AI Text-to-CAD + auto topology repair |
Development & Tests
npm install
npm run build
npm testLicense
MIT © 2026 AI CAD Hub
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
Parametric 3D CAD for AI agents: build print-ready parts, check them, export STL, 3MF or STEP.
Text-to-CAD AI mechanical engineer: generate checked STEP and STL parts from plain language.
Free browser parametric 3D CAD your AI drives: plan, build, check, FEA. For 3D printing and CNC.
Text-to-CAD: build exact STEP or 3MF/STL on the server, each stated requirement measured.
Related MCP Servers
- AlicenseCqualityCmaintenanceEnables generating CAD files through DXF drafting and OpenSCAD operations, with natural-language planning via local Ollama.23MIT
- AlicenseAqualityBmaintenanceEnables generating parametric 3D-printable parts from OpenSCAD/CadQuery models, exporting STL/3MF files, running DFM checks, and retrieving Bambu X1 Carbon starting profile notes.8MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to design, modify, and verify exact B-rep 3D CAD models by running build123d scripts on an OpenCascade kernel, with live three.js preview, collision and FDM printability checks, text-based spatial perception, user notes/sketch annotations, version history, and one-click export to OrcaSlicer.1MIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to build, evaluate, measure, inspect, and export parametric CAD parts written as JavaScript against an exact B-rep kernel, including checks for geometry, volume, wall thickness, and bore intersections. It also provides multi-view renders, cross-sections, and STEP export so agents can verify parts before printing or machining.10AGPL 3.0