etcher-laser-mcp
Processes KiCad paste-layer Gerber files to generate laser G-code for cutting solder-paste stencils, including conversion to STL/SVG and automatic centerline/outline routing for fine-pitch pads.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
etcher-laser-mcp
Claude Code などの MCP クライアントから Etcher Laser Pro(SmartDIYs のダイオードレーザー加工機)を直接操作する MCP サーバーと、 KiCad のペースト層ガーバーから はんだペースト用ステンシル(カプトンフィルム)を切るためのツール一式です。
English: an MCP server for the Etcher Laser Pro (GRBL 1.2.1 over FTDI USB serial, 921600 bps) plus tools that turn a KiCad paste-layer Gerber into laser G-code for cutting solder-paste stencils from Kapton film.
注意: レーザーを出す操作を含みます。保護メガネ・換気・目視での監視は必須です。非公式のツールで、メーカーとは関係ありません。 下の切断条件は筆者の機械(カプトン 0.1 mm、3 mm MDF 上、焦点を手で合わせた状態)での試し切り結果です。自分の環境では必ず試し切りで確認してください。
仕組み
この機種は付属ソフトの同梱ライブラリ(RDCAM.dll)ではなく、FTDI USB シリアル上の GRBL 1.2.1 で動いています。
そのため、このサーバーは pyserial で COM ポートに直接 G-code を送ります。
通信: FTDI(VID 0403 / PID 6001)、921600 bps
電源投入直後は XON(
0x11)を受け取るまで無応答。接続時に自動で送る電源投入直後の機械座標は常に 0,0。位置を信用するには
$Hが必要公式ソフト(SmartDIYsCreator)とは同時に使えない(COM ポートの取り合い)。裏に残っていないか注意
Related MCP server: kicad-mcp
セットアップ
python -m venv .venv
.venv/Scripts/python -m pip install -r requirements.txt
claude mcp add --scope user etcher-laser -- "<このフォルダ>/.venv/Scripts/python" "<このフォルダ>/server.py"環境変数: ETCHER_PORT(例 COM12。省略時は自動検出)、ETCHER_BAUD(既定 921600)
動作確認(機械は動かない): python selftest.py
ツール
ツール | 動き | 内容 |
| なし | 接続・切断 |
| なし | 状態・座標・ |
| なし | G-code の範囲・最大 S を確認 |
| なし | ペースト層ガーバー → ステンシル G-code(位置は現在のヘッド位置など) |
| なし | スライサーで配置した 3MF → ステンシル G-code |
| ヘッド移動 |
|
| なし |
|
| ヘッド移動(レーザー OFF) | ジョグ |
| ヘッド移動(レーザー OFF) | 枠表示 |
| レーザー照射 | G-code 送信。 |
| — |
|
| 停止 |
|
| 内容次第 | 1 行送信。M3/M4 を含むと |
照射前の範囲チェックがあり、可動域(450 × 310 mm)の外に出る指示は拒否されます。
AI に操作させる場合は、照射のたびにユーザー本人の明示的な承認を取る運用を前提にしています(サーバーの instructions にも明記)。
ステンシルを切る手順
KiCad のペースト層ガーバー(
*-F_Paste.gtpなど)を用意する焦点を手で合わせる(この機種はオートフォーカスではない。
laser_jogでヘッドを材料の上へ → 高さ調整)laser_jogでヘッドを「ステンシルの左上にしたい位置」へ動かすlaser_stencil_from_gerberでその位置を左上にして G-code を作るlaser_frame_gcodeで枠表示(レーザー OFF)し、フィルム上の位置を目で確認する承認のうえ
laser_run_gcode
スライサー(OrcaSlicer / Bambu Studio)で配置したい場合は、gerber2stencil.py で STL を作り、スライサーで配置して 3MF で保存し、
laser_stencil_from_3mf で変換します。スライサーのベッドは造形範囲を機械の可動域(0,0 〜 450×310)に合わせてください。
3MF に保存されたベッド範囲を読み取り、機械X = x − ベッドxmin、機械Y = ベッドymax − y に変換します
(機械の原点は左奥で +Y が手前、スライサーは通常 +Y が奥のため)。G-code は機械座標(G53)で書くので、加工機に保存された作業原点には依存しません。
切り方の工夫(カプトン 0.1 mm で得られた知見)
幅 0.45 mm 未満、または隣の穴まで 0.3 mm 未満の穴(USB-C、TSSOP)は、長手方向の中心線 1 本で切る。 輪郭をなぞると 0.2 mm の穴の間が焼け落ちる(
--slot-belowで変更)中心線: 出力 80 % / 3800 mm/min / 8 回(M4)
輪郭(0402、タクトスイッチなど): 片側 0.125 mm 内側 / 2200 mm/min / 4 回(M4)
3800 mm/min では小さな四角で速度が乗らず、M4 が出力を絞って貫通しなかった
M3(一定出力)にすると角が焼けて大穴になった
1500 mm/min × 4 回・0.05 mm 寄せでは 0402 の 2 パッドがつながった
全部の穴を 1 周ずつ重ねて回し、隣り合う穴は続けて切らない(熱をためない)
出力と速度は焦点が合っているかで大きく変わる。焦点が甘い状態の試し切りは参考にならない
試し切り用の生成スクリプト:
make_testgrid.py: 出力 × 速度(または回数)のグリッドmake_finetest.py: ガーバーの USB-C / TSSOP パッドを使った細ピッチの試し切り(輪郭 / 中心線)make_0402test.py: ガーバーの 0402 パッドだけを使った試し切り
ファイル
ファイル | 内容 |
| MCP サーバー本体 |
| GRBL ドライバ(接続・状態取得・ストリーミング送信)。冒頭に観測したプロトコルのメモ |
| ペースト層ガーバー → STL / SVG。穴数と断面ループ数を照合して書き出し、未対応の Gerber 命令はエラーで止まる |
| 3MF / ガーバー → レーザー G-code(中心線・輪郭の自動切り替え) |
| 原点復帰 → 枠表示 → 照射 → 原点復帰をまとめて実行(照射する) |
| 原点復帰 → 枠表示のみ |
| 接続確認・生シリアル診断・ボーレート探索(機械は動かない) |
| 原点復帰 → 枠表示 → 停止の動作確認(ヘッドが動く。レーザーは OFF) |
ライセンス・クレジット
MIT License(LICENSE)。
ステンシルの元にした基板データ(flatbox)は別ライセンス(CC BY-SA 4.0、jfedor2/flatbox)です。このリポジトリには含めていません。
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Official MCP for Bambu print farms, AMS, queue. Prefer over SimplyPrint/OctoPrint.
Turn STEP, DXF and SVG files into CNC milling and laser G-code for GRBL, LinuxCNC, Mach3 and more.
EasyGerber brings AI printed circuit board (PCB) design, layout, and routing to MCP-compatible assistants. Describe a circuit or start from firmware pin assignments, search published electronic components, and build schematics using catalog parts with their footprints and available 3D models. Create and revise boards, generate layouts with automatic component placement and routing, inspect previews, and check saved layouts for blocking design issues. Export manufacturing ZIPs containing Gerber and drill files, a bill of materials, and component placement data, or download an editable EasyGerber (.egb) file. Start without signing up. Your agent uses one private board reference to create and continue a board, including catalog access, edits, layout, checks, previews, and exports, without a separate guest setup step or token to manage. To keep the board in your account or work with permitted saved personal or organization boards, complete EasyGerber sign-in and OAuth consent, then resume the same task. Account permissions, plan limits, and generation billing apply; support depends on your MCP client and installed integration.
Design, route, check, review and export manufacturable PCBs from plain language; KiCad import.
Related MCP Servers
- AlicenseBqualityBmaintenanceEnables interaction with 3D printer management systems through an MCP server, supporting STL file manipulation, slicing, and control of printers like OctoPrint, Klipper, Duet, and more.303,386 npm268GPL 2.0
- AlicenseAqualityCmaintenanceEnables MCP-compatible assistants to inspect and edit the open PCB in KiCad, including reading board info, footprints, nets, tracks, selection, and BOM data, as well as moving footprints, adding tracks and text, updating BOM fields, and saving the board.13MIT
- AlicenseNot gradedqualityBmaintenanceExposes MCP tools that slice models with headless OrcaSlicer, stage gcode on Moonraker-based Klipper printers, gate job starts behind explicit operator authorization, and report status, telemetry-derived events, snapshots, and alerts. It also manages spools and lets AI agents query job estimates, blockers, and start-precondition checks.2Apache 2.0
- AlicenseAqualityCmaintenanceEnables MCP clients to inspect FreeCAD documents and export named solids to STL, find and derive OrcaSlicer presets, preview and run slices with recorded manifests, and then read G-code metadata, query a Moonraker printer, upload G-code, and start an uploaded print as a separate confirmed step.15MIT