MCP server for Saleae logic analyzers

MCP server for Saleae logic analyzers

logic-analyzer-ai-mcp•bywegitor

An experimental MCP server that exposes tools to remotely control and automate Saleae logic analyzers, including device and capture configuration, capture execution, and data analysis.

License: Not specified•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Provides an MCP server with tools to connect to and configure Saleae logic analyzers.
  • •Supports capturing logic analyzer data and saving it in .logicdata format.
  • •Enables parsing capture files, retrieving digital data, and exporting captures in various formats such as CSV.
  • •Offers device and capture configuration management methods through a controller class.

BEST FOR

  • •Scripting and automating Saleae Logic device captures programmatically.
  • •Managing device and capture configurations through an MCP interface.

ABOUT LOGIC-ANALYZER-AI-MCP

MCP server for Saleae logic analyzers is cataloged as an MCP server attributed to wegitor. An experimental MCP server that exposes tools to remotely control and automate Saleae logic analyzers, including device and capture configuration, capture execution, and data analysis. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP server for Saleae logic analyzers are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What is the current maturity level of this MCP server?

It is described as an experimental (alpha) version.

Which capture file format is recommended for best compatibility?

The .logicdata format is recommended and best-supported; .sal files are known to have compatibility issues.

Upstream README

View this exact version on GitHub

README.md · d55bde9e63e2 · Fetched 2026-11-13 11:04:14 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

Logic analyzer MCP

This project provides an MCP (Message Control Protocol) server and automation interface for Saleae logic analyzers. It enables remote control, automation, and integration of Saleae Logic devices and captures, making it easy to script, manage, and analyze logic analyzer data programmatically.

Features

  • Device configuration management
  • Capture configuration and execution
  • Data export in various formats
  • Logic file analysis and processing
  • Protocol decoding and visualization
  • Diagram generation and analysis
  • MCP (Message Control Protocol) server integration
  • Support for Logic 16 and other Logic 2 devices
  • Capture file parsing and analysis using python-saleae

Requirements

  • Python 3.10 or higher
  • Saleae Logic 2 software installed
  • Python-saleae module
  • Logic 2 device (Logic 16, Logic Pro 8, etc.)

Installation

  1. Clone the repository

  2. Create and activate a virtual environment using uv:

# Create virtual environment
uv venv

# Activate virtual environment
# On Windows:
.venv\Scripts\activate
# On Unix/MacOS:
source .venv/bin/activate
  1. Install dependencies using uv:
# Install all dependencies
uv pip install -e .

If you encounter any issues with dependencies, you can try installing them directly:

# Install logic2-automation from GitHub
uv pip install git+https://github.com/saleae/logic2-automation/#subdirectory=python

# Install other dependencies
uv pip install grpcio protobuf grpcio-tools saleae mcp[cli] pytest

Note: This project requires Python 3.10 or higher due to dependency requirements.

Usage

Running the MCP Server

To start the MCP server for remote control:

# Using uv (recommended)
uv --directory <project_path> run -m logic_analyzer_mcp

Note: When using uv, make sure you have it installed and in your PATH. The --directory argument should point to the root directory of the project.

Current compatibility & Tested Version

This project is tested with Saleae Logic 1.2.40 for Windows.

  • Please use this version for best compatibility.
  • Other versions may work, but are not guaranteed or officially supported by this project.

Experimental note (alpha)

This is an experimental (alpha) version. The following MCP tool sequence has been tested and works for me:

  1. saleae_connect (for Saleae Logic 1.2.40)
  2. saleae_configure
  3. saleae_capture — save capture in .logicdata format
  4. parse_capture_file (optional)
  5. get_digital_data_mcp
  6. saleae_export (optional. use csv if needed)

Notes:

  • Make sure the Saleae Logic application is running and the scripting socket server is enabled before using these tools.
  • When calling saleae_capture, request the .logicdata format for best compatibility with the controller methods.

Troubleshooting & Important Notes

  • Logic Software Must Be Running:

    • Before using this automation interface, ensure that the Saleae Logic software is already running on your system. The automation scripts will attempt to connect to the running instance.
    • If the software is not running, the script may fail to connect, or may launch a new instance in simulation mode (which will not detect your real device).
  • Enable Scripting Socket Server:

    • In the Logic software, go to Options > Preferences (or Edit > Preferences), and ensure that the "Enable scripting socket server" option is checked.
    • The default port is usually 10429. If you change this, update your scripts accordingly.
    • If the scripting server is not enabled, the Python API will not be able to communicate with Logic, and you will see connection errors.
  • Device Not Detected:

    • Make sure your Logic device is connected to your computer and recognized by the Logic software before running any scripts.
    • If the device is not detected, check your USB connection and try restarting the Logic software.
  • Architecture Compatibility:

    • Ensure that both the Logic software and your Python environment are either both 32-bit or both 64-bit. Mismatched architectures can cause connection failures.
  • Permissions:

    • On some systems, you may need to run the Logic software and/or your Python script with administrator privileges to allow socket communication.
  • Supported Versions:

    • This project is designed for Saleae Logic 1.x/2.x automation. Some features may only be available in Logic 2.x with the appropriate automation API installed.

Note on Capture File Formats

  • .logicdata format is the recommended and best-supported file format for captures. All automation and parsing features are designed to work reliably with .logicdata files.
  • .sal files (used by some older or alternative Saleae software) are currently known to have bugs and compatibility issues. Automated conversion or processing of .sal files may fail or require manual fixes. For best results, always use .logicdata format for your captures.

API Reference

SaleaeController

The main controller class that provides high-level access to Logic 2 functionality.

Device Configuration Methods:

  • create_device_config(name: str, digital_channels: List[int], digital_sample_rate: int, analog_channels: Optional[List[int]] = None, analog_sample_rate: Optional[int] = None, digital_threshold_volts: Optional[float] = None) -> str

    • Creates a new device configuration with specified channels and sample rates
    • Returns the configuration name
  • get_device_config(name: str) -> Optional[LogicDeviceConfiguration]

    • Retrieves a device configuration by name
    • Returns None if not found
  • list_device_configs() -> List[str]

    • Lists all available device configuration names
  • remove_device_config(name: str) -> bool

    • Removes a device configuration
    • Returns True if successful, False if not found

Capture Configuration Methods:

  • create_capture_config(name: str, duration_seconds: float, buffer_size_megabytes: Optional[int] = None) -> str

    • Creates a new capture configuration with specified duration
    • Returns the configuration name
  • get_capture_config(name: str) -> Optional[CaptureConfiguration]

    • Retrieves a capture configuration by name
    • Returns None if not found
  • list_capture_configs() -> List[str]

    • Lists all available capture configuration names
  • remove_capture_config(name: str) -> bool

    • Removes a capture configuration
    • Returns True if successful, False if not found

Configurations:

Claude configuration (with uv run):

{
    "mcpServers": {
        "logic-analyzer-ai-mcp": {
            "type": "stdio",
            "command": "uv",
            "args": [
                "--directory",
                "<path to folder>",
                "run",
                "-m",
                "logic_analyzer_mcp"
            ]
        }
    }
}

Claude configuration (direct usage):

{
    "mcpServers": {
        "logic-analyzer-ai-mcp": {
            "type": "stdio",
            "command": "python",
            "args": [
                "<path to folder>\\src\\logic_analyzer_mcp.py"
            ]
        }
    }
}

Claude configuration (with uv run):

{
    "mcpServers": {
        "logic-analyzer-ai-mcp": {
            "type": "stdio",
            "command": "uv",
            "args": [
                "--directory",
                "<path to folder>",
                "run",
                "-m",
                "logic_analyzer_mcp"
            ]
        }
    }
}

Logic2 parameter description

This project includes an opt-in experimental path for Logic2 automation. It is disabled by default. You can enable it in one of three ways:

  • CLI flag (recommended for one-off runs)

    • Example:
      • python -m logic_analyzer_mcp --logic2
  • Environment variable (convenient for CI / persistent shells)

    • Example (Unix):
      • LOGIC2=1 python -m logic_analyzer_mcp
    • Example (Windows PowerShell):
      • $env:LOGIC2='1'; python -m logic_analyzer_mcp
  • Programmatic API (when embedding the library)

    • Call the helper before registering tools:
      • from mcp_tools import set_logic2_enabled, setup_mcp_tools
      • set_logic2_enabled(True)
      • setup_mcp_tools(mcp, controller)
    • Or pass the explicit parameter to setup_mcp_tools:
      • setup_mcp_tools(mcp, controller, enable_logic2=True)

Notes

  • Default behavior: Logic2 experimental features are OFF. When disabled the code prefers controller-based or offline fallbacks.
  • Safety: Experimental features may change — enable intentionally and test with your environment before using in production.
  • Troubleshooting: If enabling Logic2 fails, check that the logic2-automation / python-saleae packages are installed and that the Saleae app is running and reachable.

Claude configuration (example)

Below is a minimal Claude MCP server configuration example you can adapt. Place this under your Claude configuration file or tooling settings.

{
  "mcpServers": {
    "logic-analyzer-ai-mcp": {
      "type": "stdio",
      "command": "uv",
      "args": [
        "--directory",
        "<path to folder>",
        "run",
        "-m",
        "logic_analyzer_mcp",
        "--logic2"
      ]
    }
  }
}

Notes:

  • Remove the --logic2 flag if you do not want experimental Logic2 tools enabled.
  • Adjust <path to folder> and other uv arguments to match your environment.
  • Use the python based configuration if you prefer to invoke the module directly instead of via uv.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP server for Saleae logic analyzers from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/logic-analyzer-ai-mcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools