Model Context Protocol
Make and edit images from Claude, ChatGPT or Cursor
The AI Image Agent MCP server lets Claude, ChatGPT, Codex, Cursor and other assistants talk to the image agent on your account: create images, edit them and ask for variations. Same models, same credit prices and the same refunds as the website.
Server URL (Streamable HTTP)
https://aiimageagent.net/mcp
Tools
list_models- Every image model with its credits per resolution.
send_message- Send one message to the image agent; it creates an image, edits the current one or just replies. Images from 3 credits; replies are free.
get_conversation- A conversation's messages and every image version in it.
get_task- Status and download link for one image.
list_tasks- Your latest images, filterable by status.
get_credits- Remaining balance, plan and resolution limit.
Credits are taken only when an image starts and come back automatically if it fails. Replies without an image are free. Prices match the pricing page.See credit prices
Add it to your client
Pick your app, paste the snippet, then sign in when the browser opens.
In claude.ai or Claude Desktop open Settings → Connectors → Add custom connector, name it AI Image Agent and paste the URL. Press Connect and approve access.
https://aiimageagent.net/mcp
Your browser opens AI Image Agent: sign in (or create a free account) and press Allow access. No password or API key is shared with the assistant.
How sign-in works
- Your client calls the server and receives a 401 that points to our OAuth metadata.
- It registers itself (Client ID Metadata Document or dynamic registration) and opens a PKCE sign-in page.
- You sign in on AI Image Agent and approve that one app on the consent screen.
- The client gets a token for https://aiimageagent.net/mcp only, refreshed automatically and revocable at any time.
Use an API key from scripts
Scripts and headless agents can send an API key from Settings → API keys as a bearer header instead of OAuth. API keys come with the Studio plan.
{
"mcpServers": {
"ai-image-agent": {
"url": "https://aiimageagent.net/ mcp",
"headers": {
"Authorization": "Bearer sk_your_key"
}
}
}
}Questions and fixes
Does the MCP server cost extra?
No. Connecting is free on every plan; you only spend the credits each image costs, exactly as on the website. The free credits you got at sign-up work here too.
Which models can my assistant use?
The same image models as the website: Nano Banana 2.1, Nano Banana Pro and GPT Image 2. Ask it to call list_models for live prices.
What happens if an image fails or my balance is too low?
Credits are taken only when an image starts and come back automatically if it fails. If your balance is too low, the tool says so and nothing is charged; top up on the pricing page and ask again.
Can it keep editing an image I already made?
Yes. Pass session_id to send_message to continue a conversation, and base_task_id to edit a specific earlier version. get_conversation lists the versions.
My client keeps asking me to sign in. What do I do?
Remove the server from the client and add it again so it starts a fresh sign-in. If you use an API key and get a 403, that plan has no API access: switch to OAuth or upgrade.
Where do finished images go?
They are saved to My images like any image made on the website, and the assistant gets direct links once they are done.
Updated