4o-image
Generate and edit images using text prompts with the 4o-image API.
4o-image MCP Server
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.
Features
- Text-to-Image Generation: Create images from text descriptions with AI
- Image Editing: Transform existing images using text prompts
- Real-time Progress Updates: Get feedback on generation status
- Browser Integration: Automatically open generated images in your default browser
Tools
- generateImage
- Generate images based on text prompts with optional image editing
- Inputs:
prompt(string, required): Text description of the desired imageimageBase64(string, optional): Base64-encoded image for editing or style transfer
Configuration
Getting an API Key
- Register for an account at 4o-image.app
- Obtain your API key from the user dashboard
- Set the API key as an environment variable when running the server
Usage with Claude Desktop
Add this to your claude_desktop_config.json:
{
"mcpServers": {
"4o-image": {
"command": "npx",
"args": [
"-y",
"4oimage-mcp"
],
"env": {
"API_KEY": "YOUR_API_KEY_HERE"
}
}
}
}
Example Usage
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
License
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.
関連サーバー
Alpha Vantage MCP Server
スポンサーAccess financial market data: realtime & historical stock, ETF, options, forex, crypto, commodities, fundamentals, technical indicators, & more
Agent Price API
A high-performance MCP server providing structured, real-time price data for AI hardware across global marketplaces, built with a focus on agent-native discovery over hardcoded endpoints.
FluidMCP CLI
A command-line tool to run MCP servers from a single file, with support for automatic dependency resolution, environment setup, and package installation from local or S3 sources.
durable-objects-mcp
Query your Cloudflare Durable Objects from Claude Code, Cursor, and other AI clients
SpecBridge
Automatically generates MCP tools from OpenAPI specifications by scanning a folder for spec files. No configuration is needed and it supports authentication via environment variables.
OAuth 2.1 MCP Server
A Next.js template for building MCP servers with OAuth 2.1 authentication, supporting PostgreSQL and Redis.
Codex.io Docs MCP
MCP to read the Codex crypto data API so agents can write GraphQL queries.
Claude Desktop
An MCP server for interacting with Anthropic's Claude on the desktop, based on a DeepLearning.ai course example.
Mermaid MCP Server
Converts Mermaid diagrams to PNG or SVG images.
SuperCollider MCP Server
An MCP server for the SuperCollider programming language that executes synths using supercolliderjs.
MCP Lab
A development environment for building and testing custom MCP servers with AI and VS Code integration.