Skip to content
MCP server

J-Link MCP

MCP server that lets an AI debug ARM Cortex-M firmware on real hardware via J-Link probes

Runs locally
Install

J-Link MCP is an MCP server for developer tools. It runs locally on your machine and is started by your AI client.

Platforms
CLI, VS Code, macOS
Runs
Locally
Version
0.8.0
Listing updated

Similar MCP servers

Install

Run in a terminal

claude mcp add jlink-mcp --env JLINK_DEVICE='<JLINK_DEVICE>' -- npx -y jlink-mcp

Add to claude_desktop_config.json

{
  "mcpServers": {
    "jlink-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "jlink-mcp"
      ],
      "env": {
        "JLINK_DEVICE": "<JLINK_DEVICE>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "jlink-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "jlink-mcp"
      ],
      "env": {
        "JLINK_DEVICE": "<JLINK_DEVICE>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "jlink-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "jlink-mcp"
      ],
      "env": {
        "JLINK_DEVICE": "<JLINK_DEVICE>"
      }
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "jlink-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "jlink-mcp"
      ],
      "env": {
        "JLINK_DEVICE": "<JLINK_DEVICE>"
      }
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "jlink-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "jlink-mcp"
      ],
      "env": {
        "JLINK_DEVICE": "<JLINK_DEVICE>"
      }
    }
  }
}

Using several servers? Build one config file with the MCP config generator.

Configuration

  • JLINK_DEVICETarget device name, exactly as J-Link spells it (e.g. nRF52840_XXAA, STM32F407VG). Use the search_devices tool to find it.Required
  • JLINK_SERIALSerial number of a specific probe, when more than one is attached.
  • SVD_PATHCMSIS-SVD file for the target. Without it, peripheral reads are undecoded hex.
  • JLINK_RTT_ADDRAddress of the firmware's _SEGGER_RTT symbol. Lets RTT survive a reset or flash.

About J-Link MCP

When firmware crashes, one call to diagnose_crash reads the Cortex-M fault registers, decodes them, unwinds the exception stack frame, names the faulting instruction and pulls recent warnings from the device's RTT log. The README shows it on an nRF52840-DK, turning a forced HardFault into an unaligned-access UsageFault without anyone looking up what a CFSR bit means.

With a CMSIS-SVD file for the target, peripheral registers are decoded by field name instead of raw hex, so the model reads documented meanings rather than guessing bit layouts. The server has 48 tools covering session setup, snapshots, halt, step and resume, memory and register access, flashing .hex, .bin and .elf files, breakpoints, RTT log search and GDB servers. check_setup says what is missing, and search_devices looks through the 9,800 devices J-Link supports.

It drives the SEGGER J-Link software with a probe attached, and also supports OpenOCD (ST-Link, CMSIS-DAP, FTDI) and Black Magic Probe backends. It installs from npm, as a Claude Code plugin with an embedded-debugging skill, as a VS Code extension, or through a Nix flake. Environment variables set the target device, probe serial, SVD path and RTT address.

Tools this server provides (18)

Taken from the project documentation; the running server may differ.

diagnose_crash
Decode Cortex-M fault registers and the exception stack frame.
start_debug_session
Start a GDB server, connect RTT and return the boot log.
snapshot
Capture registers, fault status, stack and RTT output.
check_setup
Report what is missing for debugging.
search_devices
Search the J-Link device database.
list_devices
Scan for connected probes.
set_device
Change the target device at runtime.
read_peripheral
Read a peripheral's registers with decoded bit fields.
decode_register
Decode a single register.
read_memory
Read memory at an address.
write_memory
Write a 32-bit value to an address.
flash
Flash a .hex, .bin or .elf file.
erase
Erase flash.
halt
Halt the CPU.
resume
Resume the CPU.
step
Single-step one instruction.
reset
Reset the device.
set_breakpoint
Set a hardware breakpoint.

What it does

One-call crash diagnosis
diagnose_crash decodes fault registers and the exception frame and correlates RTT logs.
SVD-aware registers
Peripheral registers are decoded by name when an SVD file is set.
Setup check
check_setup reports missing probe software, probe, device or SVD.
Flash and control
Flash firmware, reset, halt, step, resume and set breakpoints.
RTT log search
Streams RTT output and searches by level, module or regex.
Multiple backends
Also works with OpenOCD and Black Magic Probe.

Good for

  • Find out why a Cortex-M board hard-faulted
  • Flash new firmware and read the boot log
  • Inspect a peripheral's registers with named bit fields
  • Search RTT logs for errors from one module
  • Start a GDB session for a deeper debugging run

J-Link MCP FAQ

What hardware do I need?

A SEGGER J-Link probe connected to an ARM Cortex-M target, or a probe supported by the OpenOCD or Black Magic backends.

How do I find my device name?

Use the search_devices tool, then set JLINK_DEVICE.

Why are peripheral reads shown as hex?

No SVD file is set; point SVD_PATH at the target's CMSIS-SVD file.

How do I install J-Link MCP?

Via npx, the Claude Code plugin marketplace, the VS Code extension or a Nix flake.

How do I add J-Link MCP to Claude Code?

Run this command in your terminal: claude mcp add jlink-mcp --env JLINK_DEVICE='<JLINK_DEVICE>' -- npx -y jlink-mcp

What are the best alternatives to J-Link MCP?

The closest alternatives to J-Link MCP are stlink-mcp, Smolmux Gdb MCP, jadx-ai-mcp, Windbg MCP and mcp-debugger.

Where this comes from

  • Description: written from the project's README.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers