Volcengine Image Generation MCP Server
Enables AI-powered text-to-image generation using Volcengine's API with support for multiple image sizes, customizable parameters like guidance scale and seed, and flexible output formats.
README
Volcengine Image Generation MCP Server
A Model Context Protocol (MCP) server that provides tools for generating images using Volcengine's text-to-image API.
Features
- Text-to-image generation using Volcengine's doubao-seedream-3-0-t2i-250415 model
- Support for multiple image sizes and formats
- Configurable parameters including seed, guidance scale, and watermark
- Proper error handling and validation
- TypeScript implementation with full type safety
Installation
- Clone or download this repository
- Install dependencies:
npm install
- Build the project:
npm run build
Configuration
Set the required environment variable:
export VOLCENGINE_API_KEY="your_api_key_here"
Usage
Running the server
npm start
Development mode
npm run dev
Available Tools
generate_image
Generate images from text prompts using Volcengine's API.
Parameters:
prompt(required): Text description of the image to generatemodel(optional): Model ID (default: doubao-seedream-3-0-t2i-250415)size(optional): Image size (default: 1024x1024)seed(optional): Random seed for reproducible resultsguidance_scale(optional): How closely to follow the prompt (1-10)watermark(optional): Whether to add watermark (default: true)response_format(optional): Return format - 'url' or 'b64_json' (default: url)
Supported sizes:
- 1024x1024 (1:1)
- 864x1152 (3:4)
- 1152x864 (4:3)
- 1280x720 (16:9)
- 720x1280 (9:16)
- 832x1248 (2:3)
- 1248x832 (3:2)
- 1512x648 (21:9)
Example Usage
{
"name": "generate_image",
"arguments": {
"prompt": "A beautiful sunset over mountains",
"size": "1024x1024",
"guidance_scale": 7.5
}
}
MCP Client Configuration
Add this server to your MCP client configuration:
{
"mcpServers": {
"volcengine-image": {
"command": "node",
"args": ["path/to/build/index.js"],
"env": {
"VOLCENGINE_API_KEY": "your-api-key"
}
}
}
}
Error Handling
The server provides comprehensive error handling for:
- Invalid API keys
- Rate limiting
- Invalid parameters
- Network errors
- API response errors
License
MIT
Recommended Servers
playwright-mcp
A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.
Magic Component Platform (MCP)
An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.
Audiense Insights MCP Server
Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.
VeyraX MCP
Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.
Kagi MCP Server
An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.
graphlit-mcp-server
The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.
Qdrant Server
This repository is an example of how to create a MCP server for Qdrant, a vector search engine.
Neon Database
MCP server for interacting with Neon Management API and databases
Exa Search
A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.
E2B
Using MCP to run code via e2b.