Enables debugging of .NET applications, allowing users to launch or attach to processes, set and manage breakpoints, step through code, and inspect variables, scopes, and call stacks.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mcp-netcoredbgset a breakpoint on line 15 of Program.cs and launch the debugger"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
mcp-netcoredbg
MCP server for .NET debugging via netcoredbg.
Enables AI agents (Claude, etc.) to set breakpoints, step through code, and inspect variables in .NET applications.
Architecture
Tools
Tool | Description |
| Start debugging a .NET application (DLL path) |
| Attach to a running .NET process |
| Set breakpoint at file:line (supports conditions) |
| Remove a breakpoint |
| List all active breakpoints |
| Continue execution |
| Pause execution |
| Step over current line |
| Step into function call |
| Step out of current function |
| Get current call stack |
| Get variable scopes for a stack frame |
| Get variables from a scope |
| Evaluate expression in debug context |
| List all threads |
| Get recent program output |
| Get debugger status |
| Stop debugging session |
Prerequisites
netcoredbg installed and in PATH
Node.js 18+
Installation
Usage with Claude Code
Add to your Claude Code MCP settings:
Security
This tool launches and controls a debugger. By design, it can:
Execute arbitrary .NET applications
Evaluate expressions within the debugged process
Inspect memory and variables
Only use this with code you trust. Do not debug untrusted applications.
Example Session
Build your .NET app with debug symbols:
dotnet build --configuration DebugLaunch debugger:
launchwith the DLL pathSet breakpoints:
set_breakpointat file:lineContinue/step through code
Inspect variables with
scopesandvariablesEvaluate expressions with
evaluateTerminate when done
License
MIT