Saleae Logic 2 MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Saleae Logic 2 MCP Server
Saleae Logic Analyzers are USB-connected tools used to inspect and decode digital signals (GPIO, UART, I2C, SPI) during hardware and firmware development.
This project brings Saleae Logic 2 into AI-assisted embedded debugging. It exposes capture, decode, timing measurement, and export workflows as MCP tools for Claude, Codex, VS Code MCP agents, and other MCP hosts.
Why Embedded Teams Use It
Fast protocol bring-up and validation for UART, I2C, and SPI
Repeatable capture and decode flows for firmware regression testing
One-call signal checks for clocks, pulses, edges, and voltage thresholds
Trigger-based capture for intermittent bugs and boot-sequence timing
Clean CSV/table export for reports, CI artifacts, and traceability
Related MCP server: instrument-mcp
Requirements
Python 3.8+
Saleae Logic 2 installed
Logic 2 running with automation enabled:
Logic --automation
# or
Logic --automation --automationPort 10430Install
python -m venv .venv
source .venv/bin/activate
pip install -e .MCP Server Command
saleae-mcp-serverThis is a stdio MCP server (launched by MCP clients, not as an HTTP server).
MCP Client Integration (Codex + Claude)
Codex (easiest)
Edit ~/.codex/config.toml and add:
[mcp_servers.saleae]
command = "/absolute/path/to/.venv/bin/saleae-mcp-server"
[mcp_servers.saleae.env]
SALEAE_HOST = "127.0.0.1"
SALEAE_PORT = "10430"If your environment needs module execution instead of the script entrypoint, use:
[mcp_servers.saleae]
command = "/absolute/path/to/.venv/bin/python3"
args = ["-m", "saleae_mcp.server"]
cwd = "/absolute/path/to/repo"
[mcp_servers.saleae.env]
PYTHONPATH = "/absolute/path/to/repo/src"
SALEAE_HOST = "127.0.0.1"
SALEAE_PORT = "10430"Claude Desktop (and clients using mcpServers JSON)
Add this block in your MCP config:
{
"mcpServers": {
"saleae": {
"type": "stdio",
"command": "/absolute/path/to/.venv/bin/saleae-mcp-server",
"args": [],
"env": {}
}
}
}Restart Claude after saving config.
VS Code and Other MCP Hosts
Use the same command and env values. Most MCP clients support the same command + env pattern.
Quick Verification Flow
Start Logic 2 with
--automation.Start your MCP client with this server configured.
Run:
saleae.connect()
saleae.list_devices()
saleae.read_digital(channels=[0], duration_seconds=0.05)Tool Catalog
Connection
saleae.connect, saleae.disconnect, saleae.status, saleae.list_devices, saleae.get_device_info
Capture Lifecycle
saleae.start_capture, saleae.wait_capture, saleae.stop_capture, saleae.close_capture, saleae.save_capture, saleae.load_capture
Analyzers & Export
saleae.add_analyzer, saleae.export_data_table, saleae.export_raw_csv
Reads, Measurement, Decode, Trigger
saleae.read_digital, saleae.read_analog, saleae.read_mixed, saleae.measure_frequency, saleae.measure_pulse_width, saleae.count_edges, saleae.decode_uart, saleae.decode_i2c, saleae.decode_spi, saleae.read_on_trigger, saleae.wait_for_signal, saleae.wait_for_voltage
Example Capture + Decode Workflow
saleae.connect()
saleae.start_capture({ ...timed payload... })
saleae.wait_capture(capture_id="...")
saleae.add_analyzer(capture_id="...", analyzer_name="I2C", settings={"SDA": 0, "SCL": 1})
saleae.export_data_table(capture_id="...", analyzer_ids=["..."], path="/tmp/i2c.csv")
saleae.close_capture(capture_id="...")Project Structure
src/saleae_mcp/server.py: MCP tool definitions and input shapingsrc/saleae_mcp/adapter.py: Saleae automation wrapper and state managementtests/: pytest suite for server wrappers and adapter behavior
Development
pytest -qLicense
This project is licensed under Apache-2.0. See LICENSE for full terms.
Redistributions must preserve attribution notices in NOTICE.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Build and run AI workflows, agents, data tables and 1000+ API integrations from any MCP client.
Email inboxes, webhook URLs, mock APIs and 170+ tools for coding agents over one MCP connection.
Zero-setup MCP gateway securely connecting AI to your tools with authentication and workflows
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to control Saleae Logic analyzers, capture and analyze digital/analog signals, and export data via MCP.MIT
- AlicenseNot gradedqualityDmaintenanceConnects test and measurement instruments (oscilloscope, logic analyzer, multimeter, power supply) to AI via MCP, enabling natural language control and automated analysis.MIT
- AlicenseCqualityCmaintenanceEnables MCP clients like Cursor to control logic analyzers, open capture files, decode buses such as Intel 8080, and reconstruct display framebuffers like ST7789.19MIT
- AlicenseAqualityBmaintenanceEnables AI agents to capture and analyze digital signals from DSLogic Plus and sigrok-supported devices, with archived captures, channel statistics, edge excerpts, and deterministic protocol decoding.101MIT