# FreeCAD MCP

MCP server for Claude Code and other clients controls FreeCAD models locally.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 3427 repo stars
- Author: neka-nat
- License: MIT · policy=link-only · description only; the file stays with the author
- Source: https://github.com/neka-nat/freecad-mcp
- Updated: 2026-11-16
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/neka-nat-freecad-mcp

## What it does

The tool connects the open-source CAD system to AI assistants via the Model Context Protocol. The architecture combines an in-app addon with an external server launched through `uvx`.

The integration lets users build and edit three-dimensional models, execute Python scripts, inspect project files, and run finite element method analyses. Setup requires FreeCAD and the `uv` package manager.

Clients connect over `localhost` by default.

## Requirements
- Needs: Python and uv (commands run via uvx)

## Install

### Claude Code (native platform)

**Platform CLI**
```bash
claude mcp add freecad-mcp -- uvx freecad-mcp
```
uvx runs the command named after the package; if the README names another one, use uvx --from freecad-mcp <command>

### Codex

**Platform CLI**
```bash
codex mcp add neka-nat-freecad-mcp -- uvx freecad-mcp
```
uvx runs the command named after the package; if the README names another one, use uvx --from freecad-mcp <command>

### Cursor

**Config file**
File `.cursor/mcp.json`:
```json
{
    "mcpServers": {
        "neka-nat-freecad-mcp": {
            "command": "uvx",
            "args": [
                "freecad-mcp"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from freecad-mcp <command>

### GitHub Copilot

**Config file**
File `.vscode/mcp.json`:
```json
{
    "servers": {
        "neka-nat-freecad-mcp": {
            "type": "stdio",
            "command": "uvx",
            "args": [
                "freecad-mcp"
            ]
        }
    }
}
```
uvx runs the command named after the package; if the README names another one, use uvx --from freecad-mcp <command>

### Gemini CLI

**Platform CLI**
```bash
gemini mcp add neka-nat-freecad-mcp uvx freecad-mcp
```
uvx runs the command named after the package; if the README names another one, use uvx --from freecad-mcp <command>

## When to use it
- create a 3D model from a prompt
- execute a Python script in CAD
- run a finite element analysis
- inspect project document structure

## Example prompts
- Design a mechanical flange model
- Run an FEM analysis on the assembly
- Execute a custom Python script inside the CAD

## Similar
- [AnkusDrive](https://affpapa.org/en/nevibecode/mcp/ankusdrive.md) — MCP server · ★ 14 repo stars
- [cli-anything-freecad](https://affpapa.org/en/nevibecode/skills/cli-anything-freecad.md) — skill · 745 installs
- [freecad-scripts](https://affpapa.org/en/nevibecode/skills/freecad-scripts.md) — skill · 1200 installs
- [bambu-labs](https://affpapa.org/en/nevibecode/skills/bambu-labs.md) — skill · 10200 installs
- [keychron-keyboards-hardware-design](https://affpapa.org/en/nevibecode/skills/keychron-keyboards-hardware-design.md) — skill · 557 installs
- [print3d](https://affpapa.org/en/nevibecode/skills/print3d.md) — skill · 228 installs

## Other versions with the same name
- [FreeCAD MCP · blwfish](https://affpapa.org/en/nevibecode/mcp/freecad-mcp.md) — ★ 69 repo stars

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
