servomotor-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., "@servomotor-mcpHome all motors"
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.
servomotor-mcp
Drive open-source Gearotons M17 servomotors from natural language.
An MCP server that exposes the M17 — a NEMA-17 integrated, closed-loop, RS-485 servomotor — as a small set of safe, high-level tools. Connect it to Claude Desktop, Claude Code, or any MCP client and control real motors by just asking:
"Home everything, then draw a square with the X and Y axes."
It ships with a mock backend, so you can try the whole thing with no hardware.
The first servomotor with an official MCP server. Open hardware, open firmware, open software — and now an open, AI-native control interface.
Quickstart (no hardware, ~2 minutes)
# Run the server directly with uv (recommended):
uvx --from servomotor-mcp servomotor-mcp
# or install it:
pip install servomotor-mcp
servomotor-mcpThen add it to Claude Desktop — copy the block from
examples/claude_desktop_config.json into your
claude_desktop_config.json, restart Claude Desktop, and ask:
"What motors do you have connected?" See examples/demo_prompts.md
for the full scripted demo.
Related MCP server: robot-mcp-server
Drive real motors
Plug an M17 (or a daisy-chain of them) into a USB↔RS-485 adapter and switch the backend:
pip install 'servomotor-mcp[serial]' # pulls in the Gearotons servomotor library
GEAROTONS_MOTOR_BACKEND=serial \
GEAROTONS_SERIAL_PORT=/dev/ttyUSB0 \
servomotor-mcpTools
Tool | What it does |
| Discover motors on the bus + positions (call first). |
| Move a motor to an absolute angle (closed-loop). |
| Nudge a motor by a delta. |
| Smooth accel/decel move (best for arms/plotters). |
| Home one or all motors. |
| Position / moving / voltage / errors. |
| Halt one or all motors. |
| Recover a motor from a latched fault (firmware system reset, ~2 s). |
| Run a choreographed sequence ("draw a square"). |
Safety rails (in the server, not the model)
The LLM can hallucinate a tool call; these make that safe — they run on every request:
Alias allow-list — only configured motors can be driven.
Position limits — absolute/relative targets are clamped to a per-motor software range, so a bad command can't drive an axis into a hard stop.
Speed clamp — requested speeds are capped.
Clamps are reported back to the model (in safety_notes) rather than silently applied,
so it can see what actually happened and adjust. Configure via env:
GEAROTONS_MOTOR_ALIASES="x,y,z"
GEAROTONS_LIMITS='{"x":{"min_deg":-180,"max_deg":180,"max_speed":300},"z":{"min_deg":0,"max_deg":90}}'How it works
natural language → Claude → MCP tool calls → this server → RS-485 → M17 motorsThe server is a thin, safety-checked wrapper over the Gearotons servomotor Python
library (high-level, unit-aware commands — no DIR/STEP timing). The same intents run
against the mock backend for development and CI.
Develop / test
pip install -e '.[dev]'
pytest # safety + mock-bus tests, no hardware needed
GEAROTONS_MOCK_SIM_SECONDS=0.4 servomotor-mcp # lifelike timing for demosStatus
✅ MCP server, full tool surface, safety rails, mock backend — done; 16 unit tests pass.
✅
SerialBusreal-hardware backend — verified against a physical M17 (fw 0.15.0.0): discovery, telemetry, closed-loop moves at 0.000° repeatability, and a live safety clamp (a 200° command on a ±90° motor stopped at 90°). Seehardware_tests/.🔜 Live FastMCP-over-stdio run with Claude Desktop needs a Python ≥3.10 host (tool logic already hardware-verified); plus the physical demo build + video. See demo spec.
License
MIT. Hardware, firmware, and software for the M17 are open-source — see github.com/tomrodinger/servomotor.
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/Gearotons/servomotor-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server