Bambu MCPのロゴ

Bambu MCP

コミュニティ
griches

MCP server for controlling Bambu Lab 3D printers — multi-printer fleet management, print control, file ops, AMS, camera, and more

公開者griches
リポジトリbambu-mcp
言語TypeScript
フォーク
17
スター
57
利用可能なツール
0
通信方式stdio
カテゴリ
リンク
  • ツールをAIワークフローに接続

    Bambu MCPは、対応するAIクライアントやAIエージェントから利用できるMCP機能を提供します。

  • 0個の利用可能なツール

    呼び出し可能なアクションを以下で確認できます。サーバーから提供されている場合は、名前や説明も表示されます。

  • コピーして使える設定

    セットアップ用の設定例を使って、お好みのMCPクライアントにこのサーバーを設定できます。

  • オープンソースの注目度

    リンク先のリポジトリには57件のスターと17件のフォークがあります。

Bambu MCP

A Model Context Protocol (MCP) server for controlling Bambu Lab 3D printers. Manage one printer or an entire fleet from any MCP-compatible AI assistant.

Features

  • Multi-printer fleet management — target a specific printer, all printers, or auto-select when only one is configured
  • Full print control — start, pause, resume, stop prints and skip objects mid-print. Auto-detects the correct plate in multi-plate 3MF files
  • File management — list, upload, download, and delete files via FTP
  • Hardware control — lights, temperatures, speed profiles, nozzle configuration
  • AMS support — change filament trays, unload filament
  • Camera — enable/disable recording and timelapse
  • Raw G-code — send custom commands with safety limits
  • Persistent config — printer credentials saved to ~/.bambu-mcp/printers.json

Supported Printers

Tested with:

  • Bambu Lab P1S
  • Bambu Lab H2D
  • Bambu Lab A1 Mini

Should work with any Bambu Lab printer that supports MQTT over LAN (X1C, X1, P1P, A1, etc.).

Printer Setup

Before using this MCP server, each printer must be configured for local access:

  1. Enable LAN Only Mode — On the printer's touchscreen, go to Settings > Network and switch to LAN Only Mode. This is required for local MQTT commands (including starting prints) to work. Cloud mode blocks local print commands.

  2. Enable Developer Mode — On the printer's touchscreen, go to Settings > Network > LAN Only Mode and enable Developer Mode. This allows third-party tools to send commands over the local network.

  3. Note the access code — After enabling LAN Only / Developer Mode, a new Access Code will be shown on the printer screen. You'll need this to connect.

Note: Enabling LAN Only Mode means you lose cloud features (remote monitoring via Bambu Handy app, cloud printing). All control must be done locally.

System Requirements

  • Node.js 18+
  • Bambu Lab printer(s) on the same local network
  • Printer in LAN Only Mode with Developer Mode enabled
  • Printer access code and serial number (found in printer Settings > WLAN / Device)

Installation

Quick Start with npx

bash
npx @griches/bambu-mcp

Claude Code

bash
claude mcp add bambu -- npx @griches/bambu-mcp

Claude Desktop

Add to your claude_desktop_config.json:

json
{
  "mcpServers": {
    "bambu": {
      "command": "npx",
      "args": ["@griches/bambu-mcp"]
    }
  }
}

Build from Source

bash
git clone https://github.com/griches/bambu-mcp.git
cd bambu-mcp
npm install
npm run build

Then configure with the absolute path:

json
{
  "mcpServers": {
    "bambu": {
      "command": "node",
      "args": ["/absolute/path/to/bambu-mcp/dist/index.js"]
    }
  }
}

Adding Printers

Once the server is running, add printers using the add_printer tool. You'll need the following from each printer:

  • IP Address — found on the printer's touchscreen under Settings > WLAN, or in Bambu Studio's Device tab
  • Access Code — found on the touchscreen under Settings > WLAN, or in Bambu Studio's Device tab
  • Serial Number — found on the touchscreen under Settings > Device, or in Bambu Studio's Device tab

Example (via an AI assistant):

"Add my P1S at 192.168.0.136 with access code 30430928 and serial 01P00A3B0900744"

Printer configurations are saved to ~/.bambu-mcp/printers.json and automatically reconnect on server restart.

Tools

Management

ToolDescription
add_printerAdd a printer to the fleet (IP, access code, serial number)
remove_printerRemove a printer and disconnect
reconnect_printerReconnect a printer (or all) after network changes
list_printersList all configured printers with connection status

Status

ToolDescription
get_statusGet printer status — print progress, temperatures, speed, AMS, lights
get_versionGet firmware and module version information

Print Control

ToolDescription
start_printStart printing a file from the printer's SD card. Auto-detects plate number for 3MF files
pause_printPause the current print
resume_printResume a paused print
stop_printCancel the current print
skip_objectsSkip specific objects in a multi-object print

Hardware

ToolDescription
set_speedSet print speed — silent, standard, sport, ludicrous, or custom %
set_lightControl chamber and work lights
set_temperatureSet nozzle or bed temperature (with safety limits)
set_nozzleSet nozzle diameter for profile selection

File Management

ToolDescription
list_filesList files on the printer's SD card
upload_fileUpload a .3mf or .gcode file to the printer
download_fileDownload a file from the printer
delete_fileDelete a file from the printer

Camera

ToolDescription
set_recordingEnable or disable camera recording
set_timelapseEnable or disable timelapse recording

AMS / Filament

ToolDescription
change_filamentChange to a different AMS filament tray
unload_filamentUnload filament from the extruder

G-code

ToolDescription
send_gcodeSend raw G-code commands (dangerous commands blocked for safety)

Security

ToolDescription
sign_messageSign a message with the Bambu Lab X.509 certificate

Printer Targeting

Every printer-targeting tool accepts an optional printer parameter:

  • Specific printer — use the printer ID (e.g. "p1s-alpha")
  • All printers — use "all" to run the command on every connected printer in parallel
  • Auto-select — omit the parameter and it will auto-select if only one printer is configured

Connection Details

This server communicates with printers using:

  • MQTT (port 8883, TLS) — for commands and status updates
  • FTP (port 990, implicit FTPS) — for file operations

Printers must be in LAN Only Mode with Developer Mode enabled. See Printer Setup above.

X.509 Certificate Authentication

Post-January 2025 firmware requires certificate-based authentication for local access. This server includes the publicly extracted X.509 certificate from the Bambu Connect desktop application by default.

To override with your own certificate, set these environment variables:

bash
export BAMBU_APP_PRIVATE_KEY="<REDACTED>"
export BAMBU_APP_CERTIFICATE="-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----"

License

MIT

インストール

TypingMind
{
  "mcpServers": {
    "bambu-mcp": {
      "command": "npx",
      "args": [
        "@griches/bambu-mcp"
      ]
    }
  }
}

Bambu MCPのMCPを複数のAIモデルで活用

TypingMindはワークスペース単位でMCPツールに接続します。そのため、一度Bambu MCPに接続すれば、モデルごとに個別に設定することなく、TypingMind内のさまざまなAIモデルで利用できます。 このMCPは、デバイス上のTypingMind MCPコネクタを通じてローカルで動作します。

ローカルコネクタのセットアップガイド

MCPサーバーが、お使いのコンピューター上のローカルファイル、アプリ、非公開リソースにアクセスする必要がある場合は、この方法を使います。

1

MCP設定を開く

TypingMindで「設定」、「詳細設定」、「MCP」の順に進み、「コネクタを設定」を選択してください。

  1. ブラウザでTypingMindを開いてください。
  2. 設定アイコンをクリックしてください。
  3. 「詳細設定」に移動してください。
  4. 「MCP」セクションを開いてください。
  5. 「コネクタを設定」をクリックし、「このデバイス」を選択してください。
「このデバイス」が選択されたTypingMindのMCPコネクタ設定画面
2

コネクタのコマンドを実行

「このデバイス」を選択し、TypingMindからコマンドをコピーしてターミナルで実行してください。MCPの使用中は、プロセスを実行したままにしてください。

  1. TypingMindに表示されるセットアップコマンドをコピーしてください。
  2. macOSではターミナルを、WindowsではWindows Terminalを開いてください。
  3. コマンドを貼り付けて実行してください。
  4. ターミナルで続行の確認を求められた場合は、パッケージのインストールを承認してください。
  5. MCPツールの使用中は、ターミナルウィンドウを開いたまま、プロセスの実行を継続してください。
3

Bambu MCPをサーバーとして追加

コネクタのステータスが「準備完了」になったら、「サーバーを編集」をクリックし、MCPサーバーの設定を貼り付けてください。

  1. コネクタのステータスが「準備完了」になるまでお待ちください。
  2. 「サーバーを編集」をクリックしてください。
  3. Bambu MCPのMCPサーバー設定を貼り付けてください。
  4. サーバー一覧を保存してください。
  5. コネクタが引き続き使用可能か確認するには、更新してください。
稼働中のサーバーと「サーバーを編集」ボタンが表示されたTypingMindのMCP設定画面
{
  "mcpServers": {
    "bambu-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@griches/bambu-mcp"
      ]
    }
  }
}
4

複数のモデルで同じ接続を使用

サーバー一覧を保存し、「プラグイン」を開いてBambu MCPのMCPツールを有効にしてください。その後、TypingMindで対応するAIモデルを選択し、チャットでツールを使うか、AIエージェントに割り当ててください。

  1. TypingMindの「プラグイン」ページを開いてください。
  2. Bambu MCPのMCPツールを有効にしてください。
  3. チャットを開始し、使用するAIモデルを選択してください。
  4. MCPツールをチャットで使うか、AIエージェントに割り当ててください。
  5. MCPに再接続することなく、必要に応じて別のAIモデルに切り替えられます。
選択したAIモデルと有効なMCPツールを使用したTypingMindのチャット
Bambu MCPを使ってこのタスクを手伝ってもらえますか?
Bambu MCP
はい、読みました。
Bambu MCPで調べた結果をお伝えします。

よくある質問

Bambu MCP MCPサーバーは何に使いますか?

Bambu MCPは、対応するAIクライアントを外部ツールやコンテキストに接続するためのMCPサーバーです。TypingMindでは、このMCPサーバーを一度追加するだけで、AIワークスペース内でそのツールを利用できるようになります。

TypingMindでBambu MCP MCPを複数のAIモデルと併用できますか?

はい。TypingMindはワークスペース単位でMCPツールに接続するため、モデルごとにMCPサーバーを設定する必要はありません。Claude、ChatGPT、Geminiや、TypingMindで設定したその他のAIモデルでBambu MCPを利用できます。

TypingMindでBambu MCP MCPを使うメリットは何ですか?

TypingMindは、複数のAIモデル、プロンプト、プラグイン、AIエージェント、APIキー、MCPツールを1つのワークスペースにまとめられる、LLMチャット向けの優れたフロントエンドです。Bambu MCPを接続すると、TypingMindでチャットのワークフローを整理しながら、お好みのモデルでそのMCPツールを利用できます。

Bambu MCP MCPをTypingMindに接続するにはどうすればよいですか?

Bambu MCPはTypingMindのローカルMCPコネクタ経由で動作します。MCPサーバーがコンピューター上のローカルファイル、デスクトップアプリ、コマンドラインツール、プライベートリソースにアクセスする必要がある場合に最適です。

TypingMindでBambu MCP MCPのどのようなツールを利用できますか?

Bambu MCPはMCP機能を提供しています。TypingMindのプラグインページで有効にすると、チャットで使用したり、AIエージェントに割り当てたりできます。

Bambu MCP MCPを使うには、APIキーをTypingMindと共有する必要がありますか?

いいえ。TypingMindはローカルファーストの設計で、モデルプロバイダー、APIキー、プロンプト、MCP設定をご自身で管理できます。Bambu MCPで認証が必要な場合は、接続の作成時に、そのMCPサーバーに必要なヘッダー、OAuth設定、またはローカル設定を追加してください。

関連するMCPサーバー

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇