DnSpy

•
42
•

Enables programmatic interaction and automation of .NET reverse engineering workflows through an MCP server compatible with dnSpy and ILSpy.

The DnSpy MCP server provides a robust framework for extending and automating .NET reverse engineering tasks. Built in C#, it offers a modular architecture with reflection-based tool registration and auto-generated JSON schemas for seamless integration with AI agents like Claude Code, Codex, and OpenCode. It supports a comprehensive suite of tools for decompilation, code analysis, searching, and even patching .NET assemblies, all while ensuring navigation-friendly output with metadata tokens and automatic backups for patching operations.

主な機能

01Modular architecture with reflection-based tool registration
02Navigation-friendly output with metadata tokens for direct dnSpy jumps and safe patching with backups
03MCP stdio transport compatible with Claude Code, Codex, and OpenCode
04Auto-generation of tool JSON schemas from C# method signatures
0513 GitHub stars
06Extensive tools for decompiling, searching, and patching .NET assemblies

ユースケース

01Programmatically analyzing, decompiling, and patching .NET assemblies for security research or software modification.
02Automating .NET reverse engineering tasks via an AI agent or programmatic client.
03Integrating dnSpy/ILSpy functionalities into custom workflows or development environments.