Documentation

Image MCP Server documentation

Updated

Image MCP Server docs: connect Claude, Cursor or any MCP client, install the agent skill, or call the REST API. 8 image tools, 12 endpoints, one key.

What this is

Image MCP Server is one service that gives any AI agent the ability to make and change images. The same tools are exposed three ways — as an MCP server, as an agent skill with a CLI, and as a plain REST API — and all three bill against one API key and one credit balance.

Nothing here needs a GPU, a model account, or a per-provider integration on your side. You send a prompt or an image, the server routes the call to the right model, uploads the result, and hands back a URL.

Three ways to connect

The 11 MCP tools and 12 endpoints

The server exposes 11 MCP tools: 8 image tools plus 3 utility tools (get_user_info, list_models, multicall). Every row below is a real endpoint, and all but the REST-only usage log are also an MCP tool. Follow a row through to its reference page for parameters, response fields and copy-paste samples in four languages.

ToolEndpointCreditsWhat it does
get_user_infoGET/v1/meFreeRead the authenticated account's profile, plan and remaining credit balance.
list_modelsGET/v1/modelsFreeList every live image model you can pass as the `model` parameter, with its credit cost.
GET /v1/usage (REST only)GET/v1/usageFreeRead the account's most recent requests, newest first, with what each one cost.
generate_imagePOST/v1/generateModel costTurn a text prompt — optionally guided by reference images — into a hosted image.
generate_transparent_imagePOST/v1/generate-transparentModel cost + 8Generate an image from a prompt and return it as a cut-out PNG with a transparent background.
edit_imagePOST/v1/editModel costChange an existing image with natural-language instructions.
remove_backgroundPOST/v1/remove-background8 creditsStrip the background from an image and return a transparent PNG.
upscale_imagePOST/v1/upscale15 creditsIncrease an image's resolution while sharpening detail.
text_to_svgPOST/v1/text-to-svg5 creditsGenerate real vector SVG markup — icons, logos and marks — from a prompt.
compress_imagePOST/v1/compress1 creditShrink an image's file size with quality control, and report exactly how much was saved.
convert_formatPOST/v1/convert-format1 creditConvert an image between PNG, JPEG, WebP and other common formats.
multicallPOST/v1/multicallSum of the batchRun several image tools concurrently in a single request.

How a call is shaped

Every image endpoint answers with the same envelope: a success flag, the credits this call took, your remaining balance, and a result object holding the output. Read result.imageUrl for image tools, result.image (a base64 data URI) for compression, and result.svgCode for the vector tool.

response envelope
{
  "success": true,
  "message": "Image processed successfully via OpenRouter Images API",
  "deductedCredits": 15,
  "userCredits": 2485,
  "result": {
    "imageUrl": "https://cdn.imagemcpserver.com/gen/gen_91827364.png",
    "model": "google/gemini-2.5-flash-image",
    "latency": "4.21s",
    "deductedCredits": 15,
    "userCredits": 2485
  }
}

Watch the balance in the response

Because userCredits comes back on every call, an agent never needs a separate balance check in a loop — it can read the remaining balance from the response it already has.

Where to go next