dnSpy.MCP
An MCP Server for dnSpyEx, designed to enable AI-assisted .NET decompilation, code analysis, and reverse engineering.一个用于 dnSpyEx 的 MCP 服务器,旨在实现基于 AI 辅助的 .NET 反编译、代码分析及逆向工程。
Install / Use
claude mcp add freelyflyyy -- npx -y github:freelyflyyy/dnSpy.MCPIf the server publishes to npm under a different name, use that package instead — check the repo README.
MCP Server
Model Context Protocol server
Quality Score
Category
Development & EngineeringSupported Platforms
Our assessment of dnSpy.MCP
dnSpy.MCP scores 74/100 on our quality scale, 3801st of 4,698 Development & Engineering skills we index.
Its MCP Server is 4.1 KB long, split into 7 sections and no code examples: a solid amount of guidance for an agent.
It has 48 GitHub stars, so there is little community track record yet; judge it on its content.
Maintenance, license and trust
- The repository was last updated 2 days ago, so dnSpy.MCP is actively maintained.
- It is released under GPL-3.0, a copyleft license: you can use it, but modified versions you distribute must carry the same license.
- Its trust signals score 97/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
dnSpy.MCP compared with similar skills
All 4 of these similar skills score higher than dnSpy.MCP; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| dnSpy.MCP (this skill)by freelyflyyy | 74 | 48 | 2d ago | MCP Server |
| taste-skillby Leonxlnx | 100 | 116.8k | 8d ago | CLAUDE.md |
| Agent-Reachby Panniantong | 100 | 112.3k | 8d ago | CLAUDE.md |
| rufloby ruvnet | 100 | 81.9k | today | CLAUDE.md |
| headroomby headroomlabs-ai | 100 | 79.8k | today | CLAUDE.md |
Frequently asked questions
- How do I install dnSpy.MCP?
- Run
claude mcp add freelyflyyy -- npx -y github:freelyflyyy/dnSpy.MCP. The install tabs above show the steps for each supported agent. - Which AI agents does dnSpy.MCP work with?
- It is written for Claude Code and Claude Desktop, as a MCP Server file. Other agents that read the same format can often use it too.
- Is dnSpy.MCP safe to use?
- It is GPL-3.0-licensed and scores 97/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is dnSpy.MCP still maintained?
- The repository was last updated 2 days ago, so dnSpy.MCP is actively maintained.
Skill content
View source on GitHubdnSpy.MCP
</div>Project Overview
dnSpy.MCP uses a Code Mode architecture to integrate dnSpyEx with MCP.
It moves beyond rigid JSON interfaces that map each feature to a separate tool. By embedding the Roslyn C# scripting engine (Microsoft.CodeAnalysis.CSharp.Scripting) inside the dnSpy process and communicating with the MCP server over named pipes, it lets large language models write and execute .csx scripts directly inside a running dnSpy instance for flexible .NET reverse engineering and code analysis.
Features and Advantages
The project provides only three basic tools:
| Tool | Purpose |
|---|---|
| session | Discover candidate dnSpy named pipes matching the naming convention |
| search_api | Look up scripting API signatures, descriptions, and examples |
| execute_csharp | Execute C# scripts inside a target dnSpy instance |
Traditional MCP plugins for reverse engineering typically rely on a fixed set of predefined tools, such as list_assemblies, get_types, and decompile_method. This can become a bottleneck in complex analysis tasks. dnSpy.MCP takes a different approach with Code Mode:
- Unrestricted expressiveness AI is no longer limited to predefined tool parameters. By executing C# scripts directly inside dnSpy, the model can combine LINQ queries, conditional branches, filtering loops, and tracing across assemblies to carry out complex reverse-engineering workflows in a single execution.
- Efficient interaction With conventional tools, locating specific logic in a large assembly can require a dozen or more tool calls. Large intermediate lists quickly consume tokens and clutter the model's context. With Code Mode, traversal, filtering, and aggregation all happen inside dnSpy, and only the final, relevant results are returned to the model.
- Built-in API reference
To help prevent the model from inventing APIs, the server includes an
ApiCatalog, exposed through thesearch_apitool. Before writing scripts, AI can look up the exact method signatures and usage examples available through the globalctxcontext, helping avoid hallucinated API calls.
Requirements
| Component | Requirement |
| :--- | :--- |
| Operating system | Windows |
| dnSpy | dnSpyEx 6.6.0, .NET 10 or .NET Framework 4.8; choose the matching Windows x64 package. |
| Runtime | The packaged Server is self-contained. Framework dnSpy still requires .NET Framework 4.8. |
| MCP client | Support for local stdio servers, such as Claude Code or Codex |
The requirements above are sufficient to use a release package. Building from source also requires the .NET 10 SDK.
Learn More
To learn more about the project, see:
- Installation and Configuration Guide — Environment requirements, building from source, installing the dnSpy extension, and configuring MCP clients.
- Architecture and Implementation Details — Named-pipe IPC, the Roslyn scripting environment, the exposed internal APIs, and
.csxscript examples.
Security Notice
This project allows arbitrary C# code to be dynamically compiled and executed inside the dnSpy process through local named pipes (restricted to the current user with CurrentUserOnly). Use it only in trusted local development environments with trusted MCP clients.
License
This project is open source under the GPLv3 license. See LICENSE for details.
Related Skills
taste-skill
116.8kAgent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages
Agent-Reach
112.3kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
ruflo
81.9k🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
headroom
79.8kCompress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
