CMS for Lovable
Decoupled.io adds a headless CMS to a Lovable app. Connect the MCP server, describe your content, and the integrate_frontend tool returns the files that fetch it from Drupal: an API client, TypeScript types, React Query hooks and real credentials.
- Built for Lovable's stack: the
react-viteintegration uses JSON:API and React Query, which Lovable projects already include, so there are no new dependencies. - Documented workflow: see AI app builder integration.
- Open source CMS: Drupal is GPL-licensed.
- Free plan, then $20/month (Starter) or $60/month (Pro).
Create a free space | Lovable setup guide
When a Lovable app needs a real CMS
Lovable generates the interface quickly. Many Lovable projects keep content in Supabase tables or in hardcoded data. That works until you want non-developers to manage it:
- Editors need a UI, not a table editor or a code change.
- Content needs structure, with field types, references and categories.
- Pages need a workflow, such as drafts, revisions and scheduled publishing.
- Marketing needs a page builder that doesn't require a developer for every landing page.
You keep your Lovable frontend and Vercel or Netlify hosting. Only the data source changes.
Connect Lovable to Decoupled.io
- Create a token at dashboard.decoupled.io under Settings, then API Tokens.
- Add the MCP server in Lovable (or any MCP client):
- URL:
https://mcp.decoupled.io - Transport: HTTP
- Header:
Authorization: Bearer dc_tok_YOUR_TOKEN
- URL:
- Ask the AI:
"Create a Drupal space called 'My Portfolio', import a portfolio content model with projects and categories, then use integrate_frontend with react-vite to connect it to this project."
The AI calls create_space, import_content and integrate_frontend. The last one returns:
| File | What it does |
|---|---|
src/lib/drupal.ts |
OAuth token caching and a JSON:API client |
src/lib/drupal-types.ts |
TypeScript interfaces from your content model |
src/hooks/useDrupalContent.ts |
React Query hooks for each content type |
src/components/ExampleList.tsx |
An example component showing the pattern |
.env.local |
Real credentials, not placeholders |
Replace the hardcoded data
// Before: hardcoded
const menuItems = [{ name: "Espresso", price: "$3.50" }]
// After: from Drupal
import { useMenuItemList } from '../hooks/useDrupalContent'
function Menu() {
const { data, isLoading } = useMenuItemList({ limit: 20 })
if (isLoading) return <div>Loading...</div>
return data?.items.map(item => (
<div key={item.id}>
<h3>{item.title}</h3>
<p>{item.fieldPrice}</p>
</div>
))
}
Hook names follow your content type names, so yours will differ. Review the generated code before you ship it.
Give your team an editor
After the swap, your team manages content in Drupal. Ask the AI for a login link with get_login_link, or open your space URL. For landing pages, the Canvas visual editor lets editors arrange components with a live preview, as long as your frontend is one of the Next.js or Astro starters.
Supabase or Decoupled.io?
| Supabase tables | Decoupled.io | |
|---|---|---|
| Editing UI for non-developers | Table editor | Drupal admin and Canvas visual editor |
| Content moderation and revisions | Build yourself | Pre-installed Drupal modules |
| Scheduled publishing | Build yourself | Pre-installed scheduler module |
| API | Auto-generated REST | GraphQL and JSON:API |
| Best for | App data, auth, realtime | Editorial content |
They aren't mutually exclusive: keep Supabase for user data and use Decoupled.io for content.
Questions
Do I need to know Drupal? No for the connection. The AI sets up the content model. Some Drupal concepts, such as paragraphs and taxonomies, help for advanced modeling.
Does it use GraphQL or JSON:API? The Lovable integration uses JSON:API with React Query. GraphQL is also available.
How long does setup take? A space provisions in roughly two minutes, and the AI-driven workflow runs in one prompt. Time to a finished site depends on your content.
What does it cost? Free plan (one space, 24-hour auto-archive), Starter $20/month, Pro $60/month. See pricing.
What are the limits? A curated Drupal module set, and 5 to 8 second cold starts on idle Free and Starter spaces.
Connect your Lovable project
Create a free space, add the MCP server in Lovable and send the prompt above.