oscilloscope-mcp
AI-driven USB oscilloscope control MCP server for simulator, PicoScope, and Hantek scopes.
Discover, connect, disconnect, inspect status/capabilities, and list backends with
scope_device.Configure channels, voltage range, coupling, offset, and simulator waveforms with
scope_configure.Set, get, arm, and force trigger settings with
scope_trigger.Capture single/preview waveforms and export CSV/summary/last capture with
scope_capture.Measure Vpp, frequency, duty cycle, rise time, all metrics, or run a fresh capture with
scope_measure.Access discovery help, tool docs, quickstart, FAQ, and hardware guidance with
scope_help.Run without hardware using the default simulator, or with PicoScope/Hantek hardware; supports agent dry-runs and STDIO/webapp modes.
Allows probing clock and reset nets on KiCad designs after board bring-up, using the kicad-mcp partner MCP server.
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., "@oscilloscope-mcp capture a waveform on channel A"
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.
oscilloscope-mcp
AI-driven USB oscilloscope control via FastMCP 3.2. Connect screenless PC scopes (PicoScope, Hantek) or run the built-in simulator for dry-runs. Capture waveforms, export CSV, and compute frequency, Vpp, duty cycle, and rise time from your agent.
How it runs
Mode | Hardware | When |
Simulator (default) | None | Development, CI, agent dry-runs |
PicoScope | PicoScope 2000/3000/5000/6000 USB | Production bench with PicoSDK + pyPicoSDK |
Hantek | Hantek 6022BE/BL | Budget USB scope with PyHT6022 + libusb |
The MCP server never bundles oscilloscope drivers or PicoSDK. Install vendor software separately, then point the backend at your device.
Related MCP server: siglent-sds-mcp
Hands-in / Hands-out
Direction | Artifacts | Notes |
Hands-in |
| Via |
Hands-out | Waveform preview (downsampled JSON) |
|
Hands-out | CSV + JSON summary files |
|
Hands-out | Measurements (Vpp, freq, duty, rise) |
|
Fleet pipelines
Partner MCP | Workflow |
Probe clock/reset nets after bring-up | |
Verify power rails and oscillators | |
Discover USB devices before connect |
Bench family
One bench, nine servers. bench-orchestrator-mcp conducts (mcu_bringup drives
its six wired peers); the rest are instruments:
Server | Role | Wired peer? |
Conductor — | — (it conducts) | |
Halt / inspect / flash the CPU | yes ( | |
| Scope traces — signal integrity, rails, oscillators | yes ( |
Digital capture + UART/I2C/SPI decode | yes ( | |
DMM — rails, continuity | yes ( | |
Bench PSU — target power | yes ( | |
AWG stimulus — clocks, reset, fault injection | yes ( | |
Bench vision — LEDs, 7-segment | family (not wired) | |
Spectrum — EMI around the target | family (not wired) |
Quick Start
Set-Location D:\Dev\repos\oscilloscope-mcp
uv sync --extra dev
just webapp
# Open http://localhost:10937STDIO-only (Cursor MCP):
just serveDry-run without hardware:
scope_device(operation="connect", device_id="sim-001")
scope_capture(operation="single", sample_rate_hz=100000, sample_count=2000)
scope_measure(operation="all", channel_id="A")Cursor MCP config
Add to C:\Users\sandr\.cursor\mcp.json:
"oscilloscope-mcp": {
"command": "C:/Users/sandr/.local/bin/uv.exe",
"args": [
"--directory",
"D:/Dev/repos/oscilloscope-mcp",
"run",
"python",
"-m",
"oscilloscope_mcp",
"--stdio"
],
"env": {
"FASTMCP_BANNER": "0",
"FASTMCP_UPDATE_CHECK": "0",
"PYTHONUNBUFFERED": "1",
"OSCILLOSCOPE_MCP_BACKEND": "auto"
}
}Table of Contents
Tools Overview
Tool | Operations | Purpose |
| list, connect, disconnect, status, capabilities, backends | Device discovery and session |
| channel, get, simulator_profile | Voltage range, coupling, sim waveform |
| set, get, arm, force | Trigger source, threshold, edge |
| single, preview, export_csv, export_summary, last | Acquire and export waveforms |
| all, vpp, frequency, duty, rise_time, fresh | Timing and voltage metrics |
| discover, tool_help, quickstart, faq, hardware_guide | Discovery and buying guide |
Recommended Hardware
Tier | Model | Price | Backend |
Best value | PicoScope 2204A | ~$130-190 |
|
Swiss army knife | Analog Discovery 3 | ~$200-400 | planned ( |
Budget hack | Hantek 6022BE | ~$40-80 |
|
See docs/HARDWARE.md for the full buying guide.
Webapp
Fleet SOTA console: Dashboard, Waveform viewer, Tools hub, Settings, Help.
just webappPort | Service |
10936 | FastAPI backend ( |
10937 | Vite React frontend |
License
MIT - see LICENSE.
Available Tools
6 toolsscope_captureB
Acquire waveforms and export capture data.
Return Format
{"success": bool, "operation": str, "data": {...}}
Examples
scope_capture(operation="single", sample_rate_hz=100000, sample_count=4000)
scope_capture(operation="export_csv")
scope_capture(operation="preview")
Inputs: operation (required), range_v, filename, channel_id, +2 more.
scope_configureA
Configure oscilloscope channels and simulator signal profiles.
Return Format
{"success": bool, "operation": str, "data": {...}}
Examples
scope_configure(operation="channel", channel_id="A", range_v=2.0, coupling="dc")
scope_configure(operation="get")
scope_configure(operation="simulator_profile", waveform="square", frequency_hz=1000)
Inputs: operation (required), enabled, range_v, coupling, +5 more.
scope_deviceA
Discover, connect, and manage USB oscilloscope devices.
Consolidates device enumeration, session connection, backend selection, and health status.
Return Format
{"success": bool, "operation": str, "data": {...}}
Examples
scope_device(operation="list")
scope_device(operation="connect", device_id="sim-001")
scope_device(operation="status")
scope_device(operation="backends")
Inputs: operation (required), backend, device_id.
scope_helpBRead-only
Help, discovery, and hardware guidance for oscilloscope-mcp.
Return Format
{"success": bool, "operation": str, "data": {...}}
Examples
scope_help(operation="discover")
scope_help(operation="quickstart")
scope_help(operation="hardware_guide")
Inputs: operation (required), topic, tool_name.
scope_measureARead-only
Measure voltage and timing parameters from captured waveforms.
Uses the last capture by default. Operation 'fresh' performs a new capture first.
Return Format
{"success": bool, "operation": str, "data": {...}}
Examples
scope_measure(operation="all", channel_id="A")
scope_measure(operation="frequency", channel_id="A")
scope_measure(operation="fresh", sample_rate_hz=200000)
Inputs: operation (required), channel_id, sample_count, sample_rate_hz.
scope_triggerB
Configure and inspect oscilloscope trigger settings.
Return Format
{"success": bool, "operation": str, "data": {...}}
Examples
scope_trigger(operation="set", source_channel="A", threshold_v=0.5, mode="auto", edge="rising")
scope_trigger(operation="get")
Inputs: operation (required), edge, mode, threshold_v, +1 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool has a distinct purpose: capture, configure, device management, help, measure, and trigger. No overlapping functionality.
All tools follow the same 'scope_' prefix with a clear verb, providing a predictable and consistent naming convention.
Six tools cover the essential oscilloscope operations without being excessive or insufficient, fitting well within the expected range.
The tool set covers core oscilloscope functions (capture, measure, trigger, configure, device, help). Missing a dedicated waveform save/load feature, but this is a minor gap.
Maintenance
Related MCP Connectors
Remote desktop MCP: let AI see, click, type and run terminal commands on your own Windows or Mac.
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Web scraping, browser automation, screenshots and AI data extraction for AI agents via MCP.
Remote MCP access to user-authorized Linux, Windows and Intel Mac devices for AI assistants.
Related MCP Servers
- FlicenseAqualityCmaintenanceEnables LLMs like Claude to interact with PicoScope oscilloscopes for signal acquisition, measurement, and analysis. Supports device management, data capture, triggering, and signal generation through natural language commands.248-
- AlicenseAqualityBmaintenanceAn MCP server that enables AI assistants to control Siglent SDS oscilloscopes over a local network using SCPI commands. It allows users to measure signals, configure channel and acquisition settings, and capture waveforms or screenshots through natural language.1298 npm13MIT
- AlicenseAqualityBmaintenanceAI-driven USB logic analyzer control via FastMCP. Captures digital traces, decodes UART/I2C/SPI, and exports VCD for PulseView, supporting sigrok hardware and built-in simulator.63MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that connects AI assistants to the Owon DS1102 oscilloscope, enabling waveform capture, measurement retrieval, and remote control of scope settings.GPL 3.0