Lovable — Claude Code MCP server: what it does, how to install
Links your coding agent to Lovable to generate full-stack apps, inspect files, query hosted Postgres, and deploy to live URLs.
claude mcp add --transport http mcp https://mcp.lovable.devWhat Lovable does
This remote MCP server runs over Streamable HTTP at https://mcp.lovable.dev. It gives your coding assistant access to workspace management, template browsing, code inspection, and project publishing. You can communicate directly with the Lovable build agent, fetch diffs, and inspect real-time traffic analytics. It also includes tools to provision a cloud Postgres database and run direct SQL statements.
Authentication relies on RFC 9728 discovery and OAuth 2.1. While Claude Code and ChatGPT configure the connection using just the URL, editors such as Cursor or VS Code require setting the public OAuth CLIENT_ID (6d465f583e1e4ce5801b1616f735670c) in their JSON configs.
Actions like create_project and send_message consume Lovable build credits. Running query_database executes SQL commands directly against your active database instance, so verify instructions before running mutations.
What it helps with
- create and deploy full-stack apps through natural language
- execute SQL queries against project cloud databases
- review code diffs and commit history across Lovable workspaces
- attach external connectors such as Slack, Notion, or Linear
Example prompts for the agent
- List all workspaces and projects in my Lovable account
- Instruct the Lovable agent to build a landing page in project project_id
- Check the Postgres database state and execute a test query
How to install Lovable
Platform CLI: remote server
claude mcp add --transport http mcp https://mcp.lovable.devPlatform CLI: remote server
codex mcp add lovable --url https://mcp.lovable.devConfig file
{
"mcpServers": {
"lovable": {
"url": "https://mcp.lovable.dev"
}
}
}Config file
{
"servers": {
"lovable": {
"type": "http",
"url": "https://mcp.lovable.dev"
}
}
}Platform CLI: remote server
gemini mcp add -t http lovable https://mcp.lovable.devStep by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about Lovable
How to install Lovable in Claude Code?
Run claude mcp add --transport http lovable https://mcp.lovable.dev in your terminal to register the HTTP endpoint.
What does the Lovable MCP server do?
It bridges development tools with the Lovable app builder, enabling project scaffolding, agent interactions, code inspection, and live deployments.
Which clients require an OAuth client ID?
Editors like Cursor, Windsurf, and VS Code need the public client ID 6d465f583e1e4ce5801b1616f735670c in their configuration, whereas Claude Code connects with just the server URL.