Skip to main content
Glama

4o-image MCP 服务器

一个集成了 4o-image API 的 MCP 服务器实现,使 LLM 和其他 AI 系统能够通过标准化协议生成和编辑图像。使用简单的文本提示即可创建高质量的艺术作品、3D 角色和自定义图像。

npm 版本 Node.js 版本 许可证:MIT

特征

  • 文本到图像生成:利用人工智能从文本描述创建图像

  • 图像编辑:使用文本提示转换现有图像

  • 实时进度更新:获取生成状态的反馈

  • 浏览器集成:在默认浏览器中自动打开生成的图像

Related MCP server: image-forge-mcp

工具

  • 生成图像

    • 根据文本提示生成图像,并可选择进行图像编辑

    • 输入:

      • prompt (字符串,必需):所需图像的文本描述

      • imageBase64 (字符串,可选):用于编辑或样式转换的 Base64 编码图像

配置

获取 API 密钥

  1. 在4o-image.app注册一个账户

  2. 从用户仪表板获取您的 API 密钥

  3. 运行服务器时将 API 密钥设置为环境变量

与 Claude Desktop 一起使用

将其添加到您的claude_desktop_config.json中:

{
  "mcpServers": {
    "4o-image": {
      "command": "npx",
      "args": [
        "-y",
        "4oimage-mcp"
      ],
      "env": {
        "API_KEY": "YOUR_API_KEY_HERE"
      }
    }
  }
}

示例用法

以下是将此 MCP 服务器与 Claude 一起使用的示例:

Generate an image of a dog running on the beach at sunset

Claude 将使用 MCP 服务器生成图片,该图片将自动在您的默认浏览器中打开。您还会在 Claude 的回复中获得该图片的直接链接。

对于图像编辑,您可以包含一个基础图像并提示 Claude 对其进行修改:

Edit this image to make the sky more dramatic with storm clouds

执照

此 MCP 服务器遵循 MIT 许可证。您可以自由使用、修改和分发该软件,但须遵守 MIT 许可证的条款和条件。

Available Tools

1 tool
generateImageA

Generate images using the 4o-image API and automatically open the results in your browser.

This tool generates images based on your prompt and automatically opens them in your default browser, while also returning a clickable link.

The tool supports two modes:

  1. Text-to-image - Create new images using just a text prompt

  2. Image editing - Provide a base image and prompt for editing or style transfer

The response will include a direct link to the generated image and detailed information.

Visit our website: https://4o-image.app/

Inputs: prompt (required), imageBase64.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only one tool, there is no possibility of ambiguity or overlap between tools. The single tool 'generateImage' has a clear, distinct purpose for image generation and editing.

    Naming Consistency5/5

    The tool name 'generateImage' follows a consistent verb_noun pattern, and with only one tool, there is no inconsistency to evaluate. The naming is clear and appropriate for its function.

    Tool Count2/5

    A single tool is too few for the server's purpose of image generation and editing, as it lacks coverage for related operations like listing generated images, managing settings, or handling errors. This minimal set limits agent functionality and feels incomplete for the domain.

    Completeness2/5

    The tool surface is severely incomplete for an image generation server. While 'generateImage' covers creation and editing, there are obvious gaps such as no tools for retrieving past images, deleting images, or configuring generation parameters, which are essential for a full workflow.

    Maintenance

    ActivityInactive
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers