Skip to main content
Glama
MCP LLDB Server

MCP LLDB Server

by ankur106

MCP LLDB Server

A Model Context Protocol (MCP) server that provides LLDB debugging functionality for use with Claude or other AI assistants.

Example with claude

Features

  • Start and manage LLDB debugging sessions

  • Load programs and core dumps for analysis

  • Set breakpoints, step through code, and examine memory

  • View call stacks, variables, and registers

  • Execute arbitrary LLDB commands

Related MCP server: LLDB MCP Server

Installation

# Clone the repository
git clone git@github.com:ankur106/LLDB_MCP.git

cd LLDB_MCP

# Install dependencies
npm install

# Build the project
npm run build

Usage

Using with Claude or other MCP-enabled assistants

  1. Configure the MCP settings in the Claude desktop app or browser extension to include this server:

{
  "mcpServers": {
    "lldb": {
      "command": "node",
      "args": ["/path/to/LLDB_MCP/build/index.js"],
      "disabled": false
    }
  }
}
  1. Restart Claude or refresh the page.

  2. Now you can use the LLDB tools in your conversations with Claude.

Supported LLDB Commands

  • lldb_start: Start a new LLDB session

  • lldb_load: Load a program into LLDB

  • lldb_command: Execute an arbitrary LLDB command

  • lldb_terminate: Terminate an LLDB session

  • lldb_list_sessions: List all active LLDB sessions

  • lldb_attach: Attach to a running process

  • lldb_load_core: Load a core dump file

  • lldb_examine: Examine memory

  • lldb_info_registers: Display registers

  • lldb_set_breakpoint: Set a breakpoint

  • lldb_continue: Continue program execution

  • lldb_step: Step program execution

  • lldb_backtrace: Show call stack

  • lldb_print: Print value of expression

  • lldb_next: Step over function calls

  • lldb_finish: Execute until the current function returns

  • lldb_run: Run the program

  • lldb_frame_info: Get information about the current stack frame

  • lldb_disassemble: Disassemble the current function

Available Tools

19 tools
LLDB_ATTACHC

Attach to a running process

Inputs: sessionId (required), pid (required).

LLDB_BACKTRACEB

Show call stack

Inputs: sessionId (required), full, limit.

LLDB_COMMANDC

Execute a LLDB command

Inputs: sessionId (required), command (required).

LLDB_CONTINUEC

Continue program execution

Inputs: sessionId (required).

LLDB_DISASSEMBLEC

Disassemble code of a function

Inputs: sessionId (required), address (required).

LLDB_EXAMINEC

Examine memory

Inputs: sessionId (required), expression (required), format, count.

LLDB_FINISHB

Execute until the current function returns

Inputs: sessionId (required).

LLDB_FRAME_INFOC

Display frame information

Inputs: sessionId (required), frameIndex (required).

LLDB_INFO_REGISTERSC

Display registers

Inputs: sessionId (required), register.

LLDB_LIST_SESSIONSA

List all active LLDB sessions

Inputs: no named parameters.

LLDB_LOADB

Load a program into LLDB

Inputs: sessionId (required), program (required), arguments.

LLDB_LOAD_COREC

Load a core dump file

Inputs: sessionId (required), program (required), corePath (required).

LLDB_NEXTB

Step over function calls

Inputs: sessionId (required), instructions.

LLDB_PRINTC

Print value of expression

Inputs: sessionId (required), expression (required).

LLDB_RUND

Run the program

Inputs: sessionId (required).

LLDB_SET_BREAKPOINTC

Set a breakpoint

Inputs: sessionId (required), location (required), condition.

LLDB_STARTC

Start a new LLDB session

Inputs: lldbPath, workingDir.

LLDB_STEPC

Step program execution

Inputs: sessionId (required), instructions.

LLDB_TERMINATEC

Terminate a LLDB session

Inputs: sessionId (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.1/5.0

    Scored across 19 tools

    Disambiguation5/5

    Each tool covers a distinct debugger operation (e.g., attach, backtrace, continue, examine memory, set breakpoint), with no overlaps. An agent can clearly differentiate them.

    Naming Consistency5/5

    All tools follow a strict LLDB_VERB pattern with underscores, providing a predictable and uniform naming convention throughout.

    Tool Count5/5

    19 tools cover a comprehensive set of debugger operations without being overwhelming. The scope matches the typical needs of an LLDB interface.

    Completeness4/5

    The tool set covers core workflows like breakpoints, stepping, memory/register inspection, and session management. Minor gaps exist (e.g., conditional breakpoints, watchpoints), but the surface is largely complete for standard debugging.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      B
      quality
      D
      maintenance
      Provides GDB debugging functionality for use with Claude or other AI assistants, allowing users to manage debugging sessions, set breakpoints, examine variables, and execute GDB commands through natural language.
      16
      111 npm
      161
      MIT
    • A
      license
      A
      quality
      D
      maintenance
      Provides structured debugging capabilities through LLDB, enabling AI assistants to set breakpoints, inspect variables, analyze crashes, disassemble code, and evaluate expressions in C/C++ programs.
      17
      3
      Apache 2.0
    • F
      license
      Not graded
      quality
      D
      maintenance
      Enables dynamic debugging with GDB via the MCP protocol, allowing LLMs to execute GDB commands, manage breakpoints, control execution, and inspect program state.
      3
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables AI assistants to interact with LLDB debugging sessions through a standardized MCP interface, allowing natural language commands for debugging tasks like setting breakpoints, stepping, and evaluating expressions.
      756
      Apache 2.0