MCP Server GDB
MCP Server to expose the GDB debugging capabilities
Overview
MCP Server GDB is a GDB/MI protocol server built on the Axum framework, designed to provide RESTful API interfaces for remote application debugging.
To use MCP Server GDB, install Rust and Cargo, clone the repository, and run cargo run to start the server. The default server runs on http://localhost:8080.
- Create and manage GDB debug sessions - Send GDB/MI commands and receive responses - Set and manage breakpoints - View stack information and variables - Control program execution (run, pause, step, etc.) - Support for concurrent multi-session debugging
- Debugging applications remotely using GDB.
- Managing multiple debugging sessions simultaneously.
- Automating debugging tasks through RESTful API calls.
Add to your AI client
Use these steps to connect MCP Server GDB in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"mcp-server-gdb-pansila": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-gdb-pansila"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"mcp-server-gdb-pansila": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-gdb-pansila"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"mcp-server-gdb-pansila": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-gdb-pansila"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"mcp-server-gdb-pansila": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-gdb-pansila"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"mcp-server-gdb-pansila": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-gdb-pansila"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"mcp-server-gdb-pansila": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-mcp-server-gdb-pansila"
]
}
}
}FAQ
What programming language is MCP Server GDB written in?
MCP Server GDB is written in Rust.
Is there a license for MCP Server GDB?
Yes, it is licensed under the MIT license.
How can I configure the server?
You can adjust server settings by modifying the `src/config.rs` file.