Skip to content
MCP server

Sharphy

.NET crash dump, heap and assembly analysis for AI coding agents over stdio

Runs locallyStatus and history
Install
Pricing
Open source
Platforms
CLI, Windows, Linux
Runs
Locally
Version
1.1.2
Listing updated
today

Similar MCP servers

About Sharphy

Sharphy is an open-source MCP server for developer tools. It runs locally on your machine and is started by your AI client.

Coding agents usually see only source, which leaves them blind to production crashes, deadlocks, memory leaks and compiled third-party binaries with no source. This server gives them a post-mortem view: you collect a dump with standard Microsoft tools, copy it to a workstation, and the agent inspects it there.

Under the hood it combines ClrMD for crash dump and heap analysis, ILSpy for C# decompilation, Mono.Cecil for metadata and mutation, and Roslyn with an isolated load context. The README names tools including sharphy_analyze_dump, sharphy_inspect_heap and sharphy_deadlock_detector, and says there are ten in total. It reads Windows dump files and Linux ELF core dumps, and compiled .dll or .exe assemblies.

It is distributed as the Sharphy.Cli .NET global tool on NuGet and started with sharphy mcp start, speaking JSON-RPC over stdio. Nothing needs installing on production servers, and analysis can run offline. The README includes a legal disclaimer: it is meant for security research, crash diagnostics and lawful engineering, and users are responsible for complying with laws and licences.

Install

Run in a terminal

claude mcp add sharphy -- dnx Sharphy.Cli --yes

Add to claude_desktop_config.json

{
  "mcpServers": {
    "sharphy": {
      "command": "dnx",
      "args": [
        "Sharphy.Cli",
        "--yes"
      ]
    }
  }
}
Install in CursorOpens Cursor, which asks you to confirm. Or add it by hand:

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "sharphy": {
      "command": "dnx",
      "args": [
        "Sharphy.Cli",
        "--yes"
      ]
    }
  }
}
Install in VS CodeOpens VS Code, which asks you to confirm. Or add it by hand:

Add to .vscode/mcp.json

{
  "servers": {
    "sharphy": {
      "type": "stdio",
      "command": "dnx",
      "args": [
        "Sharphy.Cli",
        "--yes"
      ]
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "sharphy": {
      "command": "dnx",
      "args": [
        "Sharphy.Cli",
        "--yes"
      ]
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "sharphy": {
      "command": "dnx",
      "args": [
        "Sharphy.Cli",
        "--yes"
      ]
    }
  }
}

Using several servers? Build one config file with the MCP config generator.

Tools this server provides (3)

Taken from the project documentation; the running server may differ.

sharphy_analyze_dump
Analyse a crash dump
sharphy_inspect_heap
Inspect the managed heap
sharphy_deadlock_detector
Detect deadlocks and lock cycles

What it does

Crash dump analysis
Reads Windows dumps and Linux core dumps to find the cause of fatal crashes.
Heap inspection
Looks at managed heap contents, including large object heap fragmentation and leaks.
Deadlock detection
Finds lock cycles and synchronization contention in dumps.
Decompilation
Decompiles compiled .NET assemblies back to C# using ILSpy.
Zero production footprint
Runs on an analyst workstation, so nothing is installed on production machines.
Offline capable
Works in air-gapped environments because analysis uses only local files.

Good for

  • Diagnose a production .NET crash from a dump file
  • Look for the thread cycle behind a hang
  • Investigate memory growth through heap inspection
  • Read the logic of a compiled third-party DLL with no source

Pricing

Open source

Free; distributed on NuGet

Sharphy FAQ

Do I need to install it on production servers?

No. The README describes a post-mortem workflow where dumps are collected with dotnet-dump and analysed elsewhere.

How do I install it?

As the Sharphy.Cli .NET global tool from NuGet, then run sharphy mcp start.

What does it analyse?

Windows and Linux crash dumps, compiled .NET assemblies, and isolated runtime contexts.

Is there a usage restriction?

The README says it is for good-faith security research, diagnostics and lawful engineering, and users must follow applicable laws and licences.

Is Sharphy free?

Yes. Sharphy is open source, so you can use and self-host it for free.

How do I add Sharphy to Claude Code?

Run this command in your terminal: claude mcp add sharphy -- dnx Sharphy.Cli --yes

What are the best alternatives to Sharphy?

The closest alternatives to Sharphy are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

Where this comes from

  • Description: written from the project's README.
  • Install steps: from the official MCP Registry entry.

How AIPoweredBot checks servers