SourceExplorerMcp 1.0.2

dotnet tool install --global SourceExplorerMcp --version 1.0.2
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local SourceExplorerMcp --version 1.0.2
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=SourceExplorerMcp&version=1.0.2
                    
nuke :add-package SourceExplorerMcp --version 1.0.2
                    

SourceExplorerMcp

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

GitHub Release NuGet Downloads Build Status License: MIT


What is SourceExplorerMcp

SourceExplorerMcp is a Model Context Protocol (MCP) server distributed as a dotnet tool. It lets AI agents explore and decompile .NET types from a project's dependency graph — NuGet packages and framework assemblies — without needing the original source code.

Point it at any .NET project directory, and the server will resolve the project's dependencies, scan for assemblies, and expose tools that let an agent search for types and decompile them into readable C# source.

How it works

  1. Parses project.assets.json to map DLL filenames to NuGet packages.
  2. Scans bin/ directories for matching .dll files.
  3. Indexes types via System.Reflection.Metadata.
  4. Decompiles on demand via ICSharpCode.Decompiler.

Assembly and type data are cached in memory, so repeated tool calls against the same project are fast.

Available tools

Tool Description
search-types Search for .NET types across all assemblies in a project's dependency graph using wildcard patterns (e.g. *HttpClient*, Microsoft.Extensions.*Options). Returns type summaries including fully-qualified names.
decompile-type Decompile a .NET type into C# source code. Supports full mode (complete source with method bodies) and signatures mode (API surface only). Large outputs are automatically offloaded to a temporary file.

Installation

Prerequisites

Configure the MCP server in your client

Claude Code:

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

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

Standard Config (works in most MCP clients):

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

Configuration

Environment Variable Default Description
SOURCE_EXPLORER_MAX_INLINE_CHARS 10000 Character threshold before decompiled source is offloaded to a temporary file instead of returned inline.

Changelog

See CHANGELOG.md for a full list of changes between versions.

Licence

This project is licenced under the MIT Licence.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
1.0.2 91 3/20/2026
1.0.1 82 3/18/2026
1.0.0 96 3/8/2026
0.1.0 213 11/24/2025
0.1.0-preview.2 261 11/13/2025