This domain is for sale —Buy lovablemcp.com·$999 – $2,000

Service

The Lovable MCP Server

Lovable exposes itself as a Model Context Protocol server at https://mcp.lovable.dev. AI clients like Claude Desktop, Cursor, and Claude Code can manage your Lovable projects through natural language — create, iterate, inspect, and deploy.

Research preview

Tool names, parameters, and response shapes may change without notice. Calls run live on your account, use real credits, and edit real projects. Connecting a client grants it the same access you have across all your workspaces.

Why use it

  • Agent-driven scaffolding from inside Claude, Cursor, or your own agent.
  • Programmatic code inspection — read files, diffs, edit history.
  • Compose Lovable with other MCP-connected tools in one session.

Common use cases

  • • Scaffold a new app from a one-line spec.
  • • Iterate on an existing project without opening Lovable.
  • • Review the last few edits as a unified diff.
  • • Deploy and return a live URL.
  • • Build 3 variants of a landing page in parallel.

Connecting

Claude (Desktop or web)
  1. Settings → Connectors → Add custom connector
  2. Name: Lovable
  3. URL: https://mcp.lovable.dev
  4. Sign in with your Lovable account.
Claude Code (CLI)
claude mcp add --transport http \
  lovable "https://mcp.lovable.dev"
Cursor (mcp.json)
{
  "mcpServers": {
    "lovable": {
      "type": "http",
      "url": "https://mcp.lovable.dev",
      "auth": { "CLIENT_ID": "6d465f583e1e4ce5801b1616f735670c" }
    }
  }
}

Tutorial: your first three calls

A step-by-step walkthrough: connect a client, list your workspaces, then create a project — all from natural language.

Step 1
Connect your MCP client

Add the Lovable MCP server to your client and sign in. In Claude Desktop or web: Settings → Connectors → Add custom connector, name it "Lovable", and use the URL https://mcp.lovable.dev. For Claude Code, run the CLI command shown in the Connecting section above. Approve the OAuth prompt in your browser — this grants the client access to your workspaces.

Step 2
Verify the connection

Ask your client a simple question to confirm the connection works. The client calls get_me and returns your profile and workspaces.

"Who am I on Lovable?"
Step 3
List your workspaces

Every tool call is scoped to a workspace, so list them first. The client calls list_workspaces and returns each workspace's name and ID — note the ID of the workspace you want to work in.

"List my Lovable workspaces."
Step 4
Create a project

Ask the client to create a project in that workspace, optionally with an initial prompt that the Lovable agent starts building from immediately. The client calls create_project and returns the project ID plus editor and preview URLs.

"Create a project called 'landing-page' in my workspace with the prompt: build a minimal SaaS landing page."
Step 5
Keep iterating

From here you can send follow-up messages to the agent (send_message), read files (read_file), review diffs (get_diff), and deploy (deploy_project) — all without leaving your MCP client.

"Send a message to the project: add a pricing section. Then deploy it."

Available tools

All tool calls are workspace-scoped to the OAuth token used.

Projects & workspaces
  • get_meGet the authenticated user's profile and workspaces.
  • list_workspacesList all workspaces the user belongs to.
  • list_projectsSearch and list projects with filtering and full-text search.
  • get_projectProject details: editor URL, preview URL, screenshot.
  • create_projectCreate a new project, optionally with an initial agent prompt.
  • deploy_projectPublish a project and return the live URL.
  • remix_projectMake a copy of an existing accessible project.
Agent interaction
  • send_messageSend a chat message to a project's AI agent and (optionally) wait for the response.
  • get_messagePoll for message completion when send_message returns immediately.
Code inspection
  • list_filesList all files in a project at a specific git ref.
  • read_fileRead a single file's contents at a git ref.
  • get_diffGet the unified diff for a message or commit SHA.
  • list_editsPaginated edit history of a project.
Cloud database
  • enable_databaseProvision Lovable Cloud (~30–60s).
  • query_databaseRun SQL with full database permissions.
  • get_database_connection_infoConnection string + API URL.
Knowledge & analytics
  • set_workspace_knowledgeDefine workspace-wide AI instructions.
  • set_project_knowledgePer-project AI guidelines and constraints.
  • get_project_analyticsHistorical visitors, pageviews, bounce, sources.

Prerequisites

  • • A Lovable account on a Pro or Business plan.
  • • An MCP-compatible client (Claude, Cursor, Claude Code, custom agent).
  • • OAuth is the only supported auth method — API keys are not available.