drio
Open app

Go Delve Debugger MCP Server

Source

MCP Server that exposes Golang's Delve Debugger, enable AI to self-debug

Catalog onlyCatalog onlySTDIO

Overview

Go Delve Debugger MCP Server is a server that exposes Golang's Delve Debugger, enabling AI to self-debug Go applications through a Model Context Protocol (MCP).

To use the server, clone the repository, build the server, and start it. You can then interact with the server using various commands to manage debug sessions.

  • Start and manage debug sessions for Go programs - Set breakpoints and control execution flow - Evaluate expressions and inspect variables - Manage multiple debug sessions simultaneously
  1. Debugging Go applications with AI assistance
  2. Automating debugging tasks in development environments
  3. Enhancing debugging capabilities for complex Go applications

Add to your AI client

Use these steps to connect Go Delve Debugger MCP Server 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": {
    "dlv-mcp-xhd2015": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-dlv-mcp-xhd2015"
      ]
    }
  }
}

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": {
    "dlv-mcp-xhd2015": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-dlv-mcp-xhd2015"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "dlv-mcp-xhd2015": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-dlv-mcp-xhd2015"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "dlv-mcp-xhd2015": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-dlv-mcp-xhd2015"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "dlv-mcp-xhd2015": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-dlv-mcp-xhd2015"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "dlv-mcp-xhd2015": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-dlv-mcp-xhd2015"
      ]
    }
  }
}

FAQ

What is the Model Context Protocol (MCP)?

MCP is a protocol that allows for communication between AI models and debugging tools.

Is the server free to use?

Yes! The Go Delve Debugger MCP Server is open-source and free to use.

What are the prerequisites for using the server?

You need Go 1.21 or higher and the Delve debugger installed.