ILSpy-Mcp
by bivex·★ 33·Score 44
A .NET assembly decompiler and analysis tool that exposes ILSpy's capabilities through the MCP protocol for AI assistants.
Overview
ILSpy MCP Server is a specialized tool that enables AI assistants to decompile and analyze .NET assemblies through natural language commands. It integrates ILSpy, a popular .NET decompiler, to provide powerful reverse-engineering capabilities directly in AI environments like Claude Code and Cursor. The server offers a comprehensive set of tools for assembly analysis, including type decompilation, method extraction, type hierarchy analysis, and member search. The implementation follows a clean architecture with clear separation of concerns, providing read-only operations with proper security measures including assembly path validation and timeout controls. It's actively maintained with recent commits and offers detailed configuration options through environment variables.
Try asking AI
After installing, here are 5 things you can ask your AI assistant:
When to choose this
Choose ILSpy-MCP when you need to reverse engineer .NET assemblies through AI assistants without leaving your development environment.
When NOT to choose this
Don't choose this if you need to analyze non-.NET code or require write access to assemblies, as this server is read-only and limited to the .NET ecosystem.
Tools this server exposes
8 tools extracted from the READMEdecompile_typeDecompile and analyze a .NET type from a DLL
decompile_methodDecompile and analyze a specific method
list_assembly_typesList all types in an assembly
analyze_assemblyGet architectural overview of an assembly
get_type_membersGet complete API surface of a type
find_type_hierarchyFind inheritance relationships
search_members_by_nameSearch for members by name
find_extension_methodsFind extension methods for a type
Comparable tools
Installation
Installation
Prerequisites
- .NET 9.0 SDK or higher
- MCP-compatible client (Claude Code, Cursor, Claude Desktop, etc.)
Install the tool
dotnet tool install -g ILSpyMcp.ServerUpdate to latest version
dotnet tool update -g ILSpyMcp.ServerConfigure for Claude Desktop
Add to claude_desktop_config.json:
{
"mcpServers": {
"ilspy-mcp": {
"command": "ilspy-mcp",
"args": []
}
}
}FAQ
- What .NET versions does this support?
- The server supports decompiling assemblies from various .NET versions, including .NET Framework and .NET Core/.NET 5+.
- Can I decompile obfuscated assemblies?
- ILSpy can handle partially obfuscated code, but heavily obfuscated assemblies may not decompile properly. Results depend on the obfuscation technique used.
Compare ILSpy-Mcp with
Last updated · Auto-generated from public README + GitHub signals.