Skip to main content
Glama
vividcode-ai

embedded-gdb-mcp

by vividcode-ai

embedded-gdb-mcp

Crates.io license

A Model Context Protocol (MCP) server that provides GDB debugging functionality, built with Rust for embedded development workflows.

Features

  • Start and manage GDB debugging sessions

  • Load programs and core dumps for analysis

  • Set breakpoints with conditional support

  • Step through code (line by line or instruction by instruction)

  • Examine memory, registers, and variables

  • View call stacks and source code with VS Code integration

  • Execute arbitrary GDB commands

  • Attach to running processes

  • Pre-built binaries for Windows, macOS, and Linux (x64 & arm64)

Related MCP server: GDB MCP Server

Installation

Claude Code

claude mcp add embedded-gdb-debugger -- npx -y @vividcodeai/embedded-gdb-mcp

Claude Desktop

Add the following to your Claude Desktop MCP configuration:

{
  "mcpServers": {
    "embedded-gdb-debugger": {
      "command": "npx",
      "args": ["-y", "@vividcodeai/embedded-gdb-mcp"]
    }
  }
}

Install from Source

git clone https://github.com/vividcode-ai/embedded-gdb-mcp.git
cd embedded-gdb-mcp
cargo build --release

The binary will be available at target/release/embedded-gdb-mcp.

Usage

Example Commands

Starting a GDB session

Use gdb_start to start a new debugging session

Loading a program

Use gdb_load to load /path/to/my/program with the sessionId that was returned from gdb_start

Setting a breakpoint

Use gdb_set_breakpoint to set a breakpoint at main in the active GDB session

Running the program

Use gdb_continue to start execution

Examining variables

Use gdb_print to evaluate the expression "my_variable" in the current context

Getting a backtrace

Use gdb_backtrace to see the current call stack

Terminating the session

Use gdb_terminate to end the debugging session

Supported GDB Commands

  • gdb_start: Start a new GDB session

  • gdb_load: Load a program into GDB

  • gdb_command: Execute an arbitrary GDB command

  • gdb_terminate: Terminate a GDB session

  • gdb_list_sessions: List all active GDB sessions

  • gdb_attach: Attach to a running process

  • gdb_load_core: Load a core dump file

  • gdb_set_breakpoint: Set a breakpoint (with optional condition)

  • gdb_continue: Continue program execution

  • gdb_step: Step program execution (line or instruction)

  • gdb_next: Step over function calls (line or instruction)

  • gdb_finish: Execute until the current function returns

  • gdb_backtrace: Show call stack (with optional full mode and frame limit)

  • gdb_print: Print value of expression

  • gdb_examine: Examine memory (with format and count options)

  • gdb_info_registers: Display registers (optionally for a specific register)

  • gdb_list_source: List source code at current or specified location with VS Code integration

License

MIT


中文文档

A
license - permissive license
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
0dRelease cycle
3Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • A
    license
    B
    quality
    C
    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
    56
    158
    MIT
  • F
    license
    A
    quality
    D
    maintenance
    Enables AI agents to debug embedded systems by providing a comprehensive interface for GDB operations across multiple architectures like ARM and x86. It supports remote debugging via gdbserver or QEMU, allowing for detailed inspection of memory, registers, stack frames, and variables.
    31
  • F
    license
    -
    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.
    4
  • A
    license
    -
    quality
    D
    maintenance
    Enables debugging of programs through GDB/MI, allowing breakpoints, stepping, and register analysis via natural language.
    1
    MIT

View all related MCP servers

Related MCP Connectors

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/vividcode-ai/embedded-gdb-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server