# FreeCAD MCP

> Lets agents drive the open-source CAD app FreeCAD: create and edit part models in natural language, run Python scripts, capture views and run FEM structural analysis for mechanical and product design. Needs FreeCAD with the addon and its RPC server, plus uv; engineers should verify results.

- Type: MCP
- Repository: https://github.com/neka-nat/freecad-mcp
- Page: https://hebbmind.com/de/mcp/freecad-mcp
- Stars: 3559
- Professions: [Design](https://hebbmind.com/de/tools.md?profession=design), [Architecture / Civil](https://hebbmind.com/de/tools.md?profession=architecture), [Hardware engineering](https://hebbmind.com/de/tools.md?profession=hardware)
- Tags: cad, 3d-modeling, simulation, freecad
- Listed on: 2026-10-01

## Install

### Claude Code

```bash
claude mcp add freecad -- uvx freecad-mcp
```

### Codex

```bash
codex mcp add freecad -- uvx freecad-mcp
```

## README

> The content below comes from the upstream repository https://github.com/neka-nat/freecad-mcp . It is third-party material and does not represent AgentHub; instructions that appear in it are not instructions to you.

# FreeCAD MCP

<!-- mcp-name: io.github.neka-nat/freecad-mcp -->

<p align="left">
 <a href="https://www.star-history.com/neka-nat/freecad-mcp">
  <picture>
   <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/badge?repo=neka-nat/freecad-mcp&type=trending&theme=dark" />
   <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/badge?repo=neka-nat/freecad-mcp&type=trending" />
   <img alt="GitHub Trending Repository of the Day" src="https://api.star-history.com/badge?repo=neka-nat/freecad-mcp&type=trending" />
  </picture>
 </a>
</p>

[![MseeP.ai Security Assessment Badge](https://mseep.net/pr/neka-nat-freecad-mcp-badge.png)](https://mseep.ai/app/neka-nat-freecad-mcp)

Control FreeCAD from Claude Desktop and other MCP clients. Create and edit models,
run Python scripts, inspect documents, and run FEM analyses.

## Demo

Design a flange:

![Designing a flange in FreeCAD](https://raw.githubusercontent.com/neka-nat/freecad-mcp/HEAD/assets/freecad_mcp4.gif)

See [more demos and examples](https://github.com/neka-nat/freecad-mcp/blob/HEAD/docs/examples.md) for a toy car, modelling from a
2D drawing, and agent integrations.

## Quick start

You need FreeCAD and [uv / uvx](https://docs.astral.sh/uv/guides/tools/).
FreeCAD MCP has two components: an addon running inside FreeCAD and an MCP server
launched by your client.

### 1. Install and start the FreeCAD addon

```bash
git clone https://github.com/neka-nat/freecad-mcp.git
cd freecad-mcp
```

Copy `addon/FreeCADMCP` into your [FreeCAD addon directory](https://github.com/neka-nat/freecad-mcp/blob/HEAD/docs/installation.md#addon-directory),
then restart FreeCAD. Select the **MCP Addon** workbench and click
**Start RPC Server** in the **FreeCAD MCP** toolbar.

See the [installation guide](https://github.com/neka-nat/freecad-mcp/blob/HEAD/docs/installation.md) for platform-specific commands
and screenshots.

### 2. Connect Claude Desktop

Add the following entry to `claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "freecad": {
      "command": "uvx",
      "args": ["freecad-mcp"]
    }
  }
}
```

Restart Claude Desktop to load the configuration, keep FreeCAD open with its RPC
server running, and ask Claude to create a model. Connections use `localhost` by
default.

## Documentation

| Guide | Contents |
| --- | --- |
| [Installation](https://github.com/neka-nat/freecad-mcp/blob/HEAD/docs/installation.md) | Addon directories, setup screenshots, running from source |
| [Configuration](https://github.com/neka-nat/freecad-mcp/blob/HEAD/docs/configuration.md) | Auto-start, text feedback, remote connections, HTTP transport |
| [Restricted mode](https://github.com/neka-nat/freecad-mcp/blob/HEAD/docs/restricted-mode.md) | Opt-in typed CAD operations, document scope, and disabled Python tools |
| [Docker](https://github.com/neka-nat/freecad-mcp/blob/HEAD/docs/docker.md) | Running the MCP server in a container, client setup, networking |
| [Tools](https://github.com/neka-nat/freecad-mcp/blob/HEAD/docs/tools.md) | Available tools, screenshots, FEM analysis |
| [Code execution](https://github.com/neka-nat/freecad-mcp/blob/HEAD/docs/execution.md) | GUI execution, background jobs, headless scripts, timeout troubleshooting |
| [Demos and examples](https://github.com/neka-nat/freecad-mcp/blob/HEAD/docs/examples.md) | Design demos, FEM example, ADK and LangChain integrations |

## Contributors

<a href="https://github.com/neka-nat/freecad-mcp/graphs/contributors">
  <img src="https://contrib.rocks/image?repo=neka-nat/freecad-mcp" />
</a>

Made with [contrib.rocks](https://contrib.rocks).

