formlabs-local-mcp
Click on "Install 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., "@formlabs-local-mcpImport model.stl, auto-orient, and estimate print time."
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.
formlabs-local-mcp
A Model Context Protocol server that exposes the Formlabs Local API to any MCP-compatible AI tool — Claude Code, Claude Desktop, Cursor, VS Code, and others.
Drive your Formlabs printers from a chat prompt:
"Import
~/parts/bracket.stl, auto-orient it, generate supports, estimate the print time, then send it to my Form 4."
The MCP server wraps PreFormServer's HTTP API as a set of typed tools the model can call directly.
Status
Early alpha. The tool surface is complete for the common SLA/SLS preparation workflow, but has only been tested against the API spec — not yet validated against real hardware. PRs and bug reports welcome.
Requirements
Python ≥ 3.10
The PreFormServer executable, downloaded from the Formlabs API downloads page. PreFormServer is a headless build of PreForm; it must be running for the MCP server to do anything.
Install
The easiest way is uvx, which downloads the package on demand into an
isolated environment:
uvx formlabs-local-mcpOr install into your own environment:
pip install formlabs-local-mcpConfigure your MCP client
Claude Code
Add the server to your .claude/mcp.json (project) or ~/.claude/mcp.json (global):
{
"mcpServers": {
"formlabs": {
"command": "uvx",
"args": ["formlabs-local-mcp"],
"env": {
"PREFORM_SERVER_PATH": "/Applications/PreFormServer.app/Contents/MacOS/PreFormServer"
}
}
}
}Claude Desktop
Add the same block to ~/Library/Application Support/Claude/claude_desktop_config.json
(macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows).
PreFormServer lifecycle
The MCP server has two modes for talking to PreFormServer:
Spawn mode (recommended). Set
PREFORM_SERVER_PATHto the absolute path of the PreFormServer executable. The MCP server starts it on launch, waits forREADY FOR INPUTon stdout, and shuts it down on exit.External mode. If
PREFORM_SERVER_PATHis unset, the MCP server assumes PreFormServer is already running onlocalhost:44388(or whateverPREFORM_SERVER_PORT/PREFORM_SERVER_URLyou set).
Environment variables
Variable | Default | Purpose |
| (unset) | Absolute path to the PreFormServer executable. If set, the MCP server spawns and supervises it. |
|
| Port the PreFormServer listens on. |
|
| Override the base URL entirely (e.g. for a PreFormServer on another machine). |
|
| Set to |
|
| Seconds between operation status polls. |
|
| Maximum seconds to wait for any async operation. |
Tools
The MCP server exposes ~25 tools across these categories:
Category | Tools |
Health |
|
Scene |
|
Models |
|
Auto-prep |
|
Modify |
|
Validate |
|
Export |
|
Devices |
|
| |
Materials |
|
Auth |
|
File path parameters must always be absolute — PreFormServer rejects relative paths, environment variables, and URLs.
Companion skills
For Claude Code, the formlabs-claude-skills
repo ships opinionated workflow skills (e.g. /formlabs-print) that orchestrate
these tools end to end.
Development
git clone https://github.com/mkebiclioglu/formlabs-local-mcp
cd formlabs-local-mcp
python -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
pytestTo run the server against a local PreFormServer:
PREFORM_SERVER_PATH=/path/to/PreFormServer formlabs-local-mcpLicense
MIT. The Formlabs API itself is governed by the Formlabs API License Agreement; this MCP server only makes HTTP calls to it and does not redistribute any Formlabs code.
Disclaimer
This is an independent integration. It is not affiliated with, endorsed by, or supported by Formlabs Inc.
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/mkebiclioglu/formlabs-local-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server