AmazingMCP — an MCP server for analyzing C#/.NET codebases via Roslyn

AmazingMCP — an MCP server for analyzing C#/.NET codebases via Roslyn

amazingmcp•byremleo

A standalone MCP server that compiles .NET solutions in memory using Roslyn and exposes tools for symbol search, usage analysis, file reading, decompilation, and architecture mapping.

License: MIT•Runtime: Awaiting documentation review•Category: developer tools

WHAT IT DOES

  • •Searches types, members, extension methods, constants, and enum values across the solution and NuGet packages.
  • •Finds all usages of a type across the solution, including method and constructor calls, property/field reads and writes, generic arguments and constraints, return and parameter types, and inheritance.
  • •Decompiles types from NuGet assemblies to C# source using a built-in ILSpy.
  • •Produces token-efficient structural digests of large .cs files and reads selected member implementations from them.

BEST FOR

  • •AI agents that need to navigate and understand large C# solutions rather than rely on plain text search.
  • •Developers exploring third-party NuGet dependencies, since referenced package types are resolved, searchable, and decompilable.
  • •Getting high-level architecture overviews of a project grouped by namespace and inter-group dependencies.

ABOUT AMAZINGMCP

AmazingMCP — an MCP server for analyzing C#/.NET codebases via Roslyn is cataloged as an MCP server attributed to remleo. A standalone MCP server that compiles .NET solutions in memory using Roslyn and exposes tools for symbol search, usage analysis, file reading, decompilation, and architecture mapping. It is categorized under developer tools. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: MIT. Check the source repository's current license and terms before using, modifying or distributing this software.

能力检查器

能力定义尚未审核。未核验的采集内容不会作为可信接口展示。

Tools (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Resources (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

Prompts (0)

暂无可展示的已审核记录。这不表示上游不支持此能力。

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for AmazingMCP — an MCP server for analyzing C#/.NET codebases via Roslyn are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

Does the server need to restart when switching between solutions?

No, a single running server can be pointed at any project per call, so you can switch solutions without restarting.

How does the server keep results fresh as code changes?

It caches the workspace with file watchers: .cs changes trigger incremental recompilation, while .csproj/.sln changes invalidate the full cache.

Can individual tools be turned off?

Yes, tools can be disabled via a comma-separated list of tool names using the --DisabledTools option.

上游原版 README

在 GitHub 查看同一版本原文

README.md · 3d87e49d53b8 · 采集于 2026-11-13 13:59:10 UTC

保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。

当前显示最后一次成功采集的文档快照,请以来源页面为准。

AmazingMCP — MCP Server for .NET / C# Codebases

NuGet License: MIT .NET 10

An MCP server that gives AI agents deep understanding of C# codebases via Roslyn — type search, dependency graphs, usage analysis, and architecture overviews, all from a live in-memory compilation.

Installation

dotnet tool install -g HoldMyCoolantMeatbag.AmazingMCP

Requires .NET 10 SDK.

MCP Tools

ToolDescription
query_symbolFind types, members (methods, properties, fields), extension methods, constants, and enum values across the solution and NuGet packages
get_type_detailsFull type info: properties, methods, base types, nested types (including NuGet)
query_usagesFind all usages of a type across the solution: method calls, constructor calls, property/field read and write, generic arguments and constraints, return types, parameter types, inheritance, nameof, typeof, is/as. Supports predicate filtering and scan scope control
read_cs_file_digestToken-efficient entry point for large .cs files (hundreds or thousands of lines): returns a structural outline — types and members with line numbers, no implementations. Use this first, then fetch only the members you need with read_large_cs_file
read_large_cs_fileRead specific member implementations from a .cs file by name filter — use after read_cs_file_digest to load only what's relevant instead of the entire file
decompile_typeDecompile any type from a NuGet assembly to C# source — no external tools required, ILSpy is built in
code_lensResolve fully-qualified types for any line range in a .cs file: local variables, field/property types, method call signatures, object creations, and declarations — all from the Roslyn semantic model
get_project_designHigh-level architecture map: abstraction groups by namespace and inter-group dependencies
get_project_design_detailsDetailed view of abstractions and implementations for specified namespaces (supports * wildcard)

Features

  • One server, any number of solutions — start it once and point it at any project per call, no restart needed when switching between solutions.
  • Live in-memory compilation — opens .sln/.slnx via MSBuild Workspaces and compiles all projects in memory. All tools run against a real Roslyn semantic model, not text search.
  • Incremental cache — workspace is cached with file watchers. .cs changes trigger incremental recompilation; .csproj/.sln changes invalidate the full cache. First call per solution is slow; subsequent calls are instant.
  • NuGet-aware — NuGet types are fully resolved and searchable alongside source types. query_symbol, get_type_details, and decompile_type work on any referenced package.

Usage

AmazingMCP <options>

# example:
AmazingMCP --urls=http://localhost:7777 --Symbol:QueryOutputLineLimit=50 --ReadCs:ReadOutputMaxLength=50000

# see all options:
AmazingMCP --help

The server starts on http://localhost:7777 by default.

Command-line options

OptionDefaultDescription
--urlshttp://localhost:7777Listening URL
--Symbol:QueryOutputLineLimit100Max output lines for query_symbol
--ReadCs:ReadOutputMaxLength20000Max output characters for read_large_cs_file
--ProjectDesign:DetailsOutputMaxLength30000Max output characters for get_project_design_details
--ProjectDesign:DetailsXmlDocSummaryMaxLength2000Max XML doc summary characters in get_project_design_details
--QueryUsages:QueryMatchLimit200Max usage matches for query_usages
--Diagnostics:IncludeExceptionDetailsfalseInclude full exception details in tool error responses (for diagnostics)
--HttpServerTransport:IdleTimeout7.00:00:00MCP session idle timeout — how long a session is kept alive without activity (e.g. 7.00:00:00 for 7 days, 2:00:00 for 2 hours)
--DisabledTools(none)Comma-separated list of tool names to disable (e.g. code_lens,get_project_design)

MCP Client Configuration

Add to your MCP client config (Claude Desktop, JetBrains AI, Kiro, etc.):

{
  "mcpServers": {
    "AmazingMCP": {
      "type": "http",
      "url": "http://localhost:7777"
    }
  }
}

Then start the server manually in your terminal:

AmazingMCP --urls=http://localhost:7777 <other options>

Or add a launcher entry so the client starts the server automatically:

{
  "mcpServers": {
    "AmazingMCP": {
      "type": "http",
      "url": "http://localhost:7777"
    },
    "AmazingMCP Launcher": {
      "command": "AmazingMCP",
      "args": ["--urls=http://localhost:7777"]
    }
  }
}

Documentation

Contributing

PRs and issues are welcome. Please open an issue before submitting a large change.

git clone https://github.com/remleo/AmazingMCP
cd AmazingMCP
dotnet build
dotnet test

License

MIT

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for AmazingMCP — an MCP server for analyzing C#/.NET codebases via Roslyn from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/amazingmcp)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

下载与拉取统计

来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。

尚无已审核的包 / 镜像标识,暂不展示下载统计。

Related developer tools MCP Servers

Alternative and complementary servers in the same category

View all in developer tools →
Postbye
postbye-mcp•postbye-team

A directory listing describing a cancellation-letter and mailing-address service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools
Singapore Proxy MCP
singapore-proxy-mcp•Xavierfok

A hosted MCP service for browsing and searching through Singapore mobile-network proxies.

0
Developer Tools

A directory listing describing a Markdown-to-PDF service. The configured public GitHub repository returned 404 during source verification.

Repository stats unavailable
Developer Tools