FreeCAD MCP

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.

Category
Visit Server

README

FreeCAD MCP

MseeP.ai Security Assessment Badge License: MIT FreeCAD Python

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

  1. Open FreeCAD
  2. Switch to MCP Addon workbench
  3. 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

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

Tools Used

  • uv - Python package manager
  • MCP - Model Context Protocol
  • FreeCAD - Parametric 3D CAD modeler

🀝 Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

πŸ“ž Support

  • FreeCAD Wiki: https://wiki.freecad.org
  • FreeCAD Forum: https://forum.freecad.org
  • Issues: GitHub Issues

πŸ“Š Stats

Contributors Stars Forks

Recommended Servers

playwright-mcp

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.

Official
Featured
TypeScript
Magic Component Platform (MCP)

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.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

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.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

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.

Official
Featured
TypeScript
Kagi MCP Server

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.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Exa Search

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.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured