re-dotnet
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., "@re-dotnetlist types in sample.dll"
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.
re-dotnet
MCP server for .NET assembly analysis. Vendor-neutral wrapper around AsmResolver (PE + .NET metadata) and ICSharpCode.Decompiler / ILSpy (C# decompiler).
Why
The other RE-AI MCP servers (re-lief, re-rizin, re-capa) handle native PE, ELF, MachO, DEX, ART, OAT — but none of them read the .NET CLI header or the ECMA-335 metadata tables. A MonoLauncher-style launcher that ships its payload as a managed .NET assembly is invisible to those tools; the import hash is empty, the strings table is uninformative, and rizin only sees native wrapper code.
re-dotnet fills that gap. It enumerates TypeDef / MethodDef / FieldDef, walks the #US string heap, and decompiles a single class or method to C# on demand.
Related MCP server: dotnet-sherlock-mcp
Architecture
The MCP server itself is pure Python. The heavy lifting is done by a small .NET 10 CLI binary, re-dotnet-cli, built from src/re_dotnet/dotnet/Re.Dotnet.Cli/:
Claude Code (MCP stdio)
│
▼
re-dotnet server (Python, this directory)
│ subprocess.run(...)
▼
re-dotnet-cli (self-contained .NET 10 binary, single-file publish)
│
├─ AsmResolver 6.x (PE + .NET metadata, obfuscation-robust)
└─ ICSharpCode.Decompiler 9.x (C# decompiler)The subprocess boundary is intentional:
No
pythonnet.pythonnetis a fragile ABI bridge that breaks on every Python minor. Process isolation is robust.No Mono. .NET 10 is the only supported runtime.
Single-file publish. The CLI is a self-contained binary; no
dotnet --infodance, noDOTNET_ROOTenv vars, no GAC.
The Python wrapper locates the binary via this fallback chain (see runner.py):
$RE_DOTNET_CLI_PATH(escape hatch for tests)<server>/bin/re-dotnet-cli(install.sh default)The dev build under
src/re_dotnet/dotnet/.../bin/re-dotnet-clion$PATH
Tools
Tool | What it does |
| Health check — return .NET runtime + AsmResolver + Decompiler versions |
| Enumerate TypeDef rows; return assembly header + one row per type |
| Decompile a single class to C# via ILSpy |
| Decompile a single method to C# via ILSpy |
| Walk field-default constant strings (the #US heap subset) |
| Return the managed entry point ( |
Install
./install.sh builds the .NET CLI via dotnet publish and copies the resulting binary to servers/re-dotnet/bin/.
To build standalone:
cd servers/re-dotnet/src/re_dotnet/dotnet/Re.Dotnet.Cli
dotnet publish -c Release -o ../../../../binTo run:
re-dotnet # stdio transport (default for MCP)
python -m re_dotnet # equivalentRequirements
.NET 10 SDK or runtime (
dotnet --version≥ 10.0)2 GB disk for the .NET SDK + the self-contained binary
Deobfuscation notes
The ILSpy decompiler produces clean C# for non-obfuscated assemblies. For binaries that have been through commercial obfuscation (control-flow flattening, string encryption, JIT-hooking), the decompiler will surface Unable to decompile ... errors. The remediation path is to run the .NET deobfuscator first (the OSS de4dot shells out, GPL-3.0 — the RE-AI plugin keeps it process-isolated so the plugin's own distribution stays clean) and then re-run decompile_type / decompile_method on the cleaned output.
Pairing with re-leak-scan
A .NET-style launcher that calls out to telemetry endpoints (Sentry, Logstash, Confluence, Google Drive) will have those URLs as field-default constants. Run re-leak-scan (T2.2) on the assembly, or call list_strings here and pipe the output through a regex filter for the four endpoint families.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/Heretek-RE/re-dotnet'
If you have feedback or need assistance with the MCP directory API, please join our Discord server