Are you the author? Sign in to claim
Private browser image workflows for AI agents via MCP
Local MCP adapter for private, browser-based QuokkaPix image workflows.
QuokkaPix MCP Runner lets AI agents process local image files with QuokkaPix by opening the QuokkaPix web app in a local browser, applying an official recipe or direct settings payload, uploading files through the browser file input, downloading the result, and writing a machine-readable quokkapix-result.json.
It is designed for MCP-compatible local agents such as Claude Desktop, Cursor, LM Studio/Ollama wrappers, and other desktop or automation clients that can call MCP tools over stdio.
Repository: https://github.com/quokkapix/quokkapix-mcp
npm package: https://www.npmjs.com/package/quokkapix-mcp
Glama listing: https://glama.ai/mcp/servers/quokkapix/quokkapix-mcp
mcpservers.org listing: https://mcpservers.org/servers/quokkapix/quokkapix-mcp
Browser compatibility matrix: https://quokkapix.com/en/browser-compatibility/
Browser benchmark: https://quokkapix.com/en/browser-image-processing-benchmark/
Quick start:
npx quokkapix-mcp
This package is a local automation adapter around the browser app at:
https://quokkapix.com/#agent=1
The adapter uses Playwright to drive a local Chromium browser. The browser runs the same QuokkaPix editor that humans use, including the in-browser window.QuokkaPixAgent API.
Image files are processed in the user's browser runtime. During normal processing, source image bytes are not uploaded to a QuokkaPix image-processing server.
This package is not:
quokkapix.com by URL;Local file paths are available only to the local MCP runner on the user's machine. The public QuokkaPix website still receives files only through the browser file input or dropzone.
Use this adapter when an AI agent needs to run repeatable image workflows like:
The main value is privacy and low infrastructure cost: the agent gets a practical image workflow tool, while image processing remains local in the user's browser.
AI agent / MCP client
|
| stdio MCP
v
quokkapix-mcp
|
| Playwright
v
local Chromium browser
|
| window.QuokkaPixAgent + stable data-agent selectors
v
https://quokkapix.com/#agent=1
|
| local browser processing
v
downloaded output + quokkapix-result.json
The adapter saves:
quokkapix-result.json;qa object returned to the agent.>=20Install dependencies:
npm install
npx playwright install chromium
list_recipesLists official QuokkaPix recipes.
Use first when the agent does not know which workflow to run.
get_recipeReturns one recipe by id, including:
applySettings;Input:
{
"id": "shopify_product_pack"
}
validate_recipeValidates a custom recipe object before processing.
This does not upload files and does not start processing.
list_rule_profilesLists sourced marketplace and social image rule profiles.
Use this when an agent needs facts for Amazon, Shopify, Google Merchant, Etsy, eBay, Walmart, TikTok Shop, Mercado Libre, Temu, Shopee, Instagram, YouTube, LinkedIn, X, Pinterest, Facebook or TikTok before choosing a workflow or checking an output.
Every profile declares:
sourceType: official or secondary;sourceUrl;confidence;The runner does not invent missing marketplace requirements. Temu, Mercado Libre, Shopee and some YouTube entries are marked as secondary or category/country-specific where official public specs were limited.
get_rule_profileReturns one rule profile by id, for example:
{
"id": "amazon.product.image"
}
Agents can pass the returned facts into their own planning, or call validate_result_manifest with ruleProfileId.
validate_result_manifestValidates an existing quokkapix-result.json against a recipe or custom QA contract.
This is useful when an agent wants to inspect a previous run and decide whether the output is acceptable.
Optional input:
{
"ruleProfileId": "amazon.product.image",
"manifest": {}
}
When ruleProfileId is provided, the QA report includes sourced marketplace checks such as supported formats, dimensions, source type and URL. If the browser result manifest includes outputs[].pixelQa, the validator also evaluates supported pixel-level visual checks such as white background, subject centering, safe margins and transparent background.
process_imagesProcesses local image files through QuokkaPix using either:
recipeId;It opens a browser, applies the recipe, uploads files, starts processing, downloads the output, writes quokkapix-result.json, and returns QA results.
Optional local asset files:
watermarkLogoFile: local logo/image file uploaded into QuokkaPix's watermark logo input.backgroundImageFile: local image file uploaded into QuokkaPix's background replacement image input.These assets are still uploaded only into the local browser page. They are not passed as URL paths to the public QuokkaPix website.
process_with_settingsProcesses local image files using a direct QuokkaPix applySettings payload.
Use this when the agent already knows the exact editor settings and does not want to wrap them in a recipe.
This is the broadest tool surface. It can drive the same settings surface as:
window.QuokkaPixAgent.applySettings(payload)
Supported editor areas depend on the QuokkaPix browser contract and include:
tool=pdf and pdf.operation for uploaded PDF files only; ZIP archives are accepted only for PDF merge and only PDF entries are extracted;For custom scenarios, prefer the explicit structured form:
{
"mode": "batch",
"tool": "constructor",
"steps": [
{
"tool": "resize",
"settings": { "mode": "fit", "width": 1200, "height": 1200 }
},
{
"tool": "watermark",
"settings": { "type": "text", "text": "Brand", "layout": "tiled", "angle": -20 }
},
{
"tool": "compress",
"settings": { "format": "webp", "quality": 0.82 }
}
]
}
Step settings use the same section keys as window.QuokkaPixAgent.applySettings.
PDF tools use PDF uploads instead of image uploads:
{
"tool": "pdf",
"pdf": {
"operation": "extract",
"extractPages": "1,3-5",
"extractOutput": "pdf"
}
}
Use operation: "split" to export one uploaded PDF as a ZIP of one-page PDFs. Use operation: "extract" with extractPages to create one PDF containing only the selected pages from one uploaded PDF; page order is preserved, so extractPages: "3,1" exports page 3 before page 1. Set extractOutput: "zip" when the selected pages should be returned as separate one-page PDFs inside a ZIP. tool: "pdf" defaults to split. Split and extract are single-PDF workflows because page numbers refer to one source PDF. Use operation: "merge" to combine multiple PDFs into one PDF in the current browser file order; merge is a batch workflow and switches the browser editor to batch mode. Human users can reorder merge files in the UI; MCP clients should pass files in the desired merge order.
ZIP upload is batch-only. If a user or agent selects a .zip in batch mode, QuokkaPix unpacks it locally in the browser and adds supported images from the archive to the batch queue. RAR and 7z are not accepted.
get_payment_optionsFetches QuokkaPix agent payment policy and x402 endpoints.
This does not perform a payment.
explain_payment_flowExplains the current x402 payment flow for agents.
Important: this local MCP adapter does not sign x402 payments by itself. An x402-capable client or wallet must call the paid unlock endpoint and return an unlockToken.
verify_unlock_tokenVerifies a paid agent unlock token before processing.
Use consume: false for preflight checks.
Only use consume: true if you intentionally want to consume the unlock immediately.
The runner loads recipes from the local project if present. If local recipe files are absent, it falls back to:
https://quokkapix.com/agent-recipes/
Current official recipes:
| Recipe id | Purpose | Mode | Output |
|---|---|---|---|
shopify_product_pack | Shopify product photos | batch | ZIP |
amazon_white_background_pack | Amazon-style white background product photos | batch | ZIP |
google_merchant_pack | Google Merchant product images | batch | ZIP |
etsy_product_batch | Etsy product image batch with sourced QA | batch | ZIP |
ebay_listing_photo_batch | eBay listing photo batch | batch | ZIP |
walmart_product_main_batch | Walmart product main images | batch | ZIP |
tiktok_shop_product_batch | TikTok Shop product images | batch | ZIP |
temu_product_main_batch | Temu-style product images with secondary source | batch | ZIP |
shopee_product_batch | Shopee product images | batch | ZIP |
mercado_libre_accessories_batch | Mercado Libre accessory photos | batch | ZIP |
allegro_listing_image_batch | Allegro listing images | batch | ZIP |
newegg_product_image_batch | Newegg product images | batch | ZIP |
meta_catalog_product_batch | Meta Catalog product images | batch | ZIP |
flipkart_product_image_batch | Flipkart product photos from public guidance | batch | ZIP |
shein_product_square_batch | SHEIN square product images with secondary source | batch | ZIP |
otto_product_image_batch | OTTO product images with sourced 500 x 1000 px minimum QA | batch | ZIP |
trendyol_product_image_batch | Trendyol product images at sourced 1200 x 1800 px size | batch | ZIP |
snapchat_ad_image_batch | Snapchat static ad images | batch | ZIP |
website_webp_compress | Website image compression to WebP | batch | ZIP |
webp_compress_batch | General WebP batch conversion and compression | batch | ZIP |
white_background_shadow_batch | White background product images with soft shadow | batch | ZIP |
metadata_clean_batch | Remove EXIF/GPS/camera/software metadata | batch | ZIP |
single_webp_compress | Compress one image to WebP | single | image |
single_background_remove | Remove background from one image | single | image |
single_white_background | Create one white-background product image | single | image |
single_metadata_clean | Remove metadata from one image | single | image |
single_watermark | Apply a text watermark to one image | single | image |
images_to_pdf_batch | Merge selected images or scans into one PDF | batch | |
social_pack_single | Social media sizes from one image | single | ZIP |
profile_avatar_pack | Profile avatar sizes from one image | single | ZIP |
watermark_product_batch | Apply watermark to product images | batch | ZIP |
favicon_app_icon_pack | Generate favicon and app icon sizes | single | ZIP |
Agents should usually call list_recipes, choose the closest recipe, then call process_images.
Use process_with_settings when the desired workflow is not covered by a recipe.
From the mcp-runner folder:
npm install
npx playwright install chromium
npm run check
Start the MCP server:
npx quokkapix-mcp
Direct CLI run without an MCP client:
npx quokkapix-runner --recipe website_webp_compress --input ./photo.jpg --output ./out
For most users, configure the published npm package directly:
{
"mcpServers": {
"quokkapix": {
"command": "npx",
"args": ["-y", "quokkapix-mcp"],
"env": {
"QUOKKAPIX_APP_URL": "https://quokkapix.com/#agent=1"
}
}
}
}
Use absolute paths for cwd.
If you cloned the GitHub repository instead of using npm, add this to your Claude Desktop MCP config:
{
"mcpServers": {
"quokkapix": {
"command": "node",
"args": ["src/server.mjs"],
"cwd": "/absolute/path/to/quokkapix-mcp",
"env": {
"QUOKKAPIX_APP_URL": "https://quokkapix.com/#agent=1"
}
}
}
}
If you cloned the GitHub repository instead of using npm, use the same server definition in Cursor MCP settings:
{
"mcpServers": {
"quokkapix": {
"command": "node",
"args": ["src/server.mjs"],
"cwd": "/absolute/path/to/quokkapix-mcp",
"env": {
"QUOKKAPIX_APP_URL": "https://quokkapix.com/#agent=1"
}
}
}
}
Run QuokkaPix locally and point the runner to it:
QUOKKAPIX_APP_URL=http://127.0.0.1:4177/#agent=1 npx quokkapix-mcp
Override the local site root:
QUOKKAPIX_SITE_ROOT=/path/to/quokkapix-site npx quokkapix-mcp
Override the public recipe source:
QUOKKAPIX_RECIPE_BASE_URL=https://quokkapix.com/agent-recipes npx quokkapix-mcp
Override payment base URL:
QUOKKAPIX_PAYMENT_BASE_URL=https://quokkapix.com npx quokkapix-mcp
appUrl is intentionally restricted for local-file safety. By default the runner only opens:
https://quokkapix.com/ and https://www.quokkapix.com/;http://127.0.0.1, http://localhost and local HTTPS equivalents.This prevents a malicious prompt or recipe from pointing the browser runner at an unrelated page and uploading local files there. For trusted development only, custom app URLs can be enabled with:
QUOKKAPIX_ALLOW_CUSTOM_APP_URL=1 npx quokkapix-mcp
Tool: process_images
{
"recipeId": "shopify_product_pack",
"inputFiles": [
"/Users/me/products/photo-1.jpg",
"/Users/me/products/photo-2.jpg"
],
"outputDir": "/Users/me/products/out",
"headless": true
}
Expected output:
outputDir;quokkapix-result.json;qa report.The tool result separates processing success from QA success:
processingOk: true means QuokkaPix completed and produced an output file;qaOk: true means the output passed the recipe QA checks;ok follows qaOk, so agents should not treat a failed QA run as fully successful.Tool: process_with_settings
{
"settings": {
"mode": "single",
"tool": "compress",
"settings": {
"compress": {
"format": "webp",
"quality": 0.82,
"targetEnabled": false
}
}
},
"settingsId": "custom-webp-compress",
"expectedResultQa": {
"profile": "custom-webp-compress",
"expectedFormat": "webp"
},
"inputFiles": ["/Users/me/images/photo.jpg"],
"outputDir": "/Users/me/images/out"
}
Use this for custom workflows that are not official recipes.
Tool: process_with_settings
{
"settings": {
"mode": "single",
"tool": "watermark",
"settings": {
"watermark": {
"type": "image",
"layout": "single",
"position": "center",
"scalePercent": 20,
"opacity": 0.25
}
}
},
"watermarkLogoFile": "/Users/me/brand/logo.svg",
"inputFiles": ["/Users/me/images/photo.jpg"],
"outputDir": "/Users/me/images/out"
}
Tool: process_with_settings
{
"settings": {
"mode": "batch",
"tool": "constructor",
"steps": [
{
"tool": "background",
"settings": {
"mode": "replace",
"replaceMode": "chroma",
"fill": "image",
"sourceColor": "#ffffff",
"tolerance": 36,
"exportFormat": "webp"
}
},
{
"tool": "compress",
"settings": { "format": "webp", "quality": 0.82 }
}
]
},
"backgroundImageFile": "/Users/me/backgrounds/studio.webp",
"inputFiles": ["/Users/me/products/photo-1.jpg", "/Users/me/products/photo-2.jpg"],
"outputDir": "/Users/me/products/out"
}
This two-file batch is inside the free small-batch limit. Add an unlockToken only for larger paid agent batch/scenario runs.
Tool: process_images
{
"recipeId": "metadata_clean_batch",
"inputFiles": [
"/Users/me/private/photo-1.jpg",
"/Users/me/private/photo-2.jpg"
],
"outputDir": "/Users/me/private/clean"
}
For batch runs, see the payment section below.
Tool: validate_result_manifest
{
"recipeId": "shopify_product_pack",
"manifest": {
"status": "done",
"source": {
"count": 1,
"totalBytes": 1000
},
"outputs": [
{
"sourceName": "photo.jpg",
"outputName": "shopify_1.webp",
"outputWidth": 2048,
"outputHeight": 2048,
"format": "webp",
"sizeBytes": 250000,
"warnings": []
}
],
"warnings": []
}
}
The result contains:
{
"ok": true,
"profile": "shopify-product",
"summary": {
"checks": 8,
"failures": 0,
"warnings": 0,
"outputs": 1
},
"checks": []
}
After processing, the runner writes:
quokkapix-result.json
The manifest is returned by:
window.QuokkaPixAgent.getResultManifest()
It contains machine-readable local processing facts:
schemaVersion;status;success;tool;mode;source.count;source.totalBytes;outputs[];processingMs;errorCode.The manifest does not contain image bytes.
The runner validates result manifests against recipe QA contracts.
Each check includes name, ok, severity, expected, actual, message and remediation, so agents can report both what failed and what setting to change.
Current QA checks include:
done;outputs[].pixelQa metrics:
Semantic checks such as watermark presence, promotional text, old-background remnants or subjective cutout quality are not marked as passed without a measurable signal in the manifest. If a custom QA contract requests an unsupported visual check, the validator reports it as a warning instead of silently treating it as passed.
Those require a future semantic analyzer or another explicit measurable signal. The runner does not currently pretend to verify them.
Human QuokkaPix UI and reward-ad flows are unchanged.
Agent payment rules apply only to agent batch or batch-scenario runs above the free small-batch limit.
Current policy:
0.01 USDC;eip155:8453, default), Polygon (eip155:137), Arbitrum (eip155:42161) and World Chain (eip155:480) when exposed by /api/agent-payment/options;/api/agent-payment/options;/api/agent-unlock/coinbase-x402;/api/agent-unlock/verify;/x402-api.md.The MCP runner can:
The MCP runner does not sign x402 payments itself. An x402-capable client or wallet must obtain the unlockToken.
Always call get_payment_options when an agent is unsure whether a run is free or paid. The live response includes freeBatchMaxFiles, paidMinFiles, maxFiles, price, currency, supported x402 networks and endpoint URLs.
Paid batch workflow for 6-50 files:
get_payment_options./api/agent-unlock/coinbase-x402.unlockToken from the paid response.verify_unlock_token with consume: false. The adapter fetches current /api/agent-payment/options first and uses the live scope, price and currency unless you explicitly override them.process_images or process_with_settings and pass unlockToken.Example:
{
"recipeId": "shopify_product_pack",
"inputFiles": [
"/Users/me/products/photo-1.jpg",
"/Users/me/products/photo-2.jpg"
],
"outputDir": "/Users/me/products/out",
"unlockToken": "eyJhbGciOiJIUzI1NiIs..."
}
Use this prompt in your local AI client:
Use QuokkaPix only through the MCP tools. First call list_recipes unless I give exact settings. For standard product, web, metadata, social, watermark or favicon workflows, prefer process_images with an official recipe. For custom image settings, use process_with_settings. After processing, inspect qa.ok and quokkapix-result.json. If qa.ok is false, report the failing checks and do not claim the output is ready. Do not say images were uploaded to a QuokkaPix processing server.
The package also exposes a direct CLI:
quokkapix-runner --recipe website_webp_compress --input ./photo.jpg --output ./out
Options:
--recipe, --recipe-id Official recipe id.
--input, --file Input image path. Repeat for multiple files.
--output, --output-dir Output directory.
--app-url QuokkaPix URL, default https://quokkapix.com/#agent=1.
--unlock-token Paid x402 unlock token for agent batch/scenario runs.
--headed Show browser window.
--timeout-ms Timeout in milliseconds.
The CLI currently runs recipe-based processing. For direct settings, use the MCP tool process_with_settings.
Fast checks:
npm run check
This checks:
GitHub Actions runs the same npm run check and npm pack --dry-run on pushes and pull requests.
End-to-end browser processing test against an already running QuokkaPix app:
QUOKKAPIX_E2E_APP_URL=http://127.0.0.1:4180/#agent=1 npm run test:e2e
The free e2e tests process one local fixture, direct custom settings and logo-watermark asset upload. Paid batch e2e tests are skipped unless real unlock tokens are supplied.
For paid e2e tests:
QUOKKAPIX_E2E_APP_URL=http://127.0.0.1:4180/#agent=1 \
QUOKKAPIX_E2E_UNLOCK_TOKENS=token1,token2,token3,token4 \
npm run test:e2e
The paid tests use separate tokens because unlocks are one-time consumable.
Before publishing or tagging a release:
npm run check
npm pack --dry-run
The package whitelist includes only:
src/;examples/;CHANGELOG.md;LICENSE;README.md;SECURITY.md;package.json.node_modules, test artifacts and the full QuokkaPix website are not included in the npm package.
Run:
npx playwright install chromium
Use absolute local file paths. The MCP process must have permission to read them.
Single image runs, single-image scenarios and agent batches up to 5 files are free. Larger agent batch and batch-scenario runs may require a valid x402 unlock token.
Reduce batch size, resize first, avoid very large images, or use smaller workflows. The runner cannot bypass browser RAM limits.
That is expected for semantic visual requirements that cannot be proven from the browser manifest. The validator uses outputs[].pixelQa for measurable checks and leaves unsupported semantic checks unclaimed.
Public discovery and documentation:
https://quokkapix.com/agents.mdhttps://quokkapix.com/agents.htmlhttps://quokkapix.com/llms.txthttps://quokkapix.com/agent-manifest.jsonhttps://quokkapix.com/.well-known/ai-catalog.jsonhttps://quokkapix.com/agent-test.htmlhttps://quokkapix.com/mcp-runner.htmlhttps://quokkapix.com/x402-api.mdMIT. See LICENSE.
Browser automation using accessibility snapshots instead of screenshots
Run Claude Code as an MCP server so any agent can delegate coding tasks to it
Google's universal MCP server supporting PostgreSQL, MySQL, MongoDB, Redis, and 10+ databases
Official GitHub integration for repos, issues, PRs, and CI/CD workflows