Skip to content
Concepts

What Is an MCP Server for Image Generation?

What is an MCP server? MCP in plain words: how an AI assistant calls an image or video tool, what the server exposes, keys, costs and the clients.

Updated 6 min read

What is an MCP server? It is a program that gives AI assistants tools to use, over the Model Context Protocol (MCP), an open standard for connecting assistants to outside tools and data. An MCP server for image generation turns "make me a picture" into a real request: the assistant calls a tool such as generate_image with a model and a prompt, the server runs it on an image API, and the result comes back into the chat.

This page explains the idea in plain words: how a tool call travels, why tools are not plugins, what a remote server and its key are, how to keep an assistant's spending safe, and which clients connect. The Frameport server, at https://frameport.ai/mcp, is the example throughout.

What is an MCP server, in two minutes

Three pieces work together in every call:

  • The client is the AI app you talk to, such as Claude Code, Claude Desktop or Cursor. It connects to servers and shows the model what they offer.
  • The model reads the list of tools and decides, from your request, whether to call one and with which arguments.
  • The server receives the call, does the work and returns a result the model can read.

Anthropic introduced MCP in late 2024 as an open standard, so one server works with every client that speaks it. The messages are JSON-RPC 2.0: the client opens with initialize, asks for the tools with tools/list, and sends tools/call when the model picks one. One image request goes like this:

  1. You ask for a lighthouse at dawn, in 16:9.
  2. The model sees the server's tools: their names, what each does and the fields it takes.
  3. It picks generate_image and fills in the arguments: a model id, the prompt, the aspect ratio.
  4. The client sends the call, after asking you if you set it to.
  5. The server starts the request on the API, holds its price on your balance, and answers that the generation is queued.
  6. The model calls get_generation until the image is ready. The server returns it with a download link and, when the file is small enough, as a picture the model can look at.
  7. The model shows you the result, and can adjust the prompt and call again.

The call itself is a small JSON message:

tools/call, from the client to the server
{
  "jsonrpc": "2.0",
  "id": 3,
  "method": "tools/call",
  "params": {
    "name": "generate_image",
    "arguments": {
      "model": "nano-banana-pro",
      "prompt": "A lighthouse on a cliff at dawn, soft fog",
      "aspect_ratio": "16:9",
      "idempotency_key": "lighthouse-001"
    }
  }
}

Tools, not plugins

A plugin is written for one app. An MCP server is written once and works in every client that speaks the protocol. A server can offer three kinds of things: tools the model calls, resources the app can read, and prompts you pick from a menu. Generating images and videos only needs tools, and that is all the Frameport server offers.

To the model, a tool is three things: a name, a description that says what it does and what it costs, and an input schema listing its fields, down to the model ids on sale. The tools fall into two groups:

  • Reads, free: list_models, get_quote, get_generation, list_generations and get_balance.
  • Work, paid when it succeeds: generate_image, generate_video and edit_video.

Each tool also tells the client whether it only reads (readOnlyHint), so a client can let the reads run on their own and still ask before anything that spends. Behind every tool sits an ordinary endpoint of the API, so prices, limits and refusals match what a script would get. A refusal, such as a field the model does not take or a balance too low, comes back as a tool error with its reason: the model reads it, fixes the request and tries again. Finished images can come back inline, so the assistant sees what it made; Nano Banana Pro, for one, costs $0.16 an image through the server, as through the API.

Remote servers and keys

MCP servers run in one of two ways:

  • Local. The client starts the server as a program on your machine and talks to it through standard input and output (stdio). It suits tools that work on your files.
  • Remote. The server lives at a URL, and the client sends it HTTP requests (Streamable HTTP). There is nothing to install, and the work happens on the provider's side.

An image server is remote by nature: the GPUs are not on your laptop. The Frameport server takes JSON-RPC messages by POST at its URL. It is stateless: there is no session to open and no event stream to keep alive, and a GET gets 405.

Signing in is one header. Each request carries your API key as Authorization: Bearer fp_live_…, with no OAuth step, and a missing or revoked key answers 401. Since the key spends the workspace's balance, keep it in the client's settings on your computer and out of any repository others can read. A client that only starts local servers reaches a remote one through a small local bridge, mcp-remote, which forwards the calls with your key. The MCP server guide has the config for each client.

Spending safely

An assistant that can call a paid tool can spend money, so the guards sit in three places:

  • In the client: approvals. Keep the tools that start work on ask-first, and let the reads run.
  • In the call: get_quote prices any request for free before it runs; max_cost_usd refuses a call priced above it before anything is held; idempotency_key makes a repeated call return the first generation instead of paying twice.
  • In the account: the price is held when work starts and charged only on success, so a failed image or clip costs nothing. A prepaid balance caps what any key can spend, and a key per agent shows its spending and can be revoked alone.

The server also sends instructions when a client connects, for the model to read: a few lines explain that quotes are free, that a generation is charged only when it succeeds, and that each call should carry an idempotency_key and can carry max_cost_usd. A sentence in your own prompt adds a rule of yours, such as "quote first and ask me before anything over the budget". Clips take a minute or more, so for a video on Seedance 2.5 the tool asks the model to check back every ten seconds or so. Price a clip before it runs covers quotes and holds in depth.

Clients that support it

MCP support is now common in AI apps. For a remote server that signs in with a key, one question decides it: can the client send an Authorization header to a Streamable HTTP URL?

ClientHow it connects
Claude CodeOne claude mcp add command with the URL and the header
Claude DesktopA config entry that runs the mcp-remote bridge
CursorAn entry in mcp.json with the URL and the header
Other clientsAny client with Streamable HTTP and custom headers

ChatGPT has added MCP support too. Before counting on it with this server, check that it can send your key as a header, since the server has no OAuth sign-in. The MCP docs keep each config current, and the guides to Claude Code, Claude Desktop and Cursor each walk through one client from start to finish.

FAQ

What is an MCP server in simple terms?

A program that hands an AI assistant tools it can use. The assistant reads what each tool does, calls one when your request needs it and gets the result back, so it can act, not only answer.

What is the difference between an MCP server and an API?

Code you write calls an API; an AI assistant calls an MCP server, and decides when and how. Here the MCP server sits on top of the API: the same models, prices and limits, with tools in place of endpoints.

Does ChatGPT support MCP servers?

ChatGPT has added support for remote MCP servers. To use this one from it, it must be able to send your API key in an Authorization header, because the server has no OAuth sign-in. Claude Code, Claude Desktop and Cursor connect as the docs show.

Is there an MCP server for Nano Banana or GPT Image?

Yes. Through this server, generate_image takes any image model in the catalog, Nano Banana Pro, Nano Banana 2.1 and GPT Image 2.5 Sunburst among them, at the same prices as the API.

Do I need to install anything to use a remote MCP server?

Not with clients that connect to a URL themselves, such as Claude Code and Cursor: add the URL and your key. Claude Desktop runs the small mcp-remote bridge through npx, which needs Node.js.

Can an AI agent spend my money through MCP?

Only what its key can spend, and only through calls you let through. Keep approvals on for the tools that start work, give the agent its own key and a balance sized to the job, and use max_cost_usd. A failed generation costs nothing.

Start building.

Your API key is free. Top up from $10 when you are ready.