Dotnetanalyzer
D

Dotnetanalyzer

DotNetAnalyzer is a powerful MCP server tool that provides in-depth C# code analysis capabilities for Claude Code through the Roslyn compiler platform, supporting 74 code analysis, refactoring, and generation tools.
2 points
0

What is DotNetAnalyzer?

DotNetAnalyzer is a .NET global tool that integrates the powerful code analysis capabilities of the Microsoft Roslyn compiler into Claude Code through the MCP (Model Context Protocol). It not only provides syntax highlighting but also can deeply understand the semantic structure, type relationships, call chains, etc. of the code, enabling the AI assistant to analyze and understand .NET code like a professional developer.

How to use DotNetAnalyzer?

It's very simple to use: First, install the tool through the dotnet tool install command. Then, create a .mcp.json configuration file in the project directory, and Claude Code will automatically connect to the DotNetAnalyzer server. After that, you can ask code-related questions just like having a conversation with an ordinary developer, and Claude will automatically call the corresponding analysis tools to answer.

Applicable scenarios

DotNetAnalyzer is particularly suitable for the following scenarios: 1. Code review and refactoring - Automatically analyze code quality and identify potential problems. 2. Understanding complex codebases - Quickly understand the project structure and dependencies. 3. Debugging and problem troubleshooting - Analyze call chains and reference relationships. 4. Code generation and automation - Generate new implementations based on existing code. 5. Team collaboration - Unify code standards and specification checks.

Main features

Intelligent code analysis
Deeply understand the semantic structure of C# code, including type information, inheritance relationships, interface implementations, etc., not just syntax analysis.
Code navigation and query
Support advanced navigation functions such as jumping to definitions, finding references, and viewing type hierarchies.
Code refactoring tool
Provide 15 code refactoring operations, such as extracting methods, renaming symbols, encapsulating fields, extracting interfaces, etc.
Code generation and repair
Automatically generate boilerplate code such as interface implementations, constructors, properties, etc., and provide code repair suggestions.
Advanced code analysis
Advanced functions such as call graph analysis, dead code detection, performance bottleneck analysis, and test coverage statistics.
Project management
Analyze the solution structure, project dependencies, and build order, supporting both .sln and .slnx formats.
Visual output
Support exporting call graphs in multiple formats such as SVG, JSON, and Mermaid for easy documentation and presentation.
One-click installation and update
As a .NET global tool, it can be installed and updated through simple commands without complex configuration.
Advantages
๐Ÿš€ In-depth code understanding - Provide real semantic-level analysis based on Roslyn, not just syntax checking.
๐Ÿ“ฆ Ready to use - One-click installation, automatic configuration, no need for manual construction.
๐Ÿ”ง Comprehensive functions - 74 analysis tools cover the entire code development lifecycle.
๐Ÿ”„ Intelligent interaction - Seamlessly integrated with Claude Code, with natural language interaction.
โšก Performance optimization - LRU cache and incremental analysis ensure fast response.
๐ŸŒ Cross-platform support - Support Windows, macOS, and Linux systems.
๐Ÿ“Š Rich visualization - Multiple format outputs for easy understanding and sharing.
Limitations
Only support .NET projects - Currently focused on the C# and .NET ecosystems.
Require .NET SDK - The running environment needs to install .NET 8.0 or higher.
Long loading time for large projects - Very large solutions may require a long initial loading time.
Dependent on Claude Code - Mainly designed to work with Claude Code.
High memory usage - May have high memory usage when deeply analyzing large projects.

How to use

Install DotNetAnalyzer
Install the tool globally through the .NET CLI
Verify the installation
Check if the tool is installed correctly
Create a configuration file
Create a .mcp.json configuration file in the project root directory
Start Claude Code
Start Claude Code in the configured project directory
Start using
Ask code-related questions in Claude Code

Usage examples

Code review and error checking
When you take over a new project or need to review others' code, you can quickly understand the code quality.
Understanding complex code structures
When you need to understand the call relationships of a complex class or method.
Code refactoring suggestions
When you find repeated code or need to optimize the existing implementation.
Project dependency analysis
When you need to understand the project structure and dependencies.
Automatic code generation
When you need to implement an interface or generate boilerplate code.

Frequently Asked Questions

Which .NET versions does DotNetAnalyzer support?
Do I need to install it on every machine?
Will it affect my project build?
Which solution formats are supported?
How to handle large projects?
Can it be used offline?
How to update to the new version?
Does it support team sharing of configurations?

Related resources

GitHub repository
Source code, issue tracking, and contribution guidelines
NuGet package page
Download and version history
MCP protocol official website
Official documentation of the Model Context Protocol
Roslyn compiler platform
GitHub repository of the .NET compiler platform
API usage guide
Complete MCP tool API reference documentation
Usage examples
Actual usage scenarios and code examples
.NET CLI tool documentation
Official documentation of the .NET global tool framework

Installation

Copy the following command to your Client for configuration
{
  "mcpServers": {
    "dotnet-analyzer": {
      "command": "dotnet-analyzer",
      "args": [
        "mcp",
        "serve"
      ],
      "env": {
        "DOTNET_ENVIRONMENT": "Production",
        "DOTNET_ANALYZER_LOG_LEVEL": "Information"
      }
    }
  }
}
Note: Your key is sensitive information, do not share it with anyone.

Alternatives

V
Vestige
Vestige is an AI memory engine based on cognitive science. By implementing 29 neuroscience modules such as prediction error gating, FSRS - 6 spaced repetition, and memory dreaming, it provides long - term memory capabilities for AI. It includes a 3D visualization dashboard and 21 MCP tools, runs completely locally, and does not require the cloud.
Rust
4.5K
4.5 points
B
Better Icons
An MCP server and CLI tool that provides search and retrieval of over 200,000 icons, supports more than 150 icon libraries, and helps AI assistants and developers quickly obtain and use icons.
TypeScript
6.6K
4.5 points
A
Assistant Ui
assistant - ui is an open - source TypeScript/React library for quickly building production - grade AI chat interfaces, providing composable UI components, streaming responses, accessibility, etc., and supporting multiple AI backends and models.
TypeScript
7.2K
5 points
A
Apify MCP Server
The Apify MCP Server is a tool based on the Model Context Protocol (MCP) that allows AI assistants to extract data from websites such as social media, search engines, and e-commerce through thousands of ready-to-use crawlers, scrapers, and automation tools (Apify Actors). It supports OAuth and Skyfire proxy payment and can be integrated into MCP clients such as Claude and VS Code through HTTPS endpoints or local stdio.
TypeScript
7.4K
5 points
R
Rsdoctor
Rsdoctor is a build analysis tool specifically designed for the Rspack ecosystem, fully compatible with webpack. It provides visual build analysis, multi - dimensional performance diagnosis, and intelligent optimization suggestions to help developers improve build efficiency and engineering quality.
TypeScript
9.3K
5 points
N
Next Devtools MCP
The Next.js development tools MCP server provides Next.js development tools and utilities for AI programming assistants such as Claude and Cursor, including runtime diagnostics, development automation, and document access functions.
TypeScript
10.7K
5 points
T
Testkube
Testkube is a test orchestration and execution framework for cloud-native applications, providing a unified platform to define, run, and analyze tests. It supports existing testing tools and Kubernetes infrastructure.
Go
6.5K
5 points
M
MCP Windbg
An MCP server that integrates AI models with WinDbg/CDB for analyzing Windows crash dump files and remote debugging, supporting natural language interaction to execute debugging commands.
Python
10.5K
5 points
N
Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
20.2K
4.5 points
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
34.2K
5 points
G
Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
25.3K
4.3 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
71.6K
4.3 points
U
Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
31.0K
5 points
F
Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
64.2K
4.5 points
G
Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
21.0K
4.5 points
M
Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
48.4K
4.8 points