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-b84330808-mcp-server-for-bambu": {
"command": "npx",
"args": [
"-y",
"mcp-server-for-bambu"
],
"env": {
"BAMBU_IP": "<VALUE>",
"BAMBU_SERIAL": "<VALUE>",
"BAMBU_ACCESS_CODE": "<YOUR_VALUE>",
"BAMBU_READ_ONLY": "0",
"BAMBU_MQTT_PORT": "8883",
"BAMBU_CONFIG_DIR": "<VALUE>",
"MAINTENANCE_LEDGER_PATH": "<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-b84330808-mcp-server-for-bambu": {
"command": "npx",
"args": [
"-y",
"mcp-server-for-bambu"
],
"env": {
"BAMBU_IP": "<VALUE>",
"BAMBU_SERIAL": "<VALUE>",
"BAMBU_ACCESS_CODE": "<YOUR_VALUE>",
"BAMBU_READ_ONLY": "0",
"BAMBU_MQTT_PORT": "8883",
"BAMBU_CONFIG_DIR": "<VALUE>",
"MAINTENANCE_LEDGER_PATH": "<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-b84330808-mcp-server-for-bambu": {
"command": "npx",
"args": [
"-y",
"mcp-server-for-bambu"
],
"env": {
"BAMBU_IP": "<VALUE>",
"BAMBU_SERIAL": "<VALUE>",
"BAMBU_ACCESS_CODE": "<YOUR_VALUE>",
"BAMBU_READ_ONLY": "0",
"BAMBU_MQTT_PORT": "8883",
"BAMBU_CONFIG_DIR": "<VALUE>",
"MAINTENANCE_LEDGER_PATH": "<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-b84330808-mcp-server-for-bambu": {
"command": "npx",
"args": [
"-y",
"mcp-server-for-bambu"
],
"env": {
"BAMBU_IP": "<VALUE>",
"BAMBU_SERIAL": "<VALUE>",
"BAMBU_ACCESS_CODE": "<YOUR_VALUE>",
"BAMBU_READ_ONLY": "0",
"BAMBU_MQTT_PORT": "8883",
"BAMBU_CONFIG_DIR": "<VALUE>",
"MAINTENANCE_LEDGER_PATH": "<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-b84330808-mcp-server-for-bambu": {
"command": "npx",
"args": [
"-y",
"mcp-server-for-bambu"
],
"env": {
"BAMBU_IP": "<VALUE>",
"BAMBU_SERIAL": "<VALUE>",
"BAMBU_ACCESS_CODE": "<YOUR_VALUE>",
"BAMBU_READ_ONLY": "0",
"BAMBU_MQTT_PORT": "8883",
"BAMBU_CONFIG_DIR": "<VALUE>",
"MAINTENANCE_LEDGER_PATH": "<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-b84330808-mcp-server-for-bambu": {
"command": "npx",
"args": [
"-y",
"mcp-server-for-bambu"
],
"env": {
"BAMBU_IP": "<VALUE>",
"BAMBU_SERIAL": "<VALUE>",
"BAMBU_ACCESS_CODE": "<YOUR_VALUE>",
"BAMBU_READ_ONLY": "0",
"BAMBU_MQTT_PORT": "8883",
"BAMBU_CONFIG_DIR": "<VALUE>",
"MAINTENANCE_LEDGER_PATH": "<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 |
|---|---|---|
| BAMBU_IP | No | IP address of the Bambu Lab printer on the LAN. If omitted, the server starts in setup mode and can save credentials via the setup_printer tool. |
| BAMBU_SERIAL | No | Printer serial number. Use together with BAMBU_IP and BAMBU_ACCESS_CODE when configuring credentials via environment variables. |
| BAMBU_ACCESS_CODE secret | No | Bambu LAN access code from the printer (not the Wi-Fi password). Use together with BAMBU_IP and BAMBU_SERIAL when configuring credentials via environment variables. |
| BAMBU_READ_ONLY | No | Set to 1 to register only read-only tools, disabling pause/cancel/heat/G-code and other control tools. Default: 0 |
| BAMBU_MQTT_PORT | No | MQTT port used to connect to the printer. Useful when pointing the server at the simulator with a non-default SIM_PORT. Default: 8883 |
| BAMBU_CONFIG_DIR | No | Directory where the saved .env credentials and maintenance ledger are stored. Defaults to the platform-specific user config directory. |
| MAINTENANCE_LEDGER_PATH | No | Path to the maintenance ledger JSON file. Defaults to maintenance.json inside the config directory. |