Skip to content

DrBarnabus/SourceExplorerMcp

Repository files navigation

SourceExplorerMcp

MCP tools for exploring source code of .NET assemblies via decompilation

GitHub Release NuGet Downloads Build Status


What is SourceExplorerMcp

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.

Available tools

  • 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.

Installation

This MCP is distributed as a dotnet tool, the preferred way to install this is with the new dnx option included with .NET 10

Prerequisites

Configure the MCP Server in your client

Claude Code:

claude mcp add source-explorer -- dotnet dnx SourceExplorerMcp --prerelease --yes

Note: You can also add --scope local, --scope user or --scope project to the above command. It should default to local if not specified.

Standard Config (works in most tools):

{
    "mcpServers": {
        "source-explorer": {
            "type": "stdio",
            "command": "dotnet",
            "args": [
                "dnx",
                "SourceExplorerMcp",
                "--prerelease",
                "--yes"
            ]
        }
    }
}

About

A dotnet MCP for searching and decompiling .NET types in your local project

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages