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, andaipermissions (create one here)
Step 1 — Open MCP integration
- Go to Settings → Integrations in Lovable
- Click Add MCP Server
- Fill in the following:
| Field | Value |
|---|---|
| Name | OptimoCMS |
| URL | https://europe-west4-cms-sg.cloudfunctions.net/mcpServer |
| Authentication | Bearer Token |
| Token | Your OptimoCMS API key |
- 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
- Be specific — mention the industry, style, and desired pages
- Step by step — let Lovable create a preview before publishing
- Use site IDs — reference existing sites by their ID for updates
Common issues
| Problem | Solution |
|---|---|
| "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 sections | Use preview_import first to see what's detected |
Next steps
- All available MCP tools — complete overview
- AI Workflows — more example prompts
- Setup in Cursor — for developers who prefer working in an IDE