embedded-gdb-mcp

embedded-gdb-mcp

Enables GDB debugging for embedded development workflows, allowing users to start sessions, load programs, set breakpoints, step through code, and examine memory/registers/variables via natural language.

Category
Visit Server

README

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)

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


中文文档

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured