KBAISE/ for lovable
Library
Docs

Publish your app as an MCP server

about 10 minShippingchecked 4d agoOfficial page
The short version

You can turn your published app into an AI assistant connector so users can run actions and look up data directly inside ChatGPT or Claude. Lovable hosts the connector, creates the action list automatically, and lets you protect access with user sign-in.

Anyone with a published app who wants their users to interact with their data and workflows directly inside AI assistants.

Do this, in order

  1. 1

    Go to More → AI → Agent integrations and select Enable agent integrations, or ask Lovable in chat to enable agent integrations.

    This starts a build where Lovable scans your app and proposes a list of actions that AI assistants can use.

  2. 2

    Choose Protected with OAuth when prompted who should be able to call the server.

    Requiring sign-in prevents strangers from running actions or accessing sensitive data through your app.

  3. 3

    Review the proposed tools in the MCP tools section, then ask Lovable in chat to remove any unwanted tools or clarify their descriptions.

    AI assistants choose which action to trigger based entirely on the tool names and descriptions.

  4. 4

    Publish your app.

    Your connector only runs against the live published version of your app and will not generate a shareable link until you publish.

  5. 5

    Copy the link from Your MCP link and paste it as a custom connector in ChatGPT or Claude to test it.

    Testing the full connection and sign-in flow yourself ensures the actions return the right data before you share the link with users.

Paste this into your project

Add Agent integrations to this app so users can connect it to AI assistants like ChatGPT and Claude. Configure it to require sign-in with OAuth, and generate focused read-only tools for looking up data.

Words decoded

MCP (Model Context Protocol)
A standard format that lets AI assistants discover and run specific actions inside an app.
Tool
A specific action exposed to an AI assistant, such as searching for a customer or generating an invoice.
OAuth
A secure sign-in process that lets users log into your app and grant the AI assistant permission to act on their behalf.

Where people get stuck

  • Agent integrations do not have built-in rate limits or spending caps, so exposing actions that call paid APIs or edit records can lead to unexpected usage if your backend does not limit them.
  • Hiding buttons or pages in your visual design does not protect your tools; any security checks, user ownership rules, or subscription gates must be enforced in the backend.
  • If your app is published to a private workspace, Lovable will block publishing if your agent integration does not require sign-in.
  • Whenever you add, rename, or delete tools, you must republish your app, and users must refresh their connector in their AI assistant.

The short version, steps, decoder and prompt on this page are written automatically from Lovable's own documentation and can lag or misread it. The official page is always the authority.