Back to Home
FYTJ icon

lldb-mcp-server

by FYTJ

Overview

A server that enables remote debugging capabilities by exposing LLDB functionalities over a TCP-based protocol.

Installation

Run Command
PYTHONPATH=src LLDB_MCP_ALLOW_LAUNCH=1 PYTHONUNBUFFERED=1 python3 -u -m lldb_mcp_server.mcp.server --listen 127.0.0.1:8765

Environment Variables

  • PYTHONPATH
  • LLDB_MCP_ALLOW_LAUNCH
  • PYTHONUNBUFFERED
  • MCP_HOST
  • MCP_PORT
  • TARGET_BIN
  • LLDB_MCP_CONFIG
  • LLDB_MCP_ALLOW_ATTACH
  • LLDB_MCP_ALLOWED_ROOT
  • DYLD_FRAMEWORK_PATH
  • DYLD_LIBRARY_PATH

Security Notes

The server exposes powerful LLDB debugging primitives (e.g., lldb.command, lldb.evaluate, lldb.launch, lldb.attach, lldb.readMemory, lldb.writeMemory) over an unauthenticated TCP connection. While default listening is on 127.0.0.1, configurable host/port allows broader network exposure. There are no explicit authentication or fine-grained authorization mechanisms beyond LLDB_MCP_ALLOW_LAUNCH and LLDB_MCP_ALLOW_ATTACH environment variables, which only cover specific process operations and not the arbitrary command/evaluation features. This means any client connecting to the server can execute arbitrary lldb commands, evaluate expressions, and manipulate processes on the host machine, posing a significant privilege escalation and system compromise risk if deployed in an untrusted environment or made network-accessible.

Similar Servers

Stats

Interest Score0
Security Score3
Cost ClassLow
Avg Tokens10
Stars0
Forks0
Last Update2025-12-03

Tags

DebuggerLLDBmacOSPythonTCPRemote Debugging