MCP Server for CAD
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., "@MCP Server for CADCreate a 10mm cube and extrude the top face by 5mm"
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.
MCP Server for CAD - LLM-driven 3D Geometry Manipulation
A local-first, open-source MVP of an MCP (Model Context Protocol) type server that uses a cloud LLM (via Groq's free API running Llama 3.3) to translate natural language user commands into structured geometric operations for a simulated CAD engine.
Prerequisites
Python 3.9+
A free Groq API key — get one at https://console.groq.com/keys
Related MCP server: Fusion MCP
Setup
Install the project dependencies:
cd mcp-cad-server pip3 install -r requirements.txtStart the FastAPI backend server with your Groq key:
export GROQ_API_KEY='your-groq-api-key-here' python3 -m uvicorn app.main:app --reloadThe server runs by default on
http://localhost:8000.
Architecture
Groq Cloud API: Free LLM inference using Llama 3.3 70B.
FastAPI / MCP Server: Orchestrates receiving user prompts, formatting them for the LLM, securely parsing the JSON output, and delegating instructions.
Mock CAD Engine: Simulated geometry state handling dimensions and volumetric output based on structured commands.
Testing via CLI
You can easily interact with the running CAD Server through test_cli.py:
python3 test_cli.py "Increase hole diameter by 5mm"Expected JSON response:
{
"status": "success",
"message": "Successfully modified hole to 5.0mm.",
"data": {
"feature": "hole",
"new_value": 5.0,
"unit": "mm"
}
}More examples:
python3 test_cli.py "Create a sphere"
python3 test_cli.py "Extrude the top face by 50mm"
python3 test_cli.py "What is the volume?"Supported Mock CAD Functions
create_shape(shape_type, dimensions) — Generates box, sphere, cylinder, cone, or torusmodify_dimension(feature, value, unit)extrude(face, distance, unit)get_volume(unit)
This server cannot be deployed
Maintenance
Related MCP Connectors
- OwlCADOAuthcom.owlcad
Parametric 3D CAD for AI agents: build print-ready parts, check them, export STL, 3MF or STEP.
Agent-first CAD: editable .kcad.ts source, deterministic review, OpenCASCADE kernel.
Design domain models and generate deterministic multi-stack code, driven by your coding agent.
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that enables Cline to translate natural language prompts into Fusion 360 CAD operations by mapping commands to Fusion's API and generating executable Python scripts.82MIT
- AlicenseNot gradedqualityDmaintenanceA Model Context Protocol server that connects LLMs with Autodesk Fusion, enabling CAD operations through natural language dialogue.4MIT
- FlicenseNot gradedqualityDmaintenanceEnables users to control CAD software like AutoCAD, GstarCAD, and ZWCAD through natural language instructions via the Model Context Protocol. It supports automated drawing of shapes, layer management, and saving designs to DWG files without manual interface interaction.2-
- AlicenseNot gradedqualityDmaintenanceEnables AI (e.g., Claude) to control SolidWorks via natural language, automating part creation, sketching, and feature operations through the Model Context Protocol.1MIT