MCP GDB Server
MCP GDB 서버
Claude 또는 기타 AI 어시스턴트와 함께 사용할 수 있는 GDB 디버깅 기능을 제공하는 MCP(Model Context Protocol) 서버입니다.
특징
GDB 디버깅 세션 시작 및 관리
분석을 위해 프로그램 및 코어 덤프를 로드합니다.
중단점 설정, 코드 단계별 실행 및 메모리 검사
호출 스택, 변수 및 레지스터 보기
임의의 GDB 명령 실행
Related MCP server: GDB MCP Server
설치
지엑스피1
용법
Claude 또는 기타 MCP 지원 어시스턴트와 함께 사용
Claude 데스크톱 앱이나 브라우저 확장 프로그램에서 MCP 설정을 구성하여 이 서버를 포함하세요.
{
"mcpServers": {
"gdb": {
"command": "node",
"args": ["/path/to/mcp-gdb/build/index.js"],
"disabled": false
}
}
}클로드를 재시작하거나 페이지를 새로고침하세요.
이제 클로드와의 대화에서 GDB 도구를 사용할 수 있습니다.
예제 명령
다음은 Claude를 통해 GDB MCP 서버를 사용하는 몇 가지 예입니다.
GDB 세션 시작
Use gdb_start to start a new debugging session프로그램 로딩
Use gdb_load to load /path/to/my/program with the sessionId that was returned from gdb_start중단점 설정
Use gdb_set_breakpoint to set a breakpoint at main in the active GDB session프로그램 실행
Use gdb_continue to start execution변수 검토
Use gdb_print to evaluate the expression "my_variable" in the current context백트레이스 얻기
Use gdb_backtrace to see the current call stack세션 종료
Use gdb_terminate to end the debugging session지원되는 GDB 명령
gdb_start: 새로운 GDB 세션을 시작합니다gdb_load: GDB에 프로그램을 로드합니다gdb_command: 임의의 GDB 명령을 실행합니다.gdb_terminate: GDB 세션을 종료합니다.gdb_list_sessions: 모든 활성 GDB 세션을 나열합니다.gdb_attach: 실행 중인 프로세스에 연결gdb_load_core: 코어 덤프 파일을 로드합니다gdb_set_breakpoint: 중단점을 설정합니다gdb_continue: 프로그램 실행을 계속합니다.gdb_step: 단계별 프로그램 실행gdb_next: 함수 호출을 단계별로 실행gdb_finish: 현재 함수가 반환될 때까지 실행합니다.gdb_backtrace: 호출 스택 표시gdb_print: 표현식의 값을 출력합니다.gdb_examine: 메모리 검사gdb_info_registers: 레지스터 표시
특허
MIT
Available Tools
16 toolsgdb_attachC
Attach to a running process
Inputs: pid (required), sessionId (required).
gdb_backtraceC
Show call stack
Inputs: sessionId (required), full, limit.
gdb_commandC
Execute a GDB command
Inputs: command (required), sessionId (required).
gdb_continueC
Continue program execution
Inputs: sessionId (required).
gdb_examineC
Examine memory
Inputs: expression (required), sessionId (required), count, format.
gdb_finishC
Execute until the current function returns
Inputs: sessionId (required).
gdb_info_registersC
Display registers
Inputs: sessionId (required), register.
gdb_list_sessionsB
List all active GDB sessions
Inputs: no named parameters.
gdb_loadC
Load a program into GDB
Inputs: program (required), sessionId (required), arguments.
gdb_load_coreC
Load a core dump file
Inputs: corePath (required), program (required), sessionId (required).
gdb_nextC
Step over function calls
Inputs: sessionId (required), instructions.
gdb_printC
Print value of expression
Inputs: expression (required), sessionId (required).
gdb_set_breakpointC
Set a breakpoint
Inputs: location (required), sessionId (required), condition.
gdb_startC
Start a new GDB session
Inputs: gdbPath, workingDir.
gdb_stepC
Step program execution
Inputs: sessionId (required), instructions.
gdb_terminateC
Terminate a GDB session
Inputs: sessionId (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 16 tools
Every tool has a clearly distinct purpose with no ambiguity. Each tool targets a specific GDB operation like attaching, stepping, examining memory, or managing sessions, making misselection unlikely.
All tools follow a consistent 'gdb_' prefix with descriptive verb_noun patterns (e.g., gdb_attach, gdb_backtrace, gdb_set_breakpoint). This predictability aids agent understanding and usage.
With 16 tools, the count is slightly high but reasonable for a GDB debugging server. It covers essential debugging operations without feeling overly heavy, though it could be streamlined slightly.
The toolset provides complete coverage for GDB debugging workflows, including session management, execution control, breakpoints, memory examination, and stack analysis. No obvious gaps exist for the domain.
Related MCP Connectors
Use your Mac, Windows or Linux computer from ChatGPT, Claude or Codex: files, commands, documents.
Running journal for Claude & ChatGPT: logs runs, reads your history, writes your next session.
Source-checked CLI guides and model-aware planning for Claude Code, Codex, and Grok Build.
Live browser debugging for AI assistants — DOM, console, network via MCP.
Related MCP Servers
- AlicenseAqualityDmaintenanceProvides structured debugging capabilities through LLDB, enabling AI assistants to set breakpoints, inspect variables, analyze crashes, disassemble code, and evaluate expressions in C/C++ programs.173Apache 2.0
- AlicenseCqualityBmaintenanceEnables LLM clients to interact with the GNU Debugger (GDB) for comprehensive debugging and binary analysis. It provides a wide range of tools for program execution control, memory examination, stack analysis, and disassembly.1374GPL 3.0
- AlicenseNot gradedqualityDmaintenanceA GDB debugging tool designed for AI Agents (Claude Code, etc.)40Apache 2.0
- AlicenseBqualityDmaintenanceEnables AI assistants to start and manage LLDB debugging sessions, including loading programs, setting breakpoints, stepping through code, and examining memory.191MIT