← Back to all apps

Lovable

Codeby Lovable Labs
Launched Aug 26, 2026 on ChatGPTLaunched Jun 15, 2026 on Claude

Lovable MCP Server lets you create, iterate on, inspect, and deploy Lovable projects.

40ChatGPT Tools
35Claude Tools
Lovable LabsDeveloper
CodeCategory

Use Cases

codeproductivity

Available Tools

Add Connector

add_connector
Full Description

Get the Lovable dashboard URL where the user can add a connector. Connectors must always be added through the dashboard — the MCP cannot add them programmatically. Use this tool to return the deep link the user should open.

Parameters (0 required, 1 optional)
Optional
connector_idstring

Catalog connector ID (e.g. 'linear', 'notion'). Optional — omit for the general connectors page.

Create Project

create_project
Full Description

Create a new Lovable project. Pass workspace_id and initial_message. If workspace_id is omitted and exactly one eligible workspace exists, Lovable uses it. If multiple workspaces can create projects, this returns available_workspaces; choose one or ask the user, then call create_project again with that workspace_id. Returns projectId when creation starts; call render_project_widget with that projectId to show build progress. Projects use Lovable's backend default stack and are full-stack TypeScript apps with Tailwind + shadcn/ui. To start the project from a design system (components, tokens, styles), pass design_systems with an ID from list_design_systems.

Parameters (2 required, 7 optional)
Required
initial_messagestring

Initial chat message to send after creation

promptstring

Detailed project specification (minimum 100 characters, maximum 100000 characters).

Optional
design_systemsarray

Design systems to start the project from. Provides components, tokens, and styles. IDs come from list_design_systems. Today only the first entry is applied.

filesarray

Uploaded file references to attach to the initial message

sandbox_templatestring

Advanced: sandbox runtime template for the new project. Omit for the default stack. Only pass a value when the user explicitly asks for a specific runtime template; requires a workspace with access to that template and is rejected otherwise.

template_project_idstring

Template project ID to clone from (from list_template_projects)

timeout_secondsinteger

Max seconds to wait for agent completion (default: 600, max: 600). If it times out, returns status 'in_progress' with the message_id; use get_message to continue polling.

Default: 600
waitboolean

Wait for the initial message to be processed. Defaults to false: the call returns immediately with projectId and an in_progress agent_response (poll via get_message or render_project_widget). Pass true to block until the agent finishes, the previous default behavior.

workspace_idstring

Workspace ID. Optional when the account has exactly one workspace that can create projects.

Create Workspace Skill

create_workspace_skill
Full Description

Create a workspace skill by adding skills/{skill_name}/SKILL.md to the workspace repo. Only workspace admins and owners can create skills. The markdown must include valid frontmatter with matching name and a description, for example: ---\nname: my-skill\ndescription: What this skill helps with\n---\n\n

My Skill\n...

Parameters (3 required)
Required
markdownstring

Full SKILL.md contents, including frontmatter

skill_namestring

Skill name; must match the frontmatter name

workspace_idstring

Workspace ID

Delete Workspace Skill

delete_workspace_skill
Full Description

Delete a workspace skill from the workspace repo. Only workspace admins and owners can delete skills. This removes the skill directory and cannot be undone except by recreating the skill.

Parameters (2 required)
Required
skill_namestring

Skill name

workspace_idstring

Workspace ID

Deploy Project

deploy_project
Full Description

Deploy (publish) a project to production hosting on lovable.app. Returns the live URL that anyone can visit.

Parameters (1 required, 1 optional)
Required
project_idstring

Project ID

Optional
namestring

Project slug for the published URL

Enable Database

enable_database
Full Description

Provision a cloud PostgreSQL database (Supabase) for a project. This operation takes 30-60 seconds. Only needed once — after enabling, the database persists. Returns the database status once provisioning completes.

Parameters (1 required)
Required
project_idstring

Project ID

Get Database Status

get_database_status
Full Description

Check whether a cloud database (PostgreSQL via Supabase) is enabled for a project. Call this first before querying or connecting — if not enabled, use enable_database to provision it.

Parameters (1 required)
Required
project_idstring

Project ID

Get Diff

get_diff
Full Description

Get the code diff from a message or commit. Pass message_id (from send_message) to see what the agent changed, or sha for a specific commit. Returns a unified diff.

Parameters (1 required, 3 optional)
Required
project_idstring

Project ID

Optional
base_shastring

Base commit SHA for comparison (defaults to parent commit)

message_idstring

Message ID (from send_message) — resolves the diff from the message's edit

shastring

Commit SHA to diff (alternative to message_id)

Get File Upload Url

get_file_upload_url
Full Description

Get a presigned URL to upload a file. Workflow: 1) call this to get upload_url and file_id, 2) PUT the file content to the upload_url, 3) pass the file_id in the files array of send_message or create_project.

Parameters (1 required, 1 optional)
Required
file_namestring

File name

Optional
content_typestring

MIME type of the file

Get Me

get_me
Full Description

Get the authenticated user's profile and workspaces

Get Message

get_message
Full Description

Get the status and content of a message. Pass the message_id and thread_id returned by send_message for thread-aware status. Check the response status field: 'in_progress' means the agent is still working, 'completed' means done.

Parameters (2 required, 1 optional)
Required
message_idstring

Message ID (from send_message)

project_idstring

Project ID

Optional
thread_idstring

Trajectory thread ID returned by send_message

Get Build Status

get_project
Full Description

Get details for a specific project. Returns editor_url (Lovable editor) and preview_url (static preview, always available after first prompt). Includes a screenshot of the app when the project status is completed.

Parameters (1 required)
Required
project_idstring

Project ID

Get Project Analytics

get_project_analytics
Full Description

Get historical analytics for a published project: visitors, pageviews, bounce rate, session duration, and breakdowns by page, source, device, and country.

Parameters (3 required, 1 optional)
Required
end_datestring

End date in RFC 3339 format (e.g. 2026-04-08T00:00:00Z)

project_idstring

Project ID

start_datestring

Start date in RFC 3339 format (e.g. 2026-04-01T00:00:00Z)

Optional
granularitystring

Time bucket size (default: daily)

Options:hourlydaily

Get Project Analytics Trend

get_project_analytics_trend
Full Description

Get real-time visitor trend for a published project. Returns the current visitor count and visit counts in 5-minute intervals over the last 30 minutes.

Parameters (1 required)
Required
project_idstring

Project ID

Get Project Knowledge

get_project_knowledge
Full Description

Get a project's knowledge content. Knowledge is custom instructions that guide the AI agent's behavior for this specific project.

Parameters (1 required)
Required
project_idstring

Project ID

Get Workspace

get_workspace
Full Description

Get details for a specific workspace: plan, credit balance, member count, and settings. Use to check available credits before starting work.

Parameters (1 required)
Required
workspace_idstring

Workspace ID

Get Workspace Knowledge

get_workspace_knowledge
Full Description

Get the workspace's knowledge content. Knowledge is custom instructions that guide the AI agent's behavior across all projects in the workspace.

Parameters (1 required)
Required
workspace_idstring

Workspace ID

Get Workspace Skill

get_workspace_skill
Full Description

Get a workspace skill, including its full SKILL.md contents. Use this before update_workspace_skill when preserving existing content.

Parameters (2 required)
Required
skill_namestring

Skill name

workspace_idstring

Workspace ID

Start building a project (legacy)

initiate_project
Full Description

Deprecated: use create_project instead. This tool exists only for legacy published clients that hard-code it, and it is a strictly narrower alias — it cannot target a workspace, attach files, start from a template or design system, or wait for the build. Start building a new Lovable project from a prompt. If exactly one workspace can create projects, the project is created immediately and projectId is returned. If multiple workspaces are available, this returns workspaces for selection; choose one or ask the user, then call create_project with that workspace_id and the same prompt as initial_message.

Parameters (1 required)
Required
promptstring

The project prompt describing what to build (100 to 100,000 characters).

List Connectors

list_connectors
Full Description

List all connectors (integrations) available in a workspace. Connectors give the AI agent access to external services like Stripe, Supabase, Shopify, Slack, and more. Grouped by type: standard (OAuth-based API connectors), seamless (zero-config integrations), and MCP (Model Context Protocol servers). Each includes its enabled/disabled status. See https://docs.lovable.dev/integrations/introduction for details.

Parameters (1 required)
Required
workspace_idstring

Workspace ID

List Custom Connectors

list_custom_connectors
Full Description

List connectors that have been added to a workspace (both from the catalog and custom). These are the connectors the AI agent can use during chat. To add a new one, call add_connector to get the dashboard URL the user should open.

Parameters (1 required)
Required
workspace_idstring

Workspace ID

List Design Systems

list_design_systems
Full Description

List design systems available in a workspace. A design system is a reusable Lovable project that ships components, tokens, and styles. Pass any of these IDs as design_systems to create_project to start a new project from that design system.

Parameters (1 required)
Required
workspace_idstring

Workspace ID

List Edits

list_edits
Full Description

List the edit history of a Lovable project. Each edit represents a code change with a commit_sha that can be used with get_diff. Supports cursor pagination via the cursor parameter (use pagination.next_cursor from the previous page).

Parameters (1 required, 3 optional)
Required
project_idstring

Project ID

Optional
beforestring

Deprecated: use cursor. ISO 8601 timestamp (created_at of last edit in previous page)

cursorstring

Opaque pagination cursor from a previous page's pagination.next_cursor

limitnumber

Max edits to return (1-50, default 20)

Default: 20

List Files

list_files
Full Description

List a page of files in a Lovable project. Optionally pass latest_commit_sha from get_project, or commit_sha from send_message/list_edits. Use pagination.next_cursor to fetch more pages.

Parameters (1 required, 3 optional)
Required
project_idstring

Project ID

Optional
cursorstring

Opaque pagination cursor returned by the previous page

limitnumber

Max files to return (default 50, max 100)

refstring

Git ref — commit SHA, branch name, or tag

List Messages

list_messages
Full Description

List recent messages in a project, newest first. Use this to discover message IDs when you only have a project_id — for example, to fetch the latest assistant response with get_message or look up a diff with get_diff. Paginate older history by passing pagination.next_cursor as cursor.

Parameters (1 required, 2 optional)
Required
project_idstring

Project ID

Optional
cursorstring

Pagination cursor from a previous response

limitnumber

Max messages to return (1-100, default 30)

Default: 30

List Projects

list_projects
Full Description

Search and list projects in a workspace. Supports full-text search by name, AI-generated description, creator name, or email. Uses ngram matching for fuzzy search. Supports filtering by visibility, publish status, folder, and creator.

Parameters (1 required, 8 optional)
Required
workspace_idstring

Workspace ID

Optional
cursorstring

Pagination cursor from a previous response

folder_idstring

Filter by folder ID

limitnumber

Max results (default 50, max 100)

publish_statusstring

Filter by publish status

Options:anypublishedinternalexternalnot_published
querystring

Search query. Searches project name, display name, AI-generated description, creator name, and creator email using fuzzy ngram matching. Terms are split on whitespace/underscores/hyphens. All terms must match at least one field.

user_idstring

Filter by project creator's user ID

viewed_by_meboolean

Only return projects viewed by the authenticated user

visibilitystring

Filter by visibility: personal (only you), workspace (team), public, or all

Options:personalworkspacepublicall

List Template Projects

list_template_projects
Full Description

List available template projects in a workspace. These can be used as template_project_id when creating a project to clone the template's codebase.

Parameters (1 required)
Required
workspace_idstring

Workspace ID

List Workspace Skills

list_workspace_skills
Full Description

List workspace skills. Skills are reusable agent instructions stored in the workspace repo and available to projects in that workspace. Use this before updating or deleting a skill.

Parameters (1 required, 1 optional)
Required
workspace_idstring

Workspace ID

Optional
include_markdownboolean

Include each skill's full SKILL.md contents

Default: False

List Workspaces

list_workspaces
Full Description

List all workspaces the user belongs to. Returns a concise summary; use get_workspace for full details. Call this first to discover workspace IDs, which are required by project creation, workspace settings, and connector management tools.

Parameters (0 required, 3 optional)
Optional
cursorstring

Pagination cursor from a previous response.

limitnumber

Max results (default 50, max 100)

offsetnumber

Pagination offset (default 0)

Move Projects To Folder

move_projects_to_folder
Full Description

Move one or more projects into a workspace folder. Existing folder memberships are removed first. The folder may update project visibility to match folder visibility; the response lists added, skipped, and visibility-updated projects.

Parameters (3 required)
Required
folder_idstring

Target folder ID

project_idsarray

Project IDs to move into the target folder

workspace_idstring

Workspace ID

Open in Lovable

open_project_for_editing
Full Description

Get a link for the user to edit their website in Lovable.

Use when user wants to modify, edit, or add features to an existing website.

Websites can only be edited in Lovable's web interface, not here.

Parameters (1 required)
Required
project_idstring

Project ID to open for editing

Query Database

query_database
Full Description

Execute a SQL query against a project's cloud PostgreSQL database. Returns rows as JSON objects. Supports SELECT, INSERT, UPDATE, DELETE, and DDL statements. The database must be enabled first (use get_database_status to check, then enable_database if needed). Caution: write operations (INSERT, UPDATE, DELETE, DROP) modify production data permanently — prefer SELECT for inspection unless a write is explicitly required.

Parameters (2 required)
Required
project_idstring

Project ID

sqlstring

SQL query to execute

Read File

read_file
Full Description

Read the contents of a single file in a Lovable project. Optionally pass latest_commit_sha from get_project, or commit_sha from send_message/list_edits. Returns the raw file content as text.

Parameters (2 required, 1 optional)
Required
pathstring

File path within the repository (e.g. 'src/App.tsx')

project_idstring

Project ID

Optional
refstring

Git ref — commit SHA, branch name, or tag

Remix Project

remix_project
Full Description

Remix (fork) an existing project into a workspace. Creates a copy of the source project. Waits for the remix to complete and returns the new project details.

Parameters (2 required, 4 optional)
Required
project_idstring

Source project ID to remix

workspace_idstring

Target workspace ID for the new project

Optional
include_custom_knowledgeboolean

Copy custom knowledge (instructions) to the new project

Default: False
include_historyboolean

Copy chat history to the new project

Default: False
project_namestring

Custom name for the new project

timeout_secondsinteger

Max seconds to wait for remix completion (default: 600, max: 600).

Default: 600

Project progress

render_project_widget
Full Description

Render the Lovable project status widget for a project that already exists. Call only after create_project returns projectId. Returns widget bootstrap data and does not create or modify projects.

Parameters (1 required)
Required
project_idstring

Project ID returned by create_project.

Send Message

send_message
Full Description

Send a chat message to a project's AI agent and wait for the agent to finish. The agent can write and edit code, install npm packages, create pages and components, set up authentication, connect integrations (Stripe, Supabase, etc.), and fix bugs. Write messages in natural language — describe what you want, not how to implement it. Attach images (designs, screenshots) to guide visual changes. Returns the agent's response, activity log, and any edits made. The preview_url is rebuilt once the agent finishes. Set wait=false to return immediately without waiting.

Parameters (2 required, 5 optional)
Required
messagestring

Message text for the AI agent

project_idstring

Project ID

Optional
filesarray

Uploaded file references

max_modeboolean

Run this turn in Max mode: the strongest model at high effort, 2.5x credits. Build turns only; ignored when plan_mode is set. Requires the max-mode feature or a Lovable-on-Lovable project; the API rejects the request with 403 otherwise (default: false)

Default: False
plan_modeboolean

Enable plan mode: the agent discusses and plans without editing code. Use for complex features, architectural decisions, or when you want to align on approach before changes are made (default: false)

Default: False
timeout_secondsinteger

Max seconds to wait for agent completion (default: 600, max: 600). If it times out, returns status 'in_progress' with the message_id; use get_message to continue polling.

Default: 600
waitboolean

Wait for the agent to finish processing (default: true)

Default: True

Set Folder Visibility

set_folder_visibility
Full Description

Set a folder's visibility. 'personal' restricts to the creator and collaborators. 'workspace' makes it visible to all workspace members. Changing visibility propagates to all projects in the folder. Nested folders cannot change visibility (move to root first). Personal folders require a Business or Enterprise plan.

Parameters (3 required)
Required
folder_idstring

Folder ID

visibilitystring

Folder visibility level

Options:personalworkspace
workspace_idstring

Workspace ID

Set Project Knowledge

set_project_knowledge
Full Description

Set a project's knowledge content. Knowledge is custom instructions that guide the AI agent's behavior for this specific project. Max 10,000 characters. Caution: this replaces existing knowledge entirely — read with get_project_knowledge first if preserving existing content. Examples of useful knowledge: coding conventions, preferred libraries, brand voice guidelines, API endpoint patterns, or 'always use Supabase for auth'.

Parameters (2 required)
Required
contentstring

Knowledge content (markdown). Pass empty string to clear.

project_idstring

Project ID

Set Project Visibility

set_project_visibility
Full Description

Set a project's visibility. 'private' makes it editable by workspace members. 'workspace_view' makes it visible (read-only) to workspace members (requires Business plan or higher). 'public' makes it visible to anyone (not available on enterprise plans). 'draft' makes it visible only to the creator (requires Business plan or higher).

Parameters (2 required)
Required
project_idstring

Project ID

visibilitystring

Project visibility level

Options:draftprivatepublicworkspace_view

Set Workspace Knowledge

set_workspace_knowledge
Full Description

Set the workspace's knowledge content. Knowledge is custom instructions that guide the AI agent's behavior across all projects in the workspace. Max 10,000 characters. Caution: this replaces existing knowledge entirely — read with get_workspace_knowledge first if preserving existing content. Examples of useful knowledge: coding conventions, preferred libraries, brand voice guidelines, API endpoint patterns, or 'always use Supabase for auth'.

Parameters (2 required)
Required
contentstring

Knowledge content (markdown). Pass empty string to clear.

workspace_idstring

Workspace ID

Update Workspace Skill

update_workspace_skill
Full Description

Update a workspace skill by replacing skills/{skill_name}/SKILL.md in the workspace repo. Only workspace admins and owners can update skills. Read the existing skill first with get_workspace_skill if you need to preserve content.

Parameters (3 required)
Required
markdownstring

Full replacement SKILL.md contents, including frontmatter

skill_namestring

Skill name; must match the frontmatter name

workspace_idstring

Workspace ID