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.
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
- Settings → Connectors → Add custom connector
- Name:
Lovable - URL:
https://mcp.lovable.dev - Sign in with your Lovable account.
claude mcp add --transport http \ lovable "https://mcp.lovable.dev"
{
"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.
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.
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?"
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."
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."
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.
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.
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.
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.
enable_databaseProvision Lovable Cloud (~30–60s).query_databaseRun SQL with full database permissions.get_database_connection_infoConnection string + API URL.
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.