Security, Science & HardwareDone with Claude Code Apr 17, 2026
Verify SPICE simulations against a real oscilloscope
MCP servers for an oscilloscope and SPICE simulator let Claude Code compare simulated circuits with real hardware measurements, closing the loop.
- What They Did
- Lucas Gerads gave Claude Code two MCP servers: one for a LeCroy oscilloscope and one wrapping spicelib for SPICE simulation. The demo uses a trivial RC filter driven by a simple microcontroller. Claude compares simulated and measured data. For firmware, he gave it a pinout map and a Makefile with build, flash, ping and erase targets.
- How It Went
- The post says the setup became very valuable for validating SPICE circuits and models, and it removed tedious data analysis such as time-axis normalization and alignment. It gives no numbers, and the demo circuit is deliberately trivial.
- Worth Knowing
- Claude can't see your physical wiring, so tell it what is connected where. Make sure it never reads stale captures, and save raw waveform data to files instead of pasting it into context.
Try it yourself with Claude Code
I have a SPICE simulation of [circuit] at [file path] and an oscilloscope reachable at [address] through an MCP server. Run the simulation, capture the real measurement of [signal or test point], and compare them on rise time, amplitude, and frequency. Report the differences and suggest model tweaks. Ask me before changing any hardware settings or sending output to the circuit.