io.github.yifancong/rsdoctor MCP Server
io.github.yifancong/rsdoctor
Build analyzer for Rspack and webpack projects with visualization and optimization recommendations.
What is the io.github.yifancong/rsdoctor MCP server?
The Rsdoctor MCP server provides build analysis and optimization recommendations for Rspack and webpack projects. It exposes Rsdoctor's compilation visualization, artifact analysis, build-time analysis, and custom rule capabilities through an MCP interface, enabling AI agents to help identify build bottlenecks and performance issues.
Rsdoctor is a build analyzer tailored for Rspack and fully compatible with webpack. It visualizes compilation behavior, analyzes build artifacts and build-time metrics (loaders, plugins, resolvers), detects issues like duplicate packages and ES version mismatches, and supports custom analysis rules. Use it to make your build process transparent, identify performance bottlenecks, and optimize engineering quality.
How to install io.github.yifancong/rsdoctor
Copy-paste configuration for popular MCP clients.
Tools & capabilities
Tools this server exposes to the agent.
Build artifact analysis— Analyze resource lists, module dependencies, and build outputsBuild-time analysis— Analyze loader, plugin, and resolver performance during the build processBuild rules and scanning— Detect duplicate packages, check ES version compatibility, and support custom rule definitionsCompilation visualization— Visualize compilation behavior and time consumption to identify build issues
Use cases
- Identify and visualize build performance bottlenecks in Rspack or webpack projects
- Detect duplicate dependencies and ES version mismatches in your bundle
- Analyze loader, plugin, and resolver execution time to optimize build speed
- Create custom analysis rules to enforce build quality standards specific to your project
- Compare build artifacts and metrics across different builds to track performance changes
io.github.yifancong/rsdoctor MCP server FAQ
It's an MCP server that exposes Rsdoctor's build analysis capabilities—compilation visualization, artifact analysis, build-time metrics, and custom rules—allowing AI agents to help analyze and optimize Rspack and webpack builds.
Yes, Rsdoctor is open source and licensed under the MIT License.
Install via npm: `npm install @rsdoctor/mcp-server`. Then configure it in your MCP client (Cursor, Claude, etc.) to connect to the server.
Rsdoctor supports Rspack and webpack, plus all tools and frameworks built on them: Rsbuild, Rspress, Rslib, Next.js, Nuxt, Modern.js, Docusaurus, Storybook, and others.
No, Rsdoctor is a local build analysis tool that does not require external authentication.
Yes, Rsdoctor supports adding custom scan rules based on its build data, allowing you to enforce project-specific quality standards.
README (reference)
Source of truth, from the repository.
Rsdoctor
<p> <a href="https://discord.gg/wrBPBT6rkM"><img src="https://img.shields.io/badge/chat-discord-blue?style=flat-square&logo=discord&colorA=564341&colorB=EDED91" alt="discord channel" /></a> <a href="https://npmjs.com/package/@rsdoctor/core?activeTab=readme"><img src="https://img.shields.io/npm/v/@rsdoctor/core?style=flat-square&colorA=564341&colorB=EDED91" alt="npm version" /></a> <a href="https://npmcharts.com/compare/@rsdoctor/core?minimal=true"><img src="https://img.shields.io/npm/dm/@rsdoctor/core.svg?style=flat-square&colorA=564341&colorB=EDED91" alt="downloads" /></a> <a href="https://github.com/web-infra-dev/rsdoctor/blob/main/LICENSE"><img src="https://img.shields.io/npm/l/@rsdoctor/core?style=flat-square&colorA=564341&colorB=EDED91" alt="license" /></a> </p>English | 简体中文
Rsdoctor is a build analyzer tailored for the Rspack ecosystem and fully compatible with the webpack ecosystem.
Rsdoctor is committed to being a one-stop, intelligent build analyzer that makes the build process transparent, predictable, and optimizable through visualization and smart analysis, helping development teams precisely identify bottlenecks, optimize performance, and improve engineering quality.
Rsdoctor supports all tools and frameworks based on Rspack or webpack, such as: Docusaurus, Rspeedy (Lynx), Storybook, Next.js, Nuxt, Re.Pack, Modern.js, Rsbuild, Rspress and Rslib.
https://github.com/user-attachments/assets/b8bb4ebf-b823-47bc-91ab-2d74f0057ef7
🔥 Features
-
Compilation Visualization: Rsdoctor visualizes the compilation behavior and time consumption, making it easy to view build issues.
-
Multiple Analysis Capabilities: Rsdoctor supports build artifact, build-time analysis, and anti-degradation capabilities:
- Build artifact support for resource lists and module dependencies, etc.
- Build-time analysis supports Loader, Plugin, and Resolver building process analysis
- Build rules support duplicate package detection and ES Version Check, etc.
-
Support Custom Rules: In addition to built-in build scan rules, Rsdoctor also supports users adding custom component scan rules based on the build data of Rsdoctor.
📚 Getting started
To get started with Rsdoctor, see the Quick Start.
🤝 Contribution
New contributors welcome!
Please read the Contributing Guide.
🧑💻 Community
Come and chat with us on Discord! The Rstack team and users are active there, and we're always looking for contributions.
🦀 Rstack
Rsdoctor is part of Rstack, the fast, unified JavaScript toolchain for developers and agents.
| Name | Description | Version |
|---|---|---|
| Rspack | Bundler | <a href="https://npmjs.com/package/@rspack/core"><img src="https://img.shields.io/npm/v/@rspack/core?style=flat-square&colorA=564341&colorB=EDED91" alt="npm version" /></a> |
| Rsbuild | Build tool | <a href="https://npmjs.com/package/@rsbuild/core"><img src="https://img.shields.io/npm/v/@rsbuild/core?style=flat-square&colorA=564341&colorB=EDED91" alt="npm version" /></a> |
| Rslib | Library development tool | <a href="https://npmjs.com/package/@rslib/core"><img src="https://img.shields.io/npm/v/@rslib/core?style=flat-square&colorA=564341&colorB=EDED91" alt="npm version" /></a> |
| Rspress | Static site generator | <a href="https://npmjs.com/package/@rspress/core"><img src="https://img.shields.io/npm/v/@rspress/core?style=flat-square&colorA=564341&colorB=EDED91" alt="npm version" /></a> |
| Rsdoctor | Build analyzer | <a href="https://npmjs.com/package/@rsdoctor/core"><img src="https://img.shields.io/npm/v/@rsdoctor/core?style=flat-square&colorA=564341&colorB=EDED91" alt="npm version" /></a> |
| Rstest | Testing framework | <a href="https://npmjs.com/package/@rstest/core"><img src="https://img.shields.io/npm/v/@rstest/core?style=flat-square&colorA=564341&colorB=EDED91" alt="npm version" /></a> |
| Rslint | Linter | <a href="https://npmjs.com/package/@rslint/core"><img src="https://img.shields.io/npm/v/@rslint/core?style=flat-square&colorA=564341&colorB=EDED91" alt="npm version" /></a> |
🙌 Code of conduct
This repo has adopted the ByteDance Open Source Code of Conduct. Please check Code of Conduct for more details.
🙏 Credits
Some of the implementation of Rsdoctor refers to the excellent projects in the community, and we would like to thank them:
- bundle-stats is an excellent tool for analyzing build artifacts, and Rsdoctor is inspired by it in terms of build analysis.
- webpack-bundle-analyzer is a classic tool for analyzing Webpack, and Rsdoctor is inspired by it in terms of build artifact analysis. Rsdoctor also uses its classic treemap visualization.
- Statoscope is an excellent tool for analyzing build artifacts, and Rsdoctor is inspired by it in terms of build analysis.
- Webpack Team and Community have created an excellent bundling tool and a rich ecosystem.
- vite-plugin-inspect has inspired Rsdoctor's exploration of build process analysis.
This Rsdoctor website is powered by Netlify.
📖 License
Rsdoctor is licensed under the MIT License.
Related MCP servers

io.github.yifanyifan897645/git-summary
Git repo intelligence: summaries, blame, changelogs, branch health, and history search

io.github.yifanyifan897645/mcp-checkup
Analyze your MCP setup: token costs, grades, duplicates, and optimization tips

io.github.yifanyifan897645/webcheck
Website health analysis: SEO, accessibility, performance, security, and broken links

PLAXIS
Windows-local MCP server for PLAXIS 2D Remote Scripting: geometry, staged construction, results.
Korean stock market MCP — DART disclosures + KRX prices, English-first for global LLM analysts.

Verified country facts (VAT, holidays, visas; 114 countries). Free + paid (x402 USDC) tools.
