The ChatGPT MCP server lets Claude, Cursor or any other MCP client ask a GPT model a question and generate or edit images with gpt-image-2. It runs on your own credentials: a ChatGPT subscription you link with a one-time code, an OpenAI API key, or both. MCPifex hosts it, so you add one URL and install nothing.

Read this first. The ChatGPT subscription link is unofficial. It is not made, endorsed or supported by OpenAI, and you use it at your own risk. OpenAI may limit or ban accounts that use their plan through third-party services. The OpenAI API key path uses the official API.

Looking for the opposite direction, adding MCP servers to ChatGPT itself? That is connect an MCP server to ChatGPT.

What does it look like in practice?

Say you are writing a launch post in Claude and want a header image. You ask:

"Generate a 1536x1024 image of a paper rocket on a desk, flat illustration, then give me the download link."

Claude calls generate_image with your prompt and the size. About one to three minutes later the image comes back inline in the chat, plus a download link that works for 7 days. Hit your ChatGPT plan's limit with an API key saved? The same call then runs on the key, and the answer starts with one line: ChatGPT limit reached, billed to your API key.

Which tools does the ChatGPT MCP server include?

There are 5 tools, all on by default. Two of them create content; three only read.

A tool board with five tiles, two coral tiles with picture and brush icons and three off-white tiles with teal dots, each above a toggle switched on
Illustration: five tools, two that make images and three that only read, each with its own on and off switch per key.
ToolTypeWhat it does
askReadSends one question to a GPT model and returns the text answer. Optional model, reasoning effort, system instructions and up to 4 images to look at. No chat history and no web search.
generate_imageWriteCreates 1 to 4 images from a prompt with gpt-image-2. Sizes 1024x1024, 1536x1024, 1024x1536 or auto; quality low, medium, high or auto.
edit_imageWriteEdits or combines 1 to 4 source images from a prompt, with an optional PNG mask that marks the area to change.
list_modelsReadLists the models you can use, labelled by source: ChatGPT subscription or API key, with each source's default.
account_statusReadShows which credentials are set up, the linked account and plan, the usage windows ChatGPT reports, and whether the API key is accepted.

Tools are set per MCPifex API key. A key can only call the tools switched on for it, and the gateway hides the rest from the AI. If you only want image generation, switch ask off for that key. API keys and authentication shows the tool picker.

What can you ask it?

  1. "Ask GPT for a second opinion on this function and list anything it would change."
  2. "Make four logo ideas for a coffee subscription app, square, low quality, so I can pick one."
  3. "Take this product photo URL and put the bottle on a marble counter."
  4. "Generate a transparent PNG icon of a paper plane."
  5. "Check my ChatGPT usage before we start the image batch."

Each call is independent. The model does not remember the previous ask, so Claude has to put the full context in every prompt. The Claude image generation guide has prompt patterns for images.

Subscription or API key: which one is used?

You can save either credential, or both. With both, every call tries the subscription first. The server moves the call to your API key in three cases, and puts one line in front of the result so you know who pays:

A switch box with two inputs, a plan card whose gauge is full with a warning triangle and a key; the output line has been switched from the card to the key and runs on to a result tile with a teal status dot
Illustration: when the plan hits its limit, the call switches to your API key and still returns a result.
  • Plan limit reached: ChatGPT limit reached, billed to your API key.
  • Plan without the feature: Your ChatGPT plan does not include this, billed to your API key.
  • Link not working (expired, revoked or signed out): ChatGPT link unavailable, billed to your API key.

With only the subscription, a limit returns an error that gives the reset time when OpenAI reports one. With only a key, every call goes to the OpenAI API and is billed by OpenAI to the key's owner. With neither, the tool says what to set in the portal. ChatGPT plan limits vs OpenAI API pricing compares what each path costs.

ChatGPT subscriptionOpenAI API key
Billed toYour ChatGPT plan's usage limitsYour OpenAI API account, per token
OfficialNo. Unofficial, at your own riskYes, the public OpenAI API
Default text modelYour account's own default, shown by list_modelsgpt-5.5
Image modelgpt-image-2gpt-image-2; gpt-image-2.5-sunburst for transparent backgrounds
Image formatPNGJPEG, or PNG when the background is transparent
Masked editsNot supported, so they run on the keySupported

How do images come back?

Every image is returned inline as an MCP image, so Claude and most clients show it in the chat. Each result carries up to 8 MB of inline images; any extra images are sent as links only, with a note. Every image is also stored and returned as a download link that works for 7 days. The file itself is deleted after 30 days.

A chat window showing an inline picture with mountain and sun shapes, linked to a download tile with a down arrow, an hourglass and a bin
Illustration: images arrive inline in the chat and as a download link that expires, and the stored file is deleted later.

Input images for edit_image and ask work best as public https:// URLs: up to 10 MB each and 20 MB per call, in PNG, JPEG or WebP. Base64 also works, but all base64 inputs together must stay under about 700 KB because the whole request is capped at 1 MB.

How do you set it up?

  1. Create a free account. ChatGPT works on the Free plan, which has 3 instances and needs no card.
  2. Pick ChatGPT in the marketplace. On the Details step, name the instance.
  3. On the Configure step, add at least one credential. For the subscription, click Link ChatGPT, then Open ChatGPT sign-in, sign in and enter the code shown. The page updates by itself once the account is linked. For the API key, paste a key from platform.openai.com/api-keys.
  4. Optionally click Test connection to check the credentials.
  5. On the Tools step, choose the tools for your first key, then click Create instance.
  6. The Connect step shows your API key once. It starts with mcpx_, so copy it before you close the dialog.
  7. Add the gateway URL https://mcp.mcpifex.com/mcp and that key to your AI app, as shown below.
Configure step of the ChatGPT connect wizard in the MCPifex portal, with the Link ChatGPT button and the OpenAI API key field highlighted
The Configure step of the ChatGPT wizard before linking: Link ChatGPT for the subscription, or an OpenAI API key, captured November 2026.

The sign-in code works for 15 minutes. If OpenAI refuses it, device code sign-in may be off: OpenAI's authentication docs say you enable it in ChatGPT's security settings, or a workspace admin enables it for the workspace.

Claude Code

claude mcp add mcpifex --transport http https://mcp.mcpifex.com/mcp \
  --header "Authorization: Bearer <YOUR_API_KEY>"

claude.ai and Claude Desktop

Open Customize, Connectors, Add custom connector, paste https://mcp.mcpifex.com/mcp/<YOUR_API_KEY> and choose No sign-in. Treat that URL like a password. Use your ChatGPT subscription in Claude walks through both clients step by step.

Cursor and other clients

Any client that supports remote MCP servers over HTTP works with the same URL and key. Connect Cursor and IDEs has the config files.

Good to know

  • Unofficial link, your risk. The subscription link signs in the way OpenAI's open-source Codex CLI does. OpenAI has not approved this use and can change or block it at any time.
  • Calls come from MCPifex. Subscription calls go out from MCPifex's servers, not from your own connection.
  • Image calls are slow. Expect one to three minutes per call. Low quality is the fastest.
  • No memory, no browsing. ask answers one message at a time and cannot search the web.
  • Plans cap instances, not calls. MCPifex does not meter calls; OpenAI's own limits and prices still apply. See pricing.
  • Your prompts go to OpenAI. Do not paste secrets into them. Security and data covers what MCPifex stores.

Frequently asked questions

  • It is an MCP server that lets Claude or any MCP client ask GPT models questions and generate or edit images with gpt-image-2. It runs on your own ChatGPT subscription or OpenAI API key. MCPifex hosts it, so you add one URL instead of installing it.

Run this server through MCPifex

Run hosted MCP servers behind one endpoint and choose exactly which tools your AI can use.

← Back to servers