
How to add LLDB-MCP to Claude Desktop
Integrate the LLDB debugger with Claude via MCP for AI-assisted debugging sessions. Paste the config into ~/Library/Application Support/Claude/claude_desktop_config.json and restart Claude Desktop.
Last updated June 14, 2026 ยท 105โ ยท stdio ยท no auth
Claude Desktop config for LLDB-MCP
git clone https://github.com/stass/lldb-mcp.git && cd lldb-mcp && pip install mcp{
"mcpServers": {
"lldb-mcp": {
"command": "python3",
"args": [
"/path/to/lldb-mcp/lldb_mcp.py"
]
}
}
}Setup steps
- 1Open Claude Desktop โ Settings โ Developer โ Edit Config (this opens ~/Library/Application Support/Claude/claude_desktop_config.json).
- 2Paste the LLDB-MCP config below under the top-level "mcpServers" key.
- 3Fill in any placeholder secrets (API keys, paths) in the snippet.
- 4Save the file, then fully quit and reopen Claude Desktop.
- 5Open a chat and confirm LLDB-MCP's tools appear under the ๐ tools menu.
Before you start
- Python 3.7+
- LLDB installed on the system
- Claude desktop app with MCP support
- The mcp Python package (pip install mcp)
What LLDB-MCP can do in Claude Desktop
lldb_startStart a new LLDB session.
lldb_terminateTerminate an LLDB session.
lldb_list_sessionsList all active LLDB sessions.
lldb_loadLoad a program into LLDB.
lldb_attachAttach to a running process.
lldb_load_coreLoad a core dump file.
lldb_runRun the loaded program.
lldb_continueContinue program execution.
Security
The server can attach to running processes and execute arbitrary LLDB commands on the host. Check for permission issues when attaching to processes. Enable debug mode with the --debug flag for detailed logging.
LLDB-MCP + Claude Desktop FAQ
Where is the Claude Desktop config file?
Claude Desktop reads MCP servers from ~/Library/Application Support/Claude/claude_desktop_config.json. Paste the LLDB-MCP config there under the "mcpServers" key and restart the client.
Is LLDB-MCP safe to use with Claude Desktop?
The server can attach to running processes and execute arbitrary LLDB commands on the host. Check for permission issues when attaching to processes. Enable debug mode with the --debug flag for detailed logging.
How do I run LLDB commands that don't have a dedicated function?
Use the lldb_command tool to execute arbitrary LLDB commands directly.
How do I enable detailed logging?
Start the server with the --debug flag to enable debug mode for detailed logging.
What should I do if LLDB commands are timing out?
Check that LLDB is installed correctly and verify the path to LLDB when starting a new session.