# ILens

> ILens is an open-source MCP server for developer tools. MCP server that lets AI agents inspect compiled .NET assemblies with bounded lookups. It is available on Windows and CLI.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** Windows, CLI
- **Website:** https://tadis174.github.io/ILens/guide.html
- **Repository:** https://github.com/tadis174/ilens
- **MCP Registry name:** io.github.tadis174/ilens
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-18

## About

The README describes ILens as a way to stop agents from pulling whole-file dumps when they only need one class. Instead of shelling out to ildasm or ilspycmd, an agent calls targeted tools that list types in a namespace, read one type's members, find methods by signature, decompile a single method, search decompiled C# and run cross-reference analysis such as callers and overrides.

ILens runs as a stdio MCP server and is read-only. It only loads assemblies under directories named with --allow-root, makes no network calls and ships as a self-contained Windows x64 binary installed through winget. Its memory use is capped by a configurable budget, 200 MB by default.

The tools target C# output, so assemblies from F# or VB.NET may decompile less faithfully. The project is aimed at developers on Windows who use an AI coding client, such as Claude Code, against .NET codebases.

## Features

- **Targeted type discovery:** Lists types by exact namespace or name substring, with accessibility and generated-code filters.
- **Member and signature lookup:** Shows a type's members without bodies and finds methods by name, parameter types or return type.
- **Single-method decompilation:** Decompiles one type or member to C# instead of dumping the whole assembly.
- **Cross-reference analysis:** Reports callers, overrides, implementations, extension methods and attribute usage for a type or member.
- **Build comparison:** Compares two builds of an assembly to show what differs between them.
- **Read-only with path checks:** Refuses paths outside configured roots and path traversal, and never writes to assemblies.

## Good for

- Letting an AI coding agent look up a single class in a compiled .NET library without loading the full decompile
- Finding which types in a third-party DLL expose a given method signature
- Tracing callers of a method inside a compiled .NET assembly
- Comparing two builds of a .NET library to see API changes
- Checking what a Harmony mod patches in a game assembly

## Tools

- `find_types`: Find the types the assembly defines, by namespace or by a substring of their name.
- `find_methods`: Find methods across the assembly by name, parameter types or return type.
- `list_members`: Lists a type's members without bodies.
- `decompile`: Decompiles a type or member to C# source.
- `search_code`: Searches decompiled C# for a pattern.
- `analyze`: Runs cross-reference analysis on a type or member, such as used_by and call_sites.
- `compare`: Compares two builds of an assembly.
- `find_harmony_dependencies`: Lists what a Harmony mod depends on.
- `list_allowed_roots`: Lists the directories from which assemblies can be loaded.

## FAQ

### Which platforms does ILens run on?

The README and guide list Windows 10/11 x64 as the system requirement. The binary is self-contained and needs no separate .NET runtime.

### Does ILens modify assemblies or make network calls?

The guide says all MCP tools are read-only, with no writes, no shell-out and no network calls, and the server speaks stdio only.

### How is ILens installed?

The guide recommends winget install Tadis.ILens, which installs a portable package and registers the ilens command on the user PATH.

### Does ILens work with non-C# assemblies?

The metadata tools work on assemblies from any .NET language, but decompile and search output is C#, so F#, VB.NET or C++/CLI constructs may render unfaithfully.

### Is ILens free?

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

### What are the best alternatives to ILens?

The closest alternatives to ILens are Codelens MCP, Lens MCP, RoselineMCP, Dotnet Template MCP and Gopls MCP.

## Where this comes from

- Description: written from the project's README, the project's website and its MCP Registry entry.

## Alternatives

- [Codelens MCP](https://ai-powered.com/mcp/codelens-mcp): Codelens MCP is an open-source MCP server for developer tools.
- [Lens MCP](https://ai-powered.com/mcp/lens-mcp-2): Lens MCP is an open-source MCP server for developer tools.
- [RoselineMCP](https://ai-powered.com/mcp/roselinemcp): RoselineMCP is an open-source MCP server for developer tools.
- [Dotnet Template MCP](https://ai-powered.com/mcp/dotnet-template-mcp): Dotnet Template MCP is an open-source MCP server for developer tools.
- [Gopls MCP](https://ai-powered.com/mcp/gopls-mcp): Gopls MCP is an open-source MCP server for developer tools.
- [AsItIs](https://ai-powered.com/mcp/asitis): AsItIs is an open-source MCP server for files and documents.
- [Calllint](https://ai-powered.com/mcp/calllint): Calllint is an open-source MCP server for security.
- [MegaLens](https://ai-powered.com/mcp/megalens): MegaLens is a freemium MCP server for developer tools.

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