HL

hiromima/lovable-mcp-server

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

39 stars 10 forks 质量 66 趋势 0MIT

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 强大的分析工具

  1. analyze_project - 完整的项目结构和元数据分析
  2. get_components - 深度反应组分分析(道具、状态、效果、JSX模式)
  3. get_routing_structure - 带有保护路由检测的应用路由
  4. analyze_dependencies - 智能依赖分类与框架检测
  5. get_tailwind_usage - 顺风CSS使用模式与统计
  6. get_hooks_usage - React 钩子分析(内置 + 自定义钩子)
  7. 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

  1. analyze_project - Complete project structure and metadata analysis
  2. get_components - Deep React component analysis (props, state, effects, JSX patterns)
  3. get_routing_structure - Application routing with protected routes detection
  4. analyze_dependencies - Smart dependency categorization and framework detection
  5. get_tailwind_usage - Tailwind CSS usage patterns and statistics
  6. get_hooks_usage - React hooks analysis (built-in + custom hooks)
  7. analyze_api_calls - API integration patterns (Supabase, fetch, axios)
  8. analyze_database_schema - Supabase schema, tables, types, and RLS policies

📊 4 Live Resources

  • project://structure - Real-time project file tree
  • project://package - Package.json with dependencies and scripts
  • project://components - Component inventory with relationships
  • project://routes - Routing configuration and parameters

🎯 3 Smart Prompts

  • code_review - Component code review with improvement suggestions
  • refactor_suggest - Structural refactoring recommendations
  • performance_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

  1. Install globally:
npm install -g lovable-mcp-server
  1. 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

  1. Clone and install:
git clone https://github.com/yourusername/lovable-mcp-server.git
cd lovable-mcp-server
npm install
  1. For development (claude_desktop_config.json):
{
  "mcpServers": {
    "lovable-mcp-dev": {
在 GitHub 查看完整 README

安装

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" } } } }