# Sharphy

> Sharphy is an open-source MCP server for developer tools. .NET crash dump, heap and assembly analysis for AI coding agents over stdio. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Windows, Linux, macOS, self-hosted
- **Repository:** https://github.com/baharmaulidiii/sharphy
- **MCP Registry name:** io.github.baharmaulidiii/sharphy
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools), [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-11-18

## About

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.

## Features

- **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

## Install

### Claude Code (Terminal)

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

### Claude Desktop (claude_desktop_config.json)

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

### Cursor (~/.cursor/mcp.json)

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

### VS Code (.vscode/mcp.json)

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

### Windsurf (~/.codeium/windsurf/mcp_config.json)

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

### Other clients (your client's MCP settings (most use this shape))

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

## Tools

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

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

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.

---
Source: https://ai-powered.com/mcp/sharphy
