code-quality-mcp
Hybrid code quality analysis server combining fast logic-based checks with AI-powered deep analysis, offering tools for summaries, quick wins, and trend tracking.
README
🚀 Code Quality MCP Server
Hybrid Code Quality Analysis - Combines logic-based checks with AI-powered deep analysis
MCP (Model Context Protocol) system for code quality analysis. Supports two modes:
- ⚡ Fast Mode: Quick logic-based checks
- 🤖 Deep Mode: AI-powered deep analysis (Claude)
🔧 Installation
npm install
npm run build
▶️ Running the Server
Option 1: Direct Run
npm start
Option 2: Via Claude Desktop
Add to ~/.config/Claude/claude_desktop_config.json:
{
"mcpServers": {
"code-quality": {
"command": "node",
"args": ["/absolute/path/to/code-quality-mcp/dist/index.js"]
}
}
}
📚 API Tools
🔍 Analysis Tools
1. check_quality - Full Code Quality Check
{
"tool": "check_quality",
"arguments": {
"projectPath": ".",
"deepAnalysis": false, // true = AI mode
"checkUnusedCode": true,
"checkComplexity": false, // requires AI
"checkSecurity": false, // requires AI
"page": 1, // pagination
"pageSize": 50 // items per page
}
}
Returns: Complete list of issues with pagination
💡 Smart Tools (Recommended!)
2. get_smart_summary - Smart Summary ⭐
Instead of 500 issues, get a focused summary:
{
"tool": "get_smart_summary",
"arguments": {
"projectPath": "."
}
}
Returns:
📊 Score: 68/100
📈 Issues: 500 (120 critical)
⏱️ Fix Time: 2 days
🔥 Top Problems:
• unused-code: 300 (60%)
• security: 50 (10%)
📁 Hotspot Files:
🔴 UserService.ts - 45 issues
3. get_quick_wins - Quick Wins ⚡
Get only actions that provide maximum impact in minimum time:
{
"tool": "get_quick_wins",
"arguments": {
"projectPath": "."
}
}
Returns:
⚡ Quick Wins:
1. Remove 50 unused vars (10 min) → +15 points
2. Fix 30 console.log (5 min) → +8 points
3. Translate Hebrew comments (15 min) → +5 points
Total: 30 minutes → +28 points!
4. get_trends - Progress Tracking 📈
See how code quality improves over time:
{
"tool": "get_trends",
"arguments": {
"projectPath": "."
}
}
Returns:
📈 Trends:
✅ Score: 45 → 68 (+23)
✅ Fixed: 120 issues
⚠️ New: 15 issues
Improving:
• unused-code: 300 → 180 (-120)
• security: 10 → 5 (-5)
Degrading:
• code-style: 50 → 65 (+15)
🔧 Other Tools
5. analyze_project - Project Type Detection
{
"tool": "analyze_project",
"arguments": {
"projectPath": ".",
"deep": true
}
}
6. get_recommendations - Quick Recommendations
{
"tool": "get_recommendations",
"arguments": {
"projectPath": ".",
"language": "en" // or "he" for Hebrew
}
}
⚡ Fast vs Deep Mode
| Feature | Fast Mode | Deep Mode |
|---|---|---|
| Speed | ~20ms | ~1000ms |
| Cost | Free | API calls |
| Accuracy | Good | Excellent |
| AI insights | ❌ | ✅ |
When to use Fast Mode:
- During development
- Before commits
- In CI/CD pipelines
When to use Deep Mode:
- Before Pull Requests
- Code reviews
- Security audits
📖 Examples
- HOW_TO_USE.md - 🎯 How to use this MCP in Claude (commands, examples)
- examples/usage-examples.ts - Complete API examples
🌍 Supported Platforms
- Node.js / TypeScript
- React / React Native
- Next.js / NestJS
- Firebase / AWS Amplify
- Java / .NET / Angular
🚀 Key Features
✅ Smart Ignore Patterns - Automatically skips:
node_modules,build,dist,.git- React Native:
android/gradle,ios/Pods, native build folders - Only scans your code, not auto-generated files
✅ Pagination - Handle large projects with many issues
✅ Smart Summaries - Get actionable insights instead of overwhelming lists
✅ Quick Wins - Find high-impact, low-effort fixes
✅ Trend Tracking - Monitor code quality improvements over time
Built with ❤️ using MCP and Claude
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。
mcp-server-qdrant
这个仓库展示了如何为向量搜索引擎 Qdrant 创建一个 MCP (Managed Control Plane) 服务器的示例。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。