A Rust CAD application with an MCP server for creating, inspecting and rendering drawings, either headlessly or through a connection to the desktop app.

imagegen-go: MCP image generation server using DALL-E
A Go-based MCP server that generates images through OpenAI's DALL-E API and offers them via a generate-image tool.
WHAT IT DOES
- •Implements MCP methods for initialization, listing tools, calling tools, plus resources and prompts listings.
- •Provides a generate-image tool that accepts a prompt with optional width, height and destination parameters.
- •Generates images using OpenAI's DALL-E API and saves them to the destination path.
- •Communicates with clients over standard input and output rather than HTTP.
BEST FOR
- •Generating images from text prompts through an MCP-compatible client.
- •Saving generated images to a chosen location or by default to the user's Downloads directory.
ABOUT IMAGEGEN-GO
imagegen-go: MCP image generation server using DALL-E is cataloged as an MCP server attributed to shawnzxx. A Go-based MCP server that generates images through OpenAI's DALL-E API and offers them via a generate-image tool. It is categorized under media design. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
HOW TO INSTALL
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
LICENSE
Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability inspector
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
Tools (0)
No reviewed records to display. This does not establish that upstream lacks this capability.
Resources (0)
No reviewed records to display. This does not establish that upstream lacks this capability.
Prompts (0)
No reviewed records to display. This does not establish that upstream lacks this capability.
Newsletter subscriptions are not open yet
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Community Reviews
Reviews for imagegen-go: MCP image generation server using DALL-E are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
FREQUENTLY ASKED QUESTIONS
Which API does the server use to generate images?
It uses OpenAI's DALL-E API.
Where are generated images saved by default?
They are saved to the user's Downloads directory by default.
How does the server communicate with clients?
It communicates over standard input and output rather than as a traditional HTTP server.
Upstream README
README.md · 5f588a14d1be · Fetched 2026-11-13 11:13:50 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
imagegen-go MCP 服务器
这是一个基于 MCP (Model Control Protocol) 协议的图像生成服务器,使用 OpenAI 的 DALL-E API 生成图像。
环境要求
- Go 1.23.5 或更高版本
- OpenAI API 密钥
设置环境变量
在使用前,请设置 OpenAI API 密钥:
export OPENAI_API_KEY="你的OpenAI API密钥"
编译
如果需要重新编译项目:
go build -o bin/imagegen-go main/*.go
测试脚本
本项目提供了多个测试脚本,用于调试 MCP 服务器:
1. 基本测试
运行基本测试,包括初始化、获取工具列表和生成图像:
./test_mcp.sh
2. 详细调试
运行详细调试,将日志和响应保存到文件:
./debug_mcp.sh
3. 交互式测试
运行交互式测试,允许输入自定义的提示词:
./interactive_test.sh
4. 单独请求测试
测试单个请求:
# 初始化请求
./test_single_request.sh init
# 获取工具列表
./test_single_request.sh list
# 生成图像
./test_single_request.sh generate "一只可爱的猫咪" 1024 1024
日志
所有测试脚本都会将日志保存到 logs 目录中,方便查看和分析。
MCP 协议
MCP 是一种基于 JSON-RPC 2.0 的协议,用于模型与工具之间的通信。本服务器实现了以下 MCP 方法:
initialize- 初始化服务器tools/list- 获取可用工具列表tools/call- 调用工具(生成图像)resources/list- 获取可用资源列表prompts/list- 获取可用提示列表
生成图像工具
本服务器提供了一个名为 generate-image 的工具,用于生成图像。参数如下:
prompt(必需) - 图像描述width(可选) - 图像宽度,默认为 1792height(可选) - 图像高度,默认为 1024destination(可选) - 保存图像的路径,默认为用户的 Downloads 目录
调试步骤
-
设置环境变量:
export OPENAI_API_KEY="你的OpenAI API密钥" -
运行初始化请求:
./test_single_request.sh init -
获取工具列表:
./test_single_request.sh list -
生成图像:
./test_single_request.sh generate "你的提示词" [宽度] [高度] -
查看日志:
cat logs/single_request_*.log
项目结构
imagegen-go/
├── bin/ # 编译后的二进制文件
│ └── imagegen-go # 主程序
├── main/ # 主程序源代码
│ ├── main.go # 主程序入口
│ ├── types.go # 数据类型定义
│ ├── utils.go # 工具函数
│ └── pretty-json.go # JSON 格式化
├── pkg/ # 依赖包
│ └── openai/ # OpenAI API 客户端
│ └── client.go # OpenAI API 交互
├── logs/ # 日志目录
├── test_mcp.sh # 基本测试脚本
├── debug_mcp.sh # 详细调试脚本
├── interactive_test.sh # 交互式测试脚本
├── test_single_request.sh # 单独请求测试脚本
└── README.md # 本文档
注意事项
- 确保 OpenAI API 密钥有效且有足够的额度
- 生成的图像默认保存在用户的 Downloads 目录
- 如果提供的目标路径无效,将使用默认路径
- 服务器通过标准输入/输出与客户端通信,不是传统的 HTTP 服务器
Install configuration
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for imagegen-go: MCP image generation server using DALL-E from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/imagegen-go)REPOSITORY STATS
Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Downloads and pulls
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Related media design MCP Servers
Alternative and complementary servers in the same category

Liquid Composer is a browser-based Liquid Glass icon design tool that offers a local MCP server for agent-driven icon workflows.

agent-media makes short drama series and other short vertical videos from Claude, ChatGPT or Codex through one MCP connection, with OAuth sign-in and no API keys.
