MTIB MCP Server
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MTIB MCP Serverflash the latest firmware to target nrf52840_dk"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
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.shRelated MCP server: Serial MCP Server
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 | |
| Check connectivity, version, capabilities |
| List target devices and debug probes |
Flash | |
| Flash firmware to a target |
| Reset a target device |
Debug | |
| Open a debug session (returns session_id) |
| Close a debug session |
| Get halt reason, PC, registers |
| Halt, resume, step, step over |
| Get stack trace |
| Read/write target memory |
| Set/clear breakpoints |
Serial & Logs | |
| Open UART and start background buffering |
| Read buffered lines (cursor-based, no data loss) |
| Close UART stream |
| Execute a Zephyr shell command |
| Start buffering Zephyr log entries |
| Read buffered log entries (cursor-based) |
| Close log stream |
Power | |
| Measure power over a duration |
| Enable/disable/query power channels |
Testing | |
| Run Twister test suite |
Bus I/O | |
| Scan I2C bus |
| 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 gRPC server hostname |
|
| MTIB gRPC server port |
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/MateoSegura/mtib-mcp-server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server