FreeCAD MCP
A Model Context Protocol (MCP) server that enables AI assistants to control FreeCAD for 3D modeling, FEM analysis, and more through natural language.
README
FreeCAD MCP
A Model Context Protocol (MCP) server that enables AI assistants (Claude Desktop, opencode, etc.) to control FreeCAD β a parametric 3D CAD modeler.
Create 3D parts, run FEM analysis, generate drawings, and more β all through natural language.
β¨ Features
- 3D Modeling: Create boxes, cylinders, spheres, cones, torus, and more
- FEM Analysis: Run CalculiX solver for stress/displacement analysis
- Screenshot Capture: Get view screenshots from any angle
- Parts Library: Insert pre-made parts from FreeCAD library
- Custom Python: Execute arbitrary Python code in FreeCAD
- Remote Connections: Control FreeCAD from another machine
π¦ Installation
1. Install FreeCAD
# Ubuntu/Debian (via Flatpak - recommended)
flatpak install flathub org.freecad.FreeCAD -y
# Or download from https://freecad.org/download/
2. Install FreeCAD Addon
git clone https://github.com/GadatheGod/freecad-mcp-pro
cd freecad-mcp-pro
# Copy addon to FreeCAD Mod directory
cp -r addon/FreeCADMCP ~/.var/app/org.freecad.FreeCAD/config/FreeCAD/Mod/
# Restart FreeCAD
3. Install MCP Server
# Using uv (recommended)
uv sync
# Or using pip
pip install -e .
4. Configure Claude Desktop
Edit ~/.config/claude/claude_desktop_config.json:
{
"mcpServers": {
"freecad": {
"command": "uv",
"args": [
"--directory",
"/path/to/freecad-mcp-pro",
"run",
"freecad-mcp-pro"
]
}
}
}
π Usage
Start FreeCAD RPC Server
- Open FreeCAD
- Switch to MCP Addon workbench
- Click Start RPC Server in the toolbar
Available Tools
| Tool | Description |
|---|---|
create_document |
Create a new FreeCAD document |
create_object |
Create 3D objects (boxes, cylinders, etc.) |
edit_object |
Modify object properties |
delete_object |
Delete an object |
execute_code |
Run Python code in FreeCAD |
get_view |
Get screenshots from any view |
get_objects |
List all objects in a document |
get_object |
Get details of a specific object |
run_fem_analysis |
Run FEM stress analysis |
insert_part_from_library |
Insert parts from FreeCAD library |
Example: Create a Box
{
"doc_name": "MyPart",
"obj_name": "BaseBox",
"obj_type": "Part::Box",
"obj_properties": {
"Length": 50,
"Width": 30,
"Height": 20,
"ViewObject": {"ShapeColor": [0.8, 0.2, 0.2, 1.0]}
}
}
π οΈ Skills
This repository includes skills for working with FreeCAD via opencode:
Core Skills
- freecad - General FreeCAD MCP usage and workflows
- freecad-objects - Quick reference for Part::Box, Part::Cylinder, etc.
Matt Pocock Skills (FreeCAD-tailored)
- f-grill-with-docs - Interview to sharpen FreeCAD design plans, creates ADRs
- f-to-spec - Convert conversation into FreeCAD design spec
- f-to-tickets - Break design into FreeCAD implementation tickets
- f-implement - Create FreeCAD geometry/analysis based on tickets
- f-code-review - Review FreeCAD changes against standards and spec
π Documentation
- FreeCAD Wiki: 2,632 markdown files in
docs/freecad/ - Source: Converted from FreeCAD-documentation
- Addon Docs: See
addon/FreeCADMCP/for RPC server details
ποΈ Architecture
βββββββββββββββ ββββββββββββββββ βββββββββββββββ
β AI Client ββββββΆβ MCP Server ββββββΆβ FreeCAD β
β (Claude, β β (freecad-mcp-pro)β β (RPC) β
β opencode) β β β β β
βββββββββββββββ ββββββββββββββββ βββββββββββββββ
π License
MIT License. See LICENSE for details.
Copyright (c) 2025 Praveen
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
π Acknowledgments
Original FreeCAD MCP
- Author: Shirokuma (k tanaka) / @neka-nat
- Source: freecad-mcp-pro
- License: MIT
FreeCAD Documentation
- Source: FreeCAD-documentation
- Author: FreeCAD Community
- License: BSD-3-Clause
- Description: Automatic markdown-based conversion of the FreeCAD wiki
FreeCAD
- Website: https://freecad.org
- License: LGPL-2.1-or-later
- Description: Open source parametric 3D CAD modeler
Matt Pocock Skills
- Source: Matt Pocock Engineering Skills
- Skills adapted: grill-with-docs, to-spec, to-tickets, implement, code-review
Tools Used
π€ Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
π Support
- FreeCAD Wiki: https://wiki.freecad.org
- FreeCAD Forum: https://forum.freecad.org
- Issues: GitHub Issues
π Stats
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
E2B
Using MCP to run code via e2b.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
