# How to Configure BLENDER_HOST and BLENDER_PORT Environment Variables in Blender-MCP

> Configure BLENDER_HOST and BLENDER_PORT environment variables for Blender-MCP. Learn how these settings direct connections to your Blender instance and their default values for seamless integration.

- Repository: [ahujasid/blender-mcp](https://github.com/ahujasid/blender-mcp)
- Tags: how-to-guide
- Published: 2026-04-13

---

**The blender-mcp server reads `BLENDER_HOST` and `BLENDER_PORT` environment variables to determine the target Blender instance address, defaulting to `localhost:9876` when unset.**

The blender-mcp project provides a Model Context Protocol (MCP) server that bridges AI assistants with Blender. To establish the socket connection, the server relies on `BLENDER_HOST` and `BLENDER_PORT` environment variables to locate the Blender add-on's listening socket. These values are evaluated at runtime in `src/blender_mcp/server.py