armctl
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., "@armctl check the stand status and then move the drum to 20 degrees"
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.
armctl: Claude-controlled capstan joints
MCP server that lets Claude (in Claude Code) drive the Group 26K66 capstan joints through ODrive S1 controllers over USB. It is written for the single-drum test stand now and the 3-joint v8 arm (J1/J2/J3 + parallelogram elbow limit) later.
Author: Zin Lin Htet. MIT license.
You ──chat──> Claude Code ──tool call──> armctl-mcp (this repo, on your laptop) ──USB──> ODrive S1 ──> motorFiles
File | What it is |
| Your settings: joints, ODrive serials, limits, speeds, gains. Edit this, not the code. |
| MCP tools Claude can call |
| Degrees ↔ motor turns, limits, move-and-wait, jam detection |
|
|
| Reads |
|
|
| Simulator tests: full MCP session plus jam and stop handling |
| Created automatically: every move with its error and peak current (use it for reports) |
Related MCP server: UGS-MCP
Tools Claude gets
Tool | Action |
| Lists the configured joints and their limits (no hardware access) |
| Reads on/off state, angle, current, Vbus and errors; nothing moves |
| Sets the reference while the motor is off and the joint is held on its stop |
| Motor on (holds its position) / motor off |
| Moves to an absolute angle and waits; returns the result, error and peak current |
| Relative move, at most 30° per call |
| Moves to |
| Turns every motor off immediately and aborts any move in progress |
| Clears the ODrive error flags |
| Recent moves plus mean and maximum error |
Built-in safety:
No motion until the joint has been zeroed and enabled.
Moves outside the limits are refused.
The J3−J2 elbow coupling limit is enforced.
A jam (|Iq| above 3.5 A for 0.3 s) turns the motor off.
Every move has a timeout.
The reference is cleared if the USB link drops.
Setup (Windows, VS Code terminal)
Requires Python 3.11 or newer (py --version).
cd $HOME\Documents\capstan-arm-mcp
py -3.12 -m venv .venv
.\.venv\Scripts\pip install -e .1. Test with no hardware:
.\.venv\Scripts\python tests\test_safety.py
.\.venv\Scripts\python tests\test_sim.pyBoth should end with ALL PASSED.
2. Register with Claude Code. Add a simulator copy first so you can practise:
claude mcp add armctl-sim -- "$PWD\.venv\Scripts\armctl-mcp.exe" --config "$PWD\arm.toml" --sim
claude mcp add armctl -- "$PWD\.venv\Scripts\armctl-mcp.exe" --config "$PWD\arm.toml"
claude mcp listIn Claude Code, /mcp shows both servers. Keep only one of them enabled at a time.
3. Check the ODrive. With 24 V on, USB plugged in and the Web GUI closed:
.\.venv\Scripts\armctl-checkIt prints the serial, firmware, Vbus and errors. If no ODrive is found, install the WinUSB driver for it with Zadig, then try again.
With more than one board, plug them in one at a time and copy each serial into arm.toml.
First run on the stand
Say to Claude Code:
"Status of the stand."
Motor off; hold the drum on the bottom stop. "It's on the bottom stop, zero it."
"Enable and move to 20°."
"Jog +1° five times, then show history."
"Park."
Rules:
Someone keeps a hand on the 24 V switch whenever the motor can move.
Zero again after every ODrive power-up.
Only one program can use the ODrive's USB at a time, so close the Web GUI and
odrivetoolfirst.
Moving to the v8 arm
In arm.toml, uncomment J1/J2/J3 and the [[couplings]] block, fill in the serials, and measure the real stop_deg / limits.
The stand block can then be removed. No code changes are needed.
Tuning notes
direction: if "move to 20°" drives the drum down, motor off now, flip the sign and re-zero.speed_dps,accel_dps2: set in drum degrees. With 8:1 gearing, 45°/s is 1 motor turn/s.Gains and the current limit are written to the ODrive on every connect. They are never saved to its flash.
Available Tools
12 toolsclear_errorsA
Clear ODrive error flags. Only after the cause is understood. Returns fresh status.
Inputs: joint (required).
disableA
Turn the motor off (goes limp; a loaded joint may drop).
Inputs: joint. Returns: result
enableA
Turn the motor on (closed loop). It holds the current angle; nothing moves yet.
Inputs: joint (required).
historyB
Recent move results plus accuracy summary (mean / max absolute error of arrived moves).
Inputs: last.
homeA
Find the reference automatically: creep slowly (current-limited) into the reference stop, zero there, then enable and move to home_deg. MOVES the joint: get the user's go-ahead first. Works from any starting position; stop() aborts it.
Inputs: joint (required).
jogB
Move a joint by a relative amount (max 30 deg per call) from where it is holding.
Inputs: joint (required), delta_deg (required).
jointsA
List the configured joints with their limits, home angle and reference stop. Does not touch hardware.
Inputs: no named parameters. Returns: result
moveB
Move a joint to an absolute angle in degrees and wait until it arrives. Returns result ('arrived' or the reason it stopped), final angle, error and peak current.
Inputs: deg (required), joint (required).
parkA
Move joint(s) to their home angle, then turn the motor off. Use at the end of a session. With 'all', joints are parked in reverse config order (wrist side first).
Inputs: joint. Returns: result
statusB
Read joint state without moving: on/off, angle (deg), current (A), bus voltage, ODrive errors.
Inputs: joint. Returns: result
stopA
Emergency software stop: every motor off now, aborting any move in progress.
Inputs: no named parameters. Returns: result
zero_hereA
Set the angle reference. ONLY after the user confirms the motor is off and they are holding the joint on its reference hard stop. Needed after every ODrive power-up.
Inputs: joint (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 12 tools
Most tools have clearly distinct purposes, and descriptions explicitly separate motion commands (move=absolute, jog=relative, home=auto-referencing, park=go home then disable). Minor overlap remains between zero_here and home (both establish the angle reference) and between park and a move-to-home_deg, which an agent could conflate without reading carefully.
There is a coherent readable pattern: noun-style names for read-only queries (joints, status, history) and imperative verbs for actions (enable, disable, stop, move, jog, park, home). The only deviations are the two snake_case verb_noun names (zero_here, clear_errors) breaking an otherwise uniform single-token scheme.
Twelve tools is well within the sweet spot and each one maps to a distinct operation an agent actually needs (query, reference, energize, move, safety stop, error recovery, telemetry). No tool feels like filler.
The surface covers the full safe-motion lifecycle: inspect config/state, establish reference, enable, move, stop, park, clear faults, and review accuracy history. Gaps are minor — joints is read-only (no way to add or reconfigure a joint), and there is no way to adjust current limits or other motion parameters from the tool set.
Related MCP Connectors
Give Claude only the Google Drive files you choose. Every action logged.
WHOOP recovery, strain, sleep and workouts in Claude via official WHOOP OAuth. Free, open source.
Your StoryOS workspace (records, approvals and agents) for Claude, ChatGPT and any MCP client.
tri-train is a training platform for triathletes that syncs activities from Strava and Garmin and exposes them to Claude through a remote MCP server. Ask Claude how your last block went, why your run pace dropped, or whether you are fresh enough for Sunday's race, and it answers from your real data: activities with laps and grade-adjusted pace, weekly load and the performance management chart (CTL/ATL/TSB), sleep, HRV and resting heart rate, and your race calendar with predictions. Claude can also act: create and adjust planned workouts with structured intervals, push them to your Garmin watch, add races and write notes. Every change is journaled and can be undone. Read and write access are separate OAuth scopes, and the server enforces them on every call. Built and hosted in Switzerland by a triathlete; data stays on our own servers (Swiss revDSG / GDPR).
Related MCP Servers
- AlicenseBqualityDmaintenanceBridges Claude Code to CNCjs to enable remote control and monitoring of GRBL-based CNC machines. It provides a comprehensive toolset for managing G-code jobs, machine movement, and safety operations through natural language.302MIT
- AlicenseAqualityDmaintenanceMCP server for controlling CNC machines via Universal GCode Sender. Lets Claude (or any MCP-compatible AI assistant) connect to a CNC machine, inspect G-code, and issue motion commands — all through the UGS Pendant REST API.196MIT
- FlicenseNot gradedqualityDmaintenanceEnables natural language control of an esieabot robot (motors, servo, camera) through Claude Desktop or MCP Inspector.-

UsbServoControllerofficial
AlicenseBqualityBmaintenanceLet an AI agent drive up to 12 hobby servos on an open-hardware USB-C controller (Pololu Maestro compatible): moves, named poses, sequences, on-board scripts and rail current/voltage readout, with per-channel travel limits and overcurrent guardrails. Includes a --mock emulator, so it runs without the board.161MIT