[Feature request] Make the Blender add-on bind address configurable

Author: utagestudioCreated Sep 18, 2026Updated Sep 18, 2026

Summary

Please make the bind address of the socket server in the Blender add-on configurable, while keeping localhost as the default.

Use case

I run Blender on one trusted PC and the MCP client/server on another PC on the same private LAN. The MCP server can be configured to connect to a remote Blender host, but the socket server inside the Blender add-on currently listens on localhost only. As a result, the second PC cannot connect to Blender.

Changing the add-on manually from:

python
def __init__(self, host="localhost", port=9876):

to:

python
def __init__(self, host="0.0.0.0", port=9876):

allows the connection to work, but this local modification is overwritten when the add-on is updated or reinstalled.

Proposed behavior

Add a bind-address setting to the Blender add-on, preferably near the existing port setting. For example:

  • Default: localhost (or 127.0.0.1)
  • Optional user-provided address: a specific LAN interface address or 0.0.0.0
  • Persist the selected value across Blender restarts
  • Use the selected address for manual start and auto-start
  • Show the active bind address and port in the panel or startup message

An environment-variable option for headless or automated setups would also be useful, but a Blender UI setting would be the most accessible solution.

Security considerations

The current socket protocol has no authentication or encryption and can execute Python in Blender. Therefore, localhost should remain the default. Selecting a non-loopback address should require an explicit opt-in and display a clear warning that the service must only be exposed on a trusted network and should be protected by firewall rules.

It may also be safer to recommend binding to a specific LAN address instead of 0.0.0.0 where possible.

Alternatives considered

  • Editing addon.py manually works, but the change is lost on update.
  • An SSH tunnel preserves the loopback-only listener and is safer, but it adds setup and operational complexity for a simple trusted-LAN workflow.

Related issues

  • #152 discusses BLENDER_HOST being ignored by the MCP server. This request is different: it concerns the listening/bind address of the socket server inside the Blender add-on.

Environment

  • OS: Windows
  • Blender: 5.2
  • Network: two PCs on the same trusted private LAN

Thank you for considering this feature.