J-Link RTT Viewer MCP
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., "@J-Link RTT Viewer MCPConnect to my STM32F103C8 board"
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.
J-Link RTT Viewer MCP Server
English
An MCP (Model Context Protocol) server that wraps J-Link RTT Viewer functionality, enabling AI assistants to interact with STM32 development boards through a standardized interface.
What is MCP?
MCP is like a USB-C port for AI applications. It provides a standardized way for AI assistants (Claude, ChatGPT, etc.) to connect to external systems like J-Link debuggers.
Quick Start
1. Install
git clone https://github.com/MisakaMikoto128/J-Link-RTT-Viewer-MCP.git
cd J-Link-RTT-Viewer-MCP
pip install -r requirements.txt2. Configure in Claude Desktop
Add to %APPDATA%\Claude\claude_desktop_config.json:
{
"mcpServers": {
"jlink-rtt": {
"command": "python",
"args": ["-m", "src.server"],
"cwd": "C:\\path\\to\\J-Link-RTT-Viewer-MCP"
}
}
}3. Restart Claude Desktop
4. Use natural language!
That's it! No code required. Just talk to Claude:
You: Connect to my STM32F103C8 board
Claude: [calls connect tool] Connected successfully!
You: Read the RTT logs
Claude: [calls read_rtt tool] Here are the logs...
You: Make the LED blink faster
Claude: [calls write_rtt tool with "freq 200"] Done!
You: Flash the new firmware
Claude: [calls flash_firmware tool] Firmware flashed successfully!Available Tools
Tool | What it does |
| Connect to J-Link and target MCU |
| Disconnect from J-Link |
| Read RTT log data |
| Write data to RTT channel |
| Set default RTT channel (0-15) |
| Reset MCU (normal/auto_reconnect/halt) |
| Get connected device info |
| Flash .hex or .bin firmware |
| Read MCU memory |
| Write MCU memory |
| Record RTT to file |
| Stop recording |
Test with MCP Inspector
npx @modelcontextprotocol/inspector python -m src.serverSupported Hardware
Debugger: SEGGER J-Link (V7, V8, V9, V10)
MCU: STM32F1xx, STM32F4xx, nRF52xxx
Interface: SWD, JTAG
Development
# Run tests
pytest tests/ -v
# Lint
ruff check src/
# Type check
mypy src/ --ignore-missing-importsLicense
MIT License
Related MCP server: dbgprobe-mcp-server
中文
一个封装 J-Link RTT Viewer 功能的 MCP 服务器,使 AI 助手能够通过标准化接口与 STM32 开发板进行交互。
什么是 MCP?
MCP 就像 AI 应用的 USB-C 接口。它为 AI 助手(Claude、ChatGPT 等)提供了一种标准化的方式来连接外部系统,如 J-Link 调试器。
快速开始
1. 安装
git clone https://github.com/MisakaMikoto128/J-Link-RTT-Viewer-MCP.git
cd J-Link-RTT-Viewer-MCP
pip install -r requirements.txt2. 在 Claude Desktop 中配置
添加到 %APPDATA%\Claude\claude_desktop_config.json:
{
"mcpServers": {
"jlink-rtt": {
"command": "python",
"args": ["-m", "src.server"],
"cwd": "C:\\path\\to\\J-Link-RTT-Viewer-MCP"
}
}
}3. 重启 Claude Desktop
4. 用自然语言对话!
就这样!不需要写代码。直接和 Claude 对话:
你: 连接到我的 STM32F103C8 开发板
Claude: [调用 connect 工具] 连接成功!
你: 读取 RTT 日志
Claude: [调用 read_rtt 工具] 这是日志数据...
你: 让 LED 闪烁更快
Claude: [调用 write_rtt 工具,参数 "freq 200"] 完成!
你: 烧录新固件
Claude: [调用 flash_firmware 工具] 固件烧录成功!可用工具
工具 | 功能 |
| 连接 J-Link 和目标 MCU |
| 断开 J-Link 连接 |
| 读取 RTT 日志数据 |
| 向 RTT 通道写入数据 |
| 设置默认 RTT 通道 (0-15) |
| 重置 MCU (normal/auto_reconnect/halt) |
| 获取已连接设备信息 |
| 烧录 .hex 或 .bin 固件 |
| 读取 MCU 内存 |
| 写入 MCU 内存 |
| 录制 RTT 到文件 |
| 停止录制 |
使用 MCP Inspector 测试
npx @modelcontextprotocol/inspector python -m src.server支持的硬件
调试器: SEGGER J-Link (V7, V8, V9, V10)
MCU: STM32F1xx, STM32F4xx, nRF52xxx
接口: SWD, JTAG
开发
# 运行测试
pytest tests/ -v
# 代码检查
ruff check src/
# 类型检查
mypy src/ --ignore-missing-imports许可证
MIT 许可证
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
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/MisakaMikoto128/J-Link-RTT-Viewer-MCP'
If you have feedback or need assistance with the MCP directory API, please join our Discord server