Lovable MCP: build a Lovable app on live TikTok and Instagram data
Updated
Virlo is social listening for TikTok and Instagram Reels. Lovable can build a full web app from a prompt, yet it has no window into which TikTok videos and Instagram Reels are taking off this week. Connect Virlo and Lovable's chat can research real trends, hooks and sounds, then wire your app to Virlo's API so the data stays live after you publish. Lovable is an AI app builder that turns plain-English prompts into full-stack web apps with a hosted backend.
- Custom MCP connector for research inside the Lovable chat
- Edge Function + Cloud secret for the live data in your published app
- Your Virlo key never reaches the browser
Part of Virlo's AI assistant guides. Comparing app builders? See Bolt.new and v0 by Vercel.
How do I connect Virlo to Lovable?
Two jobs, five steps. The connector lets Lovable research while it plans your app; the secret lets the finished app fetch fresh data on its own.
Step 1: Create your Virlo account for free
Step 2: Add Virlo as a custom MCP server in Lovable
Open Connectors in your Lovable dashboard, select Add custom and choose MCP server. Type Virlo as the Server name, keep Direct connection, paste the Server URL below and leave the authentication type on OAuth.
Server URLhttps://dev.virlo.ai/api/mcp/mcpStep 3: Click Add & authorize
Lovable sends you to Virlo's sign-in page. Approve access and the Virlo connector turns on for your project chat and for Chats, tied to your own Lovable login.
Step 4: Store your Virlo key in Cloud, then Secrets
Create a key in the Virlo developer dashboard. In your Lovable project, open Cloud, then Secrets, and add it under the name
VIRLO_API_KEY. Lovable reads it from an Edge Function like the one below, so visitors to your app never see it.Edge Function Lovable generates// supabase/functions/virlo-trends/index.ts (Lovable writes this for you) Deno.serve(async () => { const res = await fetch('https://api.virlo.ai/v1/content-trends?platform=tiktok&limit=5', { headers: { Authorization: 'Bearer ' + Deno.env.get('VIRLO_API_KEY') }, }) return new Response(await res.text(), { headers: { 'Content-Type': 'application/json' } }) })Step 5: Prompt Lovable to build on the data
Ask in the project chat. Lovable can check Virlo through the connector while it designs, then call the Edge Function from the page it builds.
Your first promptUse the Virlo connector to look at this week's TikTok trends to copy in [your niche]. Then build a dashboard page that loads them from a virlo-trends Edge Function using the VIRLO_API_KEY secret, with one card per trend and a link to its example video.
Teammates in the same Lovable workspace add the Virlo connector with their own sign-in, because Lovable keeps chat connections personal. The Cloud secret, on the other hand, belongs to the project and serves everyone who opens the app.
Lovable connector vs Edge Function: which part does what?
| Piece | Where it lives in Lovable | What it does with Virlo | Who sees the data |
|---|---|---|---|
| Custom MCP connector | Connectors, then Add custom, then MCP server | Lets Lovable's chat research trends, hooks, sounds and outliers while it plans | You, in the project chat and in Chats |
Cloud secret VIRLO_API_KEY | Cloud, then Secrets, inside the project | Holds the key the backend uses | Nobody: it stays server-side |
| Edge Function | Lovable Cloud backend | Calls https://api.virlo.ai/v1/... on each request and returns JSON | Every visitor of the published app |
| Front-end page | The React app Lovable generates | Renders the trends, sounds or videos the Edge Function returns | Every visitor, with no key in the browser |
Lovable's docs are clear that a custom MCP server is a chat connector only, so the live app always reads Virlo through its own backend call.
Which Virlo endpoints suit a Lovable app?
| App idea | Virlo endpoint to call | What the user sees |
|---|---|---|
| Trend board for a niche | GET /v1/content-trends?platform=tiktok | Cards with the part to keep, the part to change and an example video |
| Sound picker | Trending and breakout sounds for TikTok or Instagram Reels | A ranked list with the number of recent videos per sound |
| Outlier wall | Videos ranked by Virality Score for a keyword | Small-account breakouts sorted by how far they beat the norm |
| Client report portal | Your marketing agent results | A weekly page per client with links to the source videos |
What could a Lovable app show from TikTok this week?
A breakout-sound widget is a classic first Lovable build: the Edge Function asks Virlo for TikTok sounds rising fastest from a small base, and the page lists them like this.
In Virlo's data, "original sound - Hani" is the fastest-rising sound on TikTok: 236 TikTok videos used it in the last 7 days, against about 7 a week before, as of November 19, 2026.
As of November 19, 2026 at 12:03 UTC
| Sound | Artist | TikTok videos (7 days) | Usual week before |
|---|---|---|---|
original sound - Hani | Hani | 236 | 7 |
| ICKYSTICKY1.5 | MUTAYDOESNTGATEKEEP | 217 | 9 |
| original sound - thanks.forthemusic | por um propósito | 176 | 9 |
original sound | Raven | 178 | 21 |
oryginalny dźwięk | DavidBeSlime🌍 | 178 | 50 |
See all 300 breakout sounds on TikTok
Usage history and the TikTok videos behind every sound are in the Virlo app.
Open sounds in VirloHow this sample is made
- Source
- Virlo's sound rankings for TikTok, built from the TikTok videos Virlo collects.
- Window
- TikTok videos posted in the last 7 days that Virlo collected. Counts are TikTok videos in Virlo's data, not every video on the platform.
- Method
- Ranked by breakout score: use in the last 7 days against the sound's usual weekly use before that, so a sound rising from a small base ranks above an old hit.
- As of
- November 19, 2026 at 12:03 UTC. Rebuilt every day.
- Made by
- Numbers are pulled automatically from Virlo's data; the text around them is written by the Virlo team.
Suggested citation: Source: Virlo, “Lovable MCP: build a Lovable app on live TikTok and Instagram data”, virlo.ai/lovable
How do marketers use Lovable with Virlo?
Most marketers come to Lovable wanting an internal tool, not a startup. With Virlo behind it, the common builds are a team trend board, a client-facing report page, and a swipe library of hooks that refreshes itself.
A practical order of work in Lovable:
- Ask the Lovable chat, with the Virlo connector on, what a useful page for [your team] would show from this week's data.
- Let Lovable sketch the layout from those real results instead of placeholder text.
- Add the
VIRLO_API_KEYsecret and have Lovable write one Edge Function per Virlo endpoint you need. - Ask Lovable to cache each response in a table so the page loads fast between refreshes.
- Publish, share the link with your team, and iterate in chat as the trends change.
Virality Score tells your app how far a video outran its creator's typical views. A score of 18 or more is strong, which makes it a sensible default filter for an outlier wall.
Why does the key go in Cloud Secrets and not in the code?
Lovable's Secrets manager exists for backend values. A key typed into the React code, or into a variable with a browser prefix, ships to every visitor. Kept in Cloud, then Secrets, it is read only by the Edge Function through Deno.env.get, and the browser only ever sees the JSON the function returns.
Never paste the key into the Lovable chat itself. Add it through the Secrets form, and refer to it by name in your prompts.
What should I check if Lovable cannot reach Virlo?
Most problems come from mixing up the two halves of the setup. Use this short checklist before rebuilding anything in Lovable:
- The chat ignores Virlo: name the connector in your prompt, as in 'using the Virlo connector', so Lovable reaches for it.
- MCP server is greyed out under Add custom: a workspace admin has switched off custom MCP servers.
- The published page shows an error: confirm the secret is spelled
VIRLO_API_KEYexactly, because secret names in Lovable are case-sensitive. - The page loads but stays empty: open the Edge Function logs in Lovable Cloud and check the Virlo response code.
- A teammate cannot use the connector: they need to add Virlo in their own Connectors, since connections are personal.
What should I prompt Lovable to build with Virlo?
Paste one into a Lovable project with the Virlo connector on. Replace the brackets.
Team trend board
Build a page that lists this week's TikTok trends to copy in [your niche] from a Virlo Edge Function, with what to keep, what to change and the example video for each.
Sound picker
Add a tab that shows breakout sounds on TikTok and on Instagram Reels from Virlo, with a filter for [tone] and a copy-link button.
Outlier wall
Create a grid of [topic] videos with a Virality Score of 18 or more from Virlo, sorted highest first, each card linking to the original post.
Competitor tracker
Make a page where I type @[competitor] and the app shows their recent TikTok and Instagram videos that beat their usual views, using Virlo.
Hook library
Use the Virlo connector to pull 20 proven hooks in [your niche], then build a searchable hook library page seeded with them and refreshed weekly by an Edge Function.
Client portal
Build a login-protected portal where each client of [your business] sees a weekly summary of what changed on TikTok and Instagram in their niche, from Virlo.
Research first
Before you design anything, use Virlo to tell me which TikTok formats in [your niche] are growing fastest, then propose three app ideas built around that data.
Lovable vs Bolt vs v0 vs Replit: which app-builder guide do I need?
Four prompt-to-app builders, four different setups. Each can reach the same Virlo server and API.
Lovable (this page)
Full-stack apps with Lovable Cloud as the backend. Virlo joins as a custom MCP chat connector, and the app calls the API from an Edge Function.
Bolt.new
StackBlitz's in-browser builder. Virlo goes in Connectors (MCP), and server functions hold the key.
v0 by Vercel
Vercel's builder for Next.js apps. Add Virlo from the MCPs menu and call the API from a route handler.
Replit Agent
Replit's agent builds and hosts apps in a workspace. Virlo is added from the Integrations pane and the key lives in Secrets.
What are the limits?
- Virlo only reads public TikTok and Instagram data. Your Lovable app can show and rank it, but it cannot post or log in to anyone's social account.
- The custom MCP connector is personal and works in the Lovable chat; the published app reaches Virlo through its Edge Function and secret.
- On Business and Enterprise workspaces, admins can switch off custom MCP servers; if MCP server is greyed out under Add custom, ask your admin.
- Trends to copy refresh every hour after a check by the Virlo team, so caching an Edge Function response for an hour loses nothing.
- See pricing for what each Virlo plan includes.
Frequently asked questions
Does Lovable support MCP servers?
Yes. Lovable lets you add a custom MCP server from Connectors by choosing Add custom, then MCP server. You give it a name and a server URL and pick OAuth, a bearer token or no authentication. Virlo works with OAuth, so you click Add & authorize and sign in once.
How do I add an MCP server to Lovable?
Open Connectors, select Add custom, then MCP server. Enter Virlo as the server name, paste https://dev.virlo.ai/api/mcp/mcp as the server URL, keep OAuth and click Add & authorize. After you approve on Virlo's page, the connector is ready in your project chat.
Can a Lovable app show live TikTok data?
Yes, through the Virlo API. Store your Virlo key in Cloud, then Secrets, and ask Lovable to write an Edge Function that calls api.virlo.ai/v1. The published app then loads current TikTok and Instagram trends, sounds and outlier videos each time someone opens it.
Can my published Lovable app use the MCP connector?
No. Lovable treats custom MCP servers as chat connectors, available in the project chat and in Chats. For the live app, Lovable's docs point to a direct API integration, which is exactly the Edge Function plus secret setup on this page.
Where do I put an API key in Lovable?
In Cloud, then Secrets, inside your project. Name it VIRLO_API_KEY and paste the key there rather than in chat. Lovable's Edge Functions read secrets server-side with Deno.env.get, so the key is never bundled into the code your visitors download. Rotate it later by editing the same secret.
Can Lovable see Instagram Reels?
With Virlo connected, yes. Lovable's chat can read Reels on a topic ranked by Virality Score, trending and breakout Reels sounds, and Instagram creator lookups. Your app can show the same data through its Edge Function. Each result links back to the real Reel, so you can check what Lovable is building on before you publish.
Can a Lovable app post to TikTok through Virlo?
No. Virlo is built for research and never connects to social accounts. A Lovable app can display, filter and rank what Virlo returns, and your team posts with the tools it already uses. That keeps the Lovable app safe to share widely, because it holds no social logins at all.
Do my teammates need their own Virlo connection in Lovable?
For the chat connector, yes: Lovable keeps chat connections personal, so each member adds Virlo and signs in. The app itself shares one project secret, so everyone using the published app sees the same live data without connecting anything. Only people who research in the chat need the connector.
Lovable MCP server for TikTok: which one should I use?
Use Virlo's hosted server at the URL in step 2 of this guide. It gives Lovable's chat read-only tools for TikTok and Instagram research: trends to copy, outlier videos, hooks, sounds, hashtags, creators and transcripts. For the app itself, Lovable reaches the same data through the Virlo REST API from an Edge Function.
Build your Lovable app on real social data
Connect Virlo in Lovable, add one secret, and ship a trend board your team opens every Monday.
More AI assistant guides
- AI assistant guides
- Claude
- Claude Code
- Cursor
- MCP server
- TikTok MCP server
- Instagram MCP server
- ChatGPT
- ChatGPT dots
- OpenAI Codex
- Gemini CLI
- Grok Build
- Claude Cowork
- n8n
- Zapier
- Grok Bot
- Muse
- Claude Duet
- Hermes Agent
- Kimi K3
- Cue
- Manus
- Perplexity Computer
- Paperclip
- OpenClaw
- NanoClaw
- DeepSeek
- AI agents CLI
- ChatGPT agent
- Perplexity
- Microsoft Copilot
- Le Chat
- Notion
- Slack
- Discord
- Telegram
- Google Sheets
- Windsurf
- VS Code
- GitHub Copilot
- Cline
- JetBrains
- Kiro
- Google Antigravity
- goose
- Warp
- OpenCode
- Zed
- Amp
- Factory Droid
- Raycast
- Replit
- Bolt.new
- v0
- Ollama
- LM Studio
- Open WebUI
- LibreChat
- Make
- Pipedream
- Gumloop
- Lindy
- Relevance AI
- Airtable
- ClickUp
- Dify
- Flowise
- LangChain
- CrewAI
- OpenAI Agents SDK
- Mastra
- Vercel AI SDK
- Claude Agent SDK


