1. Conduid
  2. RAG
  3. Dotnet Dump MCP
MCP server · RAG

Dotnet Dump MCP

🤖 An AI-native MCP server for .NET memory dump investigations. Leverage LLMs (Claude/Gemini) to analyze heaps, threads, and exceptions using natural language. Built with ClrMD, token-efficient paging, and Docker support for cross-architecture (.NET/AMD64/ARM64) post-mortem analysis.

34Low

Scored 6 months ago · breakdown

About Dotnet Dump MCP

Dotnet Dump MCP is an MCP server in the RAG category: 🤖 An AI-native MCP server for .NET memory dump investigations. Leverage LLMs (Claude/Gemini) to analyze heaps, threads, and exceptions using natural language. Built with ClrMD, token-efficient paging, and Docker support for cross-architecture (.NET/AMD64/ARM64) post-mortem analysis.

Install

From source
git clone https://github.com/frankbolero/dotnet-dump-mcp

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Dotnet Dump MCP

Powered by Claude · Grounded in docs

I know everything about Dotnet Dump MCP. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

dotnet-dump-mcp-server

Analyze .NET memory dumps with the help of your AI Assistant.

This project is a Model Context Protocol (MCP) server that wraps the powerful Microsoft.Diagnostics.Runtime (ClrMD) library. It allows AI agents (like Claude CLI, Gemini CLI, Zed Agent or Cursor) to inspect .NET core dumps, analyze the heap, check threads, and diagnose memory leaks or deadlocks directly.


🚀 Quick Start

Option 1: Using Docker (Recommended)

This is the easiest way to run the server, especially if you are on a Mac analyzing Linux dumps (fixes architecture mismatches).

  1. Build the image:

    docker build -t dotnet-dump-mcp-server .
    
  2. Run the server: Mount the folder containing your dump files to /dumps inside the container.

    docker run --rm -i \
      -v "/path/to/your/dumps:/dumps" \
      -e DUMP_PATH=/dumps/your_dump.core \
      dotnet-dump-mcp-server
    

    Tip: The DUMP_PATH variable is optional. If omitted, the server will start without a dump, and your AI agent can use the load_dump tool to select one later.

    Note for Mac users with Linux dumps: Add --platform linux/amd64 to the run command if you are analyzing an x64 Linux dump on Apple Silicon.

Option 2: Running Locally

If you have the .NET SDK 8, 9 or 10 installed and your OS matches the dump's OS (e.g., Windows dump on Windows, Linux on Linux).

MacOS / Linux:

# Set the dump path (optional) and run
export DUMP_PATH="/path/to/your/dump.core"
dotnet run --project src/DotNetDump.Server/DotNetDump.Server.csproj --framework net9.0

Windows (PowerShell):

$env:DUMP_PATH = "C:\path\to\your\dump.dmp"
dotnet run --project src\DotNetDump.Server\DotNetDump.Server.csproj --framework net9.0

✨ Features

The server exposes the following tools to your AI agent:

  • Heap Analysis:
    • dump_heap: Get a statistical summary of the managed heap (top objects by size/count).
    • list_objects: List specific objects with filtering and pagination.
    • ee_heap: View internal CLR heap segments.
  • Object Inspection:
    • dump_obj: detailed view of an object's fields and values.
    • gc_root: Find why an object is being kept in memory (reference chains).
    • gchandles: List Garbage Collector handles.
  • Thread & Stack Analysis:
    • clr_threads: List all managed threads and their states (Live, Dead, etc.).
    • clr_stack: Get stack traces, optionally grouped by unique frames.
    • thread_pool: View CLR ThreadPool status (completion ports, workers).
  • System & Modules:
    • clr_modules: List loaded assemblies and modules.
    • sync_blk: Analyze synchronization blocks to find locked objects (deadlock detection).

🤖 Agent Configuration

Add this server to your MCP client configuration (e.g., claude_desktop_config.json or Cursor Settings).

Docker Config (Example)

Note that we set a timeout to 10 minutes (600000 ms) due to that some requests might take a large amount of time (dump_heap as an example).

{
  "mcpServers": {
    "dotnet-dump": {
      "command": "docker",
      "args": [
        "run", "--rm", "-i",
        "-v", "/Users/yourname/dumps:/dumps",
        "-e", "DUMP_PATH=/dumps/crash.core",
        "dotnet-dump-mcp-server"
      ],
      "timeout": 600000
    }
  }
}

Local Config (Example)

{
  "mcpServers": {
    "dotnet-dump": {
      "command": "dotnet",
      "args": [
        "run",
        "--project",
        "/absolute/path/to/dotnet-dump-mcp-server/src/DotNetDump.Server/DotNetDump.Server.csproj",
        "--framework", "net9.0"
      ],
      "env": {
        "DUMP_PATH": "/path/to/your/dump.core"
      }
    }
  }
}

🛠️ Development

To contribute or test the server locally, you can use the MCP Inspector.

  1. Clone the repo:

    git clone https://github.com/yourusername/dotnet-dump-mcp-server.git
    cd dotnet-dump-mcp-server
    
  2. Run with MCP Inspector: This launches a web UI to interact with the server directly, allowing you to call tools and see the output.

    export DUMP_PATH="/path/to/sample.core"
    npx @modelcontextprotocol/inspector \
      dotnet run --project src/DotNetDump.Server/DotNetDump.Server.csproj --framework net9.0
    

Project Structure

  • src/DotNetDump.Core: The analysis logic (ClrMD wrappers).
  • src/DotNetDump.Server: The MCP Server implementation.
  • tests: Integration tests.

Code Style

  • Run dotnet format before committing to ensure code style consistency.

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About Dotnet Dump MCP

How do I install Dotnet Dump MCP?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Dotnet Dump MCP safe to use with an AI agent?

Its trust score is 34 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Dotnet Dump MCP still maintained?

Conduid hasn't recorded a commit date for this repository yet. Check the repository directly for recent activity.