MCP server for developers
Connect Claude Code, Cursor, Codex or any MCP client to PopNow with an API key. Call any image, video or audio model by ID and approve every charge in USD from your API balance.
Want PopNow in ChatGPT or Claude? popnow.ai/mcp
PopNow runs an MCP server for developers at https://api.popnow.ai/api/v1/mcp. Add it to Claude Code, Cursor, Codex, VS Code or your own MCP client with a PopNow API key, and your agent can create images, videos, music and voiceovers, run any model by its API ID, follow tasks and install agent skills over one connection.
There is nothing to install. Every paid call is quoted in USD first and charged to your API balance only after you approve it. The key's model allow-list, IP allow-list and spend caps apply exactly as on the REST API.

At a glance
| Endpoint | https://api.popnow.ai/api/v1/mcp |
| Transport | Streamable HTTP, stateless (POST; GET and DELETE return 405) |
| Authentication | Authorization: Bearer sk-popnow-… with a key from the API console. There is no OAuth sign-in on this endpoint |
| Billing | USD from your API balance. Every paid call returns a quote first and runs only with max_usd |
| Key rules | The key's model allow-list, IP allow-list and daily, monthly and lifetime spend caps |
| Tools | Media tools, create_task for any model ID, tasks, balance, saved recipes and agent skills (full list) |
| Server name | popnow-api |
Connect your coding agent
Create an API key
Create a key in the API console. Giving your agent a key of its own with a low daily cap is a good habit: you can revoke it without touching your other integrations. If your API balance is $0, add funds in API billing.
Put the key in your environment
The configs below read the key from POPNOW_API_KEY, so it stays out of files you commit.
export POPNOW_API_KEY="sk-popnow-..."Add the server
Use the config for your client below. In Claude Code it is one command.
Ask for something
Ask your agent for an image, a clip or a soundtrack. It picks a PopNow tool, shows you the USD price and runs it once you approve.
Claude Code
claude mcp add --transport http popnow-api https://api.popnow.ai/api/v1/mcp \
--header "Authorization: Bearer $POPNOW_API_KEY"Your shell fills in $POPNOW_API_KEY when you run the command, and Claude Code stores the header in your local MCP settings. To share the server with a team through a project's .mcp.json, use the JSON config instead: Claude Code expands ${POPNOW_API_KEY} from each person's environment.
Cursor
Add PopNow to .cursor/mcp.json in your project, or to ~/.cursor/mcp.json for every project:
{
"mcpServers": {
"popnow-api": {
"url": "https://api.popnow.ai/api/v1/mcp",
"headers": { "Authorization": "Bearer ${env:POPNOW_API_KEY}" }
}
}
}VS Code
VS Code names the top-level key servers. This config asks for the key once and stores it securely:
{
"inputs": [
{ "type": "promptString", "id": "popnow-api-key", "description": "PopNow API key (sk-popnow-...)", "password": true }
],
"servers": {
"popnow-api": {
"type": "http",
"url": "https://api.popnow.ai/api/v1/mcp",
"headers": { "Authorization": "Bearer ${input:popnow-api-key}" }
}
}
}Windsurf
{
"mcpServers": {
"popnow-api": {
"serverUrl": "https://api.popnow.ai/api/v1/mcp",
"headers": { "Authorization": "Bearer ${env:POPNOW_API_KEY}" }
}
}
}Codex
[mcp_servers.popnow-api]
url = "https://api.popnow.ai/api/v1/mcp"
bearer_token_env_var = "POPNOW_API_KEY"Other clients
Most clients that support remote MCP servers accept this shape. It is also the format of a Claude Code project .mcp.json. Check how your client reads environment variables before you paste a key into a file that is committed anywhere.
{
"mcpServers": {
"popnow-api": {
"type": "http",
"url": "https://api.popnow.ai/api/v1/mcp",
"headers": { "Authorization": "Bearer ${POPNOW_API_KEY}" }
}
}
}Clients that only start local servers
The open-source bridge @popnow/mcp runs as a local stdio server and forwards every call to PopNow. Version 0.2.0 and newer connect to the developer endpoint by default; setting POPNOW_MCP_URL as below also keeps an older cached copy on the right address.
{
"mcpServers": {
"popnow-api": {
"command": "npx",
"args": ["-y", "@popnow/mcp"],
"env": {
"POPNOW_API_KEY": "sk-popnow-...",
"POPNOW_MCP_URL": "https://api.popnow.ai/api/v1/mcp"
}
}
}
}From your own code
With the official MCP SDKs:
import asyncio, os
from mcp import ClientSession
from mcp.client.streamable_http import streamablehttp_client
async def main():
headers = {"Authorization": f"Bearer {os.environ['POPNOW_API_KEY']}"}
async with streamablehttp_client("https://api.popnow.ai/api/v1/mcp", headers=headers) as (read, write, _):
async with ClientSession(read, write) as session:
await session.initialize()
result = await session.call_tool("check_balance", {})
for part in result.content:
print(part.type, getattr(part, "text", ""))
asyncio.run(main())import { Client } from '@modelcontextprotocol/sdk/client/index.js';
import { StreamableHTTPClientTransport } from '@modelcontextprotocol/sdk/client/streamableHttp.js';
const transport = new StreamableHTTPClientTransport(new URL('https://api.popnow.ai/api/v1/mcp'), {
requestInit: { headers: { Authorization: `Bearer ${process.env.POPNOW_API_KEY}` } },
});
const client = new Client({ name: 'my-app', version: '1.0.0' });
await client.connect(transport);
const result = await client.callTool({ name: 'check_balance', arguments: {} });
console.log(result.content[0].text);
await client.close();Or with nothing but curl. The server is stateless, so there is no session to open and every request stands alone; send both media types in Accept. This call asks for a quote and charges nothing:
curl -X POST "https://api.popnow.ai/api/v1/mcp" \
-H "Authorization: Bearer $POPNOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc": "2.0", "id": 1, "method": "tools/call", "params": {"name": "create_task", "arguments": {"model": "google/nano-banana-2.1/text-to-image", "input": {"prompt": "A paper boat on a rainy window sill, soft morning light", "aspect_ratio": "4:5"}}}}'For production code that calls models directly, the REST API gives you more control: webhooks, idempotency keys and per-task retention.
Tools
Typical prices are for the default model and settings, in USD. Every paid tool quotes the exact amount before it runs.
| Tool | What it does | Default | Typical price |
|---|---|---|---|
create_image | A new picture from a description | Nano Banana 2.1, 1K, square | about $0.048 |
edit_image | Change a photo with words: style, outfit, background, add or remove things | Nano Banana 2.1 | about $0.048 |
create_video | A short video from a description, or a photo brought to life | MiniMax H3, 768p, 5 seconds | about $0.21 |
create_music | An original song or instrumental | Suno v6 | about $0.072 |
create_speech | Text read aloud in many voices and languages | Gemini 3.8 Flash TTS, voice Kore | a fraction of a cent, by length |
apply_effect | Turn a photo into an effect video or a photo makeover | The effect's own model | $0.125–$0.34 for video, $0.03–$0.05 for photos |
remove_background | Cut out the subject as a transparent PNG | Background Remover | $0.0048 |
upscale | Make a photo or a video sharper and bigger | Photo 4K, video 1080p | about $0.012 for a photo; video by length |
add_sound | Sound effects and ambience that match a silent video, as an audio file to mix in with compose_video | The tool's own model | quoted first |
extend_video | Continue a video beyond its last frame | minimax-h3 | the model's own price, quoted first |
edit_video | Edit a video with words while keeping its motion | kling-o3 | the model's own price, quoted first |
copy_motion | Animate a character picture with motion from a video | kling-3-0 | the model's own price, quoted first |
create_video_from_references | Create a video that preserves subjects from reference pictures | minimax-h3 | the model's own price, quoted first |
transcribe_audio | Turn recorded speech into text | grok-stt | the model's own price, quoted first |
create_sound_effects | Create sound effects, ambience and spoken lines from a description | seed-audio-1-0 | the model's own price, quoted first |
split_layers | Separate a picture into editable transparent PNG layers | seedream-5-0-pro | the model's own price, quoted first |
erase_object | Remove an object or person and fill the gap | object-eraser-v1 | the model's own price, quoted first |
expand_image | Extend a photo beyond its edges | image-expander-v1 | the model's own price, quoted first |
change_camera_angle | Show the scene from a different viewpoint | camera-angle-changer-v1 | the model's own price, quoted first |
change_pose | Match a person’s pose to a reference picture | pose-changer-v1 | the model's own price, quoted first |
relight_photo | Change the lighting in a photo | relight-v1 | the model's own price, quoted first |
remove_shadow | Remove harsh shadows from a photo | shadow-remover-v1 | the model's own price, quoted first |
anime_to_real | Turn an anime or cartoon picture into a photorealistic image | anime-to-real-v1 | the model's own price, quoted first |
compose_video | Cut earlier results into one finished MP4 with optional music, narration, captions and a title | free | |
get_job | Check a task that is still running and return it when ready | Waits up to 30 s | free |
list_my_creations | Recent tasks made with this key, with links | Last 10 | free |
check_balance | Available API balance and funds held for running tasks, in USD | free | |
list_models | Image, video and audio models with their exact API IDs, or every effect; with model, that model's inputs and the named tool for each | image | free |
find_viral_formats | Search trending short-form video formats with format share, growth trends, and numbered 30-cell cover contact sheets | sort: "trending", pictures: "covers" | free |
get_breakdown | Full shot-by-shot breakdown (timeline, BPM, hook, product placement, production mix) and timestamped keyframe strip | include_shots: true, include_frames: true | free |
remake | Adapt a viral reference structure to your product and launch an async video job | target: "auto", reference aspect ratio | quoted first in USD |
Only tools that expose model accept a model from list_models; choose one that supports that tool's operation. Omit model to use the default. All tools carry the standard MCP hints (readOnlyHint, destructiveHint, openWorldHint), and no tool deletes anything.
Developer tools
Four tools exist only on this endpoint:
| Tool | What it does | Parameters |
|---|---|---|
create_task | Run any model by its exact API model ID with the model's own input, like createTask on the REST API | model (required, for example google/nano-banana-2.1/text-to-image), input (the model's input fields), max_usd, currency |
get_task | Same as get_job: check a task and collect its result | job_id (required), wait_seconds (0–50, default 30) |
list_tasks | Same as list_my_creations: recent tasks made with this key | kind (image, video, audio), limit (1–20, default 10) |
install_skill | The agent skill you picked: playbook, short-lived download link and install commands for your agent (Agent skills) | slug (required), agent |
Call list_models with a category to see every model's exact IDs, then with model for that model's inputs. create_task validates input against the model's schema before it quotes, so a missing or unknown field comes back as a message, not a charge.
Parameters
Every paid tool also takes max_usd (the approved amount; leave it out to get a quote) and an optional currency, which can only be USD. They are left out of this table.
| Tool | Parameters |
|---|---|
create_image | prompt (required), aspect_ratio (1:1 default, 16:9, 9:16, 4:5 …), model |
edit_image | prompt (required), image_url, more_image_urls (extra references), aspect_ratio, model |
create_video | prompt (required), image_url (optional starting photo), duration_seconds (default 5), aspect_ratio (16:9 default, 9:16, 1:1; only without a photo), model |
create_music | prompt (required), lyrics, instrumental, voice (female or male), title (used with your own lyrics or an instrumental) |
create_speech | text (required), voice (Kore, Puck, Charon, Aoede, Fenrir, Leda …), style (whisper, empathetic, vocal_smile, newscaster, promo_hype, deadpan) |
apply_effect | effect (required, a name or ID such as Zombie Turn, Flying Car, Tiny Planet, Molten Gold), image_url |
remove_background | image_url |
upscale | image_url or video_url, size (photos 2k, 4k, 8k; videos 720p, 1080p, 2k, 4k) |
extend_video | Required: video_url; Optional: prompt, duration_seconds (default: 5), model |
edit_video | Required: video_url, prompt; Optional: reference_image_urls, model |
copy_motion | Required: image_url, video_url; Optional: prompt, model |
create_video_from_references | Required: prompt, reference_image_urls (1–7 images); Optional: duration_seconds (default: 5), aspect_ratio (default: 16:9), model |
transcribe_audio | Required: audio_url; Optional: language, model |
create_sound_effects | Required: prompt; Optional: image_url |
split_layers | Required: image_url; Optional: prompt, model |
erase_object | Required: image_url, prompt or mask_url |
expand_image | Required: image_url; Optional: aspect_ratio (default: 16:9) |
change_camera_angle | Required: image_url, prompt |
change_pose | Required: image_url, pose_image_url; Optional: prompt |
relight_photo | Required: image_url, prompt |
remove_shadow | Required: image_url |
anime_to_real | Required: image_url; Optional: prompt |
get_job | job_id (required), wait_seconds (0–50, default 30) |
list_my_creations | kind (image, video, audio), limit (1–20, default 10) |
list_models | category (image, video, audio or effects), model (an ID: its exact API IDs, inputs and named tools) |
Where files come from. image_url, video_url and audio_url take a public https link or a popnow:// link from an earlier result in the same session.
Effects
apply_effect covers the same effects as the Effects page on the website: transformations such as Zombie Turn and Werewolf Turn, camera moves such as Hyperdrive, dances, and photo makeovers such as Clay Figure or Pixel Art. Names are matched loosely, so “the zombie one” works; list_models with category: "effects" lists them all.
Transformations run as one step over MCP, and two-person effects are not available because they need two photos placed in specific slots. Effects are not exposed as REST endpoints; on the REST API, call the underlying image and video models directly.
Saved recipes and skills
Six tools reach what you saved on popnow.ai: recipes from Studio, workflows from the canvas and skills you made with Poppie. They are private to you and the teams you share them with.
| Tool | What it does | Parameters |
|---|---|---|
list_my_recipes | Your recipes and workflows (and your teams'), with the inputs each one takes | none |
run_my_recipe | Quotes first, then runs with the approved budget | recipe_id (required), inputs (input ID: a popnow:// or https:// link, or text), count (1–4, recipes only), max_usd, quote_id, idempotency_key |
get_recipe_run | A run's state, costs and results; only the key that started it can read it | run_id (required) |
resume_recipe_run | Quotes and resumes a paused run | run_id, then max_usd, quote_id |
list_my_skills | Your skills and your teams' skills | none |
use_my_skill | Returns a skill's instructions so the agent can follow them with the other tools | skill_id (required) |
Call run_my_recipe without approval fields to receive cost_usd, available_usd, spent_usd, quote_id and needs_confirmation: true. No run starts and nothing is held. After approval, repeat the same inputs and count with max_usd (a decimal string), that quote_id and an idempotency_key of 1–100 characters. A changed quote or a budget that is too small returns a new quote instead of starting. Even a zero-price quote needs approval.
If a response is lost, retry with the same idempotency_key and all the same parameters: you get the accepted run back, without a second charge, even if the recipe or price has since changed. A separately approved run needs a new key; changing parameters under an existing key returns a conflict.
When unpriced_steps is present, cost_usd covers only the steps that can be priced now. The rest wait for their inputs and a fresh quote. For a paused run, call resume_recipe_run with run_id to quote, then repeat with max_usd and the new quote_id. The new max_usd caps the whole run, including what was already spent and what is in flight; it is not an extra allowance. Key permissions, spend caps and the API balance are checked again for every step. Your recipes, workflows and skills has the REST endpoints, status fields and errors.
Agent skills
Two free, read-only tools turn “make me a launch video” into a finished style your agent can carry out. find_skills returns a few agent skills that match the request, each with a preview video, a cover image and what it needs. install_skill then returns the chosen skill's playbook (SKILL.md), a download link for its package that works for a few minutes, the install commands for your agent, and which PopNow tools to use for its images, video, music and voice.
| Tool | What it does | Parameters |
|---|---|---|
find_skills | Up to 4 skills (at most 6) that match what you want to make, most relevant first, with previews | intent (required), type (video, image, slides or web), limit (1–6) |
install_skill | The picked skill: playbook, package link, install commands, PopNow tools for its media | slug (required), agent (claude-code, codex, cursor, gemini-cli, github-copilot, windsurf, opencode and other agent IDs) |
use_skill is the same tool under its earlier name. Skills are free; the media they make is quoted in USD like every other call. Each new skill counts toward your account's skill limit.
Viral Reference Library
Three tools expose PopNow's curated short-form reference library directly to coding agents and automation scripts. find_viral_formats and get_breakdown are free and read-only (counted within the 240 requests/minute developer limit); remake always quotes first in USD and runs only with explicit max_usd and confirm_token approval.
| Tool | What it does | Parameters |
|---|---|---|
find_viral_formats | Search viral formats and trends, with numbered 30-cell cover contact sheets | category, goal (installs, sales, awareness, engagement, education), platform, format, production_method, hook_type, language, days (default 90), sort (trending, views, engagement, newest), query, only_saved, include_format_summary, pictures (covers or none), brief, limit (1–60), offset |
get_breakdown | Full shot-by-shot breakdown, beats timeline, BPM, product placement, and timestamped keyframe strip | id (required), include_shots (default true), include_frames (default true), include_similar, language |
remake | Adapt a reference structure to your product, quote in USD, and start an async video job | ref_id (required), target (auto, ad_maker, viral_remakes), product_name, product_description, product_assets, custom_hook, language, aspect_ratio, max_usd, confirm_token, currency |
You: Find the top 3 trending short-form formats for skincare e-commerce and break down the #1 pick.
Agent: (calls find_viral_formats → returns format trends + numbered cover contact sheet)
(calls get_breakdown → returns 5-shot timeline, BPM, hook, and timestamped keyframe strip)
You: Quote a remake for my Lumen Barrier Serum bottle.
Agent: (calls remake without max_usd → "Needs confirmation, nothing started yet. This costs $0.21 USD; confirm_token: vrk1...")
That's $0.21 from your PopNow API balance. Go ahead?
You: Yes.
Agent: (calls remake with max_usd: "0.21" and confirm_token → job_id, then get_task)Example session
You: Make a 9:16 clip of a vintage car cruising along the coast at golden hour, 10 seconds.
Agent: (calls create_video → "Needs confirmation, nothing started yet. This costs $0.37 USD; API balance available: $12.40 USD.")
That's $0.37 from your PopNow API balance. Go ahead?
You: Yes.
Agent: (calls create_video again with max_usd: "0.37" → job_id, then get_task)
Done: coast.mp4. It's in your API logs too.Quotes and approval in USD
- Quote. Call a paid tool without
max_usd. Nothing starts and nothing is held. The result hasneeds_confirmation: true,currency: "USD",cost_usdandavailable_usd. - Approve. Show the price to the user. After they approve, call the tool again with the same arguments plus
max_usdset to the quotedcost_usd. - Run. If the current price is within
max_usd, the task starts. If it went up, you get a new quote to approve instead; nothing is charged.
max_usd is a nonnegative decimal string with up to nine decimal places, such as "0.012345678". JSON numbers, exponent notation and negative values are rejected. currency is optional and can only be USD. Every paid call needs this approval, including a zero-price quote; there is no automatic approval threshold.
When the balance cannot cover a quote, the tool says “Not enough API balance” with the cost and what is available, and charges nothing. Add funds in API billing.
Tasks follow the same rules as REST tasks: the highest possible price is held when a task starts, you pay what it actually used (never more than the hold), and a failed or expired task releases its hold. check_balance returns available_usd and held_usd; a task reports cost_usd. Identical calls with the same key within ten seconds create one task, so an agent that retries does not pay twice. See API billing and API balance and refunds.
Results and long jobs
- Images come back as a preview plus a download link. Videos and audio come back as links.
- Download links are signed and expire after a while. Each result also has a
popnow://g/<job>/<n>link that never expires and can be passed to another tool, so “now animate that picture” just works. - A tool waits up to about 40 seconds for the result and reports progress to clients that show it. Video usually takes longer, so the reply carries a
job_idand the agent callsget_taskto collect it. - Every task is listed in the API console's logs with its key, model and USD amount, and
list_tasksshows the recent ones for the key.
Limits
| What | Limit |
|---|---|
Tool calls per account (including get_task polling) | 240 per minute |
| New tasks per account | 20 per minute |
find_skills / install_skill per account | 240 / 120 per hour |
A task over the limit is not charged; the tool says how many seconds to wait. The key's spend caps apply to every call. REST API limits are separate and described in Rate limits.
Moving from the old address
Until 1 November 2026, API keys connected to https://api.popnow.ai/mcp. That address keeps accepting API keys until 31 January 2027 (00:00 UTC) and serves the same developer tools, with Deprecation, Sunset and Link headers on every response. After that it answers API keys with 401.
To move, change the URL in your MCP config to https://api.popnow.ai/api/v1/mcp. The key, the tools and USD billing stay the same. If you run the stdio bridge, set POPNOW_MCP_URL as shown above.
Troubleshooting
| You see | Why | Fix |
|---|---|---|
401 “This endpoint takes PopNow API keys” | No Authorization header, or a sign-in token instead of an API key | Send Authorization: Bearer with an active sk-popnow- key |
401 “This API key isn't valid” | The key is wrong, revoked or expired | Create a key in the API console |
403 or a tool error about the key | The key's model or IP allow-list blocks the call | Adjust the key's restrictions in the API console |
| Needs confirmation, nothing started yet | The tool is quoting first | Approve, then repeat the call with max_usd |
| “Not enough API balance” | The API balance cannot cover the quote | Add funds in API billing, or choose a cheaper model or a shorter video |
| A spend-cap message | The call would go over one of the key's caps | Raise the cap or wait for it to reset |
| “Too many creations at once. Nothing was charged.” | More than 20 new tasks in a minute | Wait the number of seconds in the message |
405 Method Not Allowed | GET or DELETE to the endpoint; the server is stateless | Use POST |
| A task fails with a content message | The model declined the request | Nothing was charged; rephrase. The terms apply here as well |
Does the MCP server cost extra?
No. Connecting is free, and so are reading tools such as list_models, get_task and find_skills. Media tasks spend your API balance at the same model prices as the REST API, and every one is quoted first.
Can I connect with OAuth instead of an API key?
No. This endpoint only takes API keys, so every call is billed to the API balance and governed by the key's restrictions and caps.
Which models can I call?
Every image, video and audio model in list_models. create_task takes any of their exact API IDs with the model's own inputs; the named tools cover the common jobs with sensible defaults.
Is there an npm package or a local server to install?
No. The server is remote; you only add its address. Clients that can only start local stdio servers can run the open-source bridge with npx -y @popnow/mcp, with POPNOW_API_KEY and POPNOW_MCP_URL set.
Can I call the video effects from the REST API?
Not as named effects. Effects are available through the apply_effect tool and on the website; on the REST API you call the underlying image and video models directly.
Where do my results go?
Results come back as links in the tool response. Every task also appears in the API console's logs, and list_tasks lists the recent ones for the key.
Related
Quickstart
Call the same models from your own code with the REST API.
Authentication
API keys, model and IP restrictions, spend caps.
API billing
Holds, quotes, balance and spend caps in USD.
Agent skills
Find and install skills with find_skills and install_skill.
Your recipes, workflows and skills
Run saved recipes over REST or MCP with a USD budget.
popnow-api-mcp on GitHub
The stdio bridge and API key client configs.
Production checklist
What to check before real users depend on your integration — keys, retries, webhooks, storage, costs and monitoring.
Agent skills
Install ready-made PopNow skills for launch videos, slide decks, websites and editorial images into Claude Code, Codex, Cursor and other coding agents with a prompt, a ZIP, curl, the CLI or the developer MCP.

