Skip to main content
Glama
oscilloscope-mcp

oscilloscope-mcp

oscilloscope-mcp

MIT License Python 3.12+ FastMCP 3.2+

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

device_id, channel config, trigger settings

Via scope_device, scope_configure, scope_trigger

Hands-out

Waveform preview (downsampled JSON)

scope_capture(operation="single")

Hands-out

CSV + JSON summary files

scope_capture(operation="export_csv") in OSCILLOSCOPE_MCP_CAPTURE_DIR

Hands-out

Measurements (Vpp, freq, duty, rise)

scope_measure(operation="all")

Fleet pipelines

Partner MCP

Workflow

kicad-mcp

Probe clock/reset nets after bring-up

chip-design-mcp

Verify power rails and oscillators

devices-mcp

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?

bench-orchestrator-mcp

Conductor — bench_workflow (power_check, bus_check, debug_check, mcu_bringup)

— (it conducts)

jtag-swd-mcp

Halt / inspect / flash the CPU

yes (dbg)

oscilloscope-mcp (here)

Scope traces — signal integrity, rails, oscillators

yes (scope)

logic-analyzer-mcp

Digital capture + UART/I2C/SPI decode

yes (la)

multimeter-mcp

DMM — rails, continuity

yes (dmm)

power-supply-mcp

Bench PSU — target power

yes (psu)

function-generator-mcp

AWG stimulus — clocks, reset, fault injection

yes (fgen)

bench-camera-mcp

Bench vision — LEDs, 7-segment

family (not wired)

spectrum-analyzer-mcp

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:10937

STDIO-only (Cursor MCP):

just serve

Dry-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

scope_device

list, connect, disconnect, status, capabilities, backends

Device discovery and session

scope_configure

channel, get, simulator_profile

Voltage range, coupling, sim waveform

scope_trigger

set, get, arm, force

Trigger source, threshold, edge

scope_capture

single, preview, export_csv, export_summary, last

Acquire and export waveforms

scope_measure

all, vpp, frequency, duty, rise_time, fresh

Timing and voltage metrics

scope_help

discover, tool_help, quickstart, faq, hardware_guide

Discovery and buying guide

Tier

Model

Price

Backend

Best value

PicoScope 2204A

~$130-190

picoscope

Swiss army knife

Analog Discovery 3

~$200-400

planned (waveforms)

Budget hack

Hantek 6022BE

~$40-80

hantek

See docs/HARDWARE.md for the full buying guide.

Webapp

Fleet SOTA console: Dashboard, Waveform viewer, Tools hub, Settings, Help.

just webapp

Port

Service

10936

FastAPI backend (/api/*, /health, /mcp)

10937

Vite React frontend

License

MIT - see LICENSE.

Available Tools

6 tools
scope_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_helpB
Read-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_measureA
Read-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

    A3.9/5.0

    Scored across 6 tools

    Disambiguation5/5

    Each tool has a distinct purpose: capture, configure, device management, help, measure, and trigger. No overlapping functionality.

    Naming Consistency5/5

    All tools follow the same 'scope_' prefix with a clear verb, providing a predictable and consistent naming convention.

    Tool Count5/5

    Six tools cover the essential oscilloscope operations without being excessive or insufficient, fitting well within the expected range.

    Completeness4/5

    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

    ActivityActive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      A
      quality
      C
      maintenance
      Enables 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.
      24
      8
      -
    • A
      license
      A
      quality
      B
      maintenance
      An 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.
      12
      98 npm
      13
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      AI-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.
      6
      3
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      An 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