Image GenBLOCK
An MCP server that integrates with gpt-image-1 & Gemini imagen4 model for text-to-image generation services
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
Empowering Universal Image Generation for AI Chatbots
Traditional AI chatbot interfaces are limited to text-only interactions, regardless of how powerful their underlying language models are. Image Gen MCP Server bridges this gap by enabling any LLM-powered chatbot client to generate professional-quality images through the standardized Model Context Protocol (MCP).
Whether you're using Claude Desktop, a custom ChatGPT interface, Llama-based applications, or any other LLM client that supports MCP, this server democratizes access to multiple AI image generation models including OpenAI's gpt-image-2, gpt-image-1.5, gpt-image-1, dall-e-3, dall-e-2, and Google's Imagen series (imagen-4, imagen-4-ultra, imagen-4-fast, imagen-3), transforming text-only conversations into rich, visual experiences.
📦 Package Manager: This project uses UV for fast, reliable Python package management. UV provides better dependency resolution, faster installs, and proper environment isolation compared to traditional pip/venv workflows.
Why This Matters
The AI ecosystem has evolved to include powerful language models from multiple providers (OpenAI, Anthropic, Meta, Google, etc.), but image generation capabilities remain fragmented and platform-specific. This creates a significant gap:
- 🚫 Limited Access: Only certain platforms offer built-in image generation
- 🔒 Vendor Lock-in: Image capabilities tied to specific LLM providers
- ⚡ Poor Integration: Switching between text and image tools breaks workflow
- 🛠️ Complex Setup: Each client needs custom integrations
Image Gen MCP Server solves this by providing:
- 🌐 Universal Compatibility: Works with any MCP-enabled LLM client
- 🔄 Seamless Integration: No context switching or workflow interruption
- ⚡ Standardized Protocol: One server, multiple client support
- 🎨 Multi-Provider Support: Access to OpenAI and Google's latest image gen
789848667c5fOBSERVED · 2026-10-07Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.
claude mcp add image-gen-mcp --env PROVIDERS__OPENAI__API_KEY=${PROVIDERS__OPENAI__API_KEY} -- uvx image-gen-mcp{
"mcpServers": {
"image-gen-mcp": {
"command": "uvx",
"args": [
"image-gen-mcp"
],
"env": {
"PROVIDERS__OPENAI__API_KEY": "${PROVIDERS__OPENAI__API_KEY}"
}
}
}
}Exposed tools (2)
2 read · 0 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
health_check | read | |
server_info | read |
Trust audit
BLOCKgrade D · trust 69/100 Do not install this without reading the findings. The audit found something that could harm you or your machine.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | FAIL |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- declared (3 observation(s))
- Network
- declared (13 observation(s))
- Shell
- none-observed
- Dependencies
- pinned
- Secrets in source
- none-found
Findings (15)
os.path.expanduser("~/.config/gcloud"),proxy_pass http://127.0.0.1:3001;
proxy_pass http://127.0.0.1:3001/health;
proxy_pass http://127.0.0.1:3001/metrics;
proxy_pass http://127.0.0.1:3001;
proxy_pass http://127.0.0.1:3001/health;
image_bytes = base64.b64decode(response.data[0].b64_json)
image_bytes = base64.b64decode(response.data[0].b64_json)
image_bytes = base64.b64decode(match.group(2))
image_bytes = base64.b64decode(edited_image_data.b64_json)
image_bytes = base64.b64decode(image_data)
For more control, you can use the low-level server implementation directly. This gives you full access to the protocol and allows you to customize every aspect of your server, including lifecycle mana
assets/images/img_20250708111322_9618bc559949.png
assets/images/img_20250708111847_1c78e63ed4e0.png
Gates applied: no_behavioural_pass, no_license.
789848667c5ffull audit observations/trust-audit/mcp-server/lansespirit__image-gen-3.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-07 | 789848667c5f | BLOCK | D | 69 | first audit |
Questions
What is the Image Gen MCP server?
An MCP server that integrates with gpt-image-1 & Gemini imagen4 model for text-to-image generation services
What tools does Image Gen expose?
2 in total: 2 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Image Gen safe to connect to an agent?
No — not without reading the findings first. The audit graded it D (69/100) and found 1 critical or high issue in the source. Each one is listed on this page with the file and line it is on.
What credentials does Image Gen need?
It reads PROVIDERS__OPENAI__API_KEY from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.
How does Image Gen run?
It speaks sse, stdio and streamable-http, so it runs as a local process your client starts. It is published on PyPI as image-gen-mcp.
How current is this page?
The grade is for one exact copy of the source (789848667c5f), read on 2026-10-07. The repository is watched and re-audited when it changes.