NEWGPT Image 2.6 is here — make focused edits with less rework.

Try GPT Image 2.6
MODEL CONTEXT PROTOCOL · REMOTE SERVER

Use ImageToLayers from your AI agent

Connect Cursor, Claude Code, Codex, and other MCP-compatible clients. Generate SVGs, split images into layers, extend images, and check jobs directly from your coding assistant.

Live Remote Endpoint
Streamable HTTPOAuth 2.1

Server URL

https://www.imagetolayers.com/mcp
No API keys exposed · Authenticates with your ImageToLayers loginView client setup guide →

FAST SETUP

Connect your favorite AI agent

Add the ImageToLayers endpoint to your client configuration. When prompted, complete the one-click browser authorization.

Add to your Cursor MCP settings or workspace configuration file.

{
  "mcpServers": {
    "imagetolayers": {
      "url": "https://www.imagetolayers.com/mcp"
    }
  }
}
After saving, trigger any tool from your agent prompt (e.g. “Generate an SVG of a minimal coffee cup”).

TOOL REFERENCE

Tool reference

Parameters and output for each function. Reuses the identical high-performance pipelines that power the web studio.

Paid · Uses account credits
Text to native vector SVG

Generates an SVG vector graphic from a text description. Runs asynchronously — poll get_job for the result.

Parameters

prompt*(string)What to draw, including subject, style, colors, and composition (3–1500 characters).
canvas('square' | 'landscape' | 'portrait' | 'wide' | 'tall')Canvas shape. Defaults to 'square'.
preferred_colors(string[])Up to 5 hex colors (e.g. #214e34) to guide the palette.
request_id*(string)Caller-supplied unique id; retrying the same id returns the original job instead of charging again.
Returns:Job ID; get_job returns a signed SVG download URL on completion
Paid · Uses account credits
Raster image to PNG layers

Splits an image into separate visual layers such as subject, background, and individual objects. Runs asynchronously — poll get_job for the result.

Parameters

image_url*(string)Public HTTP(S) URL of a JPG, PNG, WEBP, or GIF image.
quality('standard' | 'turbo' | 'pro' | 'hd')Defaults to 'standard'. 'pro' and 'hd' cost more and allow more layers.
num_layers(integer)2–5 for standard/turbo, 5–10 for pro/hd. Omit to let the model decide.
request_id*(string)Caller-supplied unique id; retrying the same id returns the original job instead of charging again.
Returns:Job ID; get_job returns a signed PNG download URL for each layer on completion
Paid · Uses account credits
Outpaint an image to a new ratio

Extends an image beyond its original borders, generating new content in the added area to reach a target aspect ratio. Runs asynchronously — poll get_job for the result.

Parameters

image_url*(string)Public HTTP(S) URL of a JPG, PNG, WEBP, or GIF image.
aspect_ratio*('1:1' | '4:5' | '9:16' | '16:9' | '3:2' | '2:3')Target ratio. It must differ from the source image's ratio, otherwise the request is rejected without charge.
position('center' | 'top-left' | 'top-center' | 'top-right' | 'center-left' | 'center-right' | 'bottom-left' | 'bottom-center' | 'bottom-right')Where the original sits in the new canvas. Defaults to 'center'.
prompt(string)Optional guidance for the generated area (up to 1500 characters). Omit to continue the scene naturally.
request_id*(string)Caller-supplied unique id; retrying the same id returns the original job instead of charging again.
Returns:Job ID; get_job returns a signed PNG download URL on completion
Read-only · Free
Job status & asset download links

Returns the status of a job created by a paid tool and, once completed, download URLs for its outputs (PNG layers, extended PNG, or SVG).

Parameters

job_id*(string)Job identifier returned by the paid tool call.
Returns:Status ('queued' | 'processing' | 'completed' | 'failed'), plus signed download URLs or an error message
Read-only · Free
Credit balance

Returns the remaining credit balance of the authenticated ImageToLayers account.

Returns:credit_balance

CAPABILITIES

Supported MCP functions

Five tools your agent can call over the remote endpoint. Inspection tools are free; generation tools draw from your credit balance.

Browse each tool in the skill library

  • generate_svg_from_text

    Generate a clean, multi-path vector SVG from a text prompt.

    Uses credits
  • convert_image_to_layers

    Split a raster image into separate layers, returned as PNG files.

    Uses credits
  • extend_image

    Extend an image beyond its borders (outpainting) to a target aspect ratio.

    Uses credits
  • get_job

    Check the status of an async job and retrieve signed asset download URLs.

    Free
  • get_account_usage

    Read your remaining credit balance.

    Free

DEVELOPER ARCHITECTURE

Built for security and reliability

Designed from the ground up to keep user credentials safe while delivering production-grade performance.

One Remote Endpoint

A single Streamable HTTP endpoint connects with Cursor, Claude Code, Codex, Windsurf, and custom agent runtimes.

Zero API Key Leak

Your agent authenticates via Supabase OAuth 2.1 in a standard browser prompt. No raw API keys or tokens are hardcoded into local repos.

Shared Credit Pool

Agent calls draw directly from your existing ImageToLayers credit balance. No separate billing, credit cards, or subscription tiers.

Production Pipeline Parity

All MCP tools run on the identical model cluster and segmentation infrastructure as the official ImageToLayers web application.

WORKFLOW

How the connection works

From configuration to autonomous agent tool calls in under two minutes.

Step 01

Add endpoint to your agent

Copy the remote URL into your client configuration (e.g. Cursor mcp.json or Claude Code CLI).

Step 02

Approve OAuth connection

Your agent initiates a standard browser OAuth handshake. Review requested scopes and approve with one click.

Step 03

Prompt your agent naturally

Ask your agent to split an image into layers, extend it to a new ratio, or generate an SVG without leaving your IDE.

Pre-flight balance checks & zero overdraft

Before executing any paid image segmentation or vector generation task, the server verifies that your account has sufficient credits. Requests that exceed your quota are cleanly rejected before incurring any charge.

INTEGRATIONS

Explore the developer ecosystem

Agent Workspace

Prefer an interactive web canvas? Use ImageToLayers’ built-in AI workflow assistant with real-time visual previews and prompt templates.

Open Agent Workspace

Direct API Access

Building your own commercial product or high-volume backend pipeline? Request direct HTTP REST API access with custom SLAs.

Explore API access

QUESTIONS & ANSWERS

Frequently asked questions

What is the ImageToLayers MCP Server?

It is a Remote Model Context Protocol (MCP) server that lets AI agents in Cursor, Claude Code, Codex, and other environments invoke ImageToLayers tools programmatically. Agents can generate vector SVGs, split images into PNG layers, extend images to a new aspect ratio, and check job status directly from your conversation prompt.

What is the Model Context Protocol (MCP)?

MCP is an open standard developed by Anthropic that connects AI assistants and agents to external developer tools, data sources, and APIs through a standardized JSON-RPC interface.

Which clients and IDEs are supported?

Any MCP client that supports Streamable HTTP with OAuth 2.1 authentication. Setup examples for Cursor, Claude Code, and Codex are shown above.

Do I need a separate account or API token?

No. You authenticate with your existing ImageToLayers user account. The client opens a secure OAuth 2.1 window where you approve access, eliminating the need to paste or store raw API tokens on disk.

How are credits charged?

Tool usage consumes standard ImageToLayers credits from your existing balance. Read-only inspection tools like get_job and get_account_usage are completely free.

Can an agent overspend my balance?

It cannot spend more than your balance: the server checks your credits before a job starts and rejects the request if they are insufficient. There is no self-serve setting for a per-agent spending cap yet, so an authorized agent can use any credits you have.

How do I revoke access?

The dashboard does not have a self-serve revoke control yet. Removing the server from your client stops that client from using it; to revoke the authorization on our side, email support@imagetolayers.com.

How does this differ from the Agent Workspace (/agent)?

The Agent Workspace is our interactive web canvas for visual and layer manipulation in the browser. The MCP Server allows external agents running in your local IDE or CLI to call the same backend capabilities directly.

Is /mcp a web page I can view in the browser?

No. The /mcp endpoint is a machine-to-machine JSON-RPC interface. This page (/mcp-server) is the human-readable developer documentation and quickstart guide.

Connect your AI assistant today

Point any MCP-compatible agent at our live endpoint and start transforming images from your prompt bar.