jimeng mcp

Local 2025-09-01 01:06:08 0
Image And Video Processing @huangmiuXyz/jimeng-mcp

A TypeScript-based Model Context Protocol server that integrates with Volcengine's Jimeng AI image generation service, allowing users to generate AI images through simple tool calls.


{ "mcpServers": { "jimeng": { "command": "npx", "args": [ "jimeng", "-y" ], "env": { "VOLCENGINE_ACCESS_KEY": "your_access_key_here", "VOLCENGINE_SECRET_KEY": "your_secret_key_here" } } } }

https://console.volcengine.com/iam/keymanage/ 获取Access Key ID和Secret Access Key

[
  {
    "description": "调用即梦AI生成图像",
    "inputSchema": {
      "$schema": "http://json-schema.org/draft-07/schema#",
      "additionalProperties": false,
      "properties": {
        "height": {
          "default": 512,
          "description": "图像高度,默认值:512",
          "type": "number"
        },
        "logo_info": {
          "additionalProperties": false,
          "description": "水印信息",
          "properties": {
            "add_logo": {
              "description": "是否添加水印,默认不添加",
              "type": "boolean"
            },
            "language": {
              "description": "水印语言:0-中文(AI生成) 1-英文(Generated by AI)",
              "type": "number"
            },
            "logo_text_content": {
              "description": "水印文字内容",
              "type": "string"
            },
            "opacity": {
              "description": "水印透明度:0-1,默认0.3",
              "type": "number"
            },
            "position": {
              "description": "水印位置:0-右下角 1-左下角 2-左上角 3-右上角",
              "type": "number"
            }
          },
          "type": "object"
        },
        "prompt": {
          "description": "生成图像的文本描述",
          "type": "string"
        },
        "req_key": {
          "default": "jimeng_high_aes_general_v21_L",
          "description": "取固定值: jimeng_high_aes_general_v21_L",
          "type": "string"
        },
        "return_url": {
          "default": true,
          "description": "输出是否返回图片链接(链接有效期为24小时)",
          "type": "boolean"
        },
        "seed": {
          "default": -1,
          "description": "随机种子,默认值:-1",
          "type": "number"
        },
        "use_pre_llm": {
          "default": true,
          "description": "开启文本扩写,针对输入prompt进行扩写优化,如果输入prompt较短建议开启,如果输入prompt较长建议关闭",
          "type": "boolean"
        },
        "use_sr": {
          "default": true,
          "description": "文生图+AIGC超分",
          "type": "boolean"
        },
        "width": {
          "default": 512,
          "description": "图像宽度,默认值:512",
          "type": "number"
        }
      },
      "required": [
        "prompt"
      ],
      "type": "object"
    },
    "name": "generateImage"
  }
]