dnre-mcp
Links#
Overview#
dnre-mcp is a Model Context Protocol (MCP) server for .NET assembly reverse engineering and decompilation. It gives AI assistants like Claude the ability to load, analyze, and decompile .NET assemblies without needing a GUI tool like dnSpy or ILSpy open. Built in C# on .NET 10 and powered by ICSharpCode.Decompiler (the engine behind ILSpy), it communicates over stdio for easy integration with Claude Code and Claude Desktop. The project is MIT licensed.
Features#
Assembly Management#
- Load .NET assemblies (dll/exe) from disk
- List all currently loaded assemblies
Type Analysis#
- List all types in an assembly with optional namespace filtering
- Search for types by name (case-insensitive)
- Get complete type metadata — base class, interfaces, fields, properties, methods, events, nested types
- Decompile entire types to C# source code
Method Analysis#
- Search for methods across all types by name
- Get method signature details — parameters, return type, accessibility, virtual/abstract/override
- Decompile specific methods to C# source (handles overloads)
Namespace Browsing#
- List all namespaces in an assembly
Quick Start#
1. Download the latest release from the GitLab releases page (pre-built binaries available for Windows x64 and Linux x64, no .NET SDK required).
2. Or build from source (requires .NET 10 SDK):
dotnet build src/DnreMcp/DnreMcp.csproj3. Example MCP client config (e.g. for Claude Code or Claude Desktop):
{
"mcpServers": {
"dnre": {
"command": "/path/to/DnreMcp"
}
}
}