
hiromima/lovable-mcp-server 是从 https://github.com/hiromima/lovable-mcp-server. 导入的 MCP 服务器候选。
概览
hiromima/lovable-mcp-server 是从 https://github.com/hiromima/lovable-mcp-server. 导入的 MCP 服务器候选。
概述(AI 翻译)
一个非官方模型上下文协议(MCP)服务器,提供对Lovable生成项目的实时分析,适用于像Claude Desktop这样的AI工具。这是一个由社区构建的工具,旨在通过Lovable项目提升开发工作流程。
** ⚠️ 免责声明**:这是一个非官方的社区开发工具,与 Lovable 无任何关联或认可。这是一个独立项目,旨在通过 Lovable 生成的项目提升开发体验。
🚀 概述
替换此工作流程:
即时整合:
✨ 特色
🔧 8 强大的分析工具
analyze_project- 完整的项目结构和元数据分析get_components- 深度反应组分分析(道具、状态、效果、JSX模式)get_routing_structure- 带有保护路由检测的应用路由analyze_dependencies- 智能依赖分类与框架检测get_tailwind_usage- 顺风CSS使用模式与统计get_hooks_usage- React 钩子分析(内置 + 自定义钩子)analyze_api_calls- API 集成模式(Supabase、fetch、axios)
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Unofficial Lovable MCP Server
An unofficial Model Context Protocol (MCP) server that provides real-time analysis of Lovable-generated projects for AI tools like Claude Desktop. This is a community-built tool to enhance development workflow with Lovable projects.
⚠️ Disclaimer: This is an unofficial, community-developed tool and is not affiliated with or endorsed by Lovable. It’s an independent project created to enhance the development experience with Lovable-generated projects.
🚀 Overview
Replace this workflow:
Lovable dev → GitHub push → Download → Upload to AI → Manual analysis → Research
With instant integration:
Lovable dev → Claude instantly understands via MCP
✨ Features
🔧 8 Powerful Analysis Tools
analyze_project- Complete project structure and metadata analysisget_components- Deep React component analysis (props, state, effects, JSX patterns)get_routing_structure- Application routing with protected routes detectionanalyze_dependencies- Smart dependency categorization and framework detectionget_tailwind_usage- Tailwind CSS usage patterns and statisticsget_hooks_usage- React hooks analysis (built-in + custom hooks)analyze_api_calls- API integration patterns (Supabase, fetch, axios)analyze_database_schema- Supabase schema, tables, types, and RLS policies
📊 4 Live Resources
project://structure- Real-time project file treeproject://package- Package.json with dependencies and scriptsproject://components- Component inventory with relationshipsproject://routes- Routing configuration and parameters
🎯 3 Smart Prompts
code_review- Component code review with improvement suggestionsrefactor_suggest- Structural refactoring recommendationsperformance_audit- Performance optimization analysis
🛡️ Enterprise Security
- Path traversal protection with boundary validation
- Claude Desktop authentication
- Rate limiting with configurable costs
- Error message sanitization
📦 Installation
Prerequisites
- Node.js 18+
- Claude Desktop app
Quick Setup
- Install globally:
npm install -g lovable-mcp-server
- Add to Claude Desktop (
claude_desktop_config.json):
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"lovable-mcp": {
"command": "lovable-mcp-server",
"args": ["--project-path", "/path/to/your/lovable/project"],
"env": {
"NODE_ENV": "production"
}
}
}
}
Development Setup
- Clone and install:
git clone https://github.com/yourusername/lovable-mcp-server.git
cd lovable-mcp-server
npm install
- For development (claude_desktop_config.json):
{
"mcpServers": {
"lovable-mcp-dev": {
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"lovable-mcp": {
"command": "lovable-mcp-server",
"args": ["--project-path", "/path/to/your/lovable/project"],
"env": {
"NODE_ENV": "production"
}
}
}
}