MCP DevTools
RahulTinku/mcp-devtools
Análise e auditoria frontend em tempo real via IA
Ver no GitHubColeção de servidores MCP que fornecem superpoderes para desenvolvedores frontend integrados ao Claude, Cursor e clientes compatíveis. Inclui análise de bundles, auditorias de acessibilidade, Lighthouse e documentação de componentes TypeScript automatizada.
Instalação
npx convez-ai RahulTinku/mcp-devtools1 comando no terminal: detecta o formato do repositório (marketplace ou plugin avulso) e instala via Claude Code. Requer Node 18+ e o Claude Code instalado.
Métricas
Casos de uso
- Analisar tamanho de bundles webpack/Vite e encontrar módulos grandes
- Executar auditorias de acessibilidade (axe-core) em URLs ou componentes
- Gerar relatórios Lighthouse automatizados e comparar performance entre builds
- Extrair documentação de props de componentes TypeScript com herança resolvida
Veredito

MCP DevTools é uma solução robusta e prática para incorporar análises de qualidade frontend direto em workflows com IA. Oferece cobertura abrangente (bundles, acessibilidade, performance, componentes) e integração limpa com Claude Desktop e Cursor — ideal para equipes que querem automação de auditorias sem sair do editor.
README
A tradução para o português deste README ainda está na fila.
mcp-devtools
MCP servers that give AI assistants frontend superpowers.
A collection of Model Context Protocol servers for frontend developers. Plug into Claude Desktop, Cursor, or any MCP-compatible AI client and ask real questions about your frontend project.
Prerequisites: Node.js 18+, Claude Desktop or Cursor
Servers
| Package | npm | Description |
|---|---|---|
mcp-bundle-analyzer | Analyze webpack/Vite bundle size, find large modules, detect duplicates, tree-shaking analysis, compare builds | |
mcp-accessibility | Run axe-core audits on any URL — full page or scoped to a component | |
mcp-lighthouse-audit | Lighthouse audits: scores, Core Web Vitals, opportunities, compare URLs | |
mcp-component-docs | TypeScript-compiler-backed prop docs — resolves inherited, imported, and forwardRef props |
Bundle Analyzer
Analyze webpack and Vite bundle sizes, find large modules, detect duplicate packages, and measure the impact of changes.
Install
npm install -g mcp-bundle-analyzer
Generate a stats file
Webpack:
npx webpack --json > stats.json
Vite — add rollup-plugin-visualizer to vite.config.ts:
import { visualizer } from 'rollup-plugin-visualizer'
export default defineConfig({
plugins: [visualizer({ filename: 'stats.json', json: true })]
})
Add to Claude Desktop
~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"bundle-analyzer": {
"command": "mcp-bundle-analyzer"
}
}
}
Restart Claude Desktop after editing the config.
Example prompts
"Analyze the bundle at ./dist/stats.json — what's making it so large?"
"Find all modules larger than 100KB in my webpack build"
"Are there any duplicate packages in my bundle?"
"Which packages in my bundle can't be tree-shaken?"
"Compare the bundle before and after my lodash refactor"
Tools
analyze_bundle — Analyze a webpack stats.json, rollup-plugin-visualizer JSON, or dist directory.
Returns total size, asset breakdown, top 20 modules by size, and optimization suggestions.
find_large_modules — Find modules exceeding a size threshold (default 50KB).
Returns grouped list of large vendor and app modules with import context.
detect_duplicate_packages — Find npm packages bundled multiple times at different versions.
Returns each duplicate, all instance paths, wasted size estimate, and fix guidance (npm dedupe, overrides, webpack alias).
analyze_tree_shaking — Identify tree-shaking opportunities in a webpack bundle.
Detects CJS modules that can't be tree-shaken, optimization bailouts, and partially used modules (barrel file suspects). Requires --stats=verbose and optimization.usedExports: true.
compare_bundles — Diff two builds to measure the impact of a change.
Returns size diff, changed/added/removed assets with percentages.
Accessibility
Run axe-core accessibility audits on any URL via Playwright.
Install
npm install -g mcp-accessibility
npx playwright install chromium # one-time ~280MB download
Add to Claude Desktop
{
"mcpServers": {
"accessibility": {
"command": "mcp-accessibility"
}
}
}
Example prompts
"Audit http://localhost:3000 for accessibility issues"
"Check the #login-form on my app for WCAG 2.1 AA violations"
"What's making my navbar inaccessible?"
Lighthouse
Run Lighthouse audits and get performance scores, Core Web Vitals, and actionable opportunities.
Install
npm install -g mcp-lighthouse-audit
npx playwright install chromium # one-time ~280MB download
Add to Claude Desktop
{
"mcpServers": {
"lighthouse": {
"command": "mcp-lighthouse-audit"
}
}
}
Example prompts
"Run a Lighthouse audit on http://localhost:3000"
"What's the LCP on my homepage and how can I improve it?"
"Compare performance scores between my staging and production URLs"
Component Docs
Scan a React + TypeScript component library and generate accurate prop documentation using the TypeScript compiler — resolves inherited props, imported types, and forwardRef components correctly.
Install
npm install -g mcp-component-docs
Add to Claude Desktop
{
"mcpServers": {
"component-docs": {
"command": "mcp-component-docs"
}
}
}
Example prompts
"What props does the Button component accept?"
"Show me all components in src/components that accept an onChange prop"
"What's the full prop interface for Modal including inherited props?"
Running all servers
{
"mcpServers": {
"bundle-analyzer": {
"command": "mcp-bundle-analyzer"
},
"accessibility": {
"command": "mcp-accessibility"
},
"lighthouse": {
"command": "mcp-lighthouse-audit"
},
"component-docs": {
"command": "mcp-component-docs"
}
}
}
Development
# Install all dependencies
npm install
# Build all packages
npm run build
# Build a single package
npm run build --workspace=packages/bundle-analyzer
# Dev mode (bundle-analyzer)
npm run dev:bundle
# Test with MCP Inspector
npx @modelcontextprotocol/inspector node packages/bundle-analyzer/dist/index.js
Roadmap
- Vite bundle report support (
rollup-plugin-visualizerJSON) - Duplicate package detection (same package, multiple versions)
- Tree-shaking opportunity analysis
- Lighthouse: scheduled audits with trend tracking (
track_lighthouse+get_lighthouse_trend) - Component docs: cross-component dependency graph (
map_component_dependencies)
License
MIT