Masko MCP server
The Masko MCP server gives your AI app tools to create a mascot, animate it, build an interactive canvas and bring the files into your project. You ask in plain words, and the app calls the tools. One server works for every app:
https://masko.ai/api/mcpConnect your app
Your app connects in one of two ways:
- Sign in, in Claude Code, Codex, Cursor, Claude, ChatGPT, opencode and VS Code. Your app opens masko.ai. You sign in, choose your personal or team workspace and approve. You never paste a key. A team connection needs an owner or admin.
- API key, for scripts, machines without a browser, and apps that can only send a header. Open Developers → API keys, choose Create API key and keep Read + Write. Copy the key: it is shown once. It belongs to the workspace you are in when you create it. Then set it in your terminal:
export MASKO_API_KEY=masko_YOUR_KEYAdd that line to your shell profile, such as ~/.zshrc, so every new terminal has it. Never commit the key or put it in browser code.
Pick your app for its setup. The MCP tab of the Developers page shows the same steps with copy buttons.
Sign in, no key. Run this in your terminal:
claude mcp add --transport http --scope user masko https://masko.ai/api/mcpStart Claude Code, run /mcp, choose masko and Authenticate. Your browser opens masko.ai: sign in, choose your workspace and approve. --scope user adds Masko to all your projects. Leave it out to add Masko to this project only. From the terminal, claude mcp list checks it.
Or install the Masko plugin, which adds the same connection and the four agent guides as skills (/masko:create-mascot, /masko:animate-mascot, /masko:build-interactive-mascot, /masko:integrate-mascot). In Claude Code:
/plugin marketplace add masko-ai/masko-plugins
/plugin install masko@masko-aiThen run /mcp, choose masko and Authenticate, as above.
Or use your API key, for scripts and machines without a browser. Run this in the terminal where MASKO_API_KEY is set:
claude mcp add --transport http --scope user masko https://masko.ai/api/mcp \
--header "Authorization: Bearer $MASKO_API_KEY"The command saves the key in your Claude Code settings on this computer. To share the setup with your team in a repository, put this in .mcp.json instead. Each person keeps their own MASKO_API_KEY:
{
"mcpServers": {
"masko": {
"type": "http",
"url": "https://masko.ai/api/mcp",
"headers": { "Authorization": "Bearer ${MASKO_API_KEY}" }
}
}
}Check the connection
Ask your agent:
Show my Masko projects, mascots and credit balance. Don't generate anything.Reading is free. If something is off:
| What you see | What to do |
|---|---|
| The app shows no Masko tools | Run /mcp (Claude Code, Codex) or open the app's MCP settings, check that masko is connected, then restart the app. |
Codex says Masko isn't available, but /mcp lists it | Ask it to "use the masko MCP tools". Codex can keep a server's tools out of sight until it searches for them. |
| A browser sign-in opens in Claude Code | Approve it on masko.ai: Claude Code connects without a key. To use a key instead, add Masko with the --header command above. |
| A browser sign-in opens in Codex | Approve it on masko.ai: Codex connects without a key. If you added Masko with --bearer-token-env-var, check echo $MASKO_API_KEY in the terminal that starts Codex. |
| "This connection is read-only" | Use a Read + Write key, or reconnect and approve write access. |
| Other projects or credits than you expected | The key or connection belongs to another workspace. Create the key in the right workspace, or reconnect and choose it. |
Then ask in plain words
Create a friendly mascot for this app with Masko and make it wave hello.
Tell me the cost first.When someone finishes a lesson, make the mascot celebrate,
then go back to its idle loop.Add these animations to this React app, with no flicker between clips.The agent shows you the cost before anything paid, follows each job until the files are ready, installs the Masko player and connects your app's events to it. The server recommends the Masko player for every animation and canvas: finished animations and releases come with the player code to use. More prompts are in Build with your AI agent.
What the tools do
| Area | Tools |
|---|---|
| Account | get_account: the workspace, its credit balance, its projects and the work still running |
| Mascots | list_mascots (search by name), get_mascot (with its poses, animations, backgrounds and sounds by name, and whether its files are public), create_mascot (with reacts_to for what in your app it reacts to), update_mascot (name, context, room for movement, reference pictures, keep a voice sample, add a sound from an audio link, or add a variant from a pose showing its look) |
| Pictures and animations | generate_mascot_image (with redraw and variant_id to redraw a pose in a variant), make_background, animate_mascot (with a finished animation as source and variant_id to remake it in a variant, with improve for the improved, timed prompt and the price before generating, free, sound for an animation that makes one of its sounds, timed to the motion, used_for for where it plays, and replaces with redo_reason when it redoes one you found wrong) |
| Voices and talking | sample_mascot_voices, make_talking_animation |
| Jobs and files | get_job (waits for the result), list_assets (a mascot's poses, animations and backgrounds by name, or files by ID or type), export_asset, publish_mascot_assets (permanent public links, or takes them offline with unpublish) |
| Interactive canvases | create_canvas, get_canvas, save_canvas (with variant_id for the variant a canvas makes new poses in), estimate_canvas_generation (with variant_id to copy the canvas into a variant), generate_canvas, release_canvas, get_release_delivery |
| Docs | read_docs: the agent guide for each job, any docs page, the use cases with their tutorials, or the paragraphs that match a search |
| Feedback | send_feedback |
Every app gets every tool, interactive canvases included. ChatGPT also takes pictures you attach in the chat. A read-only connection lists only the tools that change and charge nothing.
Pictures go straight into the tools as HTTPS image links or asset IDs, in references, or in animate_mascot's source. A pose has one asset_id, which every tool takes. animate_mascot takes a crop to animate one square of a wide picture instead of its center. make_talking_animation can end on another pose and takes a credit ceiling: above it, nothing is charged and the price comes back, with the script Masko would use when the words were sent as text. create_canvas takes a template to start from a ready-made set of poses, moves and inputs (learning app, AI companion, habit companion, mood levels, website mascot and others, listed in the interactive mascot guide). save_canvas and create_canvas take improve to write each clip's improved, timed prompt into the canvas, to read and change before generating. estimate_canvas_generation prices each clip at the length and quality saved on its move, as Studio's Generate all does, and lists finished clips the mascot already has that fit a move, to reuse for free; generate_canvas takes its plan_id. With a variant_id, estimate_canvas_generation prices remaking the whole canvas in that variant's look (every pose redrawn, every clip remade with the same movement, into the variant's own canvas), and generate_canvas runs that plan the same way. get_release_delivery summarizes a release for the web (Electron too), iPhone, iPad and Mac apps, Android, or Masko for Mac, newest release by default (or by its number); a React Native or Flutter app reads the iPhone files on iOS and the Android ones on Android. It gives the inputs your app sets or fires, the poses, the moves and any missing video, and include_files adds every playback file. With formats: av1, apps get the lighter AV1 files the Masko player plays. With motion: timeline, each move also lists its moments (a touch, a take-off, a landing) and sections in seconds, to sync your app with the animation; motion: links makes the app's own request return each clip's motion file, for where each part is. An app you ship reads its canvas itself through its app link: release_canvas and get_release_delivery return it, with the mascot's app key inside and the setup code filled in, so there is no key to make or ask about. The key can only read that mascot's released canvases; App keys on the mascot's page in Studio shows its use and revokes it at once. read_docs is free and works on read-only connections: before setting up the player or using a field it is unsure of, the agent reads the page instead of guessing, and when you are choosing what to build it reads the use cases. Apps that read MCP resources also get the main guides as masko://docs/... resources.
What your agent is told
When your app connects, the server sends a short text, under 1,800 characters, so apps that show only its start (Claude Code shows 2,048) still see all of it. It holds the rules that decide the result: a mascot that reacts in an app is a canvas, every animation plays with the Masko player, and nothing paid starts without your yes. It also names one guide per job, which the agent reads with read_docs before doing that job for the first time:
| Guide | What it covers |
|---|---|
| Create a mascot | A mascot from your pictures or a description, its poses, keeping the look you like, backgrounds |
| Animate a mascot | Loops and one-way clips, Masko's timed prompt before paying, sound, a voice, talking animations |
| Build an interactive mascot | A canvas that reacts to your app, its price, generation, release and app key |
| Put a mascot in a website or app | The Masko player on each platform, permanent links, app keys, events |
Some apps show no instructions at all, so the tools that start a job also name its guide. The guides hold how to write good requests: a pose is one still moment (what the body does, how it feels, what it holds), an animation is one action with no return, which Masko times from the picture (unless you said to go ahead, the agent shows you that timing and the price first, with improve, and makes it with your changes), and neither describes the mascot's look, which its reference pictures already set. The Masko plugins carry the same guides as skills.
What the results look like
- A finished job lists each file by format with its asset ID, and gives one link to show, such as the transparent PNG of a pose or the WebM of an animation. It says when private links expire, or that the links are permanent.
- A failed job gives a plain reason and says whether your credits were refunded. Files it finished before the failure are kept. Trying again charges again, under a new
operation_id, so the agent asks you first. When a failure may be Masko's, the answer suggests telling the Masko team withsend_feedback. - A paid call that timed out is safe to send again with the same
operation_id: it returns the first answer and never charges twice. Results and errors say when an answer is such a replay. - Errors carry
error.code,error.messageand, for a wrong input,error.paramwith the name of the field the agent sent. - A part of a read that could not load, such as the voice in
get_mascot, is named inunavailableinstead of looking empty.
Public links for apps and websites
File links from get_job and list_assets are private and stop working within hours, so never put them in an app, a website or code. publish_mascot_assets gives every finished file of the mascot a permanent public link on assets.masko.ai, and files you make afterwards get one too. Calling it again hosts any finished file still missing. With unpublish it takes the files offline again: the public links stop working at once, so the agent asks you first. get_mascot says whether a mascot is public. Anyone with a public link can open the file, so the agent asks you before publishing. Publishing costs no credits, and hosting is free up to 50,000 views a month, then $0.125 per 1,000 views (see hosting). It does not list the mascot on the marketplace.
Good to know
- Credits. Generation spends the connected workspace's Masko credits, not your AI app's subscription. Reading, estimates and job checks are free. See credits and costs.
- Your own image. The server runs on masko.ai and cannot read files on your computer. Give it an HTTPS image link, upload the image on masko.ai first, or let your agent upload it from the terminal with
masko studio POST upload --file image.png(terminal quickstart) orPOST /v1/upload. A file path sent as a picture is refused with these ways in, and the agent is told never to put your files on another public host to get a link. - Buying credits. Every paid result says the balance left (
balance_left_credits_usd), and when it no longer covers another Standard animation the agent tells you when it shows the result. A canvas estimate gives the balance and how much is missing before you agree, and a refused call says how much it lacks (short_credits_usd). Agents point you to Billing; the tools never take a payment. - Hosting. New mascots made through the MCP server start with public hosting off. Ask the agent to publish the assets before you use their files in an app or a website: see public links.
- A stopped run. Ask the agent to check its existing jobs before it generates again, so you never pay twice.
- Limits. 120 requests per minute per connection.
- Feedback. Your agent can tell the Masko team what is confusing, broken or missing, or what works well, with
send_feedback, and whether you kept, want redone or dropped a result. It works on read-only connections too. See Send feedback to Masko.
Pages you will use
| Page | What you do there |
|---|---|
| Developers → MCP | Copy the setup for your app, and disconnect the apps you signed in with |
| Developers → API keys | Create or revoke a key for scripts and apps that only send a header |
| Billing | Buy credits |
Disconnecting an app or revoking a key stops its future requests. It does not delete your mascots or cancel a generation that already started.
Without MCP
Any coding agent that runs commands can use the REST API with MASKO_API_KEY and the docs at masko.ai/llms.txt: see Build with your AI agent. To work from the terminal yourself, see the terminal quickstart.
