Masko in Lovable
Lovable can create a mascot for your app through Masko's MCP server. The connection creates the mascot and its animations, and the finished files end up in your project. Your published app plays those files. The connection works while you build, and your published app never calls Masko.
Connect Masko
Lovable connects to Masko with an API key.
- On masko.ai, open Developers → API keys, choose Create API key, name it Lovable and keep Read + Write. Copy the key: it is shown once.
- In Lovable, open Connectors, click + at the top right, then MCP server.
- Name it Masko and enter the server URL
https://masko.ai/api/mcp. - For authentication, choose Bearer token or API key and paste your Masko key. Click Add server.
The key belongs to the workspace you were in when you created it, personal or team, and generation spends that workspace's credits. Only a team owner or admin can create a team key. If MCP server is greyed out in Lovable, an admin of your Lovable workspace has turned off custom MCP servers.
Other apps connect the same way: see MCP server.
Try it
- "Show my Masko credit balance. Don't generate anything."
- "Add a friendly mascot to my habit tracker. It waits while I'm working and celebrates when I finish a habit."
- "Make the mascot idle, then celebrate, then return to idle."
What Lovable can do
- Create a mascot, its poses and its animations.
- Check a job until its files are ready.
- Export assets, and publish them for permanent public links.
- Read your credit balance. To buy credits, Lovable points you to Billing: no tool takes a payment.
Costs
Generation uses credits from the Masko workspace your key belongs to. Ask for the cost before generating: Masko's tools give the price before anything is spent.
Publishing the files
New mascots made through the MCP server start with public hosting off. To use a single animation in your app, ask Lovable to publish the mascot's assets: each file gets a permanent public link on assets.masko.ai. Other links stop working within hours, so they never go in the app.
Playback
Play it with the Masko player (npm install @masko/player). A single loop needs only its two hosted files: <MaskoPlayer clip={{ webm, hevc }} /> (one animation). A mascot that changes clips is a canvas release, which your app drives with set and fire. Your app reads the newest release with an app key, which can only read that mascot's released canvases, so it is safe to ship. Ask Lovable to make that request in your app's server code and hand the result to the player.
Limits
- The connection works while you build. Visitors to your published app cannot reach Masko through it.
- Generation spends credits from the key's workspace.
- The connection allows 120 requests per minute per key.
Security
- Lovable keeps the key you paste and sends it with each request to Masko. Create a key just for Lovable, so you can revoke it on its own.
- The API key lives in the Lovable connection, never in your app's code. Your published app needs no API key: single animations play from public links, and a canvas reads with an app key.
- To remove access, delete the server in Lovable and revoke its key in Developers → API keys.
