Same key, same credits. This is the Claude Code command; Cursor, VS Code and Claude Desktop setup is below.
claude mcp add --transport http pop-cam https://www.pop-cam.com/api/v1/mcp --header "Authorization: Bearer pk_YOUR_API_KEY"
Pop-cam is also a hosted Model Context Protocol server, so AI assistants like Claude Code, Cursor and Claude Desktop can generate images as a tool call. It uses the same pk_... API key as the REST API, and the same credits: one image costs 1 credit either way.
www. host exactly as shown. pop-cam.com redirects to it, and HTTP clients drop the Authorization header when following a redirect to another host.Calling Pop-cam from your own code instead? The same generation is one HTTP request: see the REST API docs.
Replace pk_YOUR_API_KEY with your key — signed in, it's at the top of this page. No key yet? Create one in Developer Settings.
claude mcp add --transport http pop-cam https://www.pop-cam.com/api/v1/mcp \ --header "Authorization: Bearer pk_YOUR_API_KEY"
{
"mcpServers": {
"pop-cam": {
"url": "https://www.pop-cam.com/api/v1/mcp",
"headers": {
"Authorization": "Bearer pk_YOUR_API_KEY"
}
}
}
}Cursor reads this from ~/.cursor/mcp.json. VS Code uses the same shape under a top-level servers key in .vscode/mcp.json, with "type": "http".
Bridge the remote server through mcp-remote in claude_desktop_config.json:
{
"mcpServers": {
"pop-cam": {
"command": "npx",
"args": [
"-y", "mcp-remote", "https://www.pop-cam.com/api/v1/mcp",
"--header", "Authorization: Bearer ${POPCAM_API_KEY}"
],
"env": { "POPCAM_API_KEY": "pk_YOUR_API_KEY" }
}
}
}| Parameter | Type | Description |
|---|---|---|
generate_image | 1 credit | Text-to-image from prompt, or image-to-image from image_url (public https) or image_data_url plus an optional prompt. Accepts preset_id / preset_source instead of a prompt. Returns the download_url (valid 1 hour),credits_remaining, and the image itself so the assistant can see it. |
list_presets | free | Pop-cam's style presets plus your saved prompts: id, source, title, category. Set include_prompt for the full prompt text. |
get_credits | free | Remaining credits, split into monthly plan credits and extra credits, plus your plan. |
Errors (invalid key, out of credits, bad input) come back as tool errors with the same messages as the REST API. A missing or revoked key gets HTTP 401 before any tool runs.