OptimoCMSDocs
MCP

Setup in Lovable

Connect OptimoCMS to Lovable so you can publish AI-generated sites directly.

Setup in Lovable

Connect OptimoCMS to Lovable to import, manage, and publish AI-generated websites on your own domain.

Prerequisites

  • A Lovable account
  • An OptimoCMS API key with read, write, and ai permissions (create one here)

Step 1 — Open MCP integration

  1. Go to Settings → Integrations in Lovable
  2. Click Add MCP Server
  3. Fill in the following:
FieldValue
NameOptimoCMS
URLhttps://europe-west4-cms-sg.cloudfunctions.net/mcpServer
AuthenticationBearer Token
TokenYour OptimoCMS API key
  1. Click Save

Step 2 — Test the connection

Open a new Lovable project and type in the chat:

Use OptimoCMS to show all my sites.

Lovable calls list_sites and shows your existing sites.

Step 3 — Import a site from Lovable

Build a site in Lovable and publish it to OptimoCMS:

Import the current Lovable site to OptimoCMS with the name "My New Site".

Lovable uses import_website to migrate the site, including:

  • All pages and sections
  • Images and media
  • Design tokens (colors, fonts)

Example prompts for Lovable

Build and publish a site

Build a complete website for a dental practice with a homepage, about page, treatments page, and contact page. Publish it to OptimoCMS.

Update an existing site

Add a blog section to site site_abc123 on OptimoCMS with 3 sample articles.

Multilingual site

Translate all pages of site site_abc123 to German and French.

Adjust design

Get the current design tokens from site site_abc123 and change the primary color to #FF6B35.

Tips for better results

  1. Be specific — mention the industry, style, and desired pages
  2. Step by step — let Lovable create a preview before publishing
  3. Use site IDs — reference existing sites by their ID for updates

Common issues

ProblemSolution
"MCP server connection failed"Check the URL and API key in Lovable Settings
"Permission denied"Your API key needs ai permission for import/generation
Import misses sectionsUse preview_import first to see what's detected

Next steps

On this page