DALL-E Image Generation
STDIOGo implementation of MCP server for generating images using OpenAI's DALL-E API.
Go implementation of MCP server for generating images using OpenAI's DALL-E API.
A Go implementation of an MCP (Model Context Protocol) server that generates images using OpenAI's DALL-E API. This server demonstrates how to build MCP tools that can be used by Large Language Models like Claude.
go build -o ./bin/imagegen-go ./main
Add this server to your Claude Desktop configuration at ~/Library/Application Support/Claude/claude_desktop_config.json
:
{ "mcpServers": { "imagegen-go": { "command": "/path/to/imagegen-go/bin/imagegen-go", "env": { "OPENAI_API_KEY": "your-api-key", "DEFAULT_DOWNLOAD_PATH":"/path/to/downloads" } } } }
Example prompt: "Can you generate an image of a riverside home in cinematic style?"
This server implements the MCP tools capability and provides a single tool:
generate-image
: Generates an image from a text prompt using OpenAI's DALL-EMIT License