drio
Open app

Image Generation MCP Server

Source

This MCP server provides image generation capabilities using the Replicate Flux model.

Catalog onlyCatalog onlySTDIO

Overview

Image Generation MCP Server is a server that provides image generation capabilities using the Replicate Flux model, allowing users to create images based on text prompts.

To use the server, set up the configuration file with your Replicate API token and specify the model. Then, you can call the generate_image tool with a text prompt to create images.

  • Generates images from text prompts using the Flux model. - Supports various output formats including webp, jpg, and png. - Allows customization of image aspect ratio and number of outputs.
  1. Creating custom artwork based on user-defined descriptions.
  2. Generating images for marketing materials or social media posts.
  3. Assisting developers in visualizing concepts through generated images.

Add to your AI client

Use these steps to connect Image Generation MCP 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": {
    "image-generation-mcp-server-gongrzhe": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-image-generation-mcp-server-gongrzhe"
      ]
    }
  }
}

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": {
    "image-generation-mcp-server-gongrzhe": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-image-generation-mcp-server-gongrzhe"
      ]
    }
  }
}

Claude Code

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

.mcp.json (project root)

{
  "mcpServers": {
    "image-generation-mcp-server-gongrzhe": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-image-generation-mcp-server-gongrzhe"
      ]
    }
  }
}

VS Code (Copilot)

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

.vscode/mcp.json

{
  "servers": {
    "image-generation-mcp-server-gongrzhe": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-image-generation-mcp-server-gongrzhe"
      ]
    }
  }
}

Windsurf

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

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "image-generation-mcp-server-gongrzhe": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-image-generation-mcp-server-gongrzhe"
      ]
    }
  }
}

Cline

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

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "image-generation-mcp-server-gongrzhe": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-image-generation-mcp-server-gongrzhe"
      ]
    }
  }
}

FAQ

What is required to run the server?

You need a valid Replicate API token and the server configuration set up correctly.

Can I customize the image generation parameters?

Yes! You can customize the aspect ratio, output format, and number of images generated.

Is there a limit to the number of images I can generate?

You can generate between 1 to 4 images per request.