Skip to main content

dnSpy MCP

MCP server exposing dnSpy decompilation — search, list members, decompile to C#, and get IL from .NET assemblies. A Python (FastMCP) shim supervises a .NET decompiler worker built from this dnSpy fork; the published wheel bundles the worker, so installing needs no .NET build.

Use (Windows)

claude mcp add dnspy -- uvx dnspy-mcp

or pip install dnspy-mcp. That's it — the worker ships inside the wheel.

Tools

  • search_symbols(assembly, query, kind?) — kind: type | method | field | any
  • list_members(assembly, typeFullName)
  • decompile_type(assembly, typeFullName)
  • decompile_method(assembly, typeFullName, method) — method = name or 0x-token
  • get_il(assembly, typeFullName, method)

assembly is an absolute path; the worker loads + caches it on first use.

Develop

git submodule update --init Extensions/ILSpy.Decompiler/ICSharpCode.Decompiler Extensions/ILSpy.Decompiler/NRefactory
dotnet build dnSpy.Mcp.Worker/dnSpy.Mcp.Worker.csproj -c Release
cd mcp && py -m pip install -e ".[dev]"
$env:DNSPY_WORKER_EXE = "<repo>/dnSpy.Mcp.Worker/bin/Release/net48/dnSpy.Mcp.Worker.exe"
py -m pytest -q

DNSPY_WORKER_EXE overrides the bundled worker path for development.

Publish

# set $env:TWINE_USERNAME='__token__'; $env:TWINE_PASSWORD=<pypi-token>
powershell -ExecutionPolicy Bypass -File mcp/publish.ps1

Metadata

Release files for dnspy-mcp 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for dnspy-mcp 0.1.0
File Interpreter ABI Platform Actions
dnspy_mcp-0.1.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for dnspy_mcp-0.1.0-py3-none-win_amd64.whl

Release files / dnspy_mcp-0.1.0-py3-none-win_amd64.whl

Download URL dnspy_mcp-0.1.0-py3-none-win_amd64.whl
Size 2.2 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
dac973d1c688cf303db0a5d723054ff9503e6c05bf5d79cdfc9d99f759c5f5ce
BLAKE2b-256 checksum
How to use checksums
a20de26aaad73c92bde4b1a5d90cab6ec13c8eede353e5bbb46756a4fe542371
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Security for dnspy-mcp 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page