otii-mcp
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., "@otii-mcp power the board at 3.3 V with a 100 mA limit, then measure current for 10 seconds"
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.
otii-mcp
An unofficial MCP server for the Otii Ace power analyzer. It switches the main output on and off, sets the current limit, and measures power at 50 kHz. It talks to the Ace directly over USB, so it works without the Otii software running.
Unofficial. This project is not affiliated with, endorsed by or supported by Qoitech AB. "Otii" and "Qoitech" are trademarks of Qoitech AB and are used here only to say which hardware this works with. For supported automation, use Qoitech's own Otii software and toolboxes.
Use at your own risk. The software controls a power supply connected to your hardware. A bug, a firmware change or a misused tool call can put the wrong voltage or current on a device. It comes with no warranty (see LICENSE). Set a current limit and check readings before connecting anything valuable.
Tool | What it does |
| Optionally sets the current limit (1 mA-5 A) and voltage (0-25 V), then turns the output on |
| Turns the output off |
| Latest 25 Hz reading: on/off, setpoint, current limit and whether it is limiting, current, voltage, power |
| Records 50 kHz samples for N seconds (max 300): avg/min/max current, voltage, power, energy (J), charge (C), and coverage |
Limits
otii_measureuses the same 50 kHz sample stream the Otii app records, normally with 100% of samples (verified up to 30 s, 1.5 M samples).It keeps one CPU core busy while recording, and only then. The Ace holds samples only briefly. If the PC is idle, the CPU drops into deep sleep states, its response to each USB transfer slows, and the Ace starts skipping frames (5-10% lost, measured). Sub-millisecond sleeps, efficiency-mode opt-out, a 1 ms timer and extra overlapped reads didn't fix it, but a busy core did, every time. The Otii app gets the same effect by being a busy foreground app.
Each result reports
coverage: samples received compared with samples due for the time streamed. Below 80% the result is refused. Any missing frames are timing gaps unrelated to the load, so averages stay valid, but a spike inside a gap wouldn't show in max.otii_readis a single 25 Hz telemetry value, fine for steady loads only.The current limit doesn't switch the output off. At the limit the Ace holds the current (just under the set value) and lets the voltage sag, like a bench supply.
otii_readreports this ascurrent_limited.Current was checked on a nominal 1 kΩ resistor at 1, 2, 3.3 and 5 V (2026-11-25): current was linear to within 0.1 µA over 1-5 mA and implied 988.5 Ω, which is within a typical resistor tolerance. The resistor wasn't measured independently, so absolute gain is confirmed only to about ±1-5%. Zero offset is a few hundred nA negative (about -0.1 µA with the output off, -0.3 µA from the fit), so treat sub-µA sleep currents with care.
Only one program can use the Ace at a time. Close the Otii app while the MCP server is talking to it.
The Ace has no host watchdog: the output stays as it is when the MCP server exits or the cable's host side goes away. Turn it off explicitly.
Related MCP server: psu-mcp
Settings
Variable | Default | Purpose |
| auto | COM port of the Ace. By default the Ace is found by its USB id ( |
Install
Needs Python 3.11+ and the Ace on USB.
To just use it, install straight from GitHub with pipx. This puts an
otii-mcp command on your PATH (open a new terminal after ensurepath):
py -m pip install --user pipx
py -m pipx ensurepath
py -m pipx install git+https://github.com/BenjaminParenteau/otii-mcp.gitTo update later, run py -m pipx upgrade otii-mcp, then restart the server in
your MCP client.
To work on it, clone the repo and install it editable. In the client setup
below, use <repo>\.venv\Scripts\python.exe with the arguments
-m otii_mcp.server in place of otii-mcp:
git clone https://github.com/BenjaminParenteau/otii-mcp.git
cd otii-mcp
py -m venv .venv
.venv\Scripts\python.exe -m pip install -e ".[dev]"Only tested on Windows. pyserial and the USB-id lookup should also work on
Linux and macOS (on Linux the user needs serial-port access, e.g. the
dialout group).
Connect to Claude Code
claude mcp add --scope user otii '--' otii-mcpRestart the server from /mcp after an update.
Connect to GitHub Copilot
These steps follow GitHub's and VS Code's documentation as of November 2026. They haven't been tested with this server yet; the Claude Code setup has.
Copilot Business or Enterprise: an organization admin must enable the "MCP servers in Copilot" policy first. It's off by default. Free, Pro and Pro+ plans aren't affected.
VS Code (Copilot Chat) and Copilot CLI share one user-level file,
~/.copilot/mcp-config.json (on Windows,
C:\Users\<you>\.copilot\mcp-config.json). Create it, or add otii to the
existing mcpServers:
{
"mcpServers": {
"otii": {
"type": "stdio",
"command": "otii-mcp",
"args": [],
"tools": ["*"]
}
}
}To pin the Ace to a port instead of auto-detecting it, add
"env": { "OTII_SERIAL_PORT": "COM10" }.
Instead of editing the file, you can use the guided flows:
VS Code: run MCP: Add Server from the Command Palette, choose Command (stdio), enter
otii-mcp, useotiias the server ID, and save it to Global (Copilot Global). Then open Copilot Chat, switch to Agent mode, approve the server's startup when asked, and check that theotii_*tools are ticked in the tools picker.Copilot CLI: run
copilot mcp add otii -- otii-mcpin a terminal, or/mcp addinside a session (Server Type STDIO, Commandotii-mcp, then Ctrl+S).copilot mcp listshows it.
Visual Studio 2022 (17.14+) and JetBrains IDEs still use their own
mcp.json with a servers key. Open it from Copilot Chat in Agent mode via the
tools icon (Visual Studio: + > Configure MCP server; JetBrains: Add MCP
Tools), and add:
{
"servers": {
"otii": {
"type": "stdio",
"command": "otii-mcp",
"args": []
}
}
}VS Code also still reads the older .vscode/mcp.json in this servers format,
but it's deprecated in favour of the mcpServers file above.
Only one program can use the Ace at a time. If both Claude Code and Copilot have the server configured, the first one to call a tool holds the port until its server restarts.
Checks
.venv\Scripts\python.exe -m pytestTests need no hardware: tests/fake_ace.py simulates an Ace speaking the same
protocol, and tests/test_ace_protocol.py checks the encoder and parser against
bytes captured from a real Ace.
With the Ace connected, a ~1 kΩ resistor (or nothing) on its output, and the Otii app closed (it briefly sets a 2 mA limit to show limiting, then restores the previous limit):
.venv\Scripts\python.exe tools\hw_check.py 3.3Protocol
Qoitech doesn't publish the Ace's USB protocol. The details below were
determined by observing the USB traffic between an Ace (firmware 3.2.5) and
the Otii 3 desktop app (3.7.6) during normal use, so the instrument can be
used from other software. The Otii software itself was not decompiled or
disassembled, and this repository contains none of its code. Other firmware
versions may differ; tools/hw_check.py is a quick way to check.
The Ace is a USB CDC serial device. Open it with DTR and RTS low; the baud rate doesn't matter. Everything is little-endian.
frame: a3 2c b5 7f | u16 length | u16 checksum (sum of payload bytes) | payload
command: u32 seq | u32 cmd | u32 args...
reply: 0e 03 99 ff | u32 seq | u32 status (0 ok, 0xfffffffd not supported) | data
stream: ce f2 2f ff | u32 0 | records (u16 type | u16 len | body)Command | Meaning |
| Hello, sent first by the app |
| Get property |
| Set property |
| Barrier; the app sends it after a voltage or limit change (answers in ~70 ms) |
| Enable/disable a sample channel (0 current, 1 voltage, 6 power) |
| Start / stop the sample stream |
| Host clock in microseconds, once a second (not needed to keep the output on) |
Property | Meaning |
| Main output: 1 on, 0 off. A change triggers a type-1 stream record |
| Main voltage setpoint, microvolts |
| Current limit, f32 amps (the Ace also reports it as |
Stream records of type 2 are telemetry, u32 id | f32 value, about 25 per
second: 0x00 main current (A), 0x01 main voltage (V), 0x06 main power (W).
Telemetry starts as soon as the port is opened.
While streaming, sample frames arrive about 1000 times a second, each followed by an empty status frame:
samples: 69 83 2a ff | u32 frame counter | blocks: u16 channel | u16 count (50) | u32 rate (50000) | f32[count]The app also enables channel 0x17 at connect, which adds an empty block
(count 0) at the end of each frame. It isn't needed.
tools/decode_pcap.py decodes tshark exports of USBPcap captures, for
working out more of the protocol.
License
MIT, see LICENSE.
Available Tools
4 toolsotii_measureARead-only
Record 50 kHz samples; return average/min/max current, voltage and power, plus energy and charge.
coverage is the share of due samples that arrived over USB (normally 100%); any missing
frames are timing gaps unrelated to the load, so averages stay valid, but a spike inside a
gap would not show in max. Blocks for the requested duration and keeps one CPU core busy
meanwhile. Does not switch the output.
Inputs: seconds. Returns: object
otii_power_offAIdempotent
Turn off the Otii main power output. Returns a reading taken right after switching off.
Inputs: no named parameters. Returns: object
otii_power_onAIdempotent
Turn on the Otii main power output, optionally setting the current limit and voltage first.
Returns a reading taken right after switching on, including the current limit in force.
Inputs: voltage_v, current_limit_a. Returns: object
otii_readARead-only
Latest output state, setpoint, current limit, current, voltage and power.
A single 25 Hz telemetry reading: misleading for devices that sleep or transmit in bursts; use otii_measure for those.
Inputs: no named parameters. Returns: object
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool maps to a distinct action on the Otii output: switching on, switching off, a snapshot reading, and a burst-averaged measurement. The only potential overlap (otii_read vs otii_measure) is explicitly resolved in the descriptions, which state that otii_read is a 25 Hz instant reading and that otii_measure should be used for sleeping/bursty devices.
All tools share the otii_ namespace prefix and snake_case, action-oriented names (power_on, power_off, read, measure). The pattern is predictable: power_* for output control, bare verbs for acquisition.
Four tools is lean but each covers a real workflow step (on, off, instantaneous check, averaged measurement). It is slightly under-scoped for a bench power analyzer, but nothing is redundant.
Power control, state reading, and measurement are covered, but there is no way to change voltage or current limit while the output is already on, no continuous/streaming logging, and no device or channel configuration. An agent must cycle power to adjust setpoints, which is a notable gap.
Maintenance
Related MCP Connectors
QuLab MCP remote server (Streamable HTTP) for computational science and lab tools.
MCP server for OpenAI API (chat completions, image generation, embeddings) via AceDataCloud
The **OTTTA MCP server** lets you manage your habit trackers. Add / create / update / delete groups, trackers and values. The idea behind OTTTA is to make tracking very easy. The app is simple, you create groups, in the groups you put things to track on a daily basis and then it generates graphs. You can log values to the trackers via the [OTTTA website](https://ottta.com/), via our API, our MCP of course and via the OTTTA Chrome Extension. Soon more ways will be available.
MCP server for OnceAsk, the AI-native current-address layer for people and agents.
Related MCP Servers
- AlicenseAqualityDmaintenanceMCP server for the JouleScope JS220 precision energy analyzer, enabling agents to measure current, voltage, power, charge, and energy via tools like measure_energy.102Apache 2.0
- FlicenseNot gradedqualityDmaintenanceMCP server for programmable bench power supply control, enabling autonomous bootloader-entry probing via precise power cycling and telemetry.1-
- FlicenseNot gradedqualityCmaintenanceMCP server for operating, recording, and analyzing serial-connected measurement instruments and circuits via AI agents. Includes a built-in mock device so all features can be tested without physical hardware.-
- AlicenseNot gradedqualityBmaintenanceMCP server that lets AI agents configure the EDU09 USB oscilloscope, acquire and measure waveforms, and export them over stdio or streamable HTTP. It can run against real hardware, a built-in simulator, or bridge to a GUI that already owns the device.1MIT