prusactl
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@prusactlHow's the print going? Show me the camera."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
prusactl mcp gives an agent such as Claude hands on your printer. It can:
Watch: check state, temperatures, job progress, and (with Connect) the camera.
Print: upload files, start them, pause, resume, stop, and queue.
Control: heat, home, move, load and unload filament, and level the bed.
Answer the printer: press the buttons on dialogs shown on its screen, such as runout or errors. Needs Connect.
Run G-code: any G-code, over the direct connection.
It is one Go binary with no browser involved. Setup is two terminal prompts.
Things you can ask
How's the print going? Show me the camera.
~/Downloads/bracket.bgcode.Preheat for PETG.
Object 3 is spaghetti. Cancel just that one.
The printer is showing a dialog. What does it say?
What did I print this week, and how many failed?
Related MCP server: repetier-mcp
Install
Homebrew (macOS and Linux):
brew install trevin-lee/tap/prusactlTab completion for bash, zsh, and fish comes with it. Update with
brew upgrade prusactl; remove with brew uninstall prusactl.
A downloaded binary: get the archive for your system from
Releases: macOS (universal),
Linux (x86-64, ARM64, ARMv7 such as a Raspberry Pi), or Windows (x86-64, ARM64).
checksums.txt lists their SHA-256 sums.
tar -xzf prusactl_*_linux_arm64.tar.gz # macOS and Linux: unpack the one you downloaded
sudo install prusactl /usr/local/bin/ # or any other folder on your PATHOn Windows, unzip it and put prusactl.exe in a folder on your PATH. The
binaries aren't code-signed: if macOS won't open it because it can't verify the
developer, run xattr -d com.apple.quarantine /usr/local/bin/prusactl. To
update, replace the file with a newer release. prusactl help completion
shows how to add Tab completion.
Go:
go install github.com/trevin-lee/prusactl/cmd/prusactl@latestThis puts it in $(go env GOPATH)/bin, which needs to be on your PATH. It
needs Go 1.26.6 or newer; recent Go versions fetch that on their own.
Check it worked with prusactl --version.
Quick start
prusactl setup 192.168.1.50 # the printer's address; asks for its PrusaLink password
prusactl status
prusactl login # optional: Prusa Connect, for remote access, camera, dialogsThe PrusaLink password is on the printer under Settings → Network → PrusaLink. PrusaLink is on by default; if someone turned it off, turn it back on there.
Connect an AI agent
Claude Code:
claude mcp add --scope user prusa -- "$(command -v prusactl)" mcp$(command -v prusactl) saves the full path, so it works even when the app isn't
started from a terminal that has your PATH.
Any other MCP client: add prusactl as a stdio server, using the path that
command -v prusactl prints (where prusactl on Windows):
{
"mcpServers": {
"prusa": { "command": "/opt/homebrew/bin/prusactl", "args": ["mcp"] }
}
}The MCP bundle: each release includes prusactl.mcpb, which carries its own
copy of prusactl for macOS, Linux x86-64, and Windows x86-64. Open it in an app
that installs MCPB extensions, such as Claude Desktop (double-click the file),
and enter the printer's address and PrusaLink password when asked. The bundle
covers the direct route; Prusa Connect sign-in still needs prusactl login from
an installed copy.
prusactl is also listed in the MCP Registry
as io.github.trevin-lee/prusactl, for clients that browse it.
How it works
flowchart LR
agent["AI agent<br/>(Claude Code, …)"] -- "MCP over stdio" --> px["prusactl"]
you["You, in a terminal"] --> px
px -- "local network<br/>PrusaLink API" --> printer["Your printer"]
px -. "internet, optional" .-> connect["Prusa Connect"]
connect <-.-> printer
px --- keychain[("OS keychain")]prusactl reaches the printer two ways, and each tool picks one:
Direct (PrusaLink) | Prusa Connect | |
Set up with |
|
|
Reaches the printer | On your network | From anywhere |
Status, files, upload, print, pause/resume/stop | ✅ | ✅ |
Heat, move, filament, leveling | ✅ via | ✅ via firmware commands |
Any G-code | ✅ | ❌ |
Camera, on-screen dialogs, queue, history, events | ❌ | ✅ |
The direct route is used whenever the printer answers. Otherwise, or for Connect-only features, the tool goes through Connect. Every result says which route it used.
Signing in to Prusa Connect
prusactl login asks for your Prusa Account email and password, plus a 2FA
code if your account has one. It fills in Prusa's own login page over HTTPS the
same way a browser would. It then trades the resulting code for tokens, using
the OAuth + PKCE flow of the Connect web app.
Your password is sent only to account.prusa3d.com and is never stored.
Where tokens are kept: the OS keychain (macOS Keychain, Secret Service, or Windows Credential Manager), under the service
prusactl. A machine without one, such as a headless Raspberry Pi, getssecrets.jsonin prusactl's config directory instead, readable only by you;PRUSACTL_KEYRING=fileforces that.Staying signed in: tokens refresh on their own. Prusa rotates refresh tokens, so refreshes are coordinated between processes. Several agents can share one session without signing each other out.
Google or Apple sign-in accounts need a Prusa Account password set before this works.
The printer's PrusaLink password is kept in the same keychain.
MCP tools
Tool | Route | What it does |
| both | How the printer can be reached right now, and what to set up |
| both | State, temperatures, job progress, and (via Connect) any dialog on screen |
| both | Browse or clean up the printer's storage |
| direct | Copy a file from the printer to this computer, e.g. to check the slicer settings a print used |
| both | Send a local |
| both | Print a file already on the printer |
| both | Pause, resume, continue, or stop |
| both | File transfers in progress |
| direct | Run G-code, such as heating, homing, moving, or filament changes, while the printer is idle |
| Connect | Latest camera image, with how old it is |
| Connect | Press a button on the printer's screen |
| Connect | Every firmware command Connect exposes, with arguments and allowed states |
| Connect | The print queue |
| Connect | Print history, and the objects in a job that can be cancelled |
| Connect | Telemetry history and the event log |
| Connect | Connect cloud storage |
| both | Any other endpoint: |
Every printer argument accepts a name, serial number, or Connect UUID. With one
printer you can leave it out. via: "direct" or via: "connect" forces a route.
CLI
prusactl setup [ADDRESS] connect directly to the printer on your network
prusactl login optional: sign in to Prusa Connect
prusactl logout forget the Prusa Connect session
prusactl status printer state and how it is reachable
prusactl mcp run the MCP server on stdio
prusactl download PATH [DEST] copy a file from the printer to this computer
prusactl api [METHOD] PATH [JSON] /api/... to the printer, /app/... to Prusa Connect
prusactl completion bash|zsh|fish print a shell completion script
prusactl help [COMMAND] the command list, or one command's details
prusactl --versionprusactl help <command> (or <command> --help) explains a command and its
flags, and flags work before or after the arguments. Tab completion covers
commands, flags, and their values: Homebrew installs it for bash, zsh, and fish,
and prusactl help completion shows how to add it otherwise.
prusactl setup --forget removes the saved printer. --api-key uses a PrusaLink
API key instead of the password, and --password-stdin reads the secret from a
pipe.
prusactl api masks API keys and tokens in responses (Connect's printer record
carries the PrusaLink and Connect keys), so its output is safe to paste or hand
to an agent. --raw shows them.
Limits
It has no hands. It can't clear the build plate, swap a spool, or fix a clog. The tool descriptions tell the agent to check the printer (and the camera, if any) before starting a print or moving anything. Tools that start a job refuse a busy printer, and after a finished or stopped print they also need
plate_clear: true, since the last part may still be on the plate.run_gcoderuns as a tiny print job. So it only works while the printer is idle, and it shows up in the printer's history.Connect's API is unofficial. Prusa doesn't publish it; prusactl uses the same endpoints as connect.prusa3d.com, so a change on Prusa's side can break the Connect route. The direct route uses Prusa's documented PrusaLink API.
Configuration
Variable | Purpose |
| Override the saved printer address, username, or |
| Supply the printer secret instead of the keychain |
| Keep credentials in |
| Alternate config file (default: |
| Connect and Prusa Account origins |
| The OAuth client (default: the Connect web app's) |
Development
go test ./...
go vet ./...Releases are cut by pushing a vX.Y.Z tag. CI builds the binaries, updates the
Homebrew tap, attaches the MCP bundle, and publishes to the MCP Registry. See
CHANGELOG.md.
License
MIT.
prusactl is an independent project. It is not affiliated with or endorsed by Prusa Research. Prusa and Prusa Connect are trademarks of Prusa Research a.s.
This server cannot be deployed
Maintenance
Related MCP Connectors
- mcp-serverOAuthcom.make
Give your AI agents the tools to build, manage, and run automation workflows.
Connect AI agents to Process Street workflows, tasks, runs, data sets, and operational records.
Connect, monitor, and control AI agents — tasks, approvals, schedules, and governance.
Connect AI assistants to GitHub - manage repos, issues, PRs, and workflows through natural language.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to interact with Bambuddy's 3D printer management API, including printer status, print queue, filament spools, and camera snapshots.5GPL 3.0
- AlicenseNot gradedqualityDmaintenanceEnables AI to monitor, control, and diagnose 3D printers via Repetier-Host/Repetier-Server, supporting temperature readings, job management, and intelligent error diagnosis.MIT
- AlicenseNot gradedqualityAmaintenanceEnables AI agents to submit PDFs or JSON-rendered templates to local printers, check printer status, and manage print jobs through MCP tools.214 npmMIT
- AlicenseBqualityBmaintenanceConnects AI agents and LLM clients to a 3D printing studio to manage orders, printer fleets, slicing and quoting, shipping waybills, customer conversations, and analytics.357 npmMIT