imaginate-mcp
imaginate-mcp
MCP-сервер, который создаёт и редактирует изображения с помощью OpenAI GPT Image и Google Gemini (Nano) (Nano Banana). Он работает через stdio, сохраняет каждое изображаение на диске и возвращает путь к файлу, чтобы ваш ассистент мог продолжить работу с резолютатом.
Что вы получите
Шесть инструментов, розспелённых по провайдерам:
Инструмент | Назначение |
| scriptная генерация ихображений по тексту с помощью моделей GPT Image |
| редактирование одного изображения, инпейнтинг по маске или работать с нескольких референцев |
| идентивноп-иденетные процедуры, их сильные стороны и лимиты |
| генерация изображений по тексту с помощью моделей Nano Banana, с по выборной опции привязки к Google Search |
| редактирование, перенос стиля, семантический инпейнт или композицию из нескольких из обращений |
| иденфикторы моделей, лимиты на гллю.референсы и уровень resolution |
Только те инструменты регистрируются, каким соответствуют настроеные keyчи. Если задать только OPENAI_API_KEY, ваш ассист увидит три "рументы, и ни one из них не сделать ошибку из-за отсутстствующего ключа Google. Это и был о главный причинno, by которой инструменты разедёнyt по провайдером, а не сдела ней как one струмент с аргументом provider.
Related MCP server: OpenAI Image Generation MCP Server
Требования
Node.js 20 или новее
API-ключ OpenAI, Gemin key or bothAPI both
Модели GPT Image требуют верификации orgанизации в OpenAI. Пока вы не прошли её, OpenAI откlonяt запрос, and server сообщит вам об этом.
Подключение
Запустите опубликованный пакт с npx. Можно not клonировать..
npx -y @pinkpixel/imaginate-mcpДобавьте сервер в конфигурацyou. For Claude Desktop, отредактируйте claude_desktop_config.json. For Claude Code, use .mcp.json in a project or user's settings.
{
"mcpServers": {
"imaginate": {
"command": "npx",
"args": ["-y", "@pinkpixel/imaginate-mcp"],
"env": {
"OPENAI_API_KEY": "sk-...",
"GEMINI_API_KEY": "...",
"IMAGINATE_OUTPUT_DIR": "~/Pictures/imaginate"
}
}
}
}После изменения конфигурации перзапустите клиент. If you have not yet появились image-инструменты, вызовите imaginate_setup_help. This инструмент есть только then, когda no provider is found, and he lists them in variables that you need to set.
Запуск из исходников
Клонируйте and соберите, if you want to work with server locally.
git clone https://github.com/pinkpixel-dev/imaginate-mcp.git
cd imaginate-mcp
npm install
npm run build
node dist/index.jsTo подкл. MCP-клиент к этаму сборку, use "command": "node" and in args assign the absolute path to dist/index.js.
Конфигурация
Все переменные считываются once at startup, so if you change some, restart the client.
Variable | Required | Default | What it does |
| Требуется один из ключей | there | Registers |
| Требуется one of the keys |
| Reg. с tool |
| нет |
| Кatalog where images are saved. А |
| нет |
| Model used if no model is set in call |
| нет |
| Model used if no model is set in call |
| нет | OpenAI default | Point to an OpenAI-compatible proxy |
Любой вызов can overridden output directory with output_dir, and file name via filename.
As working the files
Изображения попадают в выходной каталог. The server never overwrites anything. cat.png that already exists — becomes cat-1.png, then cat-2.png.
Имена по умолчанию look lie openin: tha is prefixed. Thas prefix, slug вашего запроса, and time stamp. If you want something specific, pass filename.
Sources for edit must be local files. Pass absolute paths. The tools are not downloads, so if the file is online, download it first. It only read and never changes.
Use
Server connected — basically you talk like ordinary to the assistant. A couple of things useful.
Choose provider
Both providers are good — in different.
Gemini is stronger on text inside images, world knowledge, and infographic work. It can rely on live Google Search results. It also returns an interaction ID — you can improve the picture without uploading again.
GPT Image is well meets detailed layout instructions and gives good control over size, quality, background. Need transparent background? Use it, but then you need gpt-image-1.5 or an older model, because gpt-image-2 removed it.
Iteration in Gemini image
Each turn result includes an interaction ID. Pass it forward as previous_interaction_id in next gemini_edit_image and not upload image again:
gemini_generate_imagewith a prompt. Return with the result includes ID.gemini_edit_imagewithprevious_interaction_idand the prompt «make it horizontal».
This is a cheap alternative to re-upload and more stable image between rounds.
Edit and composition
Both *_edit_image can handle several tasks through same interface. Pass one image path to edit it; pass several to assemble the new scene.
For mask inpainting the provides differ. OpenAI expects a real mask PNG with alpha channel, sent as mask. Gemini does it semantically: simply say «change only the sky and leave everything else» and skip the mask file.
Reference limit: 14 for Lite, 10 for Nano Banana 2, and 6 for Pro. In doubt, call gemini_list_image_models.
Development
npm run build # compile to dist/
npm run watch # compile on change
npm run typecheck # types only, no output
npm test # compile tests and run themTests use a built-in Node runner. They cover naming and saving, Gemini response parse, and error matching. No API call, so they run without keys.
The layout:
src/
index.ts entry point, conditional tool registration
config.ts environment parsing
lib/ file handling, errors, result formatting, model catalog
providers/openai/ OpenAI client wrapper and tool definitions
providers/google/ Gemini client wrapper and tool definitions
tests/Ограничения
Исходные images должны быть локальными — nothing on URL.
Streaming output не реализована. A call is returned, when done.
Gemini not reliable fulfilling amount, so button set one image per request. OpenAI the tools have
nand it works.OpenAI может использовать до fifteen minutes per complicated request. That's API difference, server not guilty.
Every image from Gemini contains invisible SynthID.
Model IDs and prices move fast both. List tools show what version knows; actual access may differ.
Лицензия
Apache 2.0. Смо. LICENSE.
Made with 💖 — Pink Pixel.
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Tools
Related MCP Servers
- AlicenseAqualityDmaintenanceAllows AI assistants to generate and transform high-quality images from text prompts using Google's Gemini model via the MCP protocol.334MIT
- AlicenseNot gradedqualityDmaintenanceProvides tools for generating and editing images using OpenAI's gpt-image-1 model via an MCP interface, enabling AI assistants to create and modify images based on text prompts.15Apache 2.0
- AlicenseNot gradedqualityNot gradedmaintenanceEnables AI assistants to generate and edit images through OpenAI's DALL-E models via MCP tools. Supports text-to-image generation and image-to-image editing with configurable parameters for size, quality, and style.
- AlicenseAqualityAmaintenanceGenerates and edits images via Gemini, Grok, and GPT-image providers for MCP clients like Claude Code that lack native image generation.338MIT
Related MCP Connectors
Generate images with any major model — one API key, one prepaid balance, one MCP.
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Generate on-brand images from your AI agent: design, edit, and render templates over MCP.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/pinkpixel-dev/imaginate-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server