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.

| Tool | Type | What it does |
|---|---|---|
ask | Read | Sends 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_image | Write | Creates 1 to 4 images from a prompt with gpt-image-2. Sizes 1024x1024, 1536x1024, 1024x1536 or auto; quality low, medium, high or auto. |
edit_image | Write | Edits or combines 1 to 4 source images from a prompt, with an optional PNG mask that marks the area to change. |
list_models | Read | Lists the models you can use, labelled by source: ChatGPT subscription or API key, with each source's default. |
account_status | Read | Shows 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?
- "Ask GPT for a second opinion on this function and list anything it would change."
- "Make four logo ideas for a coffee subscription app, square, low quality, so I can pick one."
- "Take this product photo URL and put the bottle on a marble counter."
- "Generate a transparent PNG icon of a paper plane."
- "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:

- 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 subscription | OpenAI API key | |
|---|---|---|
| Billed to | Your ChatGPT plan's usage limits | Your OpenAI API account, per token |
| Official | No. Unofficial, at your own risk | Yes, the public OpenAI API |
| Default text model | Your account's own default, shown by list_models | gpt-5.5 |
| Image model | gpt-image-2 | gpt-image-2; gpt-image-2.5-sunburst for transparent backgrounds |
| Image format | PNG | JPEG, or PNG when the background is transparent |
| Masked edits | Not supported, so they run on the key | Supported |
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.

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?
- Create a free account. ChatGPT works on the Free plan, which has 3 instances and needs no card.
- Pick ChatGPT in the marketplace. On the Details step, name the instance.
- 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.
- Optionally click Test connection to check the credentials.
- On the Tools step, choose the tools for your first key, then click Create instance.
- The Connect step shows your API key once. It starts with
mcpx_, so copy it before you close the dialog. - Add the gateway URL
https://mcp.mcpifex.com/mcpand that key to your AI app, as shown below.

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.
askanswers 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.
No. MCPifex built it and OpenAI does not endorse it. The ChatGPT subscription link is unofficial and at your own risk, because OpenAI may limit or ban accounts that use their plan through third-party services. The API key path uses the official OpenAI API.
Yes, through this server. Link the account with a one-time code in the MCPifex portal and add MCPifex to Claude. Calls then draw on your plan's usage limits instead of an API bill. The link is unofficial and at your own risk.
If you also saved an OpenAI API key, the call runs on the key and the result starts with "ChatGPT limit reached, billed to your API key." Without a key, the tool returns an error and you wait for the limit to reset.
gpt-image-2 on both credentials. On an API key, a transparent background uses gpt-image-2.5-sunburst, because gpt-image-2 does not accept transparent backgrounds there.
Run this server through MCPifex
Run hosted MCP servers behind one endpoint and choose exactly which tools your AI can use.



