logic-analyzer-mcp

logic-analyzer-mcp

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.

Category
Visit Server

README

logic-analyzer-mcp

MIT License Python 3.12+ FastMCP 3.2+

AI-driven USB logic analyzer control via FastMCP 3.2. Capture digital traces with sigrok or the built-in simulator, decode UART/I2C/SPI, and export VCD for PulseView.

How it runs

Mode Hardware When
Simulator (default) None Development, CI, agent dry-runs
sigrok Hantek 6022BL (LA mode), DSLogic, FX2 clones Production bench with sigrok-cli

The MCP server does not bundle sigrok. Install PulseView or sigrok-cli separately, then connect your USB LA.

Hands-in / Hands-out

Direction Artifacts Notes
Hands-in device_id, channels, trigger Via la_device, la_configure, la_trigger
Hands-out Trace preview (downsampled JSON) la_capture(operation="single")
Hands-out CSV, VCD, JSON summary la_capture(operation="export_vcd") in LOGIC_ANALYZER_MCP_CAPTURE_DIR
Hands-out Protocol decode rows la_decode(operation="uart")

Fleet pipelines

Partner MCP Workflow
oscilloscope-mcp Mixed-signal bring-up (analog + digital)
kicad-mcp Verify SPI/I2C after PCB bring-up
chip-design-mcp Debug FPGA/MCU buses

Quick Start

Set-Location D:\Dev\repos\logic-analyzer-mcp
uv sync --extra dev
just webapp
# Open http://127.0.0.1:10987

STDIO-only (Cursor MCP):

just serve

Dry-run without hardware:

la_device(operation="connect", device_id="sim-la-001")
la_capture(operation="single", sample_rate_hz=1000000, sample_count=4096)
la_decode(operation="uart", rx="D0")

Cursor MCP config

Add to C:\Users\sandr\.cursor\mcp.json:

"logic-analyzer-mcp": {
  "command": "C:/Users/sandr/.local/bin/uv.exe",
  "args": [
    "--directory",
    "D:/Dev/repos/logic-analyzer-mcp",
    "run",
    "python",
    "-m",
    "logic_analyzer_mcp",
    "--stdio"
  ],
  "env": {
    "FASTMCP_BANNER": "0",
    "FASTMCP_UPDATE_CHECK": "0",
    "PYTHONUNBUFFERED": "1",
    "LOGIC_ANALYZER_MCP_BACKEND": "auto"
  }
}

Restart Cursor after editing mcp.json.

Tools

Tool Operations
la_device list, connect, disconnect, status, capabilities, backends
la_configure channels, sample_rate, get, simulator_pattern
la_trigger set, get
la_capture single, preview, export_csv, export_vcd, export_summary, last
la_decode list, run, last, uart, i2c, spi
la_help discover, tool_help, status, quickstart, faq, hardware_guide

Webapp

Port Role
10985 Backend (FastAPI + MCP /mcp)
10987 Frontend (Vite React — trace + decode viewers)
just webapp

Documentation

License

MIT — see LICENSE.

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured