Image Generator MCP Server
图像生成器 MCP 服务器
根据图片提示生成图片的mcp服务器
这是一个基于 TypeScript 的 MCP 服务器,使用OPENAI的dall-e-3图像生成模型实现图像生成。
特征
工具
generate_image- 为给定的提示生成图像将
prompt作为必需参数将
imageName作为必需参数,将生成的图像保存在桌面上的generated-images目录中
Related MCP server: Image Generator MCP Server
发展
安装依赖项:
npm install构建服务器:
npm run build对于使用自动重建的开发:
npm run watch安装
要与 Claude Desktop 一起使用,请添加服务器配置:
在 MacOS 上: ~/Library/Application Support/Claude/claude_desktop_config.json在 Windows 上: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"command": "image-generator",
"env": {
"OPENAI_API_KEY": "<your-openai-api-key>"
}
}
}确保将<your-openai-api-key>替换为您的实际OPENAI Api Key。
调试
由于 MCP 服务器通过 stdio 进行通信,调试起来可能比较困难。我们推荐使用MCP Inspector ,它以包脚本的形式提供:
npm run inspector检查器将提供一个 URL 来访问浏览器中的调试工具。
Available Tools
1 toolgenerate_imageC
Generate an image from a prompt.
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | A prompt detailing what image to generate. | |
| imageName | Yes | The filename for the image excluding any extensions. |
TDQS
Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?
No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions generation but doesn't describe side effects (e.g., file creation, rate limits, permissions needed, or output format). For a tool that likely creates files, this lack of detail is a significant gap.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is extremely concise with a single sentence that directly states the tool's function. It is front-loaded and wastes no words, making it easy to parse quickly. Every word earns its place.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the tool's complexity (image generation likely involves file creation and AI processing), no annotations, and no output schema, the description is incomplete. It lacks details on behavioral traits, output handling, and usage context, leaving significant gaps for an AI agent to understand how to invoke it correctly.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
Schema description coverage is 100%, so the schema already documents both parameters ('prompt' and 'imageName') adequately. The description adds no additional meaning beyond what the schema provides, such as prompt formatting tips or filename conventions. Baseline 3 is appropriate when schema does the heavy lifting.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description clearly states the tool's purpose with a specific verb ('generate') and resource ('image'), and specifies the input mechanism ('from a prompt'). It doesn't need sibling differentiation since there are no sibling tools. However, it could be more specific about the type of image generation (e.g., AI model, format).
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
Does the description explain when to use this tool, when not to, or what alternatives exist?
The description provides no guidance on when to use this tool versus alternatives, prerequisites, or constraints. It simply states what the tool does without context about appropriate use cases or limitations. With no sibling tools, this is less critical but still a gap.
Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
1 tool update
v1.0.0- Added
generate_image
TDQS
Scored across 1 tool
With only one tool, there is no possibility of ambiguity or overlap between tools, as there are no other tools to compare it to. The tool's purpose is singular and clear, eliminating any risk of misselection.
Since there is only one tool, naming consistency is inherently perfect; there are no other tool names to compare it against, so no inconsistencies can arise. The tool name follows a clear verb_noun pattern (generate_image).
A single tool is too few for a server named 'Image Generator MCP Server', as it suggests a limited scope that may not cover related operations like image editing, listing, or deletion. This minimal set could hinder agent workflows that require more comprehensive image management.
The tool set is severely incomplete for an image generation domain; it only provides generation without any support for retrieval, modification, deletion, or other common image operations. This creates significant gaps that will likely cause agent failures in broader tasks.
Related MCP Connectors
MCP server for OpenAI Sora AI video generation
MCP server for Qwen Image 3 AI image generation
Focused MCP server for OpenAI image/audio generation (v2.0.0). Wraps endpoints via HAPI CLI.
MCP server for Flux AI image generation
Related MCP Servers
- AlicenseBqualityDmaintenanceA TypeScript-based MCP server that enables text-to-image generation using Cloudflare's Flux Schnell model API.15MIT
- FlicenseCqualityNot gradedmaintenanceA TypeScript-based MCP server that lets users generate images using OpenAI's dall-e-3 model by providing a prompt and image name.11-
- FlicenseNot gradedqualityDmaintenanceA TypeScript-based MCP server that enables image editing operations including brightness adjustment, cropping, and compression through natural language commands.1-
- AlicenseBqualityCmaintenanceAn MCP server that generates pixel-art PNGs from text prompts, using a free image backend, and saves them directly to your project directory.2MIT