MCP Image Generation Server

MCP Image Generation Server

By prasanthmj GitHub

A Go implementation of an MCP (Model Context Protocol) server tools

golang mcp
Overview

what is MCP Image Generation Server?

The MCP Image Generation Server is a Go implementation of an MCP (Model Context Protocol) server that generates images using OpenAI's DALL-E API, demonstrating how to build MCP tools for Large Language Models like Claude.

how to use MCP Image Generation Server?

To use the server, build it using the provided command, configure it with your Claude Desktop, and then prompt Claude to generate images based on your text descriptions.

key features of MCP Image Generation Server?

  • Generate images from text descriptions
  • Automatic handling of save locations
  • Configurable image dimensions
  • Proper error handling and logging
  • Compatibility with Claude Desktop and other MCP clients

use cases of MCP Image Generation Server?

  1. Generating artistic images from user prompts
  2. Creating visual content for presentations or reports
  3. Assisting in creative projects by providing visual representations of ideas

FAQ from MCP Image Generation Server?

  • What are the prerequisites for using the server?

You need Go 1.19 or higher, an OpenAI API key, and Claude Desktop for testing.

  • How do I configure the server?

You need to add the server details to your Claude Desktop configuration file.

  • Can I use this server with other applications?

Yes, it works with other MCP clients as well.

Content

MCP Image Generation Server

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.

Features

  • Generate images from text descriptions
  • Automatic handling of save locations
  • Configurable image dimensions
  • Proper error handling and logging
  • Works with Claude Desktop and other MCP clients

Prerequisites

  • Go 1.19 or higher
  • OpenAI API key
  • Claude Desktop (for testing)

Build command

go build -o ./bin/imagegen-go ./main

Configuration

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"
      }
    }
  }
}

Usage

  1. Build the server using the command above
  2. Configure Claude Desktop with your server path and API key
  3. Restart Claude Desktop
  4. Ask Claude to generate images!

Example prompt: "Can you generate an image of a riverside home in cinematic style?"

Implementation Details

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-E

License

MIT License

No tools information available.
School MCP
School MCP by 54yyyu

A Model Context Protocol (MCP) server for academic tools, integrating with Canvas and Gradescope platforms.

canvas mcp
View Details
repo-template
repo-template by loonghao

A Model Context Protocol (MCP) server for Python package intelligence, providing structured queries for PyPI packages and GitHub repositories. Features include dependency analysis, version tracking, and package metadata retrieval for LLM interactions.

-

google-calendar mcp
View Details
strava-mcp
strava-mcp by jeremysilva1098

MCP server for strava

strava mcp
View Details

Model Context Protocol (MCP) server implementation for Rhinoceros/Grasshopper integration, enabling AI models to interact with parametric design tools

grasshopper mcp
View Details

MCP configuration to connect AI agent to a Linux machine.

security mcp
View Details

AI assistant built with Streamlit, NVIDIA NIM (LLaMa 3.3:70B) / Ollama, and Model Control Protocol (MCP).

python mcp
View Details