SourceExplorerMcp is a dotnet tool, or more specifically, a ModelContextProtocol server built to allow for the exploration of source code for .NET assemblies via decompilation.
The server exposes a number of MCP tools to allow agents such as Claude Code to explore and decompile .NET assemblies/types.
- list-all-assemblies - Lists all restored assemblies.
- search-types - Search for types in restored assemblies based on a search string.
- decompile-type - Decompile a specific type from a restored assembly and return the C# source.
This MCP is distributed as a dotnet tool, the preferred way to install this is with the new dnx option
included with .NET 10
Claude Code:
claude mcp add source-explorer -- dotnet dnx SourceExplorerMcp --prerelease --yesNote: You can also add
--scope local,--scope useror--scope projectto the above command. It should default tolocalif not specified.
Standard Config (works in most tools):
{
"mcpServers": {
"source-explorer": {
"type": "stdio",
"command": "dotnet",
"args": [
"dnx",
"SourceExplorerMcp",
"--prerelease",
"--yes"
]
}
}
}