odin-print-farm-mcp
Provides tools for interacting with an O.D.I.N. print-farm backend, enabling agents to read farm status and telemetry, manage printers, jobs, queues, alerts, spools, filaments, maintenance tasks, and orders, and perform scoped write operations such as queueing, approving, rejecting, or cancelling jobs and logging maintenance.
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.
odin-print-farm-mcp
Model Context Protocol server for O.D.I.N. — drive an actual print farm with AI agents, or run the bundled reference calculators standalone.
v2 (2026-04-15) splits the surface in two:
Live tools (22) — agent-driven farm operation. Require a running O.D.I.N. instance + a scoped token. Queue jobs, pause printers, manage inventory, clear alerts, log maintenance, read the dashboard.
Reference tools (4) — standalone calculators. No ODIN deployment required. Print-cost math, printer recommendations, farm capacity planning, software comparison.
Both surfaces ship in the same npm package; the live tools error at invocation if ODIN_BASE_URL and credentials aren't set, so the reference tools keep working for pre-sales and research use cases.
Quick Start
Standalone (reference tools only)
npx -y odin-print-farm-mcp@2Wire into Claude Desktop (claude_desktop_config.json):
{
"mcpServers": {
"odin-reference": {
"command": "npx",
"args": ["-y", "odin-print-farm-mcp@2"]
}
}
}Agents can now use reference.calculate_print_cost, reference.recommend_printer_for_farm, reference.estimate_farm_capacity, reference.compare_farm_software.
Live (connected to O.D.I.N.)
Mint an API token in O.D.I.N. (Settings → API Tokens → New Token) with scope
agent:readoragent:write.Export the env vars and wire the client:
{
"mcpServers": {
"odin": {
"command": "npx",
"args": ["-y", "odin-print-farm-mcp@2"],
"env": {
"ODIN_BASE_URL": "http://192.168.1.100:8000",
"ODIN_API_KEY": "odin_xxxxxxxxxxxxxxxxxxxx"
}
}
}
}All 26 tools are now available.
Related MCP server: @placraftic/mcp-server
Tools
Live reads (scope agent:read or higher)
Tool | Purpose |
| One-shot dashboard: printer counts by state, queue depth, unread alerts, active jobs. Call this first to orient. |
| Fleet list, optional status filter. |
| Printer record with persisted telemetry, filament slots and temperatures. |
| Filter by status (pending / printing / completed / failed / cancelled). |
| Full job record. |
| All pending and scheduled jobs in priority, queue-position and age order. |
| Filter by severity + read state; |
| Filter by filament type / availability. |
| Filament library. |
| Templates, or overdue per-printer task health with |
| Customer orders by status. |
Live writes (scope agent:write or admin)
Every write tool accepts optional dry_run and idempotency_key.
Tool | Purpose |
| Add a job from a model library ID. Accepts |
| Cancel a pending or scheduled job; this route does not accept a reason or stop a printing job. |
| Approve a submitted job. |
| Reject a job (reason required). |
| Pause the active print. |
| Resume a paused printer. |
| Alert housekeeping. |
| Bind spool → printer slot ( |
| Log grams used. |
| Log task completion. Requires |
Reference (no backend)
Tool | Purpose |
| Material + electricity + depreciation + failure-rate math. |
| Match printers to farm constraints. |
| Throughput forecasting. |
| Feature matrix vs OctoFarm / Mainsail / Duet / etc. |
Agent Primitives
The live surface inherits four retry-safety primitives from the O.D.I.N. v1.8.9 backend:
Idempotency-Key. Every write tool auto-generates a UUID key per call; pass a stable idempotency_key across retries to deduplicate. On replay, the response comes back with _idempotent_replay: true.
X-Dry-Run. Pass dry_run: true to any write tool. The backend returns {dry_run: true, would_execute: {...}} without committing. Per-route opt-in — individual routes land preview branches in subsequent releases.
Structured errors. Failures return an error: {code, detail, retriable} envelope. Stable codes agents can branch on:
Code | Meaning |
| Resource missing. |
| Token scope insufficient. Mint a broader token. |
| Role-based denial (role, not scope). |
| Usage quota hit. |
| Same key + different body. Use a fresh key. |
| Concurrent retry in flight. Retry shortly. |
| Role/scope changed since the original call. Mint a fresh key. |
| Original succeeded but couldn't be cached. Mint a fresh key. |
| Multipart or oversized body — use app-level dedup. |
| ODIN_ITAR_MODE=1 refused a public destination. |
|
|
| Input schema error. |
next_actions hints. Write responses include next_actions: [{tool, args?, reason?}] suggesting follow-up calls. Pure hint — no enforcement. Designed for 7B–32B local models.
ITAR / CMMC Deployment
O.D.I.N. ships ODIN_ITAR_MODE=1 for fail-closed air-gap deployments. Typical stack:
Ollama (Qwen2.5-32B or similar)
│
▼
MCP client (Claude Desktop / OpenClaw / etc.)
│ stdio
▼
odin-print-farm-mcp@2 ── ODIN_BASE_URL=http://localhost:8000
│ HTTP
▼
O.D.I.N. backend ── ODIN_ITAR_MODE=1
│ LAN
▼
Printers (LAN-only)Zero outbound packets. All tokens, prompts, and telemetry stay inside the compliance boundary. See the ITAR / CMMC mode docs.
Migration from v1
v2.0.1 renames the four v1 tools into a reference.* namespace:
v1 | v2 |
|
|
|
|
|
|
|
|
The behavior of each tool is unchanged — only the identifier. Pin odin-print-farm-mcp@1 if you need the un-namespaced IDs. Upgrade to @2 to access the 22 live tools plus the namespaced reference calculators.
Skill packages
The skills/ directory ships operator-ready prompt packs for Claude Code, OpenClaw, Cline, and other MCP clients. odin-farm/SKILL.md is the baseline "safe farm operator" rulebook — dry-run-first, branch on error codes, never batch cancellations. Drop it into ~/.claude/skills/ (Claude Code) or your client's skills directory, and a local 32B model will stop trying to cancel jobs without confirmation.
See skills/README.md for install + customization.
Development
git clone https://github.com/HughKantsime/odin-mcp
cd odin-mcp
npm install
npm run build
npm test # 22 integration tests against an in-process mock ODINTests use a node-native http mock server (test/mock_server.ts) — no external fixtures, no ODIN instance required, runs in ~1s.
Links
O.D.I.N. — the backend this talks to
License
Apache 2.0.
ODIN 2.0.13 authentication and permissions
Set ODIN_BEARER_TOKEN to an access JWT for Bearer authentication instead of
ODIN_API_KEY. When both are explicitly configured, both headers are sent;
ODIN rejects an invalid explicit API key at its perimeter even with a valid JWT.
The dry-run version probe uses the same credentials. No login, token renewal or
credential fallback is performed by this server.
Scoped user tokens require agent:read for reads or agent:write for writes
(and reads); admin scope is also accepted. The owning user's role and the
current Settings → Permissions action matrix still apply. JWT sessions bypass
token-scope checks but retain role/action checks. Legacy global API keys resolve
to ODIN's backend admin; they are not scoped user tokens. License and Education
workflow restrictions remain server-enforced; scopes do not override them.
Printer state and spool material/availability filters run locally because ODIN
does not accept those query parameters. Orders use status_filter; job states
include scheduled and rejected, and order states include partial and
fulfilled. Queue and summary calls page through all job/alert results. These
multiple reads are not an atomic snapshot of a changing farm.
See the compatibility audit for every tool's route, permissions, fixes and follow-up capabilities.
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
3D print farm management for AI. Monitor, queue, and control prints on your SimplyPrint account.
Connect your AI to your own devices, 3D printers, factory tools and a shared agent task pool.
Parametric 3D CAD for AI agents: build print-ready parts, check them, export STL, 3MF or STEP.
Print-on-demand catalog, listings, and fulfillment for AI agents.
Related MCP Servers
- AlicenseAqualityFmaintenanceEnables AI assistants to manage 3D printing inventory, filament spools, printers, projects, and print trackers through a self-hosted Print Vault instance.40AGPL 3.0
- 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.3512 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to manage multiple 3D printers via MCP, including monitoring temperatures and progress, uploading and slicing models, controlling prints, and viewing cameras.8 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables AI agents to monitor and control Prusa 3D printers over PrusaLink or Prusa Connect, including status and camera checks, file upload and print control, G-code execution, queue and history access, and responding to printer dialogs.1MIT