J

Jlink MCP

by Klievan · io.github.Klievan/jlink-mcp

Enables AI assistants to debug embedded devices via SEGGER J-Link probes, including reading memory, flashing firmware, streaming RTT logs, and diagnosing crashes.

npm Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-klievan-jlink-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "jlink-mcp"
      ],
      "env": {
        "JLINK_DEVICE": "Unspecified",
        "JLINK_SERIAL": "<VALUE>",
        "SVD_PATH": "<VALUE>",
        "JLINK_RTT_ADDR": "<VALUE>",
        "PROBE_TYPE": "jlink",
        "JLINK_SPEED": "4000",
        "BMP_GDB_PATH": "arm-none-eabi-gdb",
        "JLINK_GDB_PORT": "2331",
        "JLINK_RTT_PORT": "19021",
        "OPENOCD_BINARY": "openocd",
        "OPENOCD_TARGET": "target/stm32f4x.cfg",
        "BMP_SERIAL_PORT": "/dev/ttyACM0",
        "JLINK_INTERFACE": "SWD",
        "BMP_TARGET_INDEX": "1",
        "OPENOCD_GDB_PORT": "3333",
        "JLINK_INSTALL_DIR": "<VALUE>",
        "OPENOCD_INTERFACE": "interface/stlink.cfg",
        "OPENOCD_TELNET_PORT": "4444"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-klievan-jlink-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "jlink-mcp"
      ],
      "env": {
        "JLINK_DEVICE": "Unspecified",
        "JLINK_SERIAL": "<VALUE>",
        "SVD_PATH": "<VALUE>",
        "JLINK_RTT_ADDR": "<VALUE>",
        "PROBE_TYPE": "jlink",
        "JLINK_SPEED": "4000",
        "BMP_GDB_PATH": "arm-none-eabi-gdb",
        "JLINK_GDB_PORT": "2331",
        "JLINK_RTT_PORT": "19021",
        "OPENOCD_BINARY": "openocd",
        "OPENOCD_TARGET": "target/stm32f4x.cfg",
        "BMP_SERIAL_PORT": "/dev/ttyACM0",
        "JLINK_INTERFACE": "SWD",
        "BMP_TARGET_INDEX": "1",
        "OPENOCD_GDB_PORT": "3333",
        "JLINK_INSTALL_DIR": "<VALUE>",
        "OPENOCD_INTERFACE": "interface/stlink.cfg",
        "OPENOCD_TELNET_PORT": "4444"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-klievan-jlink-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "jlink-mcp"
      ],
      "env": {
        "JLINK_DEVICE": "Unspecified",
        "JLINK_SERIAL": "<VALUE>",
        "SVD_PATH": "<VALUE>",
        "JLINK_RTT_ADDR": "<VALUE>",
        "PROBE_TYPE": "jlink",
        "JLINK_SPEED": "4000",
        "BMP_GDB_PATH": "arm-none-eabi-gdb",
        "JLINK_GDB_PORT": "2331",
        "JLINK_RTT_PORT": "19021",
        "OPENOCD_BINARY": "openocd",
        "OPENOCD_TARGET": "target/stm32f4x.cfg",
        "BMP_SERIAL_PORT": "/dev/ttyACM0",
        "JLINK_INTERFACE": "SWD",
        "BMP_TARGET_INDEX": "1",
        "OPENOCD_GDB_PORT": "3333",
        "JLINK_INSTALL_DIR": "<VALUE>",
        "OPENOCD_INTERFACE": "interface/stlink.cfg",
        "OPENOCD_TELNET_PORT": "4444"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-klievan-jlink-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "jlink-mcp"
      ],
      "env": {
        "JLINK_DEVICE": "Unspecified",
        "JLINK_SERIAL": "<VALUE>",
        "SVD_PATH": "<VALUE>",
        "JLINK_RTT_ADDR": "<VALUE>",
        "PROBE_TYPE": "jlink",
        "JLINK_SPEED": "4000",
        "BMP_GDB_PATH": "arm-none-eabi-gdb",
        "JLINK_GDB_PORT": "2331",
        "JLINK_RTT_PORT": "19021",
        "OPENOCD_BINARY": "openocd",
        "OPENOCD_TARGET": "target/stm32f4x.cfg",
        "BMP_SERIAL_PORT": "/dev/ttyACM0",
        "JLINK_INTERFACE": "SWD",
        "BMP_TARGET_INDEX": "1",
        "OPENOCD_GDB_PORT": "3333",
        "JLINK_INSTALL_DIR": "<VALUE>",
        "OPENOCD_INTERFACE": "interface/stlink.cfg",
        "OPENOCD_TELNET_PORT": "4444"
      }
    }
  }
}

Reload the VS Code window to activate.

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

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-klievan-jlink-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "jlink-mcp"
      ],
      "env": {
        "JLINK_DEVICE": "Unspecified",
        "JLINK_SERIAL": "<VALUE>",
        "SVD_PATH": "<VALUE>",
        "JLINK_RTT_ADDR": "<VALUE>",
        "PROBE_TYPE": "jlink",
        "JLINK_SPEED": "4000",
        "BMP_GDB_PATH": "arm-none-eabi-gdb",
        "JLINK_GDB_PORT": "2331",
        "JLINK_RTT_PORT": "19021",
        "OPENOCD_BINARY": "openocd",
        "OPENOCD_TARGET": "target/stm32f4x.cfg",
        "BMP_SERIAL_PORT": "/dev/ttyACM0",
        "JLINK_INTERFACE": "SWD",
        "BMP_TARGET_INDEX": "1",
        "OPENOCD_GDB_PORT": "3333",
        "JLINK_INSTALL_DIR": "<VALUE>",
        "OPENOCD_INTERFACE": "interface/stlink.cfg",
        "OPENOCD_TELNET_PORT": "4444"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-klievan-jlink-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "jlink-mcp"
      ],
      "env": {
        "JLINK_DEVICE": "Unspecified",
        "JLINK_SERIAL": "<VALUE>",
        "SVD_PATH": "<VALUE>",
        "JLINK_RTT_ADDR": "<VALUE>",
        "PROBE_TYPE": "jlink",
        "JLINK_SPEED": "4000",
        "BMP_GDB_PATH": "arm-none-eabi-gdb",
        "JLINK_GDB_PORT": "2331",
        "JLINK_RTT_PORT": "19021",
        "OPENOCD_BINARY": "openocd",
        "OPENOCD_TARGET": "target/stm32f4x.cfg",
        "BMP_SERIAL_PORT": "/dev/ttyACM0",
        "JLINK_INTERFACE": "SWD",
        "BMP_TARGET_INDEX": "1",
        "OPENOCD_GDB_PORT": "3333",
        "JLINK_INSTALL_DIR": "<VALUE>",
        "OPENOCD_INTERFACE": "interface/stlink.cfg",
        "OPENOCD_TELNET_PORT": "4444"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
JLINK_DEVICE Yes Target device (e.g., nRF52840_XXAA, STM32F407VG) Default: Unspecified
JLINK_SERIAL No J-Link serial number (multi-probe)
SVD_PATH No CMSIS-SVD file for the target. Without it, peripheral reads are undecoded hex.
JLINK_RTT_ADDR No Address of the firmware's _SEGGER_RTT symbol. Lets RTT survive a reset or flash.
PROBE_TYPE No Probe backend: jlink, openocd, blackmagic Default: jlink
JLINK_SPEED No Connection speed in kHz Default: 4000
BMP_GDB_PATH No Path to GDB binary Default: arm-none-eabi-gdb
JLINK_GDB_PORT No GDB server port Default: 2331
JLINK_RTT_PORT No RTT telnet port Default: 19021
OPENOCD_BINARY No Path to openocd binary Default: openocd
OPENOCD_TARGET No Target config file Default: target/stm32f4x.cfg
BMP_SERIAL_PORT No BMP serial port Default: /dev/ttyACM0
JLINK_INTERFACE No Debug interface: SWD or JTAG Default: SWD
BMP_TARGET_INDEX No Target index after scan Default: 1
OPENOCD_GDB_PORT No GDB server port Default: 3333
JLINK_INSTALL_DIR No Path to SEGGER J-Link installation (auto-detect)
OPENOCD_INTERFACE No Interface config file Default: interface/stlink.cfg
OPENOCD_TELNET_PORT No Telnet command port Default: 4444

Similar servers