lldb-mcp-server
by FYTJ
Overview
A server that enables remote debugging capabilities by exposing LLDB functionalities over a TCP-based protocol.
Installation
PYTHONPATH=src LLDB_MCP_ALLOW_LAUNCH=1 PYTHONUNBUFFERED=1 python3 -u -m lldb_mcp_server.mcp.server --listen 127.0.0.1:8765Environment 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
XcodeBuildMCP
Provides an MCP (Model Context Protocol) server for AI agents and other clients to programmatically build, test, run, and debug iOS and macOS applications, manage simulators/devices, and capture logs.
osaurus
Osaurus is an AI edge runtime for macOS, enabling users to run local and cloud AI models, orchestrate tools via the Model Context Protocol (MCP), and power AI applications and workflows on Apple Silicon.
XcodeDocsMCP
This MCP server provides tools for querying Apple developer documentation and SDK symbols directly from a local Xcode installation on macOS.
inspector
An interactive developer tool for testing, debugging, and monitoring MCP (Model Context Protocol) servers, including their tools, prompts, resources, and UI widgets.