Get the FREE Ultimate OpenClaw Setup Guide →

LLDB_MCP

LLDB MCP implementation

Installation
Run this command in your terminal to add the MCP server to Claude Code.
Run in terminal:
Command
claude mcp add --transport stdio ankur106-lldb_mcp node /path/to/LLDB_MCP/build/index.js

How to use

This MCP server exposes LLDB debugging capabilities as MCP commands that you can invoke from Claude or any MCP-enabled assistant. It allows you to start and manage LLDB sessions, load binaries and core dumps, set breakpoints, inspect memory, view registers and call stacks, and execute arbitrary LLDB commands through structured MCP messages. The server acts as a bridge between natural language or scripted intents and LLDB's debugging workflow, enabling interactive debugging within conversational contexts.

To use it, configure the MCP client (e.g., Claude) to point at the LLDB MCP server entry with the provided command and argument setup. Once connected, you can issue commands like lldb_start, lldb_load, lldb_command, lldb_backtrace, lldb_print, lldb_set_breakpoint, and lldb_continue to control debugging sessions and retrieve structured results suitable for chat-based responses. You can manage multiple sessions, attach to processes, and load core dumps as needed during a debugging session.

How to install

Prerequisites:

  • Node.js and npm installed on your system
  • Access to the repository (via git)

Installation steps:

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

  2. Navigate to the project directory: cd LLDB_MCP

  3. Install dependencies: npm install

  4. Build the project: npm run build

  5. Run the MCP server (example): node build/index.js

  6. (Optional) Register the server in your MCP client configuration (as shown in the README) so clients can discover and connect to the lldb MCP server.

Additional notes

Tips and common issues:

  • Ensure the build step completes successfully before running the server; missing build artifacts will cause startup failures.
  • When configuring the MCP client, use a stable path to the built index.js to avoid mismatches after rebuilds.
  • If you see permission or port issues, verify that the process has network access and the intended port is not blocked by a firewall.
  • LLDB sessions may require appropriate permissions to attach to processes; run as a user with sufficient rights or adjust system security settings accordingly.
  • For complex debugging workflows, consider creating macros or scripted sequences that combine multiple lldb_* commands into a single MCP invocation to streamline conversations.

Related MCP Servers

Sponsor this space

Reach thousands of developers