</>MCP Agents Market
MCP Server

lensm

by loov3.7kGoUpdated 2026-08-25

Go assembly and source viewer

Claude DesktopCline

Lensm is an MCP server that provides AI assistants with programmatic access to compiled binary analysis, exposing Go source code, Go assembly, and native assembly for executable files. It enables agents to list functions, read their implementations at multiple compilation levels, and persist annotations through a comment system. Built primarily for Go binaries, it also supports WebAssembly modules, C/C++ programs with debug symbols, and TinyGo microcontroller targets across ARM Thumb, RISC-V, AVR, and Xtensa architectures.

Key Features

Exposes tools to list functions and retrieve Go source, Go assembly, and native assembly via MCP protocol
Supports reading and writing persistent comments stored in a sidecar JSON file with merge semantics
Handles Go, C/C++, Rust, and WebAssembly binaries (including wasip1, wasip2 components, and TinyGo targets)
Automatically reads debug symbols from DWARF and macOS .dSYM bundles for source-to-assembly mapping
Decodes microcontroller assembly for ARM Thumb, RISC-V, AVR, and Xtensa architectures
Demangles C++ and Rust symbols while preserving overload signatures
Includes auto-reload mode to track executable changes during development
Resolves call targets and branch destinations to function names in disassembly

Use Cases

  • 01Enable AI coding assistants to analyze binary output and explain compiler optimizations
  • 02Annotate performance-critical assembly sections with AI-generated comments for team review
  • 03Debug Go compiler behavior by comparing source, intermediate assembly, and machine code
  • 04Analyze WebAssembly modules to understand code generation from Go, TinyGo, or C/C++ compilers
  • 05Investigate embedded firmware assembly for TinyGo microcontroller targets
  • 06Provide context for AI agents working on low-level performance tuning or reverse engineering tasks

Related MCP Servers

View more

lensm — FAQ

What is the lensm MCP server?+

Lensm is an MCP server that gives AI assistants access to compiled binary analysis, letting them read function source code, Go assembly, native assembly, and manage comments for executables. It works with Go, C/C++, Rust, WebAssembly, and microcontroller binaries.

How do I install the lensm MCP server?+

Install lensm using Go: `go install loov.dev/lensm@main`. Then configure your MCP client to run `lensm mcp <path-to-executable>` over stdio. On Linux you may need Gio UI dependencies or can use build tags like `-tags nowayland` to skip them.

Which AI clients work with lensm?+

Lensm works with any MCP-compatible client such as Claude Desktop, Cline, or other tools that support the Model Context Protocol over stdio.

Do I need API keys to use lensm?+

No API keys are required. Lensm analyzes binaries locally and requires only that executables be built on your machine with accessible source code and debug symbols.

Is the lensm MCP server free?+

Yes, lensm is open source and freely available on GitHub under the MIT license.

What are the prerequisites for lensm?+

You need Go installed to build lensm, and binaries must be compiled locally with debug symbols (DWARF or .dSYM on macOS) so source code can be mapped. For C/C++ programs, compile with `-g`.

How do I install lensm?+

Open the source repository on GitHub and follow its README. lensm is a mcp server — MCP Agents Market links you directly to the official repo.

Is lensm free?+

lensm is an open-source project hosted on GitHub. Check the repository for its license and any usage requirements.

Related searches