Skip to content
← All MCP servers

Is the FreeCAD MCP server safe? What it can reach

What the FreeCAD MCP server can read, write and delete, how it signs in, and how to limit it in Claude Code and Codex.

Community serverChecked

FreeCAD has no official MCP server, so this page covers neka-nat/freecad-mcp, the most used community one with about 3,500 stars. It talks to an RPC server inside FreeCAD on localhost, with no token unless you set one. It can run arbitrary Python on your machine. Set an auth token and keep remote connections off.

Who maintains it

ImplementationKindStatus
neka-nat/freecad-mcp (community)Communityactive

It runs as a local process on your machine.

How it signs in

By default there is no authentication between the MCP server and the FreeCAD RPC server, which listens on localhost. An optional token can be set in the addon and in FREECAD_MCP_TOKEN. Tokens travel unencrypted.

What its tools can do

KindTools
Readlist_documents, get_objects, get_object, get_view, get_async_status, get_task_status, get_rpc_status, get_parts_list
Writecreate_document, reload_document, create_object, edit_object, insert_part_from_library, run_fem_analysis
Can’t be undonedelete_object, execute_code, execute_code_async, execute_code_headless

get_task_status is mentioned in the tools page text but is not in its table. The three execute tools run arbitrary Python: execute_code on FreeCAD’s GUI thread, execute_code_async in the background, and execute_code_headless in a separate freecadcmd process.

Built-in limits

OptionWhat it does
Set Auth TokenIn the FreeCAD addon, requires a token on every RPC request. The MCP side reads it from FREECAD_MCP_TOKEN or --auth-token.
Remote Connections and Allowed IPsRemote Connections is off by default. When on, the RPC server binds all interfaces and accepts only the IPs in Allowed IPs, which defaults to 127.0.0.1.
--listen-tokenFor the HTTP listener, requires a bearer token. Non-loopback binds are refused without one unless --allow-insecure-remote is set.
--only-text-feedbackLeaves screenshots out of tool feedback to save tokens. It is not a security control.

The risks

  • execute_code runs Python with your user’s permissions, so an injected instruction hidden in a model file or object label could read files, run shell commands or send data out.
  • With no token set, any allowed client that can reach the RPC port can call every tool, execute_code included.
  • Tokens and tool calls cross the network unencrypted if remote connections are on, so anyone on the path can read or replay them.
  • delete_object removes an object from the open document and edit_object changes its properties in place, so a bad call can wreck an unsaved model.

Limit it in Claude Code

Add it from the documented launch settings, at local or user scope so a token never lands in a shared .mcp.json:

claude mcp add --env FREECAD_MCP_TOKEN=... freecad -- uvx freecad-mcp

Claude Code names MCP tools mcp__freecad__<tool>. Deny rules win over ask rules, and ask rules over allow rules. Put these in ~/.claude/settings.json or the project’s .claude/settings.json:

{
  "permissions": {
    "deny": [
      "mcp__freecad__execute_code_headless"
    ],
    "ask": [
      "mcp__freecad__execute_code",
      "mcp__freecad__execute_code_async",
      "mcp__freecad__delete_object",
      "mcp__freecad__edit_object",
      "mcp__freecad__create_object"
    ]
  }
}

Limit it in Codex

Codex reads MCP servers from ~/.codex/config.toml. disabled_tools removes tools, and enabled_tools keeps only the ones you list:

[mcp_servers.freecad]
command = "uvx"
args = ["freecad-mcp"]
env_vars = ["FREECAD_MCP_TOKEN"]
disabled_tools = ["execute_code_headless"]

Checklist

  • Set an auth token in the FreeCAD addon and in FREECAD_MCP_TOKEN.
  • Leave Remote Connections off, and use an SSH tunnel if you need a remote FreeCAD.
  • Save and back up your document before a session.
  • Review any code the agent sends to execute_code before you approve it.

Checked against the vendor documentation on November 25, 2026. freecad-mcp README · freecad-mcp tools reference · freecad-mcp configuration

What Excellent covers

Excellent doesn’t inspect MCP servers themselves. Its free scan reads supported logs on the Mac (Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code) and reports findings for review, so you can see what an agent did after a session. Run the free scan · See a sample report · How to vet any MCP server

Excellent Pro adds checks before supported actions. Claude Code can display an ask prompt. With Codex, an Excellent “ask” refuses the action and tells the agent to ask you. Pro is US-only for now. Agent coverage · Pricing