drio
Open app

Image-Gen-Server

Source

一个能与Cursor集成的图片生成mcp server工具,实现调用即梦逆向接口

Catalog onlyCatalog onlySTDIO

Overview

Image-Gen-Server is a tool designed for generating images based on text descriptions, specifically integrated with the Cursor IDE, utilizing the JIMENG AI service.

To use Image-Gen-Server, set it up within the Cursor IDE by configuring the MCP server settings and providing the necessary API token. You can then prompt Cursor to generate images based on your descriptions.

  • Seamless integration with Cursor IDE - Text-to-image generation capabilities - Automatic saving of generated images - Customizable save paths - Ability to generate multiple images at once for more options
  1. Creating product logos based on project requirements.
  2. Designing website homepage banners.
  3. Generating illustrations for presentations or reports.

Add to your AI client

Use these steps to connect Image-Gen-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-gen-server-fengin": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-image-gen-server-fengin"
      ]
    }
  }
}

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

Claude Code

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

.mcp.json (project root)

{
  "mcpServers": {
    "image-gen-server-fengin": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-image-gen-server-fengin"
      ]
    }
  }
}

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-gen-server-fengin": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-image-gen-server-fengin"
      ]
    }
  }
}

Windsurf

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

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "image-gen-server-fengin": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-image-gen-server-fengin"
      ]
    }
  }
}

Cline

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

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "image-gen-server-fengin": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-image-gen-server-fengin"
      ]
    }
  }
}

FAQ

What is required to run Image-Gen-Server?

You need Python 3.10+, Node.js, and npm installed, along with the necessary dependencies.

How do I obtain the JIMENG API token?

You can get the token by logging into the JIMENG website and retrieving it from the cookies in the developer tools.

Can I customize the image generation parameters?

Yes! You can specify the image dimensions and quality when generating images.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":1454,"uuid":"92ebaaf4-b2c7-4353-ba3f-77969cb89452","name":"image-gen-server","title":"Image-Gen-Server","description":"一个能与Cursor集成的图片生成mcp server工具,实现调用即梦逆向接口","avatar_url":"https://avatars.githubusercontent.com/u/49424247?v=4","created_at":"2025-02-20T15:52:52.455Z","updated_at":"2025-02-23T07:21:40.309Z","status":"created","author_name":"fengin","author_avatar_url":"https://avatars.githubusercontent.com/u/49424247?v=4","tags":"[]","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/fengin/image-gen-server","target":"_self","content":"$29","summary":"$2a","img_url":"https://github.com/fengin/image-gen-server/raw/main/images/logo_0.png","type":null,"metadata":"{\"star\":\"82\",\"license\":\"MIT license\",\"language\":\"Python\",\"is_official\":false,\"latest_commit_time\":\"2025-04-11 22:44:59\"}","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"}]]}]