drio
Open app

MCP Image Generation Server

Source

Mirror of

Catalog onlyCatalog onlySTDIO

Overview

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. It serves as a tool for building MCP applications that can be utilized by Large Language Models like Claude.

To use the server, you need to build it using Go, configure it with your OpenAI API key, and integrate it with Claude Desktop. After setup, you can prompt Claude to generate images based on text descriptions.

  • 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
  1. Generating artistic images from user prompts.
  2. Creating visual content for storytelling or presentations.
  3. Assisting developers in building applications that require image generation capabilities.

Add to your AI client

Use these steps to connect MCP Image Generation Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "prasanthmj-primitive-go-mcp-server-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-prasanthmj-primitive-go-mcp-server-mcp-mirror"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "prasanthmj-primitive-go-mcp-server-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-prasanthmj-primitive-go-mcp-server-mcp-mirror"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "prasanthmj-primitive-go-mcp-server-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-prasanthmj-primitive-go-mcp-server-mcp-mirror"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "prasanthmj-primitive-go-mcp-server-mcp-mirror": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-prasanthmj-primitive-go-mcp-server-mcp-mirror"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "prasanthmj-primitive-go-mcp-server-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-prasanthmj-primitive-go-mcp-server-mcp-mirror"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "prasanthmj-primitive-go-mcp-server-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-prasanthmj-primitive-go-mcp-server-mcp-mirror"
      ]
    }
  }
}

FAQ

What are the prerequisites to run the server?

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

Is there a specific command to build the server?

Yes, you can build it using the command: `go build -o ./bin/imagegen-go ./main`.

How do I configure the server with Claude Desktop?

You need to add the server details to the Claude Desktop configuration file located at `~/Library/Application Support/Claude/claude_desktop_config.json`.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":1068,"uuid":"7c2ff6a5-da05-40d7-9abb-3e37f66c6dc2","name":"prasanthmj_primitive-go-mcp-server","title":"MCP Image Generation Server","description":"Mirror of","avatar_url":"https://avatars.githubusercontent.com/u/192820360?v=4","created_at":"2025-01-28T02:29:07.901Z","updated_at":"2025-02-23T07:19:43.370Z","status":"created","author_name":"MCP-Mirror","author_avatar_url":"https://avatars.githubusercontent.com/u/192820360?v=4","tags":"mcp,image-generation,dall-e,go-server","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/MCP-Mirror/prasanthmj_primitive-go-mcp-server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]