MTIB MCP Server

MTIB MCP Server

Enables Claude Code to interact with embedded hardware test benches via MTIB gRPC API, supporting device discovery, flashing, debugging, serial and Zephyr logs, power measurement, and more.

Category
Visit Server

README

MTIB MCP Server

MCP (Model Context Protocol) server that wraps the MTIB V2 gRPC API, enabling Claude Code to interact with embedded hardware test benches.

Setup

# Install
pip install -e .

# Regenerate proto stubs (if mtib_v2.proto changes)
./generate_proto.sh

Claude Code configuration

Add to .mcp.json:

{
  "mcpServers": {
    "mtib": {
      "type": "stdio",
      "command": "python3",
      "args": ["-m", "mtib_mcp.server"],
      "env": {
        "MTIB_HOST": "192.168.1.100",
        "MTIB_PORT": "50054"
      }
    }
  }
}

Available tools

Tool Description
Discovery
mtib_health_check Check connectivity, version, capabilities
mtib_list_targets List target devices and debug probes
Flash
mtib_flash Flash firmware to a target
mtib_reset Reset a target device
Debug
mtib_debug_connect Open a debug session (returns session_id)
mtib_debug_disconnect Close a debug session
mtib_debug_status Get halt reason, PC, registers
mtib_debug_control Halt, resume, step, step over
mtib_debug_backtrace Get stack trace
mtib_debug_memory Read/write target memory
mtib_debug_breakpoint Set/clear breakpoints
Serial & Logs
mtib_uart_open Open UART and start background buffering
mtib_uart_read Read buffered lines (cursor-based, no data loss)
mtib_uart_close Close UART stream
mtib_zephyr_shell Execute a Zephyr shell command
mtib_zephyr_logs_open Start buffering Zephyr log entries
mtib_zephyr_logs_read Read buffered log entries (cursor-based)
mtib_zephyr_logs_close Close log stream
Power
mtib_power_measure Measure power over a duration
mtib_power_control Enable/disable/query power channels
Testing
mtib_twister_run Run Twister test suite
Bus I/O
mtib_i2c_scan Scan I2C bus
mtib_i2c_transfer Read/write I2C device

Streaming data guarantee

UART and Zephyr log streams use persistent background buffers. When you call mtib_uart_open, a background task continuously drains the gRPC stream into a 5,000-entry ring buffer. Each entry gets a monotonic sequence number (cursor).

mtib_uart_open(target_id="nrf52840_dk")  →  { stream_key, status: "buffering" }
mtib_uart_read(stream_key, cursor=0)     →  { lines: [...], cursor: 347 }
# ... time passes, DUT keeps printing ...
mtib_uart_read(stream_key, cursor=347)   →  { lines: [...], cursor: 512 }
mtib_uart_close(stream_key)

As long as the ring buffer doesn't wrap (5,000 entries by default), no data is lost between reads.

Environment variables

Variable Default Description
MTIB_HOST localhost MTIB gRPC server hostname
MTIB_PORT 50054 MTIB gRPC server port

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
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
Qdrant Server

Qdrant Server

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

Official
Featured