Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"io-github-pzalutski-pixel-blenderlens": {
"command": "npx",
"args": [
"-y",
"blenderlens-mcp"
],
"env": {
"BLENDER_BIN": "auto",
"BLENDERLENS_MODE": "auto",
"BLENDERLENS_HOST": "127.0.0.1",
"BLENDERLENS_PORT": "9877",
"BLENDERLENS_TOKEN": "<YOUR_VALUE>",
"BLENDERLENS_TIMEOUT": "120",
"BLENDERLENS_START_TIMEOUT": "90",
"BLENDERLENS_RENDER_DIR": "<VALUE>",
"BLENDERLENS_ALLOW_PYTHON": "1",
"BLENDERLENS_ALLOWED_DIRS": "<VALUE>",
"BLENDERLENS_RUNTIME_DIR": "<VALUE>"
}
}
}
}
Restart Claude Desktop to activate the new server.
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
Windows / Linux path
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).cursor/mcp.json (project) or ~/.cursor/mcp.json (global){
"mcpServers": {
"io-github-pzalutski-pixel-blenderlens": {
"command": "npx",
"args": [
"-y",
"blenderlens-mcp"
],
"env": {
"BLENDER_BIN": "auto",
"BLENDERLENS_MODE": "auto",
"BLENDERLENS_HOST": "127.0.0.1",
"BLENDERLENS_PORT": "9877",
"BLENDERLENS_TOKEN": "<YOUR_VALUE>",
"BLENDERLENS_TIMEOUT": "120",
"BLENDERLENS_START_TIMEOUT": "90",
"BLENDERLENS_RENDER_DIR": "<VALUE>",
"BLENDERLENS_ALLOW_PYTHON": "1",
"BLENDERLENS_ALLOWED_DIRS": "<VALUE>",
"BLENDERLENS_RUNTIME_DIR": "<VALUE>"
}
}
}
}
Cursor usually picks up config changes automatically; if the server does not appear, reload the window.
Add to .mcp.json (project) or ~/.claude.json (global)
Windows / Linux path
.mcp.json (project) or %USERPROFILE%\.claude.json (global).mcp.json (project) or ~/.claude.json (global){
"mcpServers": {
"io-github-pzalutski-pixel-blenderlens": {
"command": "npx",
"args": [
"-y",
"blenderlens-mcp"
],
"env": {
"BLENDER_BIN": "auto",
"BLENDERLENS_MODE": "auto",
"BLENDERLENS_HOST": "127.0.0.1",
"BLENDERLENS_PORT": "9877",
"BLENDERLENS_TOKEN": "<YOUR_VALUE>",
"BLENDERLENS_TIMEOUT": "120",
"BLENDERLENS_START_TIMEOUT": "90",
"BLENDERLENS_RENDER_DIR": "<VALUE>",
"BLENDERLENS_ALLOW_PYTHON": "1",
"BLENDERLENS_ALLOWED_DIRS": "<VALUE>",
"BLENDERLENS_RUNTIME_DIR": "<VALUE>"
}
}
}
}
The server will be available in the next Claude Code session.
Add to .vscode/mcp.json
Windows / Linux path
.vscode\mcp.json.vscode/mcp.json{
"servers": {
"io-github-pzalutski-pixel-blenderlens": {
"command": "npx",
"args": [
"-y",
"blenderlens-mcp"
],
"env": {
"BLENDER_BIN": "auto",
"BLENDERLENS_MODE": "auto",
"BLENDERLENS_HOST": "127.0.0.1",
"BLENDERLENS_PORT": "9877",
"BLENDERLENS_TOKEN": "<YOUR_VALUE>",
"BLENDERLENS_TIMEOUT": "120",
"BLENDERLENS_START_TIMEOUT": "90",
"BLENDERLENS_RENDER_DIR": "<VALUE>",
"BLENDERLENS_ALLOW_PYTHON": "1",
"BLENDERLENS_ALLOWED_DIRS": "<VALUE>",
"BLENDERLENS_RUNTIME_DIR": "<VALUE>"
}
}
}
}
Reload the VS Code window to activate.
Add to ~/.codeium/windsurf/mcp_config.json
Windows / Linux path
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"io-github-pzalutski-pixel-blenderlens": {
"command": "npx",
"args": [
"-y",
"blenderlens-mcp"
],
"env": {
"BLENDER_BIN": "auto",
"BLENDERLENS_MODE": "auto",
"BLENDERLENS_HOST": "127.0.0.1",
"BLENDERLENS_PORT": "9877",
"BLENDERLENS_TOKEN": "<YOUR_VALUE>",
"BLENDERLENS_TIMEOUT": "120",
"BLENDERLENS_START_TIMEOUT": "90",
"BLENDERLENS_RENDER_DIR": "<VALUE>",
"BLENDERLENS_ALLOW_PYTHON": "1",
"BLENDERLENS_ALLOWED_DIRS": "<VALUE>",
"BLENDERLENS_RUNTIME_DIR": "<VALUE>"
}
}
}
}
Restart Windsurf (or refresh its MCP servers panel) to activate the new server.
Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.
Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows / Linux path
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json{
"mcpServers": {
"io-github-pzalutski-pixel-blenderlens": {
"command": "npx",
"args": [
"-y",
"blenderlens-mcp"
],
"env": {
"BLENDER_BIN": "auto",
"BLENDERLENS_MODE": "auto",
"BLENDERLENS_HOST": "127.0.0.1",
"BLENDERLENS_PORT": "9877",
"BLENDERLENS_TOKEN": "<YOUR_VALUE>",
"BLENDERLENS_TIMEOUT": "120",
"BLENDERLENS_START_TIMEOUT": "90",
"BLENDERLENS_RENDER_DIR": "<VALUE>",
"BLENDERLENS_ALLOW_PYTHON": "1",
"BLENDERLENS_ALLOWED_DIRS": "<VALUE>",
"BLENDERLENS_RUNTIME_DIR": "<VALUE>"
}
}
}
}
Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.
Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.
Configuration
Environment variables this server reads. Secrets stay on your machine.
| Name | Required | Description |
|---|---|---|
| BLENDER_BIN | No | Blender executable, for background sessions, `check` and `install-addon`. Default: auto. Default: auto |
| BLENDERLENS_MODE | No | `auto` (the window when its add-on is started, otherwise background), `live` (the window only) or `background`. Default: `auto`. Default: auto |
| BLENDERLENS_HOST | No | Where the server connects to the add-on: `localhost` or a loopback IPv4 address. Default: `127.0.0.1`. Default: 127.0.0.1 |
| BLENDERLENS_PORT | No | The add-on's port, as set in its preferences. Default: `9877`. Default: 9877 |
| BLENDERLENS_TOKEN secret | No | Overrides the token the add-on writes for the server. Default: from the add-on's file. |
| BLENDERLENS_TIMEOUT | No | Seconds to wait for one call; `render_preview`, `bake_texture`, `run_python` and `run_script` also take `timeout`. Default: `120`. Default: 120 |
| BLENDERLENS_START_TIMEOUT | No | Seconds to wait for a background Blender to start. Default: `90`. Default: 90 |
| BLENDERLENS_RENDER_DIR | No | Where previews go when given no `path`; in the default folder they are kept 7 days. Default: a temp folder. |
| BLENDERLENS_ALLOW_PYTHON | No | `0` removes `run_python` and `run_script`. Default: `1`. Default: 1 |
| BLENDERLENS_ALLOWED_DIRS | No | Folders every path given to a tool must be inside; `;` separates them on Windows, `:` elsewhere. Default: not set. |
| BLENDERLENS_RUNTIME_DIR | No | Where the add-on's token file and recovery copies of unsaved background work are kept. Default: per user. |