4o-image 图像生成器
STDIOAI图像生成和编辑的MCP服务器
AI图像生成和编辑的MCP服务器
An MCP server implementation that integrates with 4o-image API, enabling LLMs and other AI systems to generate and edit images through a standardized protocol. Create high-quality art, 3D characters, and custom images using simple text prompts.
prompt
(string, required): Text description of the desired imageimageBase64
(string, optional): Base64-encoded image for editing or style transferAdd this to your claude_desktop_config.json
:
{ "mcpServers": { "4o-image": { "command": "npx", "args": [ "-y", "4oimage-mcp" ], "env": { "API_KEY": "YOUR_API_KEY_HERE" } } } }
Here's an example of using this MCP server with Claude:
Generate an image of a dog running on the beach at sunset
Claude will use the MCP server to generate the image, which will automatically open in your default browser. You'll also get a direct link to the image in Claude's response.
For image editing, you can include a base image and prompt Claude to modify it:
Edit this image to make the sky more dramatic with storm clouds
This MCP server is licensed under the MIT License. You are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License.