Learning resourcesReviewed · Lovable

Lovable: Publish your app as an MCP server

This guide helps Lovable app builders connect their published apps to AI assistants, but builders remain responsible for backend permissions and usage limits. It covers generated, hosted Model Context Protocol (MCP) servers, sign-in, supported app stacks, publishing, connector maintenance and separate WebMCP browser tools.

Researched 13 Nov 2026

In short.

This guide shows Lovable app builders how to expose app actions to AI assistants, with the main catch that calls affect the live app and have no built-in rate or spending caps. Lovable generates and hosts the MCP server, proposes tools and defaults to sign-in. The guide explains stack restrictions, app-level authorization, publishing and connector updates. It is most relevant to apps with useful data lookups or repeatable workflows. Build changes consume credits, while tool calls incur their underlying app costs. Runtime compatibility, security enforcement, reliability and actual costs have not been assessed.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage includes the complete selected documentation page at [https://docs.lovable.dev/features/agent-integrations.md], including access warnings, stack restrictions, costs, security checks, Lovable chat connectors, WebMCP, maintenance, limitations, FAQ and troubleshooting. Linked pages, the documentation index, assistant documentation, implementation code, pricing schedules and legal terms are excluded. No app was built, published, connected or run. Runtime behavior, security effectiveness, actual charges and compatibility across individual clients are not assessed.

The overview

identity

The resource is Lovable’s guide to Agent integrations, which expose actions from a published Lovable app as tools that compatible AI assistants can call. MCP is the protocol used to describe and invoke those tools.

The integration operates on the published app. It gives assistants access to the tools the builder exposes; editing or managing the Lovable project belongs to the separate Lovable MCP server feature.

assessment

The guide provides useful decision and implementation detail for turning an existing app into an assistant-accessible service. Its strongest material concerns the consequences of exposing live actions: returned data, backend authorization, repeated writes and resource consumption.

The practical fit is strongest when an app already performs a clear task such as checking request status, retrieving knowledge or generating a quote. Visual experiences and static sites offer less obvious value. The page describes expected behavior but supplies no measured reliability, generated-tool accuracy or independent security results.

users

The primary audience is Lovable app builders and teams responsible for their apps’ data, permissions and operating costs. Beginners receive a plain explanation and interface-based setup; developers receive details about backend checks, authentication, stack compatibility and deployment.

End users connect through an assistant that supports remote MCP and the required authentication flow. The page names ChatGPT and Claude, alongside clients such as Claude Code, Cursor and VS Code. Their individual setup requirements and account costs are not established here.

capabilities

Lovable generates and hosts an MCP server, proposes tools from the app’s functionality and lets builders adjust their names, descriptions and behavior. Tools can retrieve information, create or update records, run workflows and apply existing app logic.

Published integrations can also become personal connectors in Lovable chats for workspace members who can access the app. Read-only tools run without approval there; other tools initially request approval, with per-tool settings available. These connections operate during Lovable chats and do not let a published app call another app’s integration at runtime.

Enabling Agent integrations also adds separate WebMCP browser tools unless the builder requests MCP only. Browser tools operate in an open tab using the person’s session; support is currently described as limited.

Using it

requirements

The app must be published before users receive a working integration. Publicly published apps are supported on all plans. Business and Enterprise workspaces additionally support workspace-published apps, whose tools must require sign-in.

Newer TanStack Start apps host the integration within the app. Tools that are open to anyone and only return information built into such an app do not need Lovable's built-in backend, a connected Supabase project, a database or user accounts; the integration is hosted in the app itself. Protected integrations require authentication through the built-in backend or a connected Supabase project. For connected Supabase projects, the guide describes OAuth 2.1 activation at publishing.

Older React + Vite apps require the built-in backend; an older app using its own Supabase project cannot receive this MCP integration. Workspace-app connections require both Lovable workspace access and app sign-in.

mechanism

An assistant discovers the published tools, chooses one based on its description and the user’s request, and calls the live app’s action. The integration adds tool code and connection endpoints to the existing project.

Sign-in identifies the caller. Backend checks determine which records, roles, permissions and paid features that caller can access. Hidden buttons and menu restrictions provide no protection for a directly callable backend action.

Authentication applies to the whole integration: either every tool requires sign-in or every tool is callable anonymously. Protected tools can enforce different permissions within their individual actions. Public app visibility and anonymous tool access are separate settings.

setup

Open More → AI → Agent integrations and enable the feature, or request it in project chat. Enabling starts a build and consumes credits. Lovable proposes tools and asks who can call them; protected OAuth access is the default. Review the generated actions, inputs and outputs before publishing.

Publishing makes the integration live and provides the MCP link. Users add that link through their assistant’s connector setup and complete sign-in and consent where required. Publish checks warn about anonymous access and block it for workspace-published apps. New or changed anonymous public integrations also receive a deeper security scan.

App and tool changes require publishing again. Added, removed or renamed tools require users to refresh their connector. Older React + Vite apps additionally need backend-function redeployment after relevant changes. Existing hand-built MCP routes can cause build conflicts; the guide says Lovable refuses to overwrite that code.

example

The page illustrates a client portal with list_open_requests, create_request and get_request_status tools. A client asking whether requests are waiting on them could trigger list_open_requests, allowing the assistant to answer using the portal’s live data.

For this scenario, useful implementation checks include restricting results to the signed-in client and returning only necessary request fields. A create_request action would also need protection against duplicate submissions after retries. The page supplies this as an example; no actual tool response or execution result is provided.

Assessment & evidence

limitations

Long-running actions can time out, and assistant retries can duplicate writes unless the action prevents them. The guide warns that work taking more than tens of seconds can appear stuck or interrupted; it gives no universal timeout. Integrations cannot independently send alerts to assistants.

There is no external discovery directory or built-in tool-call activity view. Errors appear in app logs. Users must refresh cached tool lists after structural tool changes. TanStack Start integrations change their MCP link when the primary custom domain changes; older backend-function links do not.

Automated security scans may miss business-logic risks. Workspace offboarding also requires attention to app accounts: an existing app session can remain valid until expiration or revocation after workspace access is removed. Unpublishing immediately takes the MCP server offline, and republishing may change its link.

reasoning

The documented design suggests starting with a few narrow, read-only tools that return minimal fields. Each exposed tool creates another callable route into the live app, so suitability depends on whether its action is useful, appropriately restricted and affordable to repeat.

For write or paid actions, backend authorization, usage limits and duplicate prevention become central implementation requirements. Generated tools and default sign-in reduce some setup work, while correctness still depends on the app’s action logic. This is an architectural inference from the described behavior; security and performance have not been demonstrated.

alternatives

The app’s normal interface remains suitable for visual and interactive tasks. WebMCP is the documented option for browser agents working within an open tab, although few browsers and agents support the proposed standard. Browser tools alone can also work on older React + Vite apps using a custom Supabase project.

The guide mentions hand-built MCP servers, but supplies no comparative implementation or cost analysis. The separate Lovable MCP server serves project creation and editing, while chat connectors bring external services into Lovable during building. Those features serve different jobs. Their linked documentation is outside this page’s evidence.

evidence

The evidence is the complete Lovable documentation page at [https://docs.lovable.dev/features/agent-integrations.md]. It contains feature descriptions, prerequisites, setup instructions, security notices, costs, examples, maintenance guidance and troubleshooting.

This is the provider’s account of intended behavior. It supplies no inspected implementation, actual connection trace, measured benchmark or independent security evaluation. Nothing was executed: tool behavior, authentication enforcement, retry safety and assistant compatibility remain untested.

Access & freshness

costs

The page states that Lovable charges no separate fee for integration hosting, publishing or tool calls. Enabling or changing the integration consumes build credits, with the amount depending on the app and work required. Adding or changing browser tools also consumes credits.

Each tool call carries the underlying action’s normal costs, including backend usage, database operations, AI features and third-party services. There is no built-in rate limit, tool-call quota or spending cap. Sign-in identifies users but does not restrict call frequency.

Credit quantities, plan prices, backend rates, third-party charges and assistant subscription costs are not supplied. A total operating cost cannot be calculated from this page.

rights

The page says builders control exposed actions, access rules and published behavior. It does not establish a documentation license, a generated-code license or redistribution rights.

Terms governing code ownership, submitted data, assistant data handling and third-party services are not included. The supplied page provides no downloadable software package with an explicit redistribution grant.

freshness

The page was captured on 13 November 2026. The supplied text establishes no publication date, last-updated date, feature release number or deployed integration version.

The guide acknowledges that assistant connection flows change and points to current in-product instructions. It says Lovable maintains protocol compatibility through versioned updates and provides an upgrade path when app changes are needed. Behavior beyond the captured documentation is unknown.

actions

Check the app’s stack, backend and publishing plan first. Identify one useful assistant task, begin with narrowly scoped read-only tools and keep sign-in enabled for private data. Decide whether the browser tools added alongside MCP are also wanted.

Before sharing the link, follow the guide’s validation suggestions: complete the connection and consent flow, check ordinary and unauthorized users, request missing or another user’s records, inspect returned fields, repeat write calls and exercise paid-action limits. Anonymous integrations need a separate signed-out review of every exposed action.

Review security findings and custom business rules together. Maintain a publishing and connector-refresh process, recheck links after domain changes, and revoke app access during workspace offboarding. These are recommended next steps; no validation results are available.

Evidence for this report

selected-page.txtselected · checked 2026-11-13